effective_resources 2.25.9 → 2.25.10

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
  SHA256:
3
- metadata.gz: c5e923e218d9738cf726a638f0d850c3b2b86e4177b040bc50b0a8a1665e4ba1
4
- data.tar.gz: 4d362460cea6561d38058ec8764e9e98c7e1b9a0899f49244de71a17a0e11942
3
+ metadata.gz: 8e25889bc1a891db68c75ce05df4bf02110c9a03cd03d7a121b8cde7487f2d14
4
+ data.tar.gz: 475f27329c8c866aa64b903fcbc23b92d5a39cdc8cd2dac71db473c194ef7dd0
5
5
  SHA512:
6
- metadata.gz: 2770956df98832a7d08471d6182643f3317daf85924d9797f0ac4e1863a26222bf9d4a16730e21a15d364a1fb04d0f88f26833ff198b201e1a2bc9a36bb7b881
7
- data.tar.gz: 979ca1c1afc1d8a2645072e3710b5d68436259082f16fb92e8d786953f5f027401fcb07e23afeeba97cc7b66af73d86803de412030341269298377d3224248d5
6
+ metadata.gz: d206a7a34f2f7bb9850d77328085606719ac5c8f2f2f4cddbeff3c0d124957dc9f5d1efdf7dddc841d7795f8b63ae6b164f037e29f60c03159aea922a7cc2252
7
+ data.tar.gz: a87a21a1eb27e79e550ec29b31a54fb889b0bf21c318b928dd10fdaa164a039b639fe3180e36fef86b98ed864870c2cd35066ff218820c38fb7d94cf14781d17
@@ -80,7 +80,7 @@ module Effective
80
80
  raise('expected an ActiveSupport::OrderedOptions') unless value.kind_of?(ActiveSupport::OrderedOptions)
81
81
  parse_ordered_options(value)
82
82
  when :date, :datetime
83
- date = Time.zone.parse(value) if value.to_s.include?('T')
83
+ date = Time.zone.parse(value) if value.kind_of?(String) && value.include?('T')
84
84
 
85
85
  date ||= if (digits = value.to_s.scan(/(\d+)/).flatten).present?
86
86
  if digits.first.length == 4 # 2017-01-10
@@ -27,7 +27,7 @@ module Effective
27
27
  return value unless value.include?(key) # missing translation
28
28
  end
29
29
 
30
- "Really #{human_action_name(action)} @resource?"
30
+ "Are you sure you want to #{human_action_name(action).downcase}?"
31
31
  end
32
32
 
33
33
  def human_name
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.25.9'.freeze
2
+ VERSION = '2.25.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.25.9
4
+ version: 2.25.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-18 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails