everlasting 0.1.0 → 0.2.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 +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +5 -0
- data/README.md +5 -1
- data/lib/everlasting/enhanced.rb +7 -4
- data/lib/everlasting/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: 45cbb900824604174665c44e8ac801e0a2368fe9
|
4
|
+
data.tar.gz: 09228c0a7cfac888589a37655cd93d1f16e9553e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d74ebe3da3b961eec9c3192aac5e1cba5f517a5748d74d9f2b27c6c45713a6e01c92a58da597a8340134afe75adce51e682e3b1dc1ed15133568481e85e2ff
|
7
|
+
data.tar.gz: a515a6a788ae5e927d48fa71ef4f63e739e6a336b8ff61da8ad91aa689a208b87ba59081238611bdab76f204ec3b0ac2d3e88e8f25a6ab40dd3c2b2bb1e54d46
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -24,7 +24,8 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
## Support version
|
26
26
|
|
27
|
-
|
27
|
+
- Ruby 2.2.2 or higher.
|
28
|
+
- Rails 5 or higher.
|
28
29
|
|
29
30
|
## About behavior
|
30
31
|
|
@@ -45,9 +46,12 @@ params.symbolize_keys # => It outputs exception information to Rails.logger.erro
|
|
45
46
|
It will output to the Rails log together with the backtrace as follows.
|
46
47
|
|
47
48
|
```console
|
49
|
+
The Everlasting Gem detected a method that ActionController::Parameters does not know.
|
48
50
|
ActionController::Parameters does not inherit Hash since Rails 5.0.
|
49
51
|
Use `params.to_h.symbolize_keys' instead of `params.symbolize_keys'.
|
50
52
|
|
53
|
+
---backtrace---
|
54
|
+
|
51
55
|
(snip)
|
52
56
|
|
53
57
|
bin/rails:8:in `require'
|
data/lib/everlasting/enhanced.rb
CHANGED
@@ -9,11 +9,14 @@ module Everlasting
|
|
9
9
|
|
10
10
|
hash = self.to_h
|
11
11
|
|
12
|
-
Rails.logger
|
13
|
-
|
14
|
-
|
12
|
+
Rails.logger.try!(:error, <<-EOS)
|
13
|
+
The Everlasting Gem detected a method that ActionController::Parameters does not know.
|
14
|
+
ActionController::Parameters does not inherit Hash since Rails 5.0.
|
15
|
+
Use `params.to_h.#{method_name}' instead of `params.#{method_name}'.
|
15
16
|
|
16
|
-
|
17
|
+
---backtrace---
|
18
|
+
|
19
|
+
#{caller.join("\n")}
|
17
20
|
EOS
|
18
21
|
|
19
22
|
hash.send(method_name, *args, &block)
|
data/lib/everlasting/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everlasting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koichi ITO
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.4.5.2
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Enhance the behavior of Hash in the behavior of ActionController::Parameters.
|