activeresource-response 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,5 @@ rvm:
7
7
  - rbx-18mode
8
8
  - rbx-19mode
9
9
  - ruby-head
10
- - jruby-head
11
10
  - 1.8.7
12
11
  - ree
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
 
16
16
  s.add_dependency('activeresource', '>= 3.0')
17
+
17
18
  s.add_dependency "jruby-openssl" if RUBY_PLATFORM == "java"
18
19
  s.add_development_dependency "test-unit"
19
20
  s.add_development_dependency 'rake'
@@ -31,7 +31,7 @@ ActiveResource::Connection.send :include, ActiveResourceResponse::Connection
31
31
  ActiveResource::Base.send :include, ActiveResourceResponse::ResponseMethod
32
32
  ActiveResource::Base.send :include, ActiveResourceResponse::CustomMethods
33
33
  if defined? ActiveResource::Response
34
- require "active_resource_response/response"
35
- ActiveResource::Response.send :include, ActiveResourceResponse::Response
34
+ require "active_resource_response/response"
35
+ ActiveResource::Response.send :include, ActiveResourceResponse::Response
36
36
 
37
37
  end
@@ -21,24 +21,26 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  #++
23
23
  module ActiveResourceResponse
24
- module Connection
25
- def self.included(base)
26
- base.class_eval do
27
- alias_method :origin_handle_response, :handle_response
28
- def handle_response(response)
29
- begin
30
- origin_handle_response(response)
31
- rescue
32
- raise
33
- ensure
34
- response.extend HttpResponse
35
- Thread.current[:ActiveResourceResponse] = response
36
- end
37
- end
38
- def http_response
39
- Thread.current[:ActiveResourceResponse]
40
- end
24
+ module Connection
25
+ def self.included(base)
26
+ base.class_eval do
27
+ alias_method :origin_handle_response, :handle_response
28
+
29
+ def handle_response(response)
30
+ begin
31
+ origin_handle_response(response)
32
+ rescue
33
+ raise
34
+ ensure
35
+ response.extend HttpResponse
36
+ Thread.current[:ActiveResourceResponse] = response
37
+ end
41
38
  end
42
- end
43
- end
39
+
40
+ def http_response
41
+ Thread.current[:ActiveResourceResponse]
42
+ end
43
+ end
44
+ end
45
+ end
44
46
  end
@@ -22,18 +22,33 @@
22
22
  #++
23
23
  module ActiveResourceResponse
24
24
  module CustomMethods
25
-
26
- def get(custom_method_name, options = {})
27
- result = super(custom_method_name, options)
28
- if self.class.http_response_method
29
- result.instance_variable_set(:@http_response, connection.http_response)
30
- (class << result; self; end).send(:define_method, self.class.http_response_method ) do
31
- @http_response
32
- end rescue nil
33
- end
34
- result
35
- end
36
-
25
+ extend ActiveSupport::Concern
26
+ included do
27
+ class << self
28
+
29
+ alias :origin_get :get
30
+
31
+ def get(custom_method_name, options = {})
32
+ result = self.origin_get(custom_method_name, options)
33
+ if self.respond_to? :http_response_method
34
+ result = self.merge_response_to_result(result)
35
+ end
36
+ result
37
+
38
+ end
39
+
40
+ end
41
+ end
42
+
43
+ def get(custom_method_name, options = {})
44
+ result = super(custom_method_name, options)
45
+ if self.class.respond_to? :http_response_method
46
+ result = self.class.merge_response_to_result(result)
47
+ end
48
+ result
49
+ end
50
+
51
+
37
52
  end
38
53
  end
39
54
 
@@ -22,17 +22,17 @@
22
22
  #++
23
23
  module ActiveResourceResponse
24
24
  module HttpResponse
25
-
25
+
26
26
  def headers
27
27
  unless defined? @_active_resource_response_headers
28
28
  @_active_resource_response_headers = symbolize_keys(to_hash)
29
29
  end
30
30
  @_active_resource_response_headers
31
31
  end
32
-
32
+
33
33
  def cookies
34
34
  unless defined? @_active_resource_response_cookies
