turbo-sprockets-rails3 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -60,10 +60,10 @@ Fully compatible.
60
60
 
61
61
  ### [wicked_pdf](https://github.com/mileszs/wicked_pdf)
62
62
 
63
- Fully compatible. However, you will need to use the latest code on the `wicked_pdf` master branch until a version newer than `0.7.9` is released. Add the following line to your `Gemfile`:
63
+ Fully compatible starting from version `0.8.0`.
64
64
 
65
65
  ```ruby
66
- gem 'wicked_pdf', :github => "mileszs/wicked_pdf"
66
+ gem 'wicked_pdf', '>= 0.8.0'
67
67
  ```
68
68
 
69
69
  <hr/>
@@ -74,12 +74,13 @@ 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 Capistrano.
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`:
78
80
 
79
- You may also like to take a look at my [Capistrano Pull Request](https://github.com/capistrano/capistrano/pull/281) that attempts to solve the problems of asset rollback and invalidation. You can try out this solution by adding the following to your Gemfile:
80
81
 
81
82
  ```ruby
82
- gem "capistrano", :github => "ndbroadbent/capistrano", :branch => "assets_rollback_and_expiry"
83
+ gem 'capistrano', :github => 'capistrano/capistrano'
83
84
  ```
84
85
 
85
86
  ### Heroku
@@ -112,3 +113,5 @@ If you would like to view debugging information in your terminal during the `ass
112
113
  config.log_level = :debug
113
114
  config.logger = Logger.new(STDOUT)
114
115
  ```
116
+
117
+
@@ -1,4 +1,5 @@
1
1
  require "fileutils"
2
+ require 'shellwords'
2
3
 
3
4
  # Clear all assets tasks from sprockets railtie,
4
5
  # but preserve any extra actions added via 'enhance'
@@ -74,13 +75,11 @@ namespace :assets do
74
75
  # This time reflects the last time the assets were being used.
75
76
  if digest.nil?
76
77
  ::Rails.logger.debug "Updating mtimes for current assets..."
77
- known_assets.each do |asset|
78
- full_path = File.join(target, asset)
79
- if File.exist?(full_path)
80
- # File.utime raises 'Operation not permitted' unless user is owner of file.
81
- # Non-owners have permission to update mtime to the current time using 'touch'.
82
- `touch "#{full_path}"`
83
- end
78
+ paths = known_assets.map { |asset| File.join(target, asset) }
79
+ paths.each_slice(1000) do |slice|
80
+ # File.utime raises 'Operation not permitted' unless user is owner of file.
81
+ # Non-owners have permission to update mtime to the current time using 'touch'.
82
+ `touch -c #{slice.shelljoin}`
84
83
  end
85
84
  end
86
85
 
@@ -1,3 +1,3 @@
1
1
  module TurboSprockets
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo-sprockets-rails3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-07 00:00:00.000000000 Z
12
+ date: 2013-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -1040970877873679505
111
+ hash: -2134456454357722877
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -1040970877873679505
120
+ hash: -2134456454357722877
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.24