guard-rails-assets 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,13 @@ module Guard
36
36
  @@rails_booted = true
37
37
  end
38
38
 
39
+ def clean
40
+ Rake::Task["tmp:cache:clear"].execute
41
+ # copy from the "assets:clean" Rake task
42
+ config = ::Rails.application.config
43
+ public_asset_path = File.join(Rails.public_path, config.assets.prefix)
44
+ rm_rf public_asset_path, :secure => true
45
+ end
39
46
 
40
47
  def precompile
41
48
  config = Rails.application.config
@@ -73,6 +80,7 @@ module Guard
73
80
  self.class.boot_rails
74
81
  return false unless @@rails_booted
75
82
  begin
83
+ clean
76
84
  precompile
77
85
  true
78
86
  rescue => e
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RailsAssetsVersion
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
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.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70092820854200 !ruby/object:Gem::Requirement
16
+ requirement: &70315026726080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70092820854200
24
+ version_requirements: *70315026726080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70092820853040 !ruby/object:Gem::Requirement
27
+ requirement: &70315026724720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70092820853040
35
+ version_requirements: *70315026724720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &70092820852320 !ruby/object:Gem::Requirement
38
+ requirement: &70315026723340 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.1.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70092820852320
46
+ version_requirements: *70315026723340
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70092820851240 !ruby/object:Gem::Requirement
49
+ requirement: &70315026722400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70092820851240
57
+ version_requirements: *70315026722400
58
58
  description: guard-rails-assets automatically generates JavaScript, CSS, Image files
59
59
  using Rails assets pipelie
60
60
  email:
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: -3147666499136305836
96
+ hash: -1176912633960729857
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: -3147666499136305836
105
+ hash: -1176912633960729857
106
106
  requirements: []
107
107
  rubyforge_project: guard-rails-assets
108
108
  rubygems_version: 1.8.10