35
- @_active_resource_response_cookies = (self.headers[:set_cookie] || {}).inject({}) do |out, cookie_str|
35
+ @_active_resource_response_cookies = (self.headers[:set_cookie] || {}).inject({}) do |out, cookie_str|
36
36
  CGI::Cookie::parse(cookie_str).each do |key, cookie|
37
37
  out[key] = cookie.value.first unless ['expires', 'path'].include? key
38
38
  end
@@ -48,7 +48,7 @@ module ActiveResourceResponse
48
48
  out[key.gsub(/-/, '_').downcase.to_sym] = value
49
49
  out
50
50
  end
51
- end
52
-
51
+ end
52
+
53
53
  end
54
54
  end
@@ -1,10 +1,33 @@
1
+ #--
2
+ # Copyright (c) 2012 Igor Fedoronchuk
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
1
23
  module ActiveResourceResponse
2
24
  module Response
3
25
  def self.included(base)
4
- base.class_eval do
26
+ base.class_eval do
5
27
  def to_hash
6
28
  @headers
7
29
  end
30
+
8
31
  # to avoid method name conflict with Response:HttpResponse:headers
9
32
  def [](key)
10
33
  @headers[key]
@@ -23,52 +23,48 @@
23
23
  module ActiveResourceResponse
24
24
 
25
25
  module ResponseMethod
26
-
26
+
27
27
  def self.included(base)
28
28
  base.extend ClassMethods
29
+
29
30
  end
30
-
31
+
31
32
  module ClassMethods
32
33
 
33
34
  def http_response
34
35
  connection.http_response
35
36
  end
36
37
 
37
-
38
38
  def add_response_method(method_name = :http_response)
39
-
39
+
40
40
  class_attribute :http_response_method
41
41
  self.http_response_method = method_name
42
-
43
- remove_response_method if methods.map(&:to_sym).include?(:find_without_http_response)
44
- [:find, :get].each do |method|
45
- instance_eval <<-EOS
46
- alias #{method}_without_http_response #{method}
47
- def #{method}(*arguments)
48
- result = #{method}_without_http_response(*arguments)
49
- result.instance_variable_set(:@http_response, connection.http_response)
50
- def result.#{method_name}
51
- @http_response
52
- end
53
- result
42
+
43
+
44
+
45
+ class << self
46
+ alias find_without_http_response find
47
+
48
+ def find(*arguments)
49
+ result = find_without_http_response(*arguments)
50
+ self.merge_response_to_result(result)
51
+
54
52
  end
55
- EOS
56
- end
53
+ end unless methods.map(&:to_sym).include?(:find_without_http_response)
54
+
57
55
  end
58
56
 
59
- def remove_response_method
60
57
 
58
+ def merge_response_to_result(result)
59
+ result.instance_variable_set(:@http_response, connection.http_response)
60
+ (class << result; self; end).send(:define_method, self.http_response_method) do
61
+ @http_response
62
+ end rescue nil
63
+
64
+ result
65
+ end
61
66
 
62
- [:find, :get].each do |method|
63
- instance_eval <<-EOS
64
- undef :#{method}
65
- alias :#{method} :#{method}_without_http_response
66
- undef :#{method}_without_http_response
67
- EOS
68
-
69
- end
70
- end
71
67
 
72
68
  end
73
- end
69
+ end
74
70
  end
@@ -23,6 +23,6 @@
23
23
 
24
24
  module ActiveResourceResponse
25
25
  module Version
26
- VERSION = "0.4.0"
26
+ VERSION = "0.5.0"
27
27
  end
28
28
  end
@@ -1,3 +1,26 @@
1
+ #--
2
+ # Copyright (c) 2012 Igor Fedoronchuk
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
1
24
  lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")
2
25
  unit_tests = File.expand_path("#{File.dirname(__FILE__)}/../test")
3
26
  $:.unshift(lib)
@@ -8,7 +31,9 @@ require 'active_resource'
8
31
  require 'active_resource/http_mock'
9
32
  require 'active_resource_response'
10
33
  require "fixtures/country"
34
+ require "fixtures/city"
11
35
 
36
+ require "fixtures/region"
12
37
 
13
38
  class ActiveResourceResponseTest < Test::Unit::TestCase
14
39
 
@@ -16,21 +41,27 @@ class ActiveResourceResponseTest < Test::Unit::TestCase
16
41
  def setup
