rails-env-switcher 0.2.2 → 0.2.3

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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWE0YWY3NjYwNjgyMjViYzkxYWQ0MzAyN2ZhYjAyN2I0Y2M1YmYyMw==
5
+ data.tar.gz: !binary |-
6
+ OGI5Yzc0NzhjOGVkMDkzOWFjYTI0ZGM3NDQ5YzMwOTAyOTYzYjY0Mg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MzAxYWYyYWI5ZGI1M2Y4YzE3ODIyZWY5NWNjMzVjMWNlZGYwYTVmN2QxOGIy
10
+ MGY5OGZiMmQxNWQzOTQxMTUyODZmNjA5MjA0NTY5NmYwMTgyNDJmZDQxNTBm
11
+ MTJlZDY4M2M1Yjg2Y2FmMWQwOTEwODQ5OGI0NTVmNWEzYWNiNjg=
12
+ data.tar.gz: !binary |-
13
+ OTIwMGI1NDBjNDYyMjVmNjZjMmVlZWNlMjViZmRkYTMxYmQ5NGFiOTlhMWI0
14
+ MzJkYWVlMjQ5ODhmY2ViMjJlMmQzNjU0MDkzMGVmMDA4NjlkMThmNmRjNWMz
15
+ MzUxNDBiNGVlZTNjZGRlNjMyMGE0MjNjNmViZTFjM2MzYWQzZDE=
@@ -1,8 +1,10 @@
1
1
  module RailsEnvSwitcher::Switcher::Reloader
2
2
  def self.switch_env(old_env, env, options={})
3
3
  if options[:reload]
4
- ActionDispatch::Reloader.cleanup!
5
- ActionDispatch::Reloader.prepare!
4
+ unless Rails.application.config.cache_classes
5
+ ActionDispatch::Reloader.cleanup!
6
+ ActionDispatch::Reloader.prepare!
7
+ end
6
8
  FactoryGirl.reload if defined?(FactoryGirl)
7
9
  end
8
10
  end
@@ -1,3 +1,3 @@
1
1
  module RailsEnvSwitcher
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-env-switcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nicolas Viennot
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-14 00:00:00.000000000 Z
11
+ date: 2013-05-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -47,27 +44,26 @@ files:
47
44
  - README.md
48
45
  homepage: http://github.com/nviennot/rails-env-switcher
49
46
  licenses: []
47
+ metadata: {}
50
48
  post_install_message:
51
49
  rdoc_options: []
52
50
  require_paths:
53
51
  - lib
54
52
  required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
53
  requirements:
57
54
  - - ! '>='
58
55
  - !ruby/object:Gem::Version
59
56
  version: '0'
60
57
  required_rubygems_version: !ruby/object:Gem::Requirement
61
- none: false
62
58
  requirements:
63
59
  - - ! '>='
64
60
  - !ruby/object:Gem::Version
65
61
  version: '0'
66
62
  requirements: []
67
63
  rubyforge_project:
68
- rubygems_version: 1.8.25
64
+ rubygems_version: 2.0.3
69
65
  signing_key:
70
- specification_version: 3
66
+ specification_version: 4
71
67
  summary: Switch from a Rails environment to another
72
68
  test_files: []
73
69
  has_rdoc: false