collectable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTE4ODA2MDhmMmViYWE5YzU2MTkyMTRlYWI5ZGViYjI4ZTMxY2ZjOA==
4
+ ZmVlOWE3ZjExY2M5MmJjMzU4ZWIzNjcwNGNkNjNiZTViYjZhZGU3NA==
5
5
  data.tar.gz: !binary |-
6
- YjVhMzBiODc0ZDEwM2UxMjMxZDYzYzE0Njk0ZmVhOGVkM2E0MDJjYw==
6
+ MzcxZGNkOTkzYWNhZWNhYjliMjdiOWMyMjIwYWJjYjc4NmRiNGQzMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDkxMGFlNTNkOTVhZmZmYjI0MzdmOGU1NjYyMGE5MGY2ZTQwMmRmZThiNzQw
10
- NmRiMGQyNzhmZTZlNTg1MzY3YWE5MTUxNGM5MzIzNzEyMzYzM2MwOGVlNzY3
11
- MmZiOGY1ZTc3MmY3MzZkM2E4NDViYWZjNmNjMTY1MzMyMWNlYjM=
9
+ Njc4MjFlZThmZTFkY2JmNTc2N2U4OTZhZDg1YzMxZjA3ZWQ5MGQ4NDcwYjYx
10
+ ZmRkYjZjZWExYzFlOWRkMWZhZDkwNTQzNDk2ODkxZTVhODJlNTRlNTk3Njkw
11
+ ZDJkZWFjOTllYzg1MmVhYzE2ZTk0ZTY0ZjBhMjM5OWU0OGU1M2Q=
12
12
  data.tar.gz: !binary |-
13
- MTFiODQ4NGFmYjE5NGYyNGZiYTI2ZTQ5ZjAzNTFjMDA0NmM1MGFiM2E3Yjc0
14
- YmVmNGI2ODA4NDE5ODFiODliMDRmYTIwNWYxZjQ4YTEyMzJmYTI3NjVjMDFl
15
- MTNkYTY2NDM4NGI3YTI1ZmQzNGQxNWE1YTcxMTRlMDY0NjIzNTQ=
13
+ YmU1YTNiYTkxMzY5MmYxMTllYTcyZmRjN2U2YmQxNGQ5YWUzZTkxMDQxY2Rk
14
+ NzJmNDUwOGJhNzJjOGU2NTc3OTIxNTY4Y2JhODVjMzU1ZGVkYjJlY2RmOTM2
15
+ MTBhYTE3ZGQ5N2NmNGEzMjIyYTAyY2QxMmUyOTFkMTVlNTY0MzY=
data/README.md CHANGED
@@ -55,6 +55,7 @@ Do you use git-flow? I sure do. Please base anything you do off of
55
55
 
56
56
  ## History ##
57
57
 
58
+ * 0.0.2 - Renamed collected_item#val to collected_item#value
58
59
  * 0.0.1 - Public release
59
60
 
60
61
  ## License ##
@@ -1,3 +1,3 @@
1
1
  module Collectable
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/lib/collectable.rb CHANGED
@@ -17,7 +17,7 @@ module Collectable
17
17
 
18
18
  def collected(sort_field = :name)
19
19
  traits.each_with_index.map {|name, index|
20
- OpenStruct.new(name: name, val: index)
20
+ OpenStruct.new(name: name, value: index)
21
21
  }.sort {|a,b|
22
22
  a.send(sort_field) <=> b.send(sort_field)
23
23
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collectable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Walters