17
42
 
18
43
  @country = {:country => {:id => 1, :name => "Ukraine", :iso=>"UA"}}
19
- @city = {:city => {:id => 1, :name => "Odessa", :population => 2500000 }}
44
+ @city = {:city => {:id => 1, :name => "Odessa", :population => 2500000}}
45
+ @region = {:region => {:id => 1, :name => "Odessa region", :population => 4500000}}
20
46
  ActiveResource::HttpMock.respond_to do |mock|
21
-
22
-
47
+
48
+
23
49
  mock.get "/countries.json", {}, [@country].to_json, 200, {"X-total"=>'1'}
50
+ mock.get "/regions.json", {}, [@region].to_json, 200, {"X-total"=>'1'}
51
+ mock.get "/regions/1.json", {}, @region.to_json, 200, {"X-total"=>'1'}
52
+ mock.get "/regions/population.json", {}, {:count => 45000000}.to_json, 200, {"X-total"=>'1'}
53
+ mock.get "/regions/cities.json", {}, [@city].to_json, 200, {"X-total"=>'2'}
24
54
  mock.get "/countries/1.json", {}, @country.to_json, 200, {"X-total"=>'1', 'Set-Cookie'=>['path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT, foo=bar, bar=foo']}
25
55
  mock.get "/countries/1/population.json", {}, {:count => 45000000}.to_json, 200, {"X-total"=>'1'}
26
- mock.post "/countries.json" , {}, @country.to_json, 422, {"X-total"=>'1'}
56
+ mock.post "/countries.json", {}, @country.to_json, 422, {"X-total"=>'1'}
27
57
  mock.get "/countries/1/cities.json", {}, [@city].to_json, 200, {"X-total"=>'1'}
58
+ mock.get "/regions/1/cities.json", {}, [@city].to_json, 200, {"X-total"=>'1'}
59
+ mock.get "/cities/1/population.json", {}, {:count => 2500000}.to_json, 200, {"X-total"=>'1'}
60
+ mock.get "/cities/1.json", {}, @city.to_json, 200, {"X-total"=>'1'}
61
+ mock.get "/cities.json", {}, [@city].to_json, 200, {"X-total"=>'1'}
28
62
  end
29
63
 
30
64
 
31
-
32
-
33
-
34
65
  end
35
66
 
36
67
 
@@ -40,6 +71,10 @@ class ActiveResourceResponseTest < Test::Unit::TestCase
40
71
  assert countries.http.respond_to?(:cookies)
41
72
  assert countries.http.respond_to?(:headers)
42
73
  assert Country.respond_to?(:http_response)
74
+
75
+ regions = Region.all
76
+ assert regions.respond_to?(:http_response)
77
+
43
78
  end
44
79
 
45
80
  def test_get_headers_from_all
@@ -54,15 +89,38 @@ class ActiveResourceResponseTest < Test::Unit::TestCase
54
89
 
55
90
 
56
91
  def test_get_headers_from_custom_methods
57
- count = Country.find(1).get("population")
92
+ cities = Region.get("cities")
93
+
94
+ assert cities.respond_to?(:http_response)
95
+ assert_equal cities.http_response['X-total'].to_i, 2
96
+
97
+
98
+ count = Country.find(1).get("population")
58
99
  assert_equal count.to_i, 45000000
59
100
  assert_equal Country.connection.http_response['X-total'].to_i, 1
60
101
  assert_equal Country.connection.http_response.headers[:x_total].to_i, 1
61
- assert_equal Country.http_response['X-total'].to_i ,1
62
-
102
+ assert_equal Country.http_response['X-total'].to_i, 1
63
103
  cities = Country.find(1).get("cities")
64
- assert cities.respond_to?(:http)
65
- assert_equal cities.http['X-total'].to_i, 1
104
+ assert cities.respond_to?(:http), "Cities should respond to http"
105
+ assert_equal cities.http['X-total'].to_i, 1, "Cities total value should be 1"
106
+
107
+ regions_population = Region.get("population")
108
+ assert_equal regions_population.to_i, 45000000
109
+
110
+ cities = Region.find(1).get("cities")
111
+ assert cities.respond_to?(:http_response)
112
+ assert_equal cities.http_response['X-total'].to_i, 1
113
+
114
+
115
+ end
116
+
117
+
118
+ def test_methods_without_http
119
+ cities = City.all
120
+ assert_kind_of City, cities.first
121
+ count = cities.first.get("population")
122
+ assert_equal count.to_i, 2500000
123
+
66
124
  end
