objecthash 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2089181fcfda36f9d990b35901276a5c74d97d3a
4
- data.tar.gz: e62cd6cff3db9ac44a5e325529186637fa3247c3
3
+ metadata.gz: 9b9a13d49ce8330e3b141b7e573418a12312053e
4
+ data.tar.gz: 21f615524dbd1db6a9226e6c8700df0c8b77e9e2
5
5
  SHA512:
6
- metadata.gz: 07656d48d95258e4ce9e4597120f378a94b8569d101ce62820128eecdd6cee8acdba58cea65a9343be4d2dd137f7d6899be3c03053d475d40222eefd2eece7de
7
- data.tar.gz: be41f7fc690ec9624c00d5abf646977ea310425f25da4400d02abd45ca7d14e950cc0cf33ac686ff02bc4f64c0c3ef718aa01098e93ac66f9102f19128ac3abb
6
+ metadata.gz: 4412a9f5e00c5d14d32e0f9fc7ac11133036c47e0873a3195f1bb73de1f33b2f07fd1663e85c3f673bc2c9bc8a4c2ec462f1d175eef81824894f867a359e2fb0
7
+ data.tar.gz: e972815029503002f6a918dc9fc75431a00f6bbc0a47936c008437a97733063f5b3de5ebefc15510d289555e799b66cbbb0657b608f454b23b59280a779b7dbc
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.0.2 (2016-08-06)
2
+
3
+ * Fixes for floating point. Passes all upstream test vectors.
4
+ (except for redaction)
5
+
1
6
  ## 1.0.1 (2016-08-04)
2
7
 
3
8
  * Initial not-completely-broken release.
data/README.md CHANGED
@@ -65,7 +65,6 @@ For compatibility reasons it's recommended you use the default hash algorithm (S
65
65
 
66
66
  ## TODO
67
67
 
68
- * Adapt better tests from upstream objecthash_test.py
69
68
  * Redaction support
70
69
 
71
70
  ## Contributing
@@ -110,7 +110,7 @@ class ObjectHash
110
110
  raise unless f <= 1
111
111
  raise unless f > 0.5
112
112
 
113
- while f
113
+ while f != 0.0
114
114
  if f >= 1
115
115
  s += "1"
116
116
  f -= 1
@@ -1,3 +1,3 @@
1
1
  class ObjectHash
2
- VERSION = "1.0.1".freeze
2
+ VERSION = "1.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objecthash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-05 00:00:00.000000000 Z
11
+ date: 2016-08-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A way to cryptographically hash objects (in the JSON-ish sense) that
14
14
  works cross-language, and, therefore, cross-encoding.