to_collection 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -2
  3. data/lib/to_collection.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c2310783afe2173cf5010b1aee2dcce714b525b
4
- data.tar.gz: f398002762833fb9aaef65653c94843f88c15ded
3
+ metadata.gz: ad1fd3e8472de416d563321f0084ce8fe275260e
4
+ data.tar.gz: 6c30c469ca163a89db81e87956f868288642f017
5
5
  SHA512:
6
- metadata.gz: 428fdd1b1bf6b14316e4145e5dd8bdec6979d67c4797196190ad22f6c6a7409c1abf8557b62879321a3b12b5f88990fd0742af4e7871dfd622751035c1ea015a
7
- data.tar.gz: 6d333a07fdc5191bcd23f1bf1c6687ab6642c93fb2a7e6b3fcc039467395910848c9f170a9943c39b50a9dd402d5fe7756799c76284ec92cb684c5ac368745b6
6
+ metadata.gz: a6a1959c4a349cae43f0c4e6287c72d468926d6217720bcee5917cd824259c119a9e4e7fff1d54a0fd48427d713def3d00b5c9e47d43f95bd5625a14cae4f306
7
+ data.tar.gz: a2f164161fa55f9b099d49def218f58111c575c0932cee4b5eb5e41b4933a269e6197a403fa6fed633ed48055fa4c0133c6269349f1df298cce74f6458c0a2ad
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # `to_collection` v1.0.0
1
+ # `to_collection`
2
2
  [![Gem Version](https://badge.fury.io/rb/to_collection.svg)](http://badge.fury.io/rb/to_collection)
3
3
  [![Build Status](https://travis-ci.org/AndyObtiva/to_collection.svg?branch=master)](https://travis-ci.org/AndyObtiva/to_collection)
4
4
  [![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/to_collection/badge.svg?branch=master)](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
- require 'to_collection', require: false
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
@@ -1,6 +1,6 @@
1
1
  require 'super_module'
2
2
 
3
- super_module :ToCollection do
3
+ ToCollection = super_module do
4
4
  class AlreadyImplementedError < StandardError
5
5
  end
6
6
 
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.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: 2017-02-22 00:00:00.000000000 Z
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.0
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.0
26
+ version: 1.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jeweler
29
29
  requirement: !ruby/object:Gem::Requirement