67
125
 
68
126
 
@@ -76,19 +134,19 @@ class ActiveResourceResponseTest < Test::Unit::TestCase
76
134
 
77
135
  def test_get_cookies
78
136
  country = Country.find(1)
79
- assert_equal country.http.cookies['foo'] , 'bar'
80
- assert_equal country.http.cookies['bar'] , 'foo'
137
+ assert_equal country.http.cookies['foo'], 'bar'
138
+ assert_equal country.http.cookies['bar'], 'foo'
81
139
  #from class
82
- assert_equal Country.http_response.cookies['foo'] , 'bar'
83
- assert_equal Country.http_response.cookies['bar'] , 'foo'
140
+ assert_equal Country.http_response.cookies['foo'], 'bar'
141
+ assert_equal Country.http_response.cookies['bar'], 'foo'
84
142
 
85
143
  end
86
144
 
87
145
 
88
146
  def test_get_headers_after_exception
89
- Country.create(@country[:country])
90
- assert_equal Country.http_response['X-total'].to_i, 1
91
- assert_equal Country.http_response.code, 422
147
+ Country.create(@country[:country])
148
+ assert_equal Country.http_response['X-total'].to_i, 1
149
+ assert_equal Country.http_response.code, 422
92
150
  end
93
151
 
94
152
 
@@ -0,0 +1,26 @@
1
+ #--
2
+ # Copyright (c) 2012 Igor Fedoronchuk
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
24
+ class City < ActiveResource::Base
25
+ self.site = "http://37s.sunrise.i:3000"
26
+ end
@@ -1,3 +1,26 @@
1
+ #--
2
+ # Copyright (c) 2012 Igor Fedoronchuk
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
1
24
  class ActiveResourceResponseBase < ActiveResource::Base
2
25
  self.site = "http://37s.sunrise.i:3000"
3
26
  add_response_method :http_response
@@ -6,4 +29,11 @@ end
6
29
 
7
30
  class Country < ActiveResourceResponseBase
8
31
  add_response_method :http
9
- end
32
+ end
33
+
34
+
35
+
36
+
37
+
38
+
39
+
@@ -0,0 +1,25 @@
1
+ #--
2
+ # Copyright (c) 2012 Igor Fedoronchuk
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+ class Region < ActiveResourceResponseBase
24
+ self.site = "http://37s.sunrise.i:3000"
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeresource-response
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-04 00:00:00.000000000 Z
12
+ date: 2012-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeresource
16
- requirement: &70242253517800 !ruby/object:Gem::Requirement
16
+ requirement: &70193338619360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70242253517800
24
+ version_requirements: *70193338619360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: test-unit
27
- requirement: &70242253516380 !ruby/object:Gem::Requirement
27
+ requirement: &70193338618600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70242253516380
35
+ version_requirements: *70193338618600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70242253515460 !ruby/object:Gem::Requirement
38
+ requirement: &70193338617880 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70242253515460
46
+ version_requirements: *70193338617880
47
47
  description: ! 'This gem adds possibility to access http response object from result
48
48
  of ActiveResource::Base find method '
49
49
  email:
@@ -68,7 +68,9 @@ files:
68
68
  - lib/active_resource_response/version.rb
69
69
  - lib/activeresource-response.rb
70
70
  - test/active_resource_response_test.rb
71
+ - test/fixtures/city.rb
71
72
  - test/fixtures/country.rb
73
+ - test/fixtures/region.rb
72
74
  homepage: http://fivell.github.com/activeresource-response/
73
75
  licenses: []
74
76
  post_install_message:
@@ -97,4 +99,6 @@ specification_version: 3
97
99
  summary: activeresource extension
98
100
  test_files:
99
101
  - test/active_resource_response_test.rb
102
+ - test/fixtures/city.rb
100
103
  - test/fixtures/country.rb
104
+ - test/fixtures/region.rb