frenetic 0.0.2.alpha1 → 0.0.2.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/README.md +4 -4
- data/frenetic.gemspec +6 -6
- data/lib/frenetic/version.rb +1 -1
- metadata +30 -30
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm --create use ruby-1.9.
|
1
|
+
rvm --create use ruby-1.9.3-p194@frenetic > /dev/null
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ Example:
|
|
68
68
|
{
|
69
69
|
"_links":{
|
70
70
|
"self":{"href":"/api/"},
|
71
|
-
"
|
71
|
+
"orders":{"href":"/api/orders"},
|
72
72
|
},
|
73
73
|
"_embedded":{
|
74
74
|
"schema":{
|
@@ -161,7 +161,7 @@ MyAPI = Frenetic.new(
|
|
161
161
|
### Response Caching
|
162
162
|
|
163
163
|
If configured to do so, Frenetic will autotmatically cache appropriate responses
|
164
|
-
through [Rack::Cache][
|
164
|
+
through [Rack::Cache][rack_cache]. Only on-disk stores are supported right now.
|
165
165
|
|
166
166
|
Add the following `Rack::Cache` configuration options when initializing Frenetic:
|
167
167
|
|
@@ -248,8 +248,8 @@ or
|
|
248
248
|
response.body['_embedded']['orders'][0]
|
249
249
|
```
|
250
250
|
|
251
|
-
For your convenience, certain HAL+JSON keys have been aliased by methods
|
252
|
-
more readable:
|
251
|
+
For your convenience, certain HAL+JSON keys have been aliased by methods to
|
252
|
+
make your code a bit more readable:
|
253
253
|
|
254
254
|
* `_embedded` can be referenced as `resources`
|
255
255
|
* `_links` can be referenced as `links`
|
data/frenetic.gemspec
CHANGED
@@ -15,16 +15,16 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Frenetic::VERSION
|
17
17
|
|
18
|
-
gem.add_dependency 'faraday', '~> 0.8.0
|
19
|
-
gem.add_dependency 'faraday_middleware', '~> 0.8.
|
18
|
+
gem.add_dependency 'faraday', '~> 0.8.0'
|
19
|
+
gem.add_dependency 'faraday_middleware', '~> 0.8.7'
|
20
20
|
gem.add_dependency 'rack-cache', '~> 1.1'
|
21
|
-
gem.add_dependency 'addressable', '~> 2.2.
|
21
|
+
gem.add_dependency 'addressable', '~> 2.2.8'
|
22
22
|
gem.add_dependency 'patron', '~> 0.4.18'
|
23
23
|
|
24
|
-
gem.add_development_dependency 'guard-spork', '~> 0.
|
24
|
+
gem.add_development_dependency 'guard-spork', '~> 0.7.1'
|
25
25
|
gem.add_development_dependency 'guard-rspec', '~> 0.7.0'
|
26
|
-
gem.add_development_dependency 'rspec', '~> 2.
|
26
|
+
gem.add_development_dependency 'rspec', '~> 2.10.0'
|
27
27
|
gem.add_development_dependency 'bourne', '~> 1.1.2'
|
28
28
|
gem.add_development_dependency 'webmock', '~> 1.8.6'
|
29
|
-
gem.add_development_dependency 'vcr', '~> 2.
|
29
|
+
gem.add_development_dependency 'vcr', '~> 2.1.1'
|
30
30
|
end
|
data/lib/frenetic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frenetic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.alpha2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,33 +9,33 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152147580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.8.0
|
21
|
+
version: 0.8.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152147580
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday_middleware
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153580020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.8.
|
32
|
+
version: 0.8.7
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153580020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rack-cache
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153579560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,21 +43,21 @@ dependencies:
|
|
43
43
|
version: '1.1'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153579560
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: addressable
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153579100 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.2.
|
54
|
+
version: 2.2.8
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2153579100
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: patron
|
60
|
-
requirement: &
|
60
|
+
requirement: &2153578640 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,21 +65,21 @@ dependencies:
|
|
65
65
|
version: 0.4.18
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2153578640
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-spork
|
71
|
-
requirement: &
|
71
|
+
requirement: &2153578180 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: 0.7.1
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2153578180
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: guard-rspec
|
82
|
-
requirement: &
|
82
|
+
requirement: &2153577720 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,21 +87,21 @@ dependencies:
|
|
87
87
|
version: 0.7.0
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2153577720
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec
|
93
|
-
requirement: &
|
93
|
+
requirement: &2153577260 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 2.
|
98
|
+
version: 2.10.0
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2153577260
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: bourne
|
104
|
-
requirement: &
|
104
|
+
requirement: &2153576800 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 1.1.2
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2153576800
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: webmock
|
115
|
-
requirement: &
|
115
|
+
requirement: &2153576340 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,18 +120,18 @@ dependencies:
|
|
120
120
|
version: 1.8.6
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2153576340
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: vcr
|
126
|
-
requirement: &
|
126
|
+
requirement: &2153575880 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.
|
131
|
+
version: 2.1.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *2153575880
|
135
135
|
description: An opinionated Ruby-based Hypermedia API client.
|
136
136
|
email:
|
137
137
|
- dlindahl@customink.com
|