hashid-rails 0.4.0 → 0.4.1

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: fef0e8c5ec9d05c05dc0d392931d87b9551a6cef
4
- data.tar.gz: a0f05a0e3161396920c4fc8561694654cad4dd7e
3
+ metadata.gz: 089d27e9ecec8f72aeeb07a60588bed41a356cd7
4
+ data.tar.gz: 11c5adf9980c409d86f0f9b602c27fcfbcd2cf13
5
5
  SHA512:
6
- metadata.gz: 18b71e3b28eedafb5af85e9c737b0f90cc5a4ae4af138551d0644ac3b693def5aa02ff53b76a3acc6c0e35c55c744e2c38b762510d677a37dc9fd1b4a97c48d0
7
- data.tar.gz: adabcf0504c995fdd5df9b76f2bf90abb031190bde2c8f51c6adce729bc26c4f20ead54874322d7a53355618eb90df099e80a51294333f3287926a878d40f199
6
+ metadata.gz: bb5fe1b5306c1810e9393a9aebc3c9f4dcf679796d9e0338174ef582c51bad76e2b27647bd1c6b32da88f30ca280040cb067f365db6ea8a135e3ad76c57def79
7
+ data.tar.gz: 50eee15289a2f334397b8ae9971fe50d78eb21f4a341f048b537bddbbfd2c01114a10b409d0ce722275e5baaa868ae4519ab16898a83986002ab1cf0cfd9a24f
data/.travis.yml CHANGED
@@ -1,10 +1,10 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.3.0
5
- - 2.2.0
6
- - 2.1.0
7
- - 2.0.0
4
+ - 2.3
5
+ - 2.2
6
+ - 2.1
7
+ - 2.0
8
8
  addons:
9
9
  code_climate:
10
10
  repo_token: 561da3bbc224e5217ceba7b8f99d24190d7d65b221570db6cf0949381e4c0c27
data/CHANGELOG.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0 (2016-08-21)
4
+ - Limit installations to Rails 4.x; gem is not yet Rails 5 compatible.
5
+
3
6
  ## 0.4.0 (2016-08-21)
4
7
  - Add `find_by_hashid` method to always try and decode, as opposed to `find` which tries to find it as an integer first.
5
8
 
6
9
  ## 0.3.2 (2016-03-30)
7
- - Multiple ids can be passed to `find` method
10
+ - Multiple ids can be passed to `find` method.
8
11
 
9
12
  ## 0.3.1 (2016-03-10)
10
13
  - Update Rails dependency to work with Rails 4.0 and up.
data/README.md CHANGED
@@ -29,6 +29,8 @@ Or install it yourself as:
29
29
  $ gem install hashid-rails
30
30
  ```
31
31
 
32
+ > Note: This gem is not yet compatible with Rails 5.
33
+
32
34
  ## Basic Usage
33
35
 
34
36
  Just use `Model#find` passing in the hashid instead of the model id.
data/hashid-rails.gemspec CHANGED
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rake'
30
30
  spec.add_development_dependency 'rspec', '~> 3.4.0'
31
31
 
32
- spec.add_runtime_dependency 'activerecord', '>= 4.0'
32
+ spec.add_runtime_dependency 'activerecord', '~> 4.0'
33
33
  spec.add_runtime_dependency 'hashids', '~> 1.0'
34
34
  end
@@ -1,5 +1,5 @@
1
1
  module Hashid
2
2
  module Rails
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashid-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Cypret
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: activerecord
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '4.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '4.0'
69
69
  - !ruby/object:Gem::Dependency