to_collection 1.0.0 → 1.0.1
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 +4 -4
- data/README.md +22 -2
- data/lib/to_collection.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad1fd3e8472de416d563321f0084ce8fe275260e
|
|
4
|
+
data.tar.gz: 6c30c469ca163a89db81e87956f868288642f017
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6a1959c4a349cae43f0c4e6287c72d468926d6217720bcee5917cd824259c119a9e4e7fff1d54a0fd48427d713def3d00b5c9e47d43f95bd5625a14cae4f306
|
|
7
|
+
data.tar.gz: a2f164161fa55f9b099d49def218f58111c575c0932cee4b5eb5e41b4933a269e6197a403fa6fed633ed48055fa4c0133c6269349f1df298cce74f6458c0a2ad
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# `to_collection`
|
|
1
|
+
# `to_collection`
|
|
2
2
|
[](http://badge.fury.io/rb/to_collection)
|
|
3
3
|
[](https://travis-ci.org/AndyObtiva/to_collection)
|
|
4
4
|
[](https://coveralls.io/github/AndyObtiva/to_collection?branch=master)
|
|
@@ -37,6 +37,20 @@ people_http_request.to_collection(false).each do |person|
|
|
|
37
37
|
end
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
## Instructions
|
|
41
|
+
|
|
42
|
+
### Bundler / Rails
|
|
43
|
+
|
|
44
|
+
`gem 'to_collection', '~> 1.0.1'`
|
|
45
|
+
|
|
46
|
+
### Plain Ruby
|
|
47
|
+
|
|
48
|
+
`require 'to_collection'`
|
|
49
|
+
|
|
50
|
+
### Note
|
|
51
|
+
|
|
52
|
+
Code above enables `#to_collection` method on all classes inheriting from `Object`. See [options](#options) below in case you prefer to **manually** include in certain classes only.
|
|
53
|
+
|
|
40
54
|
## Background
|
|
41
55
|
|
|
42
56
|
I'm sure you've encountered REST Web Service APIs that operate as follows:
|
|
@@ -276,7 +290,7 @@ Example:
|
|
|
276
290
|
Bundler would have gem require option as false:
|
|
277
291
|
|
|
278
292
|
```ruby
|
|
279
|
-
|
|
293
|
+
gem 'to_collection', require: false
|
|
280
294
|
```
|
|
281
295
|
|
|
282
296
|
Ruby code would then set that environment variable **manually** before requiring library:
|
|
@@ -296,6 +310,12 @@ response_data.to_collection.each do |person_hash|
|
|
|
296
310
|
end
|
|
297
311
|
```
|
|
298
312
|
|
|
313
|
+
## Release Notes
|
|
314
|
+
|
|
315
|
+
### v1.0.1
|
|
316
|
+
|
|
317
|
+
- Updated `super_module` gem version to relax indirect `method_source` gem version dependency
|
|
318
|
+
|
|
299
319
|
## Contributing
|
|
300
320
|
|
|
301
321
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
data/lib/to_collection.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: to_collection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Maleh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: super_module
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.2.
|
|
19
|
+
version: 1.2.2
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.2.
|
|
26
|
+
version: 1.2.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: jeweler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|