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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5bf045336f976fe12a32620709de8e0d505bd44
4
- data.tar.gz: efecad8e31c056fe65178ffa10e282eaa157c277
3
+ metadata.gz: 45cbb900824604174665c44e8ac801e0a2368fe9
4
+ data.tar.gz: 09228c0a7cfac888589a37655cd93d1f16e9553e
5
5
  SHA512:
6
- metadata.gz: 2e6279c198c7944e924ffe8bea46ff349451ba3aff6eb95a4bb1b2b3a17f041147c28bb0d50b81f0d7acb659f1f4786542ff9c71993c9f7547ceeccdf699bc01
7
- data.tar.gz: d509f01f5bec084908494326f0bcf05d6b693a120147ee176fff436d17d8658dc70b6f2d7f3abd99590f0e9f6e74bb11097f875cebc003acd304181f18aff260
6
+ metadata.gz: 79d74ebe3da3b961eec9c3192aac5e1cba5f517a5748d74d9f2b27c6c45713a6e01c92a58da597a8340134afe75adce51e682e3b1dc1ed15133568481e85e2ff
7
+ data.tar.gz: a515a6a788ae5e927d48fa71ef4f63e739e6a336b8ff61da8ad91aa689a208b87ba59081238611bdab76f204ec3b0ac2d3e88e8f25a6ab40dd3c2b2bb1e54d46
@@ -1,5 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.2.7
5
+ - 2.3.4
4
6
  - 2.4.1
5
7
  before_install: gem install bundler -v 1.15.1
@@ -1,3 +1,8 @@
1
+ ## 0.2.0 (2017-06-07)
2
+
3
+ - Support Ruby 2.2
4
+ - Improve the log message
5
+
1
6
  ## 0.1.0 (2017-06-06)
2
7
 
3
8
  - The first implementation.
data/README.md CHANGED
@@ -24,7 +24,8 @@ Or install it yourself as:
24
24
 
25
25
  ## Support version
26
26
 
27
- Rails 5 or higher.
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'
@@ -9,11 +9,14 @@ module Everlasting
9
9
 
10
10
  hash = self.to_h
11
11
 
12
- Rails.logger&.error <<~EOS
13
- ActionController::Parameters does not inherit Hash since Rails 5.0.
14
- Use `params.to_h.#{method_name}' instead of `params.#{method_name}'.
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
- #{caller.join("\n")}
17
+ ---backtrace---
18
+
19
+ #{caller.join("\n")}
17
20
  EOS
18
21
 
19
22
  hash.send(method_name, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module Everlasting
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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.6.12
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.