collection_of 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTI4NDIzNzJiYjE1MThhZDY5MjhlNjVkZDM1NDBhMDc1ZTg1Yjg4MQ==
5
- data.tar.gz: !binary |-
6
- NTAxZjZiMjg4NzkxZTI3ZTgxNmFiMGI0ODhhNTlmNTJlZWEwMWQ2Zg==
2
+ SHA1:
3
+ metadata.gz: 6ad6b889cccfbc708c8dca40c45be7280648fb38
4
+ data.tar.gz: 4f95c69cda5957a22228f547c568e7c5c82407d1
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTMzYWU5NjdkNGQ2NmFjYjMyNTQ4MmQ3YjRmYzFkMjVlZTFlZGZiMzY1YTRl
10
- ZTBkOTBjNmZhNGQxZTVhOTljZGZiZWYxMmIwZGE4ZWFkMmIwY2JhZjQzNDRh
11
- ODE5N2VhZThlMzQzNDYxYjI1ODliNzViMDliMTdkNDE1ODExYTg=
12
- data.tar.gz: !binary |-
13
- NzNjMDE3YjY3ZjdhM2M0Y2E5NzA3NzRhNThkMWFiMWRjMDdmMDVkNTA2YjA3
14
- OGQ4NTYwNDEwZmY0MGE5YzAxOTYxYmU0MDFmMTRmZTAyZjZlMjUzOWUzZGNj
15
- OTk1ZjhmODI0Y2MwNDM5MzI4ZWMxNzIyZGEwODQ2NjY3YTIxZmI=
6
+ metadata.gz: c88560c4df1ec3020413399e146cfc5702e22a73aac60897f900a292bc471af7eaf1c4f906ff905f5b0dcb03f94ea5c5e366751fe1eba472232b7fbad066efa3
7
+ data.tar.gz: 76d3085531c888934c1309c6d74fac543ee07c4827dbb371deb638174060a076ab2e866062dbf44daa4e9d7c33715826900450578f780b5ffbaf23e1db2ae838
@@ -33,7 +33,7 @@ class Collection
33
33
  def [](item)
34
34
  return nil if empty?
35
35
 
36
- if item.is_a?(Fixnum)
36
+ if item.is_a?(0.class)
37
37
  @collection[item]
38
38
  else
39
39
  item = item.to_sym
@@ -85,4 +85,4 @@ class Collection
85
85
  return @collection == other if other.is_a?(Array)
86
86
  super
87
87
  end
88
- end
88
+ end
@@ -1,3 +1,3 @@
1
1
  module CollectionOf
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collection_of
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Vandersluis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-18 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- type: :runtime
15
- prerelease: false
16
14
  name: activesupport
17
15
  requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.0.0
20
+ type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- type: :development
29
- prerelease: false
30
28
  name: bundler
31
29
  requirement: !ruby/object:Gem::Requirement
32
30
  requirements:
33
- - - ~>
31
+ - - "~>"
34
32
  - !ruby/object:Gem::Version
35
33
  version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
- type: :development
43
- prerelease: false
44
42
  name: rake
45
43
  requirement: !ruby/object:Gem::Requirement
46
44
  requirements:
47
- - - ! '>='
45
+ - - ">="
48
46
  - !ruby/object:Gem::Version
49
47
  version: '0'
48
+ type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- type: :development
57
- prerelease: false
58
56
  name: rspec
59
57
  requirement: !ruby/object:Gem::Requirement
60
58
  requirements:
61
- - - ! '>='
59
+ - - ">="
62
60
  - !ruby/object:Gem::Version
63
61
  version: '0'
62
+ type: :development
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Ruby object for ease of collecting a certain type
@@ -73,7 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
76
+ - ".gitignore"
77
77
  - Gemfile
78
78
  - LICENSE.txt
79
79
  - README.md
@@ -93,20 +93,19 @@ require_paths:
93
93
  - lib
94
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ! '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.1.5
106
+ rubygems_version: 2.6.8
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Allows a collection of a given type of object to be worked with easily
110
110
  test_files:
111
111
  - spec/collection_spec.rb
112
- has_rdoc: