smurf 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +4 -1
- data/lib/smurf.rb +4 -4
- data/smurf.gemspec +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ task :default => :test
|
|
7
7
|
|
8
8
|
desc 'Test the load_model plugin.'
|
9
9
|
Rake::TestTask.new(:test) do |t|
|
10
|
-
t.libs += ['
|
10
|
+
t.libs += ['test']
|
11
11
|
t.pattern = 'test/**/*_test.rb'
|
12
12
|
t.verbose = true
|
13
13
|
end
|
@@ -20,3 +20,6 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('README')
|
21
21
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
22
22
|
end
|
23
|
+
|
24
|
+
task :console do
|
25
|
+
end
|
data/lib/smurf.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'smurf/javascript'
|
2
2
|
require 'smurf/stylesheet'
|
3
3
|
|
4
|
-
if Rails.respond_to?(:version) && Rails.version
|
5
|
-
# Support for Rails
|
4
|
+
if Rails.respond_to?(:version) && Rails.version == "2.2.1"
|
5
|
+
# Support for Rails == 2.2.1
|
6
6
|
module Smurf
|
7
7
|
|
8
8
|
module JavaScriptSources
|
@@ -19,7 +19,7 @@ if Rails.respond_to?(:version) && Rails.version =~ /^2\.2\./
|
|
19
19
|
ActionView::Helpers::AssetTagHelper::JavaScriptSources.send(:include, Smurf::JavaScriptSources)
|
20
20
|
ActionView::Helpers::AssetTagHelper::StylesheetSources.send(:include, Smurf::StylesheetSources)
|
21
21
|
else
|
22
|
-
# Support for
|
22
|
+
# Support for everything else
|
23
23
|
module ActionView::Helpers::AssetTagHelper
|
24
24
|
private
|
25
25
|
def join_asset_file_contents_with_minification(files)
|
@@ -33,4 +33,4 @@ else
|
|
33
33
|
end
|
34
34
|
alias_method_chain :join_asset_file_contents, :minification
|
35
35
|
end # ActionView::Helpers::AssetTagHelper
|
36
|
-
end
|
36
|
+
# end
|
data/smurf.gemspec
CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = "smurf"
|
3
3
|
s.summary = "Rails plugin to automatically minify JS and CSS when their bundles get cached"
|
4
4
|
s.description = "Rails plugin to automatically minify JS and CSS when their bundles get cached. Send in those patches!"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.2"
|
6
6
|
s.authors = ["Justin Knowlden"]
|
7
7
|
s.email = %w[gus@thumblemonks.com]
|
8
8
|
s.homepage = "http://github.com/thumblemonks/smurf"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smurf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Knowlden
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-12 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|