state_machines-activemodel 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: aaf15374a07d20fb3e780b053b18fed573e35b5f
4
- data.tar.gz: 55a0675eedcfc3e94d3ccce4f1b42fdc25160d4d
3
+ metadata.gz: 642294aae77c2bcdb8150c1df4e76c8431f67fd2
4
+ data.tar.gz: 07057e12077c065b581ec71b6eaa71f4a6447081
5
5
  SHA512:
6
- metadata.gz: 8c84d854b219b4e1ffce1cc6ccb07684a6124c6746174da14946fce933c62eae452385929700ed9914c403d3e6b2755459e3af73999037225b4a9c242c991c89
7
- data.tar.gz: d430375ba8ff322040514755d9de570d670ac9e3f890aeed36893b01a0cf0da54c5153aa2ed719b4ae496f70c8294be1d38ff377b20092e5b5c20afc30ddd7f6
6
+ metadata.gz: 727e931fb637cd381fb1154aea75d19d1bc69d599fcbcf5f222eddfcf174bf97f87271953db0eb9f3950f73b545a4ca75ec54c6d5d4f0cdedf31d359c5389259
7
+ data.tar.gz: 9a580d892c71c7ae626f06f31e4a52e1439276f3d22eb5b19a584d16bf744bfa5f0a1bc8b639567400c30e1efeb76400fb17295b0e72e650d3be981f046fda53
data/.travis.yml CHANGED
@@ -19,6 +19,10 @@ matrix:
19
19
  rvm: 2.2.5
20
20
  - gemfile: gemfiles/active_model_5.0.gemfile
21
21
  rvm: 2.3.1
22
+ - gemfile: gemfiles/active_model_5.1.gemfile
23
+ rvm: 2.2.5
24
+ - gemfile: gemfiles/active_model_5.1.gemfile
25
+ rvm: 2.3.1
22
26
  - gemfile: gemfiles/active_model_edge.gemfile
23
27
  rvm: 2.2.5
24
28
  - gemfile: gemfiles/active_model_edge.gemfile
data/Appraisals CHANGED
@@ -11,6 +11,10 @@ appraise 'active_model_5.0' do
11
11
  gem 'activemodel', github: 'rails/rails', branch: '5-0-stable'
12
12
  end
13
13
 
14
+ appraise 'active_model_5.1' do
15
+ gem 'activemodel', github: 'rails/rails', branch: '5-1-stable'
16
+ end
17
+
14
18
  appraise 'active_model_edge' do
15
19
  gem 'activemodel', github: 'rails/rails', branch: 'master'
16
20
  end
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activemodel", github: "rails/rails", branch: "5-1-stable"
6
+
7
+ platforms :mri_20, :mri_21 do
8
+ gem "pry-byebug"
9
+ end
10
+
11
+ gemspec path: "../"
@@ -473,7 +473,10 @@ module StateMachines
473
473
 
474
474
  # Loads any locale files needed for translating validation errors
475
475
  def load_locale
476
- I18n.load_path.unshift(locale_path) unless I18n.load_path.include?(locale_path)
476
+ unless I18n.load_path.include?(locale_path)
477
+ I18n.load_path.unshift(locale_path)
478
+ I18n.reload!
479
+ end
477
480
  end
478
481
 
479
482
  def locale_path
@@ -1,7 +1,7 @@
1
1
  module StateMachines
2
2
  module Integrations
3
3
  module ActiveModel
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
6
6
  end
7
7
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ['lib']
19
19
  spec.required_ruby_version = '>= 1.9.3'
20
20
  spec.add_dependency 'state_machines', '>= 0.4.0'
21
- spec.add_dependency 'activemodel', '>= 4.1', '< 5.1'
21
+ spec.add_dependency 'activemodel', '>= 4.1', '< 5.2'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '>= 1.6'
24
24
  spec.add_development_dependency 'rake', '>= 10'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machines-activemodel
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
  - Abdelkader Boudih
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-17 00:00:00.000000000 Z
12
+ date: 2017-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: state_machines
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '4.1'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '5.1'
37
+ version: '5.2'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '4.1'
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.1'
47
+ version: '5.2'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -133,6 +133,7 @@ files:
133
133
  - gemfiles/active_model_4.1.gemfile
134
134
  - gemfiles/active_model_4.2.gemfile
135
135
  - gemfiles/active_model_5.0.gemfile
136
+ - gemfiles/active_model_5.1.gemfile
136
137
  - gemfiles/active_model_edge.gemfile
137
138
  - lib/state_machines-activemodel.rb
138
139
  - lib/state_machines/integrations/active_model.rb
@@ -184,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
185
  version: '0'
185
186
  requirements: []
186
187
  rubyforge_project:
187
- rubygems_version: 2.5.1
188
+ rubygems_version: 2.5.2
188
189
  signing_key:
189
190
  specification_version: 4
190
191
  summary: ActiveModel integration for State Machines