hashid-rails 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -7
- data/lib/hashid/rails.rb +1 -1
- data/lib/hashid/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6796fd1b0c38d1df8d7fcd78d34b94d33f4a3369
|
4
|
+
data.tar.gz: d350084ba5b79ab7a1a8ad0804971a9ab63602f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ef74a3bfaae4abc770f454c40904c8a3d011d730957fbd80177249c9c8486d52e9d41796f654df243b63ab97b57c9547aa8868635bab88b51d0bb6df505e863
|
7
|
+
data.tar.gz: 625758b6b7f65a6a470b7bfbdabc53b5eaee834d8c26dbdc3c73f2a55ef975ba58fb5bb6c7b5985b08128751f91aee7d8db6a9578401973e5188aad06db2d371
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.2.1 (2018-01-13)
|
4
|
+
- Found issue where unsigned hashids with `find` did not fall back to passed in ID ([#46](https://github.com/jcypret/hashid-rails/pull/46)).
|
5
|
+
- Move finder specs to a shared example run against both the signed and unsigned hashids.
|
6
|
+
|
3
7
|
## 1.2.0 (2017-11-17)
|
4
8
|
- Fix regression where `find_by_hashid` and `find_by_hashid!` attempt to decode
|
5
9
|
values that are not hashids. ([#41](https://github.com/jcypret/hashid-rails/pull/41))
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ be added or removed at any time.
|
|
18
18
|
Add this line to your application's Gemfile:
|
19
19
|
|
20
20
|
```ruby
|
21
|
-
gem
|
21
|
+
gem "hashid-rails", "~> 1.0"
|
22
22
|
```
|
23
23
|
|
24
24
|
And then execute:
|
@@ -27,12 +27,6 @@ And then execute:
|
|
27
27
|
$ bundle
|
28
28
|
```
|
29
29
|
|
30
|
-
Or install it yourself as:
|
31
|
-
|
32
|
-
```shell
|
33
|
-
$ gem install hashid-rails -v 1.0
|
34
|
-
```
|
35
|
-
|
36
30
|
## Basic Usage
|
37
31
|
|
38
32
|
1. Include Hashid Rails in the ActiveRecord model you'd like to enable hashids.
|
data/lib/hashid/rails.rb
CHANGED
data/lib/hashid/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hashid-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Cypret
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|