Skip to content

Commit 17f4394

Browse files
author
Deepak
committed
add load path and gitignore
1 parent ac1e7d1 commit 17f4394

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.db
2+
*~
3+
*#
4+
*.DS_Store
5+
log/*
6+
tmp/*

lib/open_weather_api.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module OpenWeather
2-
autoload :Current, "./open_weather_api/current_weather"
3-
autoload :Base, "./open_weather_api/base"
4-
end
2+
$LOAD_PATH<< "../lib"
3+
4+
autoload :Base, "open_weather_api/base"
5+
autoload :Current, "open_weather_api/current_weather"
6+
autoload :VERSION, "open_weather_api/version"
7+
end

lib/open_weather_api/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module OpenWeather
2+
VERSION = "0.0.1"
3+
end

0 commit comments

Comments
 (0)