require_reloader 0.2.0 → 0.2.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: 7f99ac277b896b3dc347c2be0195edb4d9d9dfa7
4
- data.tar.gz: 0c43c9c7187d3b857fc9a37c49f69d8f9e73ab58
3
+ metadata.gz: cfd9c765dd86f98d43e726dd683519fe1ba3fa8f
4
+ data.tar.gz: e3cce1d0155fc1f58a2ae7f67a0acdcfd0e9c02f
5
5
  SHA512:
6
- metadata.gz: d7643d31465ca0f496aa6cd0c9544092462207e448c632a76f0301377c71c8a9c2bd94269de3e973778bd2e33f636912edbc2cdb5442c20dc1faf7f812ab0ae5
7
- data.tar.gz: d90c175222c87e55d9102727cee57dd7d112e68fc020f77276521871caf45365c2c652a5c7a31f6fe280ae36142e1588de9d0226a29e43faebff67af666e389c
6
+ metadata.gz: 943db6417996607fba675d635ead4f0f02ebfc5b498905ea4d47d4d094898cb1087e56c9af3d6e4a998be086c30edd4e6724f98f2a1433f796828bd21c882945
7
+ data.tar.gz: 693d5b00d3a9951a1519d540b36998ab836013aa50dc86b83983c454d41ab37bfa9930c057be8ddab027fe972f65a7e1b99f8cca982bb0d374ed5ae5c2a260c7
data/README.md CHANGED
@@ -78,6 +78,7 @@ This gem is forked from Colin Young's [gem_reloader](https://github.com/colinyou
78
78
  - @aceofspades: support gem metadata :module_name in Gemfile (issue #4)
79
79
 
80
80
  ## Changelog
81
+ - v0.2.1: Add Rails 5.1 support ([pull request](https://github.com/teohm/require_reloader/pull/7) from @kibenimatik)
81
82
  - v0.2.0: Support module_name option/spec-metadata
82
83
  - v0.1.6: RequireReloader::watch accepts :callback, runs it after gem reloaded ([pull request](https://github.com/teohm/require_reloader/pull/2) from @sven-winkler).
83
84
  - v0.1.5: properly guess top-level module name based on gem name
@@ -46,7 +46,7 @@ module RequireReloader
46
46
 
47
47
  # based on Tim Cardenas's solution:
48
48
  # http://timcardenas.com/automatically-reload-gems-in-rails-327-on-eve
49
- ActionDispatch::Callbacks.to_prepare do
49
+ helper.to_prepare do
50
50
  if opts[:module_name]
51
51
  helper.remove_module_if_defined(opts[:module_name])
52
52
  else
@@ -79,6 +79,13 @@ module RequireReloader
79
79
  str.split("_").map{|token| token.capitalize }.join("")
80
80
  end
81
81
 
82
+ def to_prepare(&block)
83
+ if Rails::VERSION::MAJOR == 5
84
+ ActiveSupport::Reloader.to_prepare(&block)
85
+ else
86
+ ActionDispatch::Callbacks.to_prepare(&block)
87
+ end
88
+ end
82
89
  end
83
90
 
84
91
  end
@@ -1,3 +1,3 @@
1
1
  module RequireReloader
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: require_reloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Young
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-15 00:00:00.000000000 Z
12
+ date: 2017-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  description: Auto-reload require files or local gems without restarting server during
@@ -34,7 +34,7 @@ executables: []
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
- - .gitignore
37
+ - ".gitignore"
38
38
  - Gemfile
39
39
  - LICENSE
40
40
  - README.md
@@ -53,19 +53,18 @@ require_paths:
53
53
  - lib
54
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - '>='
56
+ - - ">="
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project:
66
- rubygems_version: 2.2.0
66
+ rubygems_version: 2.5.2
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Auto-reload require files or local gems without restarting Rails server.
70
70
  test_files: []
71
- has_rdoc: