Skip to content

Commit f6696ae

Browse files
committed
Merge pull request #2 from deepakkumarnd/build_gem
Build gem, Rspec setup
2 parents a817d76 + d8d297c commit f6696ae

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ source 'http://rubygems.org'
22

33
gem 'httparty'
44
gem 'addressable'
5+
gem 'rspec'

Gemfile.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@ GEM
22
remote: http://rubygems.org/
33
specs:
44
addressable (2.3.4)
5+
diff-lcs (1.2.2)
56
httparty (0.11.0)
67
multi_json (~> 1.0)
78
multi_xml (>= 0.5.2)
89
multi_json (1.7.3)
910
multi_xml (0.5.3)
11+
rspec (2.13.0)
12+
rspec-core (~> 2.13.0)
13+
rspec-expectations (~> 2.13.0)
14+
rspec-mocks (~> 2.13.0)
15+
rspec-core (2.13.1)
16+
rspec-expectations (2.13.0)
17+
diff-lcs (>= 1.1.3, < 2.0)
18+
rspec-mocks (2.13.0)
1019

1120
PLATFORMS
1221
ruby
1322

1423
DEPENDENCIES
1524
addressable
1625
httparty
26+
rspec

open_weather_api.gemspec

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$:.push File.expand_path("../lib", __FILE__)
2+
require 'open_weather_api/version'
3+
4+
Gem::Specification.new do |gem|
5+
gem.name = "open_weather_api"
6+
gem.version = OpenWeather::VERSION
7+
gem.authors = ["hsps", "deepak"]
8+
gem.email = []
9+
gem.homepage = "https://github.com/coderhs/ruby_open_weather_map"
10+
gem.summary = %q{ A ruby wrapper for Open Weather Map API. }
11+
gem.description = %q{ A ruby wrapper for Open Weather Map API. }
12+
gem.files = `git ls-files`.split("\n")
13+
gem.test_files = gem.files.grep(/^(spec|test|features)/)
14+
gem.executables = gem.files.grep(/^bin/).map{ |f| File.basename(f) }
15+
gem.require_paths = ["lib"]
16+
gem.add_development_dependency "rspec"
17+
end

spec/ruby_weather_api/version_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'spec_helper'
2+
3+
describe "Version" do
4+
it "should be version 0.0.1" do
5+
OpenWeather::VERSION.should == "0.0.1"
6+
end
7+
end

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# spec helper
2+
require 'open_weather_api'

0 commit comments

Comments
 (0)