api_resource 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +5 -0
- data/.travis.yml +4 -0
- data/VERSION +1 -1
- data/api_resource.gemspec +76 -7
- data/lib/api_resource/associations/association_proxy.rb +5 -0
- data/lib/api_resource/base.rb +20 -14
- data/spec/lib/associations_spec.rb +15 -1
- data/spec/lib/base_spec.rb +10 -7
- data/spec/lib/mocks_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +19 -66
- data/coverage/assets/0.5.3/app.js +0 -88
- data/coverage/assets/0.5.3/fancybox/blank.gif +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_close.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_loading.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_nav_left.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_nav_right.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_e.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_n.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_s.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_se.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_shadow_w.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_title_left.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_title_main.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_title_over.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancy_title_right.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancybox-x.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancybox-y.png +0 -0
- data/coverage/assets/0.5.3/fancybox/fancybox.png +0 -0
- data/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css +0 -363
- data/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
- data/coverage/assets/0.5.3/favicon_green.png +0 -0
- data/coverage/assets/0.5.3/favicon_red.png +0 -0
- data/coverage/assets/0.5.3/favicon_yellow.png +0 -0
- data/coverage/assets/0.5.3/highlight.css +0 -129
- data/coverage/assets/0.5.3/highlight.pack.js +0 -1
- data/coverage/assets/0.5.3/jquery-1.6.2.min.js +0 -18
- data/coverage/assets/0.5.3/jquery.dataTables.min.js +0 -152
- data/coverage/assets/0.5.3/jquery.timeago.js +0 -141
- data/coverage/assets/0.5.3/jquery.url.js +0 -174
- data/coverage/assets/0.5.3/loading.gif +0 -0
- data/coverage/assets/0.5.3/magnify.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css +0 -295
- data/coverage/assets/0.5.3/stylesheet.css +0 -383
- data/coverage/index.html +0 -3573
- data/spec/tmp/api_resource_test_db.sqlite +0 -0
data/.document
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/api_resource.gemspec
CHANGED
@@ -5,25 +5,94 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "api_resource"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Ethan Langevin"
|
12
|
-
s.date = "2012-
|
11
|
+
s.authors = ["Ethan Langevin"]
|
12
|
+
s.date = "2012-12-03"
|
13
13
|
s.description = "A replacement for ActiveResource for RESTful APIs that handles associated object and multiple data sources"
|
14
|
-
s.email = "
|
14
|
+
s.email = "ejl6266@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
|
-
s.
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
".travis.yml",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"Guardfile",
|
26
|
+
"LICENSE.txt",
|
27
|
+
"README.rdoc",
|
28
|
+
"Rakefile",
|
29
|
+
"VERSION",
|
30
|
+
"api_resource.gemspec",
|
31
|
+
"lib/api_resource.rb",
|
32
|
+
"lib/api_resource/association_activation.rb",
|
33
|
+
"lib/api_resource/associations.rb",
|
34
|
+
"lib/api_resource/associations/association_proxy.rb",
|
35
|
+
"lib/api_resource/associations/belongs_to_remote_object_proxy.rb",
|
36
|
+
"lib/api_resource/associations/dynamic_resource_scope.rb",
|
37
|
+
"lib/api_resource/associations/generic_scope.rb",
|
38
|
+
"lib/api_resource/associations/has_many_remote_object_proxy.rb",
|
39
|
+
"lib/api_resource/associations/has_many_through_remote_object_proxy.rb",
|
40
|
+
"lib/api_resource/associations/has_one_remote_object_proxy.rb",
|
41
|
+
"lib/api_resource/associations/multi_argument_resource_scope.rb",
|
42
|
+
"lib/api_resource/associations/multi_object_proxy.rb",
|
43
|
+
"lib/api_resource/associations/related_object_hash.rb",
|
44
|
+
"lib/api_resource/associations/relation_scope.rb",
|
45
|
+
"lib/api_resource/associations/resource_scope.rb",
|
46
|
+
"lib/api_resource/associations/scope.rb",
|
47
|
+
"lib/api_resource/associations/single_object_proxy.rb",
|
48
|
+
"lib/api_resource/attributes.rb",
|
49
|
+
"lib/api_resource/base.rb",
|
50
|
+
"lib/api_resource/callbacks.rb",
|
51
|
+
"lib/api_resource/connection.rb",
|
52
|
+
"lib/api_resource/core_extensions.rb",
|
53
|
+
"lib/api_resource/custom_methods.rb",
|
54
|
+
"lib/api_resource/decorators.rb",
|
55
|
+
"lib/api_resource/decorators/caching_decorator.rb",
|
56
|
+
"lib/api_resource/exceptions.rb",
|
57
|
+
"lib/api_resource/formats.rb",
|
58
|
+
"lib/api_resource/formats/json_format.rb",
|
59
|
+
"lib/api_resource/formats/xml_format.rb",
|
60
|
+
"lib/api_resource/local.rb",
|
61
|
+
"lib/api_resource/log_subscriber.rb",
|
62
|
+
"lib/api_resource/mocks.rb",
|
63
|
+
"lib/api_resource/model_errors.rb",
|
64
|
+
"lib/api_resource/observing.rb",
|
65
|
+
"lib/api_resource/railtie.rb",
|
66
|
+
"lib/api_resource/scopes.rb",
|
67
|
+
"nohup.out",
|
68
|
+
"spec/lib/api_resource_spec.rb",
|
69
|
+
"spec/lib/associations_spec.rb",
|
70
|
+
"spec/lib/attributes_spec.rb",
|
71
|
+
"spec/lib/base_spec.rb",
|
72
|
+
"spec/lib/callbacks_spec.rb",
|
73
|
+
"spec/lib/connection_spec.rb",
|
74
|
+
"spec/lib/local_spec.rb",
|
75
|
+
"spec/lib/mocks_spec.rb",
|
76
|
+
"spec/lib/model_errors_spec.rb",
|
77
|
+
"spec/lib/prefixes_spec.rb",
|
78
|
+
"spec/spec_helper.rb",
|
79
|
+
"spec/support/mocks/association_mocks.rb",
|
80
|
+
"spec/support/mocks/error_resource_mocks.rb",
|
81
|
+
"spec/support/mocks/prefix_model_mocks.rb",
|
82
|
+
"spec/support/mocks/test_resource_mocks.rb",
|
83
|
+
"spec/support/requests/association_requests.rb",
|
84
|
+
"spec/support/requests/error_resource_requests.rb",
|
85
|
+
"spec/support/requests/prefix_model_requests.rb",
|
86
|
+
"spec/support/requests/test_resource_requests.rb",
|
87
|
+
"spec/support/test_resource.rb",
|
88
|
+
"spec/tmp/DIR"
|
89
|
+
]
|
90
|
+
s.homepage = "http://github.com/ejlangev/resource"
|
20
91
|
s.licenses = ["MIT"]
|
21
92
|
s.require_paths = ["lib"]
|
22
93
|
s.rubygems_version = "1.8.24"
|
23
94
|
s.summary = "A replacement for ActiveResource for RESTful APIs that handles associated object and multiple data sources"
|
24
95
|
|
25
|
-
s.files = Dir.glob("**/*")
|
26
|
-
|
27
96
|
if s.respond_to? :specification_version then
|
28
97
|
s.specification_version = 3
|
29
98
|
|
@@ -17,8 +17,13 @@ module ApiResource
|
|
17
17
|
self.times_loaded = 0
|
18
18
|
self.owner = owner
|
19
19
|
self.klass = klass_name.to_s.classify.constantize
|
20
|
+
# make sure we have the remote definition
|
21
|
+
self.klass.load_class_data
|
20
22
|
self.load(contents)
|
21
23
|
self.loaded = {}.with_indifferent_access
|
24
|
+
|
25
|
+
#debugger
|
26
|
+
|
22
27
|
if self.class.include_class_scopes
|
23
28
|
self.scopes = self.scopes.reverse_merge(self.klass.scopes)
|
24
29
|
end
|
data/lib/api_resource/base.rb
CHANGED
@@ -114,20 +114,29 @@ module ApiResource
|
|
114
114
|
# load our resource definition to make sure we know what this class
|
115
115
|
# responds to
|
116
116
|
def respond_to?(*args)
|
117
|
-
|
118
|
-
self.instance_variable_set(:@class_data, true)
|
119
|
-
self.set_class_attributes_upon_load
|
120
|
-
end
|
117
|
+
self.load_class_data
|
121
118
|
super
|
122
119
|
end
|
123
120
|
|
124
|
-
def
|
121
|
+
def load_class_data
|
122
|
+
unless instance_variable_defined?(:@class_data)
|
123
|
+
@class_data = true
|
124
|
+
self.set_class_attributes_upon_load
|
125
|
+
end
|
126
|
+
true
|
127
|
+
end
|
128
|
+
|
129
|
+
def reload_class_data
|
125
130
|
# clear the public_attribute_names, protected_attribute_names
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
131
|
+
if instance_variable_defined?(:@class_data)
|
132
|
+
remove_instance_variable(:@class_data)
|
133
|
+
self.clear_attributes
|
134
|
+
self.clear_related_objects
|
135
|
+
end
|
136
|
+
self.load_class_data
|
130
137
|
end
|
138
|
+
# backwards compatibility
|
139
|
+
alias_method :reload_class_attributes, :reload_class_data
|
131
140
|
|
132
141
|
def token_with_new_token_set=(new_token)
|
133
142
|
self.token_without_new_token_set = new_token
|
@@ -154,7 +163,7 @@ module ApiResource
|
|
154
163
|
|
155
164
|
# reset class attributes and try to reload them if the site changed
|
156
165
|
unless self.site.to_s == old_site
|
157
|
-
self.
|
166
|
+
self.reload_class_data
|
158
167
|
end
|
159
168
|
|
160
169
|
return site
|
@@ -435,10 +444,7 @@ module ApiResource
|
|
435
444
|
|
436
445
|
def initialize(attributes = {})
|
437
446
|
# if we initialize this class, load the attributes
|
438
|
-
|
439
|
-
self.class.set_class_attributes_upon_load
|
440
|
-
self.class.instance_variable_set(:@class_data, true)
|
441
|
-
end
|
447
|
+
self.class.load_class_data
|
442
448
|
# Now we can make a call to setup the inheriting klass with its attributes
|
443
449
|
load(attributes)
|
444
450
|
end
|
@@ -17,7 +17,9 @@ describe "Associations" do
|
|
17
17
|
belongs_to :belongs_to_object
|
18
18
|
has_one :has_one_object
|
19
19
|
end
|
20
|
-
AllAssociations.association_names.sort.should eql
|
20
|
+
AllAssociations.association_names.sort.should eql(
|
21
|
+
[:has_many_objects, :belongs_to_object, :has_one_object].sort
|
22
|
+
)
|
21
23
|
AllAssociations.new.association_names.sort.should eql [:has_many_objects, :belongs_to_object, :has_one_object].sort
|
22
24
|
end
|
23
25
|
|
@@ -466,6 +468,16 @@ describe "Associations" do
|
|
466
468
|
ap.first.name.should eql old_name
|
467
469
|
end
|
468
470
|
|
471
|
+
it "should propagate the scopes from the associated class" do
|
472
|
+
|
473
|
+
ap = Associations::MultiObjectProxy.new(
|
474
|
+
"TestResource", {:service_uri => "/multi_object_association"}
|
475
|
+
)
|
476
|
+
ap.scopes.should eql(TestResource.scopes)
|
477
|
+
true
|
478
|
+
end
|
479
|
+
|
480
|
+
|
469
481
|
context "Multi Object" do
|
470
482
|
|
471
483
|
it "should be able to load 'all'" do
|
@@ -571,6 +583,8 @@ describe "Associations" do
|
|
571
583
|
result.should be_a TestResource
|
572
584
|
end
|
573
585
|
end
|
586
|
+
|
587
|
+
|
574
588
|
end
|
575
589
|
|
576
590
|
context "Assigning Data" do
|
data/spec/lib/base_spec.rb
CHANGED
@@ -6,7 +6,7 @@ include ApiResource
|
|
6
6
|
describe "Base" do
|
7
7
|
|
8
8
|
after(:all) do
|
9
|
-
TestResource.
|
9
|
+
TestResource.reload_class_data
|
10
10
|
end
|
11
11
|
|
12
12
|
describe "Loading data from a hash" do
|
@@ -128,7 +128,7 @@ describe "Base" do
|
|
128
128
|
describe "Serialization" do
|
129
129
|
|
130
130
|
before(:all) do
|
131
|
-
TestResource.
|
131
|
+
TestResource.reload_class_data
|
132
132
|
TestResource.has_many :has_many_objects
|
133
133
|
TestResource.define_attributes :attr1, :attr2
|
134
134
|
TestResource.include_root_in_json = true
|
@@ -193,7 +193,7 @@ describe "Base" do
|
|
193
193
|
TestResource.has_many(:has_many_objects)
|
194
194
|
end
|
195
195
|
after(:all) do
|
196
|
-
TestResource.
|
196
|
+
TestResource.reload_class_data
|
197
197
|
end
|
198
198
|
|
199
199
|
it "should include the id of nested objects in the serialization" do
|
@@ -229,7 +229,7 @@ describe "Base" do
|
|
229
229
|
describe "Finding Data" do
|
230
230
|
|
231
231
|
before(:all) do
|
232
|
-
TestResource.
|
232
|
+
TestResource.reload_class_data
|
233
233
|
end
|
234
234
|
|
235
235
|
it "should be able to find all" do
|
@@ -262,7 +262,7 @@ describe "Base" do
|
|
262
262
|
|
263
263
|
before(:all) do
|
264
264
|
TestResource.include_root_in_json = true
|
265
|
-
TestResource.
|
265
|
+
TestResource.reload_class_data
|
266
266
|
end
|
267
267
|
|
268
268
|
context "Creating new records" do
|
@@ -367,7 +367,7 @@ describe "Base" do
|
|
367
367
|
|
368
368
|
context "Updating old records" do
|
369
369
|
before(:all) do
|
370
|
-
TestResource.
|
370
|
+
TestResource.reload_class_data
|
371
371
|
TestResource.has_many :has_many_objects
|
372
372
|
RestClient::Payload.stubs(:has_file? => false)
|
373
373
|
end
|
@@ -623,7 +623,10 @@ describe "Base" do
|
|
623
623
|
end
|
624
624
|
|
625
625
|
it "should find with expires_in and cache" do
|
626
|
-
ApiResource.cache.expects(:fetch)
|
626
|
+
ApiResource.cache.expects(:fetch)
|
627
|
+
.with(anything, :expires_in => 10.0)
|
628
|
+
.returns({:id => 2, :name => "d"})
|
629
|
+
|
627
630
|
res = TestResource.find("adfa", :expires_in => 10)
|
628
631
|
|
629
632
|
ApiResource::Base.ttl.should eql(1)
|
data/spec/lib/mocks_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ethan Langevin
|
9
|
-
- Dan Langevin
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2012-
|
12
|
+
date: 2012-12-03 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
@@ -414,68 +413,27 @@ dependencies:
|
|
414
413
|
version: '0'
|
415
414
|
description: A replacement for ActiveResource for RESTful APIs that handles associated
|
416
415
|
object and multiple data sources
|
417
|
-
email:
|
416
|
+
email: ejl6266@gmail.com
|
418
417
|
executables: []
|
419
418
|
extensions: []
|
420
419
|
extra_rdoc_files:
|
421
420
|
- LICENSE.txt
|
422
421
|
- README.rdoc
|
423
422
|
files:
|
424
|
-
-
|
425
|
-
-
|
426
|
-
-
|
427
|
-
- coverage/assets/0.5.3/fancybox/fancy_close.png
|
428
|
-
- coverage/assets/0.5.3/fancybox/fancy_loading.png
|
429
|
-
- coverage/assets/0.5.3/fancybox/fancy_nav_left.png
|
430
|
-
- coverage/assets/0.5.3/fancybox/fancy_nav_right.png
|
431
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_e.png
|
432
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_n.png
|
433
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png
|
434
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png
|
435
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_s.png
|
436
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_se.png
|
437
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png
|
438
|
-
- coverage/assets/0.5.3/fancybox/fancy_shadow_w.png
|
439
|
-
- coverage/assets/0.5.3/fancybox/fancy_title_left.png
|
440
|
-
- coverage/assets/0.5.3/fancybox/fancy_title_main.png
|
441
|
-
- coverage/assets/0.5.3/fancybox/fancy_title_over.png
|
442
|
-
- coverage/assets/0.5.3/fancybox/fancy_title_right.png
|
443
|
-
- coverage/assets/0.5.3/fancybox/fancybox-x.png
|
444
|
-
- coverage/assets/0.5.3/fancybox/fancybox-y.png
|
445
|
-
- coverage/assets/0.5.3/fancybox/fancybox.png
|
446
|
-
- coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css
|
447
|
-
- coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js
|
448
|
-
- coverage/assets/0.5.3/favicon_green.png
|
449
|
-
- coverage/assets/0.5.3/favicon_red.png
|
450
|
-
- coverage/assets/0.5.3/favicon_yellow.png
|
451
|
-
- coverage/assets/0.5.3/highlight.css
|
452
|
-
- coverage/assets/0.5.3/highlight.pack.js
|
453
|
-
- coverage/assets/0.5.3/jquery-1.6.2.min.js
|
454
|
-
- coverage/assets/0.5.3/jquery.dataTables.min.js
|
455
|
-
- coverage/assets/0.5.3/jquery.timeago.js
|
456
|
-
- coverage/assets/0.5.3/jquery.url.js
|
457
|
-
- coverage/assets/0.5.3/loading.gif
|
458
|
-
- coverage/assets/0.5.3/magnify.png
|
459
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
460
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
461
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
462
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
463
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
464
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
465
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
466
|
-
- coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
467
|
-
- coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png
|
468
|
-
- coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png
|
469
|
-
- coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png
|
470
|
-
- coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png
|
471
|
-
- coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png
|
472
|
-
- coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css
|
473
|
-
- coverage/assets/0.5.3/stylesheet.css
|
474
|
-
- coverage/index.html
|
423
|
+
- .document
|
424
|
+
- .rspec
|
425
|
+
- .travis.yml
|
475
426
|
- Gemfile
|
476
427
|
- Gemfile.lock
|
477
428
|
- Guardfile
|
429
|
+
- LICENSE.txt
|
430
|
+
- README.rdoc
|
431
|
+
- Rakefile
|
432
|
+
- VERSION
|
433
|
+
- api_resource.gemspec
|
434
|
+
- lib/api_resource.rb
|
478
435
|
- lib/api_resource/association_activation.rb
|
436
|
+
- lib/api_resource/associations.rb
|
479
437
|
- lib/api_resource/associations/association_proxy.rb
|
480
438
|
- lib/api_resource/associations/belongs_to_remote_object_proxy.rb
|
481
439
|
- lib/api_resource/associations/dynamic_resource_scope.rb
|
@@ -490,19 +448,18 @@ files:
|
|
490
448
|
- lib/api_resource/associations/resource_scope.rb
|
491
449
|
- lib/api_resource/associations/scope.rb
|
492
450
|
- lib/api_resource/associations/single_object_proxy.rb
|
493
|
-
- lib/api_resource/associations.rb
|
494
451
|
- lib/api_resource/attributes.rb
|
495
452
|
- lib/api_resource/base.rb
|
496
453
|
- lib/api_resource/callbacks.rb
|
497
454
|
- lib/api_resource/connection.rb
|
498
455
|
- lib/api_resource/core_extensions.rb
|
499
456
|
- lib/api_resource/custom_methods.rb
|
500
|
-
- lib/api_resource/decorators/caching_decorator.rb
|
501
457
|
- lib/api_resource/decorators.rb
|
458
|
+
- lib/api_resource/decorators/caching_decorator.rb
|
502
459
|
- lib/api_resource/exceptions.rb
|
460
|
+
- lib/api_resource/formats.rb
|
503
461
|
- lib/api_resource/formats/json_format.rb
|
504
462
|
- lib/api_resource/formats/xml_format.rb
|
505
|
-
- lib/api_resource/formats.rb
|
506
463
|
- lib/api_resource/local.rb
|
507
464
|
- lib/api_resource/log_subscriber.rb
|
508
465
|
- lib/api_resource/mocks.rb
|
@@ -510,11 +467,7 @@ files:
|
|
510
467
|
- lib/api_resource/observing.rb
|
511
468
|
- lib/api_resource/railtie.rb
|
512
469
|
- lib/api_resource/scopes.rb
|
513
|
-
- lib/api_resource.rb
|
514
|
-
- LICENSE.txt
|
515
470
|
- nohup.out
|
516
|
-
- Rakefile
|
517
|
-
- README.rdoc
|
518
471
|
- spec/lib/api_resource_spec.rb
|
519
472
|
- spec/lib/associations_spec.rb
|
520
473
|
- spec/lib/attributes_spec.rb
|
@@ -535,10 +488,8 @@ files:
|
|
535
488
|
- spec/support/requests/prefix_model_requests.rb
|
536
489
|
- spec/support/requests/test_resource_requests.rb
|
537
490
|
- spec/support/test_resource.rb
|
538
|
-
- spec/tmp/api_resource_test_db.sqlite
|
539
491
|
- spec/tmp/DIR
|
540
|
-
|
541
|
-
homepage: http://github.com/LifebookerInc/api_resource
|
492
|
+
homepage: http://github.com/ejlangev/resource
|
542
493
|
licenses:
|
543
494
|
- MIT
|
544
495
|
post_install_message:
|
@@ -551,6 +502,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
551
502
|
- - ! '>='
|
552
503
|
- !ruby/object:Gem::Version
|
553
504
|
version: '0'
|
505
|
+
segments:
|
506
|
+
- 0
|
507
|
+
hash: 1111483963078583304
|
554
508
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
555
509
|
none: false
|
556
510
|
requirements:
|
@@ -565,4 +519,3 @@ specification_version: 3
|
|
565
519
|
summary: A replacement for ActiveResource for RESTful APIs that handles associated
|
566
520
|
object and multiple data sources
|
567
521
|
test_files: []
|
568
|
-
has_rdoc:
|