cistern 2.0.4 → 2.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51ecc36c328ba3a9a404a952c76144db023edfa3
4
- data.tar.gz: 0a7a965f9b3a3c37b78cd78802456537e251e3b8
3
+ metadata.gz: 053c3db9a98499efb823bd487ba554ce44e672d2
4
+ data.tar.gz: 37dca3afb5dcfb97cfd2fa58bb4cdd7f3faeaf96
5
5
  SHA512:
6
- metadata.gz: f668e16c9431a22a14fcc628872b337835c9873fde7e75fc9099f6eb257d4c5cf30657e4b0513efad785d567be9ef2650d29db5d2acabc9d2dd6cdc232e4845f
7
- data.tar.gz: ecf04f9577df53a188eb09496d34c01a6a8696af93377a5ef45982afe6f63d5f96ba1af4c1d80d4cf585794c53c600524b42c6d8cc9a8b9de000289f3f85707f
6
+ metadata.gz: 463d10527e74901c9536f5c41d45a0641750ab67d11aa8bcf1e9a2cc4045c41a4aef4336de3922ec6421738bc98fb91ef803c43833d5629c4aa1461f885db339
7
+ data.tar.gz: 44c09ffec87cefa480dcc3b6c15ce976760698dc2acafe9542de3d92fc0df0dc812fde890e36ad8f0c7bf9368a2f1f9192b8af6349eebac84baa562ef4185905
data/CHANGELOG.md ADDED
@@ -0,0 +1,305 @@
1
+ # Change Log
2
+
3
+ ## [v2.0.4](https://github.com/lanej/cistern/tree/v2.0.4) (2015-09-10)
4
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.12.2...v2.0.4)
5
+
6
+ **Closed issues:**
7
+
8
+ - Cistern::Model\#new\_record? raises TypeError when @identity is not set with 2.0.3 [\#48](https://github.com/lanej/cistern/issues/48)
9
+
10
+ ## [v0.12.2](https://github.com/lanej/cistern/tree/v0.12.2) (2015-09-01)
11
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.12.1...v0.12.2)
12
+
13
+ ## [v0.12.1](https://github.com/lanej/cistern/tree/v0.12.1) (2015-09-01)
14
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.12.0...v0.12.1)
15
+
16
+ ## [v0.12.0](https://github.com/lanej/cistern/tree/v0.12.0) (2015-09-01)
17
+ [Full Changelog](https://github.com/lanej/cistern/compare/v2.0.3...v0.12.0)
18
+
19
+ **Closed issues:**
20
+
21
+ - Cistern::Model\#inspect raises TypeError when @identity is not defined [\#47](https://github.com/lanej/cistern/issues/47)
22
+
23
+ ## [v2.0.3](https://github.com/lanej/cistern/tree/v2.0.3) (2015-08-27)
24
+ [Full Changelog](https://github.com/lanej/cistern/compare/v2.0.2...v2.0.3)
25
+
26
+ **Merged pull requests:**
27
+
28
+ - minor docs cleanup [\#46](https://github.com/lanej/cistern/pull/46) ([thommahoney](https://github.com/thommahoney))
29
+
30
+ ## [v2.0.2](https://github.com/lanej/cistern/tree/v2.0.2) (2015-03-31)
31
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.11.3...v2.0.2)
32
+
33
+ ## [v0.11.3](https://github.com/lanej/cistern/tree/v0.11.3) (2015-03-31)
34
+ [Full Changelog](https://github.com/lanej/cistern/compare/v2.0.1...v0.11.3)
35
+
36
+ ## [v2.0.1](https://github.com/lanej/cistern/tree/v2.0.1) (2015-03-05)
37
+ [Full Changelog](https://github.com/lanej/cistern/compare/v2.0.0...v2.0.1)
38
+
39
+ ## [v2.0.0](https://github.com/lanej/cistern/tree/v2.0.0) (2015-03-05)
40
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.0...v2.0.0)
41
+
42
+ ## [v1.0.0](https://github.com/lanej/cistern/tree/v1.0.0) (2015-03-05)
43
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.1.pre6...v1.0.0)
44
+
45
+ **Closed issues:**
46
+
47
+ - Throw early if requiring a request file doesn't define the expected function [\#29](https://github.com/lanej/cistern/issues/29)
48
+
49
+ ## [v1.0.1.pre6](https://github.com/lanej/cistern/tree/v1.0.1.pre6) (2015-02-28)
50
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.1.pre5...v1.0.1.pre6)
51
+
52
+ ## [v1.0.1.pre5](https://github.com/lanej/cistern/tree/v1.0.1.pre5) (2015-02-15)
53
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.1.pre4...v1.0.1.pre5)
54
+
55
+ ## [v1.0.1.pre4](https://github.com/lanej/cistern/tree/v1.0.1.pre4) (2015-02-13)
56
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.1.pre3...v1.0.1.pre4)
57
+
58
+ ## [v1.0.1.pre3](https://github.com/lanej/cistern/tree/v1.0.1.pre3) (2015-02-13)
59
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.1.pre2...v1.0.1.pre3)
60
+
61
+ ## [v1.0.1.pre2](https://github.com/lanej/cistern/tree/v1.0.1.pre2) (2015-02-12)
62
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.11.2...v1.0.1.pre2)
63
+
64
+ ## [v0.11.2](https://github.com/lanej/cistern/tree/v0.11.2) (2014-11-15)
65
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.1.pre1...v0.11.2)
66
+
67
+ **Merged pull requests:**
68
+
69
+ - 75% fewer Symbol\#to\_s calls in merge\_attributes [\#44](https://github.com/lanej/cistern/pull/44) ([jlindley](https://github.com/jlindley))
70
+
71
+ ## [v1.0.1.pre1](https://github.com/lanej/cistern/tree/v1.0.1.pre1) (2014-10-21)
72
+ [Full Changelog](https://github.com/lanej/cistern/compare/v1.0.0.pre...v1.0.1.pre1)
73
+
74
+ ## [v1.0.0.pre](https://github.com/lanej/cistern/tree/v1.0.0.pre) (2014-10-21)
75
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.11.2.pre2...v1.0.0.pre)
76
+
77
+ ## [v0.11.2.pre2](https://github.com/lanej/cistern/tree/v0.11.2.pre2) (2014-10-21)
78
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.11.1...v0.11.2.pre2)
79
+
80
+ ## [v0.11.1](https://github.com/lanej/cistern/tree/v0.11.1) (2014-10-13)
81
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.11.0...v0.11.1)
82
+
83
+ **Implemented enhancements:**
84
+
85
+ - keep track of dirty attributes [\#8](https://github.com/lanej/cistern/issues/8)
86
+
87
+ **Fixed bugs:**
88
+
89
+ - keep track of dirty attributes [\#8](https://github.com/lanej/cistern/issues/8)
90
+
91
+ ## [v0.11.0](https://github.com/lanej/cistern/tree/v0.11.0) (2014-09-15)
92
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.10.2...v0.11.0)
93
+
94
+ ## [v0.10.2](https://github.com/lanej/cistern/tree/v0.10.2) (2014-09-15)
95
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.10.1...v0.10.2)
96
+
97
+ ## [v0.10.1](https://github.com/lanej/cistern/tree/v0.10.1) (2014-09-12)
98
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.10.0...v0.10.1)
99
+
100
+ ## [v0.10.0](https://github.com/lanej/cistern/tree/v0.10.0) (2014-09-09)
101
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.9.2...v0.10.0)
102
+
103
+ ## [v0.9.2](https://github.com/lanej/cistern/tree/v0.9.2) (2014-08-29)
104
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.9.1...v0.9.2)
105
+
106
+ ## [v0.9.1](https://github.com/lanej/cistern/tree/v0.9.1) (2014-08-12)
107
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.9.0...v0.9.1)
108
+
109
+ ## [v0.9.0](https://github.com/lanej/cistern/tree/v0.9.0) (2014-06-17)
110
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.8.0...v0.9.0)
111
+
112
+ **Merged pull requests:**
113
+
114
+ - refactor attribute definition [\#43](https://github.com/lanej/cistern/pull/43) ([jacobo](https://github.com/jacobo))
115
+
116
+ ## [v0.8.0](https://github.com/lanej/cistern/tree/v0.8.0) (2014-06-13)
117
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.7.1...v0.8.0)
118
+
119
+ **Merged pull requests:**
120
+
121
+ - add Cistern::Hash\#stringify\_keys [\#42](https://github.com/lanej/cistern/pull/42) ([thommahoney](https://github.com/thommahoney))
122
+
123
+ ## [v0.7.1](https://github.com/lanej/cistern/tree/v0.7.1) (2014-05-18)
124
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.7.0...v0.7.1)
125
+
126
+ ## [v0.7.0](https://github.com/lanej/cistern/tree/v0.7.0) (2014-05-15)
127
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.6.0...v0.7.0)
128
+
129
+ ## [v0.6.0](https://github.com/lanej/cistern/tree/v0.6.0) (2014-04-29)
130
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.10...v0.6.0)
131
+
132
+ **Merged pull requests:**
133
+
134
+ - set default values on models [\#39](https://github.com/lanej/cistern/pull/39) ([ehowe](https://github.com/ehowe))
135
+
136
+ ## [v0.5.10](https://github.com/lanej/cistern/tree/v0.5.10) (2014-04-16)
137
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.9...v0.5.10)
138
+
139
+ **Merged pull requests:**
140
+
141
+ - dont define methods that already exist [\#41](https://github.com/lanej/cistern/pull/41) ([ehowe](https://github.com/ehowe))
142
+
143
+ ## [v0.5.9](https://github.com/lanej/cistern/tree/v0.5.9) (2014-04-14)
144
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.8...v0.5.9)
145
+
146
+ **Merged pull requests:**
147
+
148
+ - add cistern singulars [\#40](https://github.com/lanej/cistern/pull/40) ([alenia](https://github.com/alenia))
149
+
150
+ ## [v0.5.8](https://github.com/lanej/cistern/tree/v0.5.8) (2014-04-04)
151
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.7...v0.5.8)
152
+
153
+ **Merged pull requests:**
154
+
155
+ - Boolean attributes get question-mark method too [\#38](https://github.com/lanej/cistern/pull/38) ([ryansouza](https://github.com/ryansouza))
156
+
157
+ ## [v0.5.7](https://github.com/lanej/cistern/tree/v0.5.7) (2014-04-03)
158
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.6...v0.5.7)
159
+
160
+ ## [v0.5.6](https://github.com/lanej/cistern/tree/v0.5.6) (2014-04-02)
161
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.5...v0.5.6)
162
+
163
+ **Merged pull requests:**
164
+
165
+ - Track attribute usage for coverage reporting [\#36](https://github.com/lanej/cistern/pull/36) ([ryansouza](https://github.com/ryansouza))
166
+ - Add `collection\_path` to Cistern::Service [\#35](https://github.com/lanej/cistern/pull/35) ([ryansouza](https://github.com/ryansouza))
167
+
168
+ ## [v0.5.5](https://github.com/lanej/cistern/tree/v0.5.5) (2014-03-27)
169
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.4...v0.5.5)
170
+
171
+ ## [v0.5.4](https://github.com/lanej/cistern/tree/v0.5.4) (2014-03-03)
172
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.3...v0.5.4)
173
+
174
+ **Closed issues:**
175
+
176
+ - Ruby 2.x Array\#to\_set removed [\#34](https://github.com/lanej/cistern/issues/34)
177
+
178
+ ## [v0.5.3](https://github.com/lanej/cistern/tree/v0.5.3) (2014-03-02)
179
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.2.pre1...v0.5.3)
180
+
181
+ ## [v0.5.2.pre1](https://github.com/lanej/cistern/tree/v0.5.2.pre1) (2014-03-02)
182
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.1...v0.5.2.pre1)
183
+
184
+ **Merged pull requests:**
185
+
186
+ - Model fallback inspect should include identity [\#33](https://github.com/lanej/cistern/pull/33) ([ryansouza](https://github.com/ryansouza))
187
+
188
+ ## [v0.5.1](https://github.com/lanej/cistern/tree/v0.5.1) (2014-02-27)
189
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.1.pre2...v0.5.1)
190
+
191
+ ## [v0.5.1.pre2](https://github.com/lanej/cistern/tree/v0.5.1.pre2) (2014-02-22)
192
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.5.1.pre1...v0.5.1.pre2)
193
+
194
+ ## [v0.5.1.pre1](https://github.com/lanej/cistern/tree/v0.5.1.pre1) (2014-02-22)
195
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.3.2...v0.5.1.pre1)
196
+
197
+ **Merged pull requests:**
198
+
199
+ - Fix bugs with Collection loaded status [\#31](https://github.com/lanej/cistern/pull/31) ([ryansouza](https://github.com/ryansouza))
200
+ - Make the not implemented error helpful [\#28](https://github.com/lanej/cistern/pull/28) ([ryansouza](https://github.com/ryansouza))
201
+
202
+ ## [v0.3.2](https://github.com/lanej/cistern/tree/v0.3.2) (2013-10-13)
203
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.4.0...v0.3.2)
204
+
205
+ **Merged pull requests:**
206
+
207
+ - check for global constant instead of accidentily autoloading [\#27](https://github.com/lanej/cistern/pull/27) ([jhsu](https://github.com/jhsu))
208
+
209
+ ## [v0.4.0](https://github.com/lanej/cistern/tree/v0.4.0) (2013-10-03)
210
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.3.1...v0.4.0)
211
+
212
+ **Merged pull requests:**
213
+
214
+ - drilling [\#26](https://github.com/lanej/cistern/pull/26) ([lanej](https://github.com/lanej))
215
+
216
+ ## [v0.3.1](https://github.com/lanej/cistern/tree/v0.3.1) (2013-09-25)
217
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.3.0...v0.3.1)
218
+
219
+ **Closed issues:**
220
+
221
+ - Two attributes with the same alias [\#23](https://github.com/lanej/cistern/issues/23)
222
+
223
+ **Merged pull requests:**
224
+
225
+ - Allow same aliases for multiple attributes, fixes \#23 [\#25](https://github.com/lanej/cistern/pull/25) ([manuelmeurer](https://github.com/manuelmeurer))
226
+ - Simplify casting boolean attributes [\#24](https://github.com/lanej/cistern/pull/24) ([manuelmeurer](https://github.com/manuelmeurer))
227
+
228
+ ## [v0.3.0](https://github.com/lanej/cistern/tree/v0.3.0) (2013-07-29)
229
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.2.3...v0.3.0)
230
+
231
+ ## [v0.2.3](https://github.com/lanej/cistern/tree/v0.2.3) (2013-07-17)
232
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.2.2...v0.2.3)
233
+
234
+ **Fixed bugs:**
235
+
236
+ - override == for Cistern::Collection [\#17](https://github.com/lanej/cistern/issues/17)
237
+
238
+ **Merged pull requests:**
239
+
240
+ - Cistern::Collection lazy\_load size,count,to\_s [\#18](https://github.com/lanej/cistern/pull/18) ([jacobo](https://github.com/jacobo))
241
+
242
+ ## [v0.2.2](https://github.com/lanej/cistern/tree/v0.2.2) (2013-06-05)
243
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.2.1...v0.2.2)
244
+
245
+ **Fixed bugs:**
246
+
247
+ - awesome\_print formatter excludes attributes of the Cistern::Model type [\#13](https://github.com/lanej/cistern/issues/13)
248
+ - formatting abstraction for collection AND models [\#11](https://github.com/lanej/cistern/issues/11)
249
+ - first and last need to be wrapped around the lazy load [\#9](https://github.com/lanej/cistern/issues/9)
250
+
251
+ **Closed issues:**
252
+
253
+ - write a gem description [\#15](https://github.com/lanej/cistern/issues/15)
254
+ - Update README [\#12](https://github.com/lanej/cistern/issues/12)
255
+
256
+ **Merged pull requests:**
257
+
258
+ - readme [\#16](https://github.com/lanej/cistern/pull/16) ([shaiguitar](https://github.com/shaiguitar))
259
+
260
+ ## [v0.2.1](https://github.com/lanej/cistern/tree/v0.2.1) (2013-01-17)
261
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.2.0...v0.2.1)
262
+
263
+ ## [v0.2.0](https://github.com/lanej/cistern/tree/v0.2.0) (2013-01-17)
264
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.1.4...v0.2.0)
265
+
266
+ ## [v0.1.4](https://github.com/lanej/cistern/tree/v0.1.4) (2012-11-30)
267
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.1.3...v0.1.4)
268
+
269
+ ## [v0.1.3](https://github.com/lanej/cistern/tree/v0.1.3) (2012-11-30)
270
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.1.2...v0.1.3)
271
+
272
+ ## [v0.1.2](https://github.com/lanej/cistern/tree/v0.1.2) (2012-11-30)
273
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.1.1...v0.1.2)
274
+
275
+ ## [v0.1.1](https://github.com/lanej/cistern/tree/v0.1.1) (2012-09-19)
276
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.1.0...v0.1.1)
277
+
278
+ ## [v0.1.0](https://github.com/lanej/cistern/tree/v0.1.0) (2012-09-19)
279
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.0.3...v0.1.0)
280
+
281
+ **Implemented enhancements:**
282
+
283
+ - plugin data types for parsing [\#10](https://github.com/lanej/cistern/issues/10)
284
+ - remove formatador, inspect engine abstraction [\#7](https://github.com/lanej/cistern/issues/7)
285
+
286
+ ## [v0.0.3](https://github.com/lanej/cistern/tree/v0.0.3) (2012-07-21)
287
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.0.2...v0.0.3)
288
+
289
+ **Fixed bugs:**
290
+
291
+ - preserve nil on type: string [\#6](https://github.com/lanej/cistern/issues/6)
292
+ - attribute type: integer, preserve nil [\#5](https://github.com/lanej/cistern/issues/5)
293
+
294
+ ## [v0.0.2](https://github.com/lanej/cistern/tree/v0.0.2) (2012-06-15)
295
+ [Full Changelog](https://github.com/lanej/cistern/compare/v0.0.1...v0.0.2)
296
+
297
+ **Fixed bugs:**
298
+
299
+ - Cistern::Model\#reload does not handle nil data [\#2](https://github.com/lanej/cistern/issues/2)
300
+ - missing formatador require statement [\#1](https://github.com/lanej/cistern/issues/1)
301
+
302
+ ## [v0.0.1](https://github.com/lanej/cistern/tree/v0.0.1) (2012-06-11)
303
+
304
+
305
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/README.md CHANGED
@@ -157,7 +157,7 @@ end
157
157
  * `load` consumes an Array of data and constructs matching `model` instances
158
158
 
159
159
  ```ruby
160
- class Foo::Client::Bars < Cistern::Collection
160
+ class Foo::Client::Bars < Foo::Client::Collection
161
161
 
162
162
  attribute :count, type: :integer
163
163
 
@@ -32,7 +32,7 @@ module Cistern::Collection
32
32
  merge_attributes(attributes)
33
33
  end
34
34
 
35
- def all(identity)
35
+ def all(_={})
36
36
  raise NotImplementedError
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Cistern
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cistern
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: API client framework extracted from Fog
14
14
  email:
@@ -20,6 +20,7 @@ files:
20
20
  - ".gemrelease"
21
21
  - ".gitignore"
22
22
  - ".travis.yml"
23
+ - CHANGELOG.md
23
24
  - Gemfile
24
25
  - Guardfile
25
26
  - LICENSE.txt
@@ -80,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  version: '0'
81
82
  requirements: []
82
83
  rubyforge_project:
83
- rubygems_version: 2.4.5
84
+ rubygems_version: 2.4.5.1
84
85
  signing_key:
85
86
  specification_version: 4
86
87
  summary: API client framework