whtt-eric-beet 0.6.10 → 0.6.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/beet/interaction.rb +1 -1
- data/lib/beet/recipes/rails3/auth/devise.rb +2 -0
- data/lib/beet/recipes/rails3/css/compass.rb +46 -0
- data/lib/beet/recipes/rails3/css/haml.rb +3 -0
- data/whtt-eric-beet.gemspec +4 -3
- metadata +6 -5
- data/lib/beet/recipes/rails3/css/boilerplate.rb +0 -41
data/Rakefile
CHANGED
@@ -4,11 +4,11 @@ require 'rake'
|
|
4
4
|
begin
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "beet"
|
7
|
+
gem.name = "whtt-eric-beet"
|
8
8
|
gem.summary = %Q{A gem to help with easily generating projects}
|
9
9
|
gem.email = "jack.dempsey@gmail.com"
|
10
10
|
gem.homepage = "http://github.com/jackdempsey/beet"
|
11
|
-
gem.authors = ["Jack Dempsey"]
|
11
|
+
gem.authors = ["Jack Dempsey", "Eric Salczynski"]
|
12
12
|
gem.add_dependency "thor", "~> 0.14.0"
|
13
13
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
14
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.11
|
data/lib/beet/interaction.rb
CHANGED
@@ -0,0 +1,46 @@
|
|
1
|
+
gem "compass", :version => ">= 0.11.1"
|
2
|
+
|
3
|
+
say("\nCompass recommends that you keep your Sass stylesheets in app/stylesheets")
|
4
|
+
say("instead of the Sass default location of public/stylesheets/sass\n")
|
5
|
+
sass_dir = yes?("Is this OK? (Y/n)") ? "app/stylesheets" : "public/stylesheets/sass"
|
6
|
+
|
7
|
+
say("\nCompass recommends that you keep your compiled css in public/stylesheets/compiled/")
|
8
|
+
say("instead the Sass default of public/stylesheets/")
|
9
|
+
say("However, if you're exclusively using Sass, then public/stylesheets/ is recommended.\n")
|
10
|
+
css_dir = yes?("Emit compiled stylesheets to public/stylesheets/compiled/? (Y/n)") ? "public/stylesheets/compiled" : "public/stylesheets"
|
11
|
+
|
12
|
+
say("\nThe compass output syntax can be either sass or scss. The default is scss.")
|
13
|
+
syntax = yes?("Use scss output? (Y/n)") ? "scss" : "sass"
|
14
|
+
|
15
|
+
framework = ask("\nWhich Compass framework would you like to load? Compass, blueprint, html5-boilerplate, susy? (default: compass)")
|
16
|
+
|
17
|
+
case framework.downcase
|
18
|
+
when "blueprint"
|
19
|
+
options = "--using blueprint"
|
20
|
+
when "html5-boilerplate"
|
21
|
+
gem "haml"
|
22
|
+
gem "html5-boilerplate"
|
23
|
+
options = "--require html5-boilerplate --using html5-boilerplate"
|
24
|
+
when "susy"
|
25
|
+
gem "compass-susy-plugin"
|
26
|
+
options = "--require susy --using susy"
|
27
|
+
else
|
28
|
+
options = ""
|
29
|
+
end
|
30
|
+
|
31
|
+
rvm "bundle install"
|
32
|
+
|
33
|
+
options += " --syntax #{syntax} --css-dir #{css_dir} --sass-dir #{sass_dir}"
|
34
|
+
rvm "compass init rails #{options} --force"
|
35
|
+
|
36
|
+
append_file 'config/compass.rb', <<-RUBY.gsub(/^ {2}/, '')
|
37
|
+
project_path = Compass::AppIntegration::Rails.root
|
38
|
+
|
39
|
+
environment = Compass::AppIntegration::Rails.env
|
40
|
+
|
41
|
+
if Compass::AppIntegration::Rails.env == :development
|
42
|
+
output_style = :nested
|
43
|
+
else
|
44
|
+
output_style = :compressed
|
45
|
+
end
|
46
|
+
RUBY
|
data/whtt-eric-beet.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{whtt-eric-beet}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jack Dempsey", "Eric Salczynski"]
|
12
|
-
s.date = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-10}
|
13
13
|
s.default_executable = %q{beet}
|
14
14
|
s.email = %q{jack.dempsey@gmail.com}
|
15
15
|
s.executables = ["beet"]
|
@@ -69,7 +69,8 @@ Gem::Specification.new do |s|
|
|
69
69
|
"lib/beet/recipes/rails3/admin_interface/rails_admin.rb",
|
70
70
|
"lib/beet/recipes/rails3/auth/devise.rb",
|
71
71
|
"lib/beet/recipes/rails3/clean_files.rb",
|
72
|
-
"lib/beet/recipes/rails3/css/
|
72
|
+
"lib/beet/recipes/rails3/css/compass.rb",
|
73
|
+
"lib/beet/recipes/rails3/css/haml.rb",
|
73
74
|
"lib/beet/recipes/rails3/css/reset.rb",
|
74
75
|
"lib/beet/recipes/rails3/css/sass.rb",
|
75
76
|
"lib/beet/recipes/rails3/db/mysql.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whtt-eric-beet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 11
|
10
|
+
version: 0.6.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jack Dempsey
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-05-
|
19
|
+
date: 2011-05-10 00:00:00 -04:00
|
20
20
|
default_executable: beet
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -144,7 +144,8 @@ files:
|
|
144
144
|
- lib/beet/recipes/rails3/admin_interface/rails_admin.rb
|
145
145
|
- lib/beet/recipes/rails3/auth/devise.rb
|
146
146
|
- lib/beet/recipes/rails3/clean_files.rb
|
147
|
-
- lib/beet/recipes/rails3/css/
|
147
|
+
- lib/beet/recipes/rails3/css/compass.rb
|
148
|
+
- lib/beet/recipes/rails3/css/haml.rb
|
148
149
|
- lib/beet/recipes/rails3/css/reset.rb
|
149
150
|
- lib/beet/recipes/rails3/css/sass.rb
|
150
151
|
- lib/beet/recipes/rails3/db/mysql.rb
|
@@ -1,41 +0,0 @@
|
|
1
|
-
gem "compass"
|
2
|
-
gem "haml"
|
3
|
-
gem "html5-boilerplate"
|
4
|
-
|
5
|
-
|
6
|
-
say("Compass recommends that you keep your stylesheets in app/stylesheets")
|
7
|
-
say("instead of the Sass default location of public/stylesheets/sass.")
|
8
|
-
css_dir = yes?("Is this OK? (Y/n)") ? "app/stylesheets" : "public/stylesheets/sass"
|
9
|
-
|
10
|
-
say("Compass recommends that you keep your compiled css in public/stylesheets/compiled/")
|
11
|
-
say("instead the Sass default of public/stylesheets/.")
|
12
|
-
say("However, if you're exclusively using Sass, then public/stylesheets/ is recommended.")
|
13
|
-
sass_dir = yes?("Emit compiled stylesheets to public/stylesheets/compiled/? (Y/n)") ? "public/stylesheets/compiled" : "public/stylesheets"
|
14
|
-
|
15
|
-
say("The compass output syntax can be either sass or scss. The default is scss.")
|
16
|
-
syntax = yes?("Use scss output? (Y/n)") ? "scss" : "sass"
|
17
|
-
|
18
|
-
framework = ask("Which Compass framework would you like to use (default: blueprint)?")
|
19
|
-
framework = 'blueprint' if framework.empty?
|
20
|
-
|
21
|
-
|
22
|
-
file 'config/compass.rb', <<-RUBY.gsub(/^ {2}/, '')
|
23
|
-
require 'html5-boilerplate'
|
24
|
-
|
25
|
-
project_type = :rails
|
26
|
-
project_path = Compass::AppIntegration::Rails.root
|
27
|
-
http_path = "/"
|
28
|
-
css_dir = "#{css_dir}"
|
29
|
-
sass_dir = "#{sass_dir}"
|
30
|
-
environment = Compass::AppIntegration::Rails.env
|
31
|
-
|
32
|
-
if Compass::AppIntegration::Rails.env == :development
|
33
|
-
output_style = :nested
|
34
|
-
else
|
35
|
-
output_style = :compressed
|
36
|
-
end
|
37
|
-
RUBY
|
38
|
-
|
39
|
-
rvm "bundle install"
|
40
|
-
|
41
|
-
rvm "compass init rails -r html5-boilerplate -u html5-boilerplate -x #{syntax} --using #{framework} -c config/compass.rb --force"
|