turbo-sprockets-rails3 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTA4YjVhMGQwNDVmMTFkODAwY2U1ZjQxYjQzZjU1OGRjMjk2NjFkNA==
5
+ data.tar.gz: !binary |-
6
+ Y2MxYmFhMTI5MWY2N2FjZWI3YmI0NmU5NDkyYWRlMzIxNmRkOWZjNg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MDYwNTRlOWEzZDMyZTE5MzhjNjhkNzBhYjg3M2IyMWE4NjU0MTU3ZmU0M2Rh
10
+ YTRkNTE5Y2QxYzFkOGM2NDFiNjQxNWY1NzZlZjkxNmY0NjBiNzMyMWNlZDVi
11
+ Mjc5Y2Q4MTU1NGY0MTY2ODMxZjkxNTYxNDhhMjRlYjU1NWQ3ZWU=
12
+ data.tar.gz: !binary |-
13
+ NTNjOGNmYzdkZDljZmZjYzk0MjllMDEzNTQyYTZhMTIyZDY2ZjY1ZTU0Zjcy
14
+ ODBkZmJjYjI4NjM1NzFkNTljOWRlZGVmMjY5NDg0YzNkNzYwZTE2ZTg0NTQx
15
+ YzE4OTY5YWVjOTQ3NTU1MDRjMjYzYTA0MjUxZWEzMWVhYWM0ZjE=
data/README.md CHANGED
@@ -74,14 +74,7 @@ Please let me know if you have any problems with other gems, and I will either f
74
74
 
75
75
  ### Capistrano
76
76
 
