Skip to content

Commit a817d76

Browse files
committed
Merge pull request #1 from deepakkumarnd/dev
add load path for loading files.
2 parents 60bca9f + 17f4394 commit a817d76

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-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/*

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
source 'http://rubygems.org'
2+
13
gem 'httparty'
24
gem 'addressable'

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
GEM
2+
remote: http://rubygems.org/
23
specs:
34
addressable (2.3.4)
45
httparty (0.11.0)

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)