uuid4 1.2.0 → 1.2.1

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: d368c9d66c7af7cb8ce2f72447dae312d6d205d1
4
- data.tar.gz: 80509cd31785aab37b502f63dc49df03b97e5fbd
3
+ metadata.gz: 40dd0f2af493ca5b0bbe31e4ff0b78b4eef6b173
4
+ data.tar.gz: a85b9447fafed6c5983b2eddcc85d8e2da91406a
5
5
  SHA512:
6
- metadata.gz: 649f52e2782512507c7860e0263486635a7a051d4824f90b2bc6f75605b1ac04fd27f15e7270a1a84220f588284ca0134189d5bb678bb519058a1495a2e6c2fe
7
- data.tar.gz: e81256a5ab155b00744d6a29d99b5c7e53f2a7cb1bde4651fc5181f7c3628bd0f0915823805a12c6d986e0fb1839130e1c45cc915d455f8651b0abde5ae6e8dd
6
+ metadata.gz: 9f9baf2e30e8d2473cab8599b1cb845541a6e5dcc90b55426b366afb7e4c1eec96b97bb5a31c32b686095e401976828c736c12adca9c12fb9989fa125d92dcb8
7
+ data.tar.gz: 5e5e2bb9fb811b840cabca2c740e6fd43b714e0af33b1111c06493f2d07150dee87e3f8c8679ced1961d8a13d0f44ea222d4d088c9f1a608c2712f187da790d8
data/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## 1.2.1
4
+
5
+ * Improve `#as_json` compatibility by swallowing arbitrary arguments passed by encoders.
6
+
7
+ ## 1.2.0
8
+
9
+ * Add JSON encoding support for ActiveSupport
10
+
11
+ ## 1.1.1
12
+
13
+ * Fix support for numerical small UUIDs
14
+
15
+ ## 1.1.0
16
+
17
+ * Export `Kernel#UUID`.
18
+
19
+ ## 1.0.0
20
+
21
+ * Initial release.
data/lib/uuid4.rb CHANGED
@@ -45,7 +45,10 @@ class UUID4
45
45
 
46
46
  alias_method :to_s, :to_str
47
47
  alias_method :to_uuid, :to_str
48
- alias_method :as_json, :to_str
48
+
49
+ def as_json(*)
50
+ to_str
51
+ end
49
52
 
50
53
  def to_uuid4
51
54
  self
data/lib/uuid4/version.rb CHANGED
@@ -2,7 +2,7 @@ class UUID4
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid4
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base62-rb
@@ -76,6 +76,7 @@ files:
76
76
  - ".gitignore"
77
77
  - ".rspec"
78
78
  - ".travis.yml"
79
+ - CHANGELOG.md
79
80
  - Gemfile
80
81
  - LICENSE.txt
81
82
  - README.md