i0n_rails3_generators 0.2.18 → 0.2.19
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/config/version.yml
CHANGED
@@ -47,8 +47,9 @@ end
|
|
47
47
|
copy_file "config/compass.rb", "#{Rails.root}/config/compass.rb"
|
48
48
|
end
|
49
49
|
|
50
|
-
def
|
50
|
+
def create_sass_extensions_and_rake_tasks
|
51
51
|
copy_file "lib/sass_extensions.rb", "#{Rails.root}/lib/sass_extensions.rb"
|
52
|
+
copy_file "lib/tasks/sass.rake", "#{Rails.root}/lib/tasks/sass.rake"
|
52
53
|
end
|
53
54
|
|
54
55
|
def create_sass_directory
|
@@ -0,0 +1,19 @@
|
|
1
|
+
namespace :sass do
|
2
|
+
|
3
|
+
task :sass_environment => :environment do
|
4
|
+
Sass::Plugin.on_updating_stylesheet { |template, css| puts "Building #{css} from #{template}" }
|
5
|
+
Sass::Plugin.on_not_updating_stylesheet { |template, css| puts "Skipping #{css}" }
|
6
|
+
end
|
7
|
+
|
8
|
+
desc "Forcefully updates the stylesheets generated by SASS."
|
9
|
+
task :build => :sass_environment do
|
10
|
+
Sass::Plugin.force_update_stylesheets
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Updates the out of date stylesheets generated by SASS."
|
14
|
+
task :update => :sass_environment do
|
15
|
+
Sass::Plugin.update_stylesheets
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: i0n_rails3_generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.19
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ian Alexander Wood (i0n)
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-12 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: shoulda
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- lib/generators/i0n/layout/templates/config/compass.rb
|
88
88
|
- lib/generators/i0n/layout/templates/config/initializers/compass.rb
|
89
89
|
- lib/generators/i0n/layout/templates/lib/sass_extensions.rb
|
90
|
+
- lib/generators/i0n/layout/templates/lib/tasks/sass.rake
|
90
91
|
- lib/generators/i0n/layout/templates/public/javascripts/application.js
|
91
92
|
- lib/generators/i0n/layout/templates/public/javascripts/lib/client.js
|
92
93
|
- lib/generators/i0n/layout/templates/public/javascripts/lib/create_html5_elements.js
|
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
133
|
requirements: []
|
133
134
|
|
134
135
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.7.
|
136
|
+
rubygems_version: 1.7.2
|
136
137
|
signing_key:
|
137
138
|
specification_version: 3
|
138
139
|
summary: Custom Rails 3 Generators
|