reactive_resource 0.0.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.rdoc +6 -4
- data/lib/reactive_resource/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
= Reactive Resource
|
|
2
2
|
|
|
3
|
-
Reactive Resource is a collection of extensions extracted from
|
|
4
|
-
ActiveResource wrappers around various APIs.
|
|
3
|
+
Reactive Resource is a useful collection of extensions extracted from
|
|
4
|
+
ActiveResource wrappers around various APIs. Among other things, it
|
|
5
|
+
adds +belongs_to+, +has_one+, and +has_many+ relationships to
|
|
6
|
+
ActiveResource models and has significantly better support for
|
|
7
|
+
one-to-one relationships.
|
|
5
8
|
|
|
6
9
|
== Usage
|
|
7
10
|
|
|
@@ -53,7 +56,7 @@ in each class.
|
|
|
53
56
|
=== Support for singleton resources
|
|
54
57
|
|
|
55
58
|
For singleton resources, ActiveResource would still use the plural and
|
|
56
|
-
generate paths like
|
|
59
|
+
generate paths like <tt>/lawyers/1/headshots.json</tt>. I didn't like this, so you
|
|
57
60
|
can now mark a resource as a singleton resource:
|
|
58
61
|
|
|
59
62
|
class ReactiveResource::Headshot < ReactiveResource::Base
|
|
@@ -69,4 +72,3 @@ In ActiveResource, if you had nested URLs specified in the resource
|
|
|
69
72
|
path in your class definition, you had to set those params at the
|
|
70
73
|
object's creation time. Reactive Resource allows you to set those
|
|
71
74
|
parameters at any time after object creation.
|
|
72
|
-
|
metadata
CHANGED
|
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
|
+
- 5
|
|
7
8
|
- 0
|
|
8
|
-
|
|
9
|
-
version: 0.0.1
|
|
9
|
+
version: 0.5.0
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Justin Weiss
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-01-
|
|
17
|
+
date: 2011-01-18 00:00:00 -08:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|