rate_beer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e99b34421fce5318a0b1385002b174ac156b2b4b
4
+ data.tar.gz: b8338d4682bc2f7128c8d17a958407a52cd2b3e7
5
+ SHA512:
6
+ metadata.gz: d24a55e950209e4d2f0d4fa675d8842c5cf5b63b4ee130141c9f2bbccd6ba4d9ff32dd56cece279ccd8bab6922e489c17279d988ad02b4e75c7533d71008a432
7
+ data.tar.gz: 3bb5d7541fdb4e6e2541e017c1af93d3a741e9f57cd9ba32d73bb2966f071c4d852d14b410142324d3e4e42ed213de9c92933b865a8fd767d40861981ef4fe30
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rate_beer.gemspec
4
+ gemspec
5
+
6
+ group :development, :test do
7
+ gem "byebug"
8
+ gem "pry"
9
+ end
10
+ group :test do
11
+ gem 'rspec', '~> 2.14'
12
+ gem 'webmock'
13
+ gem 'simplecov', :require => false
14
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Māris Cīlītis
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # RateBeer
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'rate_beer'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install rate_beer
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( http://github.com/<my-github-username>/rate_beer/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/lib/rate_beer.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'httparty'
2
+ require "rate_beer/version"
3
+ require 'rate_beer/configuration'
4
+ require 'rate_beer/client'
5
+ require 'rate_beer/string'
6
+
7
+ module RateBeer
8
+ extend Configuration
9
+ end
@@ -0,0 +1,72 @@
1
+ require 'uri'
2
+ require 'hashie'
3
+
4
+ module RateBeer
5
+ class Client
6
+ include HTTParty
7
+
8
+ SORT_OPTIONS = {
9
+ latest: 1,
10
+ top_raters: 2,
11
+ highest_ratings: 3
12
+ }.freeze
13
+
14
+ DEFAULT_OPTIONS = {
15
+ page: 1,
16
+ sort_by: SORT_OPTIONS[:latest]
17
+ }.freeze
18
+
19
+ base_uri Configuration::DEFAULT_ENDPOINT
20
+
21
+ attr_accessor *Configuration::VALID_CONFIG_KEYS
22
+
23
+ def initialize(options = {})
24
+ merged_options = RateBeer.options.merge(options)
25
+
26
+ Configuration::VALID_CONFIG_KEYS.each do |key|
27
+ send("#{key}=", merged_options[key])
28
+ end
29
+ end
30
+
31
+ def beer_info_by_id(beer_id)
32
+ response = self.class.get("/bff.asp?bd=#{beer_id}&k=#{api_key}")
33
+ parsed_response(response)
34
+ end
35
+
36
+ def beer_info_by_name(beer_name)
37
+ beer_name = URI.escape(beer_name)
38
+ response = self.class.get("/bff.asp?bn=#{beer_name}&k=#{api_key}&vg=1&rc=1")
39
+ parsed_response(response)
40
+ end
41
+
42
+ def beer_reviews(beer_id, options = {})
43
+ options = merge_with_default_options(options)
44
+ response = self.class.get("/gr.asp?bid=#{beer_id}&s=#{options[:sort_by]}&p=#{options[:page]}&k=#{api_key}")
45
+ parsed_response(response)
46
+ end
47
+
48
+ private
49
+
50
+ def merge_with_default_options(options)
51
+ DEFAULT_OPTIONS.merge(options)
52
+ end
53
+
54
+ def parsed_response(response)
55
+ parsed_array = JSON.parse(response.body)
56
+ parsed_array.each_with_index do |hash, index|
57
+ hash = hash_with_transformed_keys(hash)
58
+ hash = transformed_to_mash(hash)
59
+ parsed_array[index] = hash
60
+ end
61
+ parsed_array
62
+ end
63
+
64
+ def hash_with_transformed_keys(hash)
65
+ hash.inject({}){|memo,(k,v)| memo[k.underscore] = v; memo}
66
+ end
67
+
68
+ def transformed_to_mash(hash)
69
+ Hashie::Mash.new(hash)
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,31 @@
1
+ module RateBeer
2
+ module Configuration
3
+ VALID_CONNECTION_KEYS = [:endpoint, :user_agent].freeze
4
+ VALID_OPTIONS_KEYS = [:api_key].freeze
5
+ VALID_CONFIG_KEYS = VALID_OPTIONS_KEYS + VALID_CONNECTION_KEYS
6
+
7
+ DEFAULT_API_KEY = nil
8
+ DEFAULT_USER_AGENT = "RateBeer API Ruby Gem #{RateBeer::VERSION}"
9
+ DEFAULT_ENDPOINT = 'http://ratebeer.com/json'
10
+
11
+ attr_accessor *VALID_CONFIG_KEYS
12
+
13
+ def self.extended(base)
14
+ base.reset
15
+ end
16
+
17
+ def options
18
+ Hash[ * VALID_CONFIG_KEYS.map { |key| [key, send(key)] }.flatten ]
19
+ end
20
+
21
+ def configure
22
+ yield self
23
+ end
24
+
25
+ def reset
26
+ self.api_key = DEFAULT_API_KEY
27
+ self.user_agent = DEFAULT_USER_AGENT
28
+ self.endpoint = DEFAULT_ENDPOINT
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,9 @@
1
+ class String
2
+ def underscore
3
+ self.gsub(/::/, '/').
4
+ gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
5
+ gsub(/([a-z\d])([A-Z])/,'\1_\2').
6
+ tr("-", "_").
7
+ downcase
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module RateBeer
2
+ VERSION = "0.0.1"
3
+ end
data/rate_beer.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rate_beer/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rate_beer"
8
+ spec.version = RateBeer::VERSION
9
+ spec.authors = ["Māris Cīlītis"]
10
+ spec.email = ["maris@ithouse.lv"]
11
+ spec.summary = %q{A Ruby interface to Rate Beer API}
12
+ spec.description = spec.summary
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_runtime_dependency "httparty"
22
+ spec.add_runtime_dependency "hashie"
23
+ spec.add_development_dependency "bundler", "~> 1.5"
24
+ spec.add_development_dependency "rake"
25
+ end
data/spec/helper.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'simplecov'
2
+
3
+ SimpleCov.start
4
+ require 'rspec'
5
+ require 'rate_beer'
6
+ require 'webmock/rspec'
7
+ require 'byebug'
8
+ require 'json'
9
+ require 'hashie'
10
+ require 'support/responses'
@@ -0,0 +1,177 @@
1
+ require 'helper'
2
+
3
+ describe RateBeer::Client do
4
+ subject { described_class.new }
5
+
6
+ before do
7
+ @keys = RateBeer::Configuration::VALID_CONFIG_KEYS
8
+ end
9
+
10
+ describe 'with module configuration' do
11
+ before do
12
+ RateBeer.configure do |config|
13
+ @keys.each do |key|
14
+ config.send("#{key}=", key)
15
+ end
16
+ end
17
+ end
18
+
19
+ after do
20
+ RateBeer.reset
21
+ end
22
+
23
+ it "should inherit module configuration" do
24
+ api = RateBeer::Client.new
25
+ @keys.each do |key|
26
+ expect(api.send(key)).to equal(key)
27
+ end
28
+ end
29
+
30
+ describe 'with class configuration' do
31
+ before do
32
+ @config = {
33
+ :api_key => 'ak',
34
+ :endpoint => 'ep',
35
+ :user_agent => 'ua'
36
+ }
37
+ end
38
+
39
+ it 'should override module configuration' do
40
+ api = RateBeer::Client.new(@config)
41
+ @keys.each do |key|
42
+ expect(api.send(key)).to equal(@config[key])
43
+ end
44
+ end
45
+
46
+ it 'should override module configuration after' do
47
+ api = RateBeer::Client.new
48
+
49
+ @config.each do |key, value|
50
+ api.send("#{key}=", value)
51
+ end
52
+
53
+ @keys.each do |key|
54
+ expect(api.send("#{key}")).to equal(@config[key])
55
+ end
56
+ end
57
+ end
58
+ end
59
+
60
+ it "should include http party" do
61
+ expect(RateBeer::Client).to include(HTTParty)
62
+ end
63
+
64
+ it "shold have correct base uri" do
65
+ expect(RateBeer::Client.base_uri).to eq(RateBeer::Configuration::DEFAULT_ENDPOINT)
66
+ end
67
+
68
+
69
+ let(:client) { described_class.new(api_key: "secret123") }
70
+
71
+ describe "#beer_info_by_id" do
72
+ before do
73
+ stub_request(:get, "http://ratebeer.com/json/bff.asp?bd=12345&k=secret123").
74
+ to_return(:status => 200, :body => response_by_beer_id, :headers => {})
75
+ end
76
+
77
+ let(:response) { client.beer_info_by_id("12345") }
78
+
79
+ it "should return Array" do
80
+ expect(response).to be_a(Array)
81
+ end
82
+
83
+ describe "response" do
84
+ subject { response[0] }
85
+
86
+ it "should return correct values" do
87
+ expect(subject.beer_id).to eq(12345)
88
+ expect(subject.beer_name).to eq("Acoustic Harmonic Bzzz")
89
+ expect(subject.brewer_id).to eq(12147)
90
+ expect(subject.brewer_name).to eq("Acoustic Brewing Company")
91
+ expect(subject.overall_pctl).to eq(57.751660219715)
92
+ expect(subject.style_pctl).to eq(53.0867326920712)
93
+ expect(subject.beer_style_name).to eq("Mead")
94
+ expect(subject.alcohol).to eq(6)
95
+ expect(subject.ibu).to eq(nil)
96
+ expect(subject.description).to eq("Honey-apple-cherry wine fermented and flavored with natural fruit and spices.")
97
+ expect(subject.is_alias).to eq(false)
98
+ end
99
+ end
100
+ end
101
+
102
+ describe "#beer_info_by_name" do
103
+ before do
104
+ stub_request(:get, "http://ratebeer.com/json/bff.asp?bn=Acoustic%20Harmonic%20Bzzz&k=secret123&rc=1&vg=1").
105
+ to_return(:status => 200, :body => response_by_beer_name, :headers => {})
106
+ end
107
+
108
+ let(:response) { client.beer_info_by_name("Acoustic Harmonic Bzzz") }
109
+
110
+ it "should return Array" do
111
+ expect(response).to be_a(Array)
112
+ end
113
+
114
+ describe "response" do
115
+ subject { response[0] }
116
+
117
+ it "should return correct values" do
118
+ expect(subject.beer_id).to eq(12345)
119
+ expect(subject.beer_name).to eq("Acoustic Harmonic Bzzz")
120
+ expect(subject.overall_pctl).to eq(57.751660219715)
121
+ expect(subject.style_pctl).to eq(53.0867326920712)
122
+ expect(subject.is_alias).to eq(false)
123
+ expect(subject.rate_count).to eq(9)
124
+ expect(subject.average_rating).to eq(3.156209)
125
+ expect(subject.real_average).to eq(3.433333)
126
+ end
127
+ end
128
+ end
129
+
130
+ describe "#beer_reviews" do
131
+ before do
132
+ stub_request(:get, "http://ratebeer.com/json/gr.asp?bid=12345&k=secret123&p=1&s=1").
133
+ to_return(:status => 200, :body => beer_reviews_response, :headers => {})
134
+ end
135
+
136
+ let(:response) { client.beer_reviews("12345") }
137
+ let(:review) { response.first }
138
+
139
+ it "should return Array" do
140
+ expect(response).to be_a(Array)
141
+ end
142
+
143
+ describe "response" do
144
+ subject { response }
145
+
146
+ it "should contain hashes" do
147
+ expect(subject.first).to be_a(Hash)
148
+ end
149
+
150
+ it "should contain 2 reviews" do
151
+ expect(subject.count).to eq(2)
152
+ end
153
+
154
+ it "should contain correct values" do
155
+ expect(review.result_num).to eq(1)
156
+ expect(review.rating_id).to eq(5525608)
157
+ expect(review.appearance).to eq(3)
158
+ expect(review.aroma).to eq(6)
159
+ expect(review.flavor).to eq(6)
160
+ expect(review.mouthfeel).to eq(3)
161
+ expect(review.overall).to eq(12)
162
+ expect(review.total_score).to eq(3)
163
+ expect(review.comments).to eq("Bottle. Clear gold with a thin white head. Aroma of honey and slight apple. Flavor of honey and lemon soda.")
164
+ expect(review.time_entered).to eq("3/9/2014 11:55:13 AM")
165
+ expect(review.time_updated).to eq(nil)
166
+ expect(review.user_id).to eq(76728)
167
+ expect(review.user_name).to eq("JaBier")
168
+ expect(review.city).to eq("Capital City")
169
+ expect(review.state_id).to eq(35)
170
+ expect(review.state).to eq("Ohio")
171
+ expect(review.country_id).to eq(213)
172
+ expect(review.country).to eq("United States")
173
+ expect(review.rate_count).to eq(4443)
174
+ end
175
+ end
176
+ end
177
+ end
@@ -0,0 +1,26 @@
1
+ require 'helper'
2
+
3
+ describe 'configuration' do
4
+ subject { RateBeer }
5
+
6
+ context "default configuration" do
7
+ RateBeer::Configuration::VALID_CONFIG_KEYS.each do |key|
8
+ describe ".#{key}" do
9
+ it 'should return the default value' do
10
+ expect(subject.send(key)).to eq(RateBeer::Configuration.const_get("DEFAULT_#{key.upcase}"))
11
+ end
12
+ end
13
+ end
14
+ end
15
+
16
+ context "custom configuration" do
17
+ RateBeer::Configuration::VALID_CONFIG_KEYS.each do |key|
18
+ it "should set the #{key}" do
19
+ subject.configure do |config|
20
+ config.send("#{key}=", key)
21
+ expect(subject.send(key)).to equal(key)
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ describe RateBeer do
4
+ it "should have version" do
5
+ expect(RateBeer::VERSION).to_not eq(nil)
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ def response_by_beer_id
2
+ "[{\"BeerID\":12345,\"BeerName\":\"Acoustic Harmonic Bzzz\",\"BrewerID\":12147,\"BrewerName\":\"Acoustic Brewing Company\",\"OverallPctl\":57.751660219715,\"StylePctl\":53.0867326920712,\"BeerStyleName\":\"Mead\",\"Alcohol\":6,\"IBU\":null,\"Description\":\"Honey-apple-cherry wine fermented and flavored with natural fruit and spices.\",\"IsAlias\":false}]"
3
+ end
4
+
5
+ def response_by_beer_name
6
+ "[{\"BeerID\":12345,\"BeerName\":\"Acoustic Harmonic Bzzz\",\"IsAlias\":false,\"OverallPctl\":57.751660219715,\"StylePctl\":53.0867326920712,\"RealAverage\":3.433333,\"AverageRating\":3.156209,\"RateCount\":9}]"
7
+ end
8
+
9
+ def beer_reviews_response
10
+ "[{\"resultNum\":1,\"RatingID\":5525608,\"Appearance\":3,\"Aroma\":6,\"Flavor\":6,\"Mouthfeel\":3,\"Overall\":12,\"TotalScore\":3,\"Comments\":\"Bottle. Clear gold with a thin white head. Aroma of honey and slight apple. Flavor of honey and lemon soda.\",\"TimeEntered\":\"3/9/2014 11:55:13 AM\",\"TimeUpdated\":null,\"UserID\":76728,\"UserName\":\"JaBier\",\"City\":\"Capital City\",\"StateID\":35,\"State\":\"Ohio\",\"CountryID\":213,\"Country\":\"United States\",\"RateCount\":4443},{\"resultNum\":2,\"RatingID\":5365050,\"Appearance\":3,\"Aroma\":8,\"Flavor\":7,\"Mouthfeel\":4,\"Overall\":15,\"TotalScore\":3.7,\"Comments\":\"Pours a light red colored hue. Aromas is of cherry and apple, sweet and fruity. Flavor is nice. Apple up front, nice and sweet. Sweet cherry juice with subtle tartness as well. Hints of cinnamon and all spice. Another solid offering. Like these light carbonated meads. \",\"TimeEntered\":\"1/4/2014 6:56:21 PM\",\"TimeUpdated\":null,\"UserID\":55709,\"UserName\":\"MeadMe\",\"City\":\"Riverview\",\"StateID\":9,\"State\":\"Florida\",\"CountryID\":213,\"Country\":\"United States\",\"RateCount\":1237}]"
11
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rate_beer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Māris Cīlītis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hashie
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: A Ruby interface to Rate Beer API
70
+ email:
71
+ - maris@ithouse.lv
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - Gemfile
78
+ - LICENSE.txt
79
+ - README.md
80
+ - Rakefile
81
+ - lib/rate_beer.rb
82
+ - lib/rate_beer/client.rb
83
+ - lib/rate_beer/configuration.rb
84
+ - lib/rate_beer/string.rb
85
+ - lib/rate_beer/version.rb
86
+ - rate_beer.gemspec
87
+ - spec/helper.rb
88
+ - spec/rate_beer/client_spec.rb
89
+ - spec/rate_beer/configuration_spec.rb
90
+ - spec/rate_beer/rate_beer_spec.rb
91
+ - spec/support/responses.rb
92
+ homepage: ''
93
+ licenses:
94
+ - MIT
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 2.2.2
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: A Ruby interface to Rate Beer API
116
+ test_files:
117
+ - spec/helper.rb
118
+ - spec/rate_beer/client_spec.rb
119
+ - spec/rate_beer/configuration_spec.rb
120
+ - spec/rate_beer/rate_beer_spec.rb
121
+ - spec/support/responses.rb
122
+ has_rdoc: