signed_multiset 0.0.2 → 0.1.0

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: 5974015c8b24aea8ddb676594f8991c5ff7b989e
4
- data.tar.gz: 6f8cbf71b0c72bddb0eb63ae3230337528df5fcd
3
+ metadata.gz: 0c668c57c3959d0bfcb01c8100df51adc41b5608
4
+ data.tar.gz: 5058d5b5a8cfa2b2e39bd7e51ab7856617603fcd
5
5
  SHA512:
6
- metadata.gz: b7976458e026b80c572ebe4ccde8fd4ac21ddb4b4dad0f42be3624c9b8d87895e74b47dc13d7379ff8fc31a14bfbe6d0abe67d7487c8d437f86c35d016c97c9d
7
- data.tar.gz: b4eac8514917c458c8e559b93d4b54e12aae455675585c2ae1f75288b14e90d23bfb33a39e16c0732d6b1e83d451e2b115d00b7efc67498bf3d067904932b7d2
6
+ metadata.gz: 3f7b5820fcab890277e36e6159ce932a2814d7f6da029b94de16a317736b73e5673edd65eb177829cd2b4b7da94e4211cdc3210dc2142c9f39c440152f81eaf9
7
+ data.tar.gz: 3610e8eef2ece21ea1ab03a1de1ff2974d8065cad62e0a3449c1f61e22baa366a7d05ce8f1a93e9bbe7ad2e243a1ae339fff8296e8075718aab037f1f7f82b25
data/HISTORY.md CHANGED
@@ -1,4 +1,8 @@
1
+ # 0.1.0
2
+ - Fix return values when setting mutliplicity.
3
+
1
4
  # 0.0.2
2
- - New #delete method [@joshwlewis]
5
+ - New #delete method
6
+
3
7
  # 0.0.1
4
- - Initial Release [@joshwlewis]
8
+ - Initial Release
@@ -53,7 +53,7 @@ class SignedMultiset
53
53
  # @return [Integer] The multiplicity for the key
54
54
  def []=(key, multiplicity)
55
55
  entries[key] = multiplicity
56
- [key]
56
+ self[key]
57
57
  end
58
58
 
59
59
  # Increment the multiplicity for a key.
@@ -64,7 +64,7 @@ class SignedMultiset
64
64
  def increment(key, value)
65
65
  entries[key] ||= 0
66
66
  entries[key] += value
67
- [key]
67
+ self[key]
68
68
  end
69
69
 
70
70
  # Increment multiplicity by 1 for a key. This method is chainable.
@@ -1,3 +1,3 @@
1
1
  class SignedMultiset
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signed_multiset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lewis