77
- `turbo-sprockets-rails3` should work out of the box with the latest Capistrano on the `master` branch, which now supports asset rollback and automatic expiry (implemented [here](https://github.com/capistrano/capistrano/pull/281)).
78
-
79
- Until they release a new version of the gem, add the following line to your `Gemfile`:
80
-
81
-
82
- ```ruby
83
- gem 'capistrano', :github => 'capistrano/capistrano'
84
- ```
77
+ `turbo-sprockets-rails3` should work out of the box with the latest version of Capistrano.
85
78
 
86
79
  ### Heroku
87
80
 
@@ -36,10 +36,10 @@ module Sprockets
36
36
  abs_digest_path = "#{@target}/#{digest_path}"
37
37
  abs_logical_path = "#{@target}/#{logical_path}"
38
38
 
39
- mtime = File.mtime(abs_digest_path)
40
-
41
39
  # Remove known digests from css & js
42
40
  if abs_digest_path.match(/\.(?:js|css)$/)
41
+ mtime = File.mtime(abs_digest_path)
42
+
43
43
  asset_body = File.read(abs_digest_path)
44
44
 
45
45
  # Find all hashes in the asset body with a leading '-'
@@ -68,7 +68,7 @@ module Sprockets
68
68
  else
69
69
  # Otherwise, treat file as binary and copy it.
70
70
  # Ignore paths that have no digests, such as READMEs
71
- unless abs_digest_path == abs_logical_path
71
+ unless !File.exist?(abs_digest_path) || abs_digest_path == abs_logical_path
72
72
  FileUtils.cp_r abs_digest_path, abs_logical_path, :remove_destination => true
73
73
  env.logger.debug "Copied binary asset to #{logical_path}"
74
74
 
@@ -1,3 +1,3 @@
1
1
  module TurboSprockets
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo-sprockets-rails3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
5
- prerelease:
4
+ version: 0.3.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nathan Broadbent
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-11 00:00:00.000000000 Z
11
+ date: 2013-08-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sprockets
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
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: railties
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>'
36
32
  - !ruby/object:Gem::Version
@@ -41,7 +37,6 @@ dependencies:
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
41
  - - ! '>'
47
42
  - !ruby/object:Gem::Version
@@ -56,93 +51,86 @@ executables: []
56
51
  extensions: []
57
52
  extra_rdoc_files: []
58
53
  files:
59
- - lib/turbo-sprockets-rails3.rb
60
- - lib/turbo-sprockets/version.rb
61
- - lib/turbo-sprockets/tasks/assets.rake
54
+ - lib/sprockets/asset_with_dependencies.rb
55
+ - lib/sprockets/static_non_digest_generator.rb
56
+ - lib/sprockets/unprocessed_asset.rb
62
57
  - lib/turbo-sprockets/railtie.rb
63
- - lib/turbo-sprockets/sprockets_overrides/static_compiler.rb
58
+ - lib/turbo-sprockets/sprockets_overrides/asset.rb
64
59
  - lib/turbo-sprockets/sprockets_overrides/base.rb
65
60
  - lib/turbo-sprockets/sprockets_overrides/bundled_asset.rb
66
- - lib/turbo-sprockets/sprockets_overrides/index.rb
67
- - lib/turbo-sprockets/sprockets_overrides/asset.rb
68
61
  - lib/turbo-sprockets/sprockets_overrides/environment.rb
62
+ - lib/turbo-sprockets/sprockets_overrides/index.rb
69
63
  - lib/turbo-sprockets/sprockets_overrides/processed_asset.rb
70
- - lib/sprockets/static_non_digest_generator.rb
71
- - lib/sprockets/asset_with_dependencies.rb
72
- - lib/sprockets/unprocessed_asset.rb
64
+ - lib/turbo-sprockets/sprockets_overrides/static_compiler.rb
65
+ - lib/turbo-sprockets/tasks/assets.rake
66
+ - lib/turbo-sprockets/version.rb
67
+ - lib/turbo-sprockets-rails3.rb
73
68
  - MIT-LICENSE
74
69
  - Rakefile
75
70
  - README.md
76
- - test/sprockets_helper_test.rb
71
+ - test/abstract_unit.rb
72
+ - test/assets_debugging_test.rb
73
+ - test/assets_test.rb
77
74
  - test/fixtures/alternate/stylesheets/style.css
75
+ - test/fixtures/app/fonts/dir/font.ttf
76
+ - test/fixtures/app/fonts/font.ttf
78
77
  - test/fixtures/app/images/logo.png
79
78
  - test/fixtures/app/javascripts/application.js
80
- - test/fixtures/app/javascripts/extra.js
81
- - test/fixtures/app/javascripts/xmlhr.js
82
79
  - test/fixtures/app/javascripts/dir/xmlhr.js
80
+ - test/fixtures/app/javascripts/extra.js
83
81
  - test/fixtures/app/javascripts/foo.min.js
84
- - test/fixtures/app/stylesheets/style.css
82
+ - test/fixtures/app/javascripts/xmlhr.js
83
+ - test/fixtures/app/stylesheets/application.css
84
+ - test/fixtures/app/stylesheets/dir/style.css
85
85
  - test/fixtures/app/stylesheets/extra.css
86
+ - test/fixtures/app/stylesheets/style.css
86
87
  - test/fixtures/app/stylesheets/style.ext
87
- - test/fixtures/app/stylesheets/dir/style.css
88
- - test/fixtures/app/stylesheets/application.css
89
88
  - test/fixtures/app/stylesheets/style.min.css
90
- - test/fixtures/app/fonts/font.ttf
91
- - test/fixtures/app/fonts/dir/font.ttf
92
- - test/sprockets_helpers_abstract_unit.rb
93
- - test/assets_test.rb
94
- - test/assets_debugging_test.rb
89
+ - test/sprockets_helper_test.rb
95
90
  - test/sprockets_helper_with_routes_test.rb
96
- - test/abstract_unit.rb
91
+ - test/sprockets_helpers_abstract_unit.rb
97
92
  homepage: https://github.com/ndbroadbent/turbo-sprockets-rails3
98
93
  licenses: []
94
+ metadata: {}
99
95
  post_install_message:
100
96
  rdoc_options: []
101
97
  require_paths:
102
98
  - lib
103
99
  required_ruby_version: !ruby/object:Gem::Requirement
104
- none: false
105
100
  requirements:
106
101
  - - ! '>='
107
102
  - !ruby/object:Gem::Version
108
103
  version: '0'
109
- segments:
110
- - 0
111
- hash: -3574141377277606235
112
104
  required_rubygems_version: !ruby/object:Gem::Requirement
113
- none: false
114
105
  requirements:
115
106
  - - ! '>='
116
107
  - !ruby/object:Gem::Version
117
108
  version: '0'
118
- segments:
119
- - 0
120
- hash: -3574141377277606235
121
109
  requirements: []
122
110
  rubyforge_project:
123
- rubygems_version: 1.8.24
111
+ rubygems_version: 2.0.5
124
112
  signing_key:
125
- specification_version: 3
113
+ specification_version: 4
126
114
  summary: Supercharge your Rails 3 asset pipeline
127
115
  test_files:
128
- - test/sprockets_helper_test.rb
116
+ - test/abstract_unit.rb
117
+ - test/assets_debugging_test.rb
118
+ - test/assets_test.rb
129
119
  - test/fixtures/alternate/stylesheets/style.css
120
+ - test/fixtures/app/fonts/dir/font.ttf
121
+ - test/fixtures/app/fonts/font.ttf
130
122
  - test/fixtures/app/images/logo.png
131
123
  - test/fixtures/app/javascripts/application.js
132
- - test/fixtures/app/javascripts/extra.js
133
- - test/fixtures/app/javascripts/xmlhr.js
134
124
  - test/fixtures/app/javascripts/dir/xmlhr.js
125
+ - test/fixtures/app/javascripts/extra.js
135
126
  - test/fixtures/app/javascripts/foo.min.js
136
- - test/fixtures/app/stylesheets/style.css
127
+ - test/fixtures/app/javascripts/xmlhr.js
128
+ - test/fixtures/app/stylesheets/application.css
129
+ - test/fixtures/app/stylesheets/dir/style.css
137
130
  - test/fixtures/app/stylesheets/extra.css
131
+ - test/fixtures/app/stylesheets/style.css
138
132
  - test/fixtures/app/stylesheets/style.ext
139
- - test/fixtures/app/stylesheets/dir/style.css
140
- - test/fixtures/app/stylesheets/application.css
141
133
  - test/fixtures/app/stylesheets/style.min.css
142
- - test/fixtures/app/fonts/font.ttf
143
- - test/fixtures/app/fonts/dir/font.ttf
144
- - test/sprockets_helpers_abstract_unit.rb
145
- - test/assets_test.rb
146
- - test/assets_debugging_test.rb
134
+ - test/sprockets_helper_test.rb
147
135
  - test/sprockets_helper_with_routes_test.rb
148
- - test/abstract_unit.rb
136
+ - test/sprockets_helpers_abstract_unit.rb