rails-dev-tweaks 1.1.0 → 1.2.0

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: a67a324a02566d48e0e83455cc99d90d70021ed0
4
- data.tar.gz: 853f0ae798bf4f0b3e455a14cec35b9051988dcc
3
+ metadata.gz: 1253b525a845d0d06bc3c463898030cdd0a2093e
4
+ data.tar.gz: 3622b9cc6a9f7a89304b7eab8549f991ba662076
5
5
  SHA512:
6
- metadata.gz: 9cbbf7ca9028627fd517ff8cccdc6907a75429dc172fb5fb4bdb86f52e965c4ade878c59b8283698e2146c879b80bdc46034a24a32d6e9c81359c81f38e75453
7
- data.tar.gz: fd4f61486585950dce576d8272e98af42a51a34f0a58980eea881874cce5481093bb61222d4c4b86f9cc6c2460a02a0f900bba9d018f76b037bc7aecf7f03e23
6
+ metadata.gz: 2a190ccd747c652a4003d1e80976c408874a4030fd072d46808e3b27b634883ef0aabe099fd7669c7380b4dab1e50c574f8a37ed057191fa1453b5b65cd818bb
7
+ data.tar.gz: 0ff9fd342bfc04c696b28fcd2a4047443ea53bd15a117ae66e56ed4dc273d61ee0f006d0bc83e0a41728afdd8ce14e240ad2c5ba7642d6eb7394d2b5220841be
data/README.md CHANGED
@@ -57,7 +57,6 @@ The default autoload rules should cover most development patterns:
57
57
 
58
58
  skip '/favicon.ico'
59
59
  skip :assets
60
- skip :xhr
61
60
  keep :forced
62
61
  end
63
62
 
@@ -21,7 +21,9 @@ class RailsDevTweaks::GranularAutoload::Middleware
21
21
  if Rails.application.config.dev_tweaks.granular_autoload_config.should_reload?(request)
22
22
  # Confusingly, we flip the request prepare/cleanup life cycle around so that we're only cleaning up on those
23
23
  # requests that want to be reloaded
24
- if self.class.processed_a_request? # No-op if this is the first request. The initializers take care of that one.
24
+
25
+ # No-op if this is the first request. The initializers take care of that one.
26
+ if self.class.processed_a_request? && reload_dependencies?
25
27
  ActionDispatch::Reloader.cleanup!
26
28
  ActionDispatch::Reloader.prepare!
27
29
  end
@@ -33,4 +35,14 @@ class RailsDevTweaks::GranularAutoload::Middleware
33
35
 
34
36
  return @app.call(env)
35
37
  end
38
+
39
+ private
40
+
41
+ def reload_dependencies?
42
+ application = Rails.application
43
+
44
+ # Rails 3.2 defines reload_dependencies? and it only reloads if reload_dependencies? returns true.
45
+ (!application.class.method_defined?(:reload_dependencies?) ||
46
+ application.send(:reload_dependencies?))
47
+ end
36
48
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDevTweaks
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-dev-tweaks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wavii, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-21 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionpack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.1'
41
41
  description: A collection of tweaks to improve your Rails (3.1+) development experience.
@@ -45,6 +45,9 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - MIT-LICENSE
49
+ - README.md
50
+ - Rakefile
48
51
  - lib/rails-dev-tweaks.rb
49
52
  - lib/rails_dev_tweaks/configuration.rb
50
53
  - lib/rails_dev_tweaks/granular_autoload/matchers/all_matcher.rb
@@ -55,11 +58,9 @@ files:
55
58
  - lib/rails_dev_tweaks/granular_autoload/middleware.rb
56
59
  - lib/rails_dev_tweaks/railtie.rb
57
60
  - lib/rails_dev_tweaks/version.rb
58
- - MIT-LICENSE
59
- - Rakefile
60
- - README.md
61
61
  homepage: http://wavii.com/
62
- licenses: []
62
+ licenses:
63
+ - MIT
63
64
  metadata: {}
64
65
  post_install_message:
65
66
  rdoc_options: []
@@ -67,17 +68,17 @@ require_paths:
67
68
  - lib
68
69
  required_ruby_version: !ruby/object:Gem::Requirement
69
70
  requirements:
70
- - - '>='
71
+ - - ">="
71
72
  - !ruby/object:Gem::Version
72
73
  version: '0'
73
74
  required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  requirements:
75
- - - '>='
76
+ - - ">="
76
77
  - !ruby/object:Gem::Version
77
78
  version: '0'
78
79
  requirements: []
79
80
  rubyforge_project: rails-dev-tweaks
80
- rubygems_version: 2.0.3
81
+ rubygems_version: 2.2.2
81
82
  signing_key:
82
83
  specification_version: 4
83
84
  summary: A collection of tweaks to improve your Rails (3.1+) development experience.