guard-rails-assets 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Guard
16
16
 
17
17
  # TODO: Now another hack: Rails replaces Rails.application.assets with Rails.applciation.assets.index
18
18
  # (this happens when config.action_controller.perform_caching is true)
19
- # It caches all the assets, so that the Rakse task can't be reused
19
+ # It caches all the assets, so that the Rake task can't be run multiple times
20
20
  require 'sprockets/environment'
21
21
  Sprockets::Environment.class_eval do
22
22
  def index; self; end # instead of Index.new(self)
@@ -47,6 +47,7 @@ module Guard
47
47
  return false unless @@rails_booted
48
48
  begin
49
49
  Rake::Task['assets:clean'].execute
50
+ ::Rails.application.assets.instance_eval { expire_index! }
50
51
  Rake::Task['assets:precompile'].execute
51
52
  true
52
53
  rescue => e
data/lib/guard/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RailsAssetsVersion
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rails-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-04 00:00:00.000000000 +10:00
12
+ date: 2011-09-20 00:00:00.000000000 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: guard
17
- requirement: &23672500 !ruby/object:Gem::Requirement
17
+ requirement: &18832300 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *23672500
25
+ version_requirements: *18832300
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
- requirement: &23663340 !ruby/object:Gem::Requirement
28
+ requirement: &18831880 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *23663340
36
+ version_requirements: *18831880
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rails
39
- requirement: &23662760 !ruby/object:Gem::Requirement
39
+ requirement: &18831380 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 3.1.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *23662760
47
+ version_requirements: *18831380
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &23661860 !ruby/object:Gem::Requirement
50
+ requirement: &18830960 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *23661860
58
+ version_requirements: *18830960
59
59
  description: guard-rails-assets automatically generates JavaScript, CSS, Image files
60
60
  using Rails assets pipelie
61
61
  email:
@@ -93,18 +93,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  - - ! '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
- segments:
97
- - 0
98
- hash: 4449380752411900683
99
96
  required_rubygems_version: !ruby/object:Gem::Requirement
100
97
  none: false
101
98
  requirements:
102
99
  - - ! '>='
103
100
  - !ruby/object:Gem::Version
104
101
  version: '0'
105
- segments:
106
- - 0
107
- hash: 4449380752411900683
108
102
  requirements: []
109
103
  rubyforge_project: guard-rails-assets
110
104
  rubygems_version: 1.6.2