bard 0.10.0 → 0.11.0
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/VERSION +1 -1
- data/bard.gemspec +4 -2
- data/lib/bard/template.rb +2 -2
- data/lib/bard/template/compass.rb +140 -0
- data/lib/bard/template/gems.rb +83 -0
- data/lib/bard/template/initial.rb +2 -63
- data/lib/bard/template/testing.rb +3 -16
- metadata +6 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.11.0
|
data/bard.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bard}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.11.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Micah Geisel", "Nick Hogle"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-26}
|
13
13
|
s.default_executable = %q{bard}
|
14
14
|
s.description = %q{This immaculate work of engineering genius allows mere mortals to collaborate with beings of transcendent intelligence like Micah, Michael, and Nick.}
|
15
15
|
s.email = %q{info@botandrose.com}
|
@@ -50,7 +50,9 @@ Gem::Specification.new do |s|
|
|
50
50
|
"lib/bard/template.rb",
|
51
51
|
"lib/bard/template/adva.rb",
|
52
52
|
"lib/bard/template/authlogic.rb",
|
53
|
+
"lib/bard/template/compass.rb",
|
53
54
|
"lib/bard/template/exception_notifier.rb",
|
55
|
+
"lib/bard/template/gems.rb",
|
54
56
|
"lib/bard/template/helper.rb",
|
55
57
|
"lib/bard/template/initial.rb",
|
56
58
|
"lib/bard/template/static_pages.rb",
|
data/lib/bard/template.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
# bot and rose design rails template
|
3
3
|
require "bard/template/helper"
|
4
4
|
|
5
|
-
%w(initial testing exception_notifier static_pages adva).each do |template_file|
|
5
|
+
%w(initial gems compass testing exception_notifier static_pages adva).each do |template_file|
|
6
6
|
bard_load_template template_file
|
7
7
|
end
|
8
|
-
|
8
|
+
system "cd #{project_name}"
|
9
9
|
puts "Project #{project_name} created! Ask Micah to set up staging server."
|
@@ -0,0 +1,140 @@
|
|
1
|
+
run "compass init rails . --sass-dir=app/stylesheets --css-dir public/stylesheets"
|
2
|
+
|
3
|
+
file "app/stylesheets/application.sass", <<-END
|
4
|
+
@import "constant"
|
5
|
+
|
6
|
+
@import "blueprint"
|
7
|
+
@import "compass/reset"
|
8
|
+
@import "compass/utilities"
|
9
|
+
@import "compass/layout"
|
10
|
+
|
11
|
+
=blueprint($body_selector = "body")
|
12
|
+
+blueprint-typography($body_selector)
|
13
|
+
+blueprint-utilities
|
14
|
+
+blueprint-debug
|
15
|
+
+blueprint-interaction
|
16
|
+
+blueprint-colors
|
17
|
+
|
18
|
+
@import "general"
|
19
|
+
END
|
20
|
+
|
21
|
+
file "app/stylesheets/_constant.sass", <<-END
|
22
|
+
$blueprint_grid_columns: 24
|
23
|
+
$blueprint_grid_width: 30px
|
24
|
+
$blueprint_grid_margin: 10px
|
25
|
+
|
26
|
+
$primaryColor: blue
|
27
|
+
|
28
|
+
=box-shadow( $blur, $color )
|
29
|
+
-moz-box-shadow: 0px 0px $blur $color
|
30
|
+
-webkit-box-shadow: 0px 0px $blur $color
|
31
|
+
=text-shadow($px, $color)
|
32
|
+
text-shadow: 0px 0px $px $color
|
33
|
+
=border-radius( $radius )
|
34
|
+
-moz-border-radius: $radius
|
35
|
+
-webkit-border-radius: $radius
|
36
|
+
border-radius: $radius
|
37
|
+
=border-radius-specific( $location1, $location2, $radius )
|
38
|
+
-moz-border-radius-\#{$location1}\#{$location2}: $radius
|
39
|
+
-webkit-border-\#{$location1}-\#{$location2}-radius: $radius
|
40
|
+
border-\#{$location1}-\#{$location2}-radius: $radius
|
41
|
+
END
|
42
|
+
|
43
|
+
file "app/stylesheets/_general.sass", <<-END
|
44
|
+
body
|
45
|
+
font: 13px normal Arial, sans-serif
|
46
|
+
color: #373737
|
47
|
+
|
48
|
+
.bold, b, strong
|
49
|
+
font-weight: bold
|
50
|
+
|
51
|
+
a
|
52
|
+
text-decoration: none
|
53
|
+
color: $primaryColor
|
54
|
+
img
|
55
|
+
border: 1px solid transparent
|
56
|
+
|
57
|
+
p
|
58
|
+
margin: 12px 0
|
59
|
+
line-height: 1.4
|
60
|
+
text-align: justify
|
61
|
+
|
62
|
+
ul, ol, li
|
63
|
+
margin: 0
|
64
|
+
padding: 0
|
65
|
+
|
66
|
+
h1, h2, h3, h4, h5, h6
|
67
|
+
margin: 0
|
68
|
+
padding: 0
|
69
|
+
|
70
|
+
h2, h3, h4
|
71
|
+
text-transform: uppercase
|
72
|
+
|
73
|
+
h2, h3
|
74
|
+
color: black
|
75
|
+
|
76
|
+
h2
|
77
|
+
font: 2em bold "Arial Black"
|
78
|
+
line-height: 1
|
79
|
+
a
|
80
|
+
color: black
|
81
|
+
&:hover
|
82
|
+
color: $primaryColor
|
83
|
+
|
84
|
+
h3
|
85
|
+
font-weight: bold
|
86
|
+
font-size: 1.1em
|
87
|
+
|
88
|
+
h4
|
89
|
+
font-size: 0.9em
|
90
|
+
border-bottom: 1px solid #3f3f3f
|
91
|
+
color: #3f3f3f
|
92
|
+
margin-bottom: 9px
|
93
|
+
|
94
|
+
// tables
|
95
|
+
|
96
|
+
table
|
97
|
+
border-collapse: none
|
98
|
+
margin-bottom: 6px
|
99
|
+
tr.even
|
100
|
+
background: #ebebeb
|
101
|
+
td
|
102
|
+
line-height: 1.25
|
103
|
+
vertical-align: top
|
104
|
+
|
105
|
+
// forms
|
106
|
+
|
107
|
+
.field
|
108
|
+
margin: 0px 0 10px
|
109
|
+
|
110
|
+
label
|
111
|
+
display: inline-block
|
112
|
+
width: 120px
|
113
|
+
text-align: right
|
114
|
+
margin-right: 9px
|
115
|
+
&.reqd
|
116
|
+
font-weight: bold
|
117
|
+
font-style: normal
|
118
|
+
&.opt
|
119
|
+
color: #666666
|
120
|
+
|
121
|
+
select
|
122
|
+
width: 130px
|
123
|
+
|
124
|
+
input, select
|
125
|
+
&.sm
|
126
|
+
width: 60px
|
127
|
+
&.lg
|
128
|
+
width: 407px
|
129
|
+
&+label
|
130
|
+
width: auto
|
131
|
+
margin-left: 9px
|
132
|
+
&.radio
|
133
|
+
&+label
|
134
|
+
font-size: 1em
|
135
|
+
text-transform: inherit
|
136
|
+
color: #242424
|
137
|
+
margin-left: 0
|
138
|
+
END
|
139
|
+
|
140
|
+
run "compass compile"
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# Install .rvmrc
|
2
|
+
run "rvm use ree-1.8.7-2010.02@#{project_name} --rvmrc --create"
|
3
|
+
begin
|
4
|
+
require "rvm"
|
5
|
+
RVM.gemset_use! project_name
|
6
|
+
rescue LoadError
|
7
|
+
end
|
8
|
+
|
9
|
+
# Install bundler files
|
10
|
+
file "Gemfile", <<-END
|
11
|
+
source "http://gemcutter.org"
|
12
|
+
|
13
|
+
gem "rails", "2.3.5"
|
14
|
+
gem "ruby-mysql"
|
15
|
+
gem "bard-rake", :require => false
|
16
|
+
gem "ruby-debug", :group => [:development, :test, :cucumber]
|
17
|
+
|
18
|
+
gem "haml", "~>3.0"
|
19
|
+
gem "compass", "~>0.10"
|
20
|
+
|
21
|
+
group :test, :cucumber do
|
22
|
+
gem "autotest-rails"
|
23
|
+
gem "rspec-rails", "~>1.3", :require => false
|
24
|
+
gem "machinist"
|
25
|
+
gem "faker"
|
26
|
+
end
|
27
|
+
|
28
|
+
group :cucumber do
|
29
|
+
gem "cucumber-rails", :require => false
|
30
|
+
gem "webrat"
|
31
|
+
gem "database_cleaner"
|
32
|
+
gem "pickle"
|
33
|
+
gem "email_spec"
|
34
|
+
end
|
35
|
+
END
|
36
|
+
run "bundle install --relock"
|
37
|
+
|
38
|
+
file_inject "config/boot.rb",
|
39
|
+
"# All that for this:", <<-END, :before
|
40
|
+
class Rails::Boot
|
41
|
+
def run
|
42
|
+
load_initializer
|
43
|
+
|
44
|
+
Rails::Initializer.class_eval do
|
45
|
+
def load_gems
|
46
|
+
@bundler_loaded ||= Bundler.require :default, Rails.env
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
Rails::Initializer.run(:set_load_path)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
END
|
55
|
+
|
56
|
+
file "config/preinitializer.rb", <<-END
|
57
|
+
begin
|
58
|
+
require "rubygems"
|
59
|
+
require "bundler"
|
60
|
+
rescue LoadError
|
61
|
+
raise "Could not load the bundler gem. Install it with `gem install bundler`."
|
62
|
+
end
|
63
|
+
|
64
|
+
if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
|
65
|
+
raise RuntimeError, "Your bundler version is too old." +
|
66
|
+
"Run `gem install bundler` to upgrade."
|
67
|
+
end
|
68
|
+
|
69
|
+
begin
|
70
|
+
# Install dependencies if needed
|
71
|
+
`bundle check`
|
72
|
+
system "bundle install" if not $?.success?
|
73
|
+
# Set up load paths for all bundled gems
|
74
|
+
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
|
75
|
+
Bundler.setup
|
76
|
+
rescue Bundler::GemNotFound
|
77
|
+
raise RuntimeError, "Bundler couldn't find some gems." +
|
78
|
+
"Did you run `bundle install`?"
|
79
|
+
end
|
80
|
+
END
|
81
|
+
|
82
|
+
file "config/setup_load_paths.rb", ""
|
83
|
+
|
@@ -13,12 +13,6 @@ plugin "acts_as_list", :git => "git://github.com/rails/acts_as_list.git"
|
|
13
13
|
plugin 'asset_packager', :git => 'git://github.com/sbecker/asset_packager.git'
|
14
14
|
#plugin 'fckeditor', :git => 'git://github.com/originofstorms/fckeditor.git'
|
15
15
|
|
16
|
-
# Install gems
|
17
|
-
gem "bard-rake", :version => ">=0.1.3"
|
18
|
-
gem "haml", :version => "2.2.24"
|
19
|
-
gem "compass", :version => "0.8.17"
|
20
|
-
rake "gems:install"
|
21
|
-
|
22
16
|
# Set up databases
|
23
17
|
file "config/database.sample.yml", <<-END
|
24
18
|
login: &login
|
@@ -81,60 +75,6 @@ file "app/views/layouts/application.html.haml", <<-END
|
|
81
75
|
= yield :js
|
82
76
|
END
|
83
77
|
|
84
|
-
run "compass --rails --sass-dir app/sass --css-dir public/stylesheets ."
|
85
|
-
|
86
|
-
# application.sass
|
87
|
-
file "app/sass/application.sass", <<-END
|
88
|
-
// global
|
89
|
-
|
90
|
-
@import constant.sass
|
91
|
-
|
92
|
-
@import blueprint.sass
|
93
|
-
@import compass/reset.sass
|
94
|
-
@import compass/utilities.sass
|
95
|
-
@import compass/misc.sass
|
96
|
-
@import compass/layout.sass
|
97
|
-
@import blueprint/modules/buttons.sass
|
98
|
-
|
99
|
-
=blueprint(!body_selector = "body")
|
100
|
-
+blueprint-typography(!body_selector)
|
101
|
-
+blueprint-utilities
|
102
|
-
+blueprint-debug
|
103
|
-
+blueprint-interaction
|
104
|
-
+blueprint-colors
|
105
|
-
|
106
|
-
.left
|
107
|
-
+float-left
|
108
|
-
.right
|
109
|
-
+float-right
|
110
|
-
|
111
|
-
END
|
112
|
-
|
113
|
-
# constant.sass
|
114
|
-
file "app/sass/_constant.sass", <<-END
|
115
|
-
// constant
|
116
|
-
|
117
|
-
!blueprint_grid_columns = 24
|
118
|
-
!blueprint_grid_width = 30px
|
119
|
-
!blueprint_grid_margin = 10px
|
120
|
-
|
121
|
-
=caps
|
122
|
-
:font-variant small-caps
|
123
|
-
=box-shadow( !blur, !color )
|
124
|
-
:-moz-box-shadow= 0px 0px !blur !color
|
125
|
-
=border-radius( !radius )
|
126
|
-
:-moz-border-radius= !radius
|
127
|
-
:-webkit-border-radius= !radius
|
128
|
-
:border-radius= !radius
|
129
|
-
=auto
|
130
|
-
:display inline-block
|
131
|
-
+float-left
|
132
|
-
:width auto
|
133
|
-
=bordering(!location, !color)
|
134
|
-
:border-\#{!location}= 1px solid !color
|
135
|
-
|
136
|
-
END
|
137
|
-
|
138
78
|
file "public/javascripts/application.js", <<-END
|
139
79
|
$(function() {
|
140
80
|
});
|
@@ -153,14 +93,13 @@ stylesheets:
|
|
153
93
|
- ie
|
154
94
|
END
|
155
95
|
|
156
|
-
run "script/runner 'Sass::Plugin.options[:always_update] = true; Sass::Plugin.update_stylesheets'"
|
157
|
-
|
158
96
|
plugin "input_css", :git => "git://github.com/rpheath/input_css.git"
|
159
97
|
|
160
98
|
# Set up git repository
|
161
99
|
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
|
162
100
|
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore}
|
163
101
|
file '.gitignore', <<-END
|
102
|
+
.bundle
|
164
103
|
log/*.log
|
165
104
|
tmp/*
|
166
105
|
!tmp/.gitignore
|
@@ -199,4 +138,4 @@ git :commit => "-m'initial commit.'"
|
|
199
138
|
git :checkout => "-b integration"
|
200
139
|
|
201
140
|
git :remote => "add origin git@git.botandrose.com:#{project_name}.git"
|
202
|
-
run "cap staging:bootstrap"
|
141
|
+
# run "cap staging:bootstrap"
|
@@ -1,22 +1,9 @@
|
|
1
1
|
require "bard/template/helper"
|
2
2
|
|
3
|
-
# Testing Environment
|
4
|
-
with_options :env => :cucumber, :lib => false do |env|
|
5
|
-
env.gem "cucumber", :version => "0.4.3"
|
6
|
-
env.gem "webrat", :version => "0.5.3"
|
7
|
-
env.gem "rspec", :version => "1.2.9"
|
8
|
-
env.gem "rspec-rails", :version => "1.2.9"
|
9
|
-
env.gem "email_spec", :version => "0.4.0"
|
10
|
-
env.gem "machinist", :version => "1.0.6"
|
11
|
-
env.gem "pickle", :version => "0.2.1"
|
12
|
-
env.gem "faker", :version => "0.3.1"
|
13
|
-
end
|
14
|
-
rake "gems:install RAILS_ENV=cucumber"
|
15
|
-
|
16
3
|
plugin "cucumber_rails_debug", :git => "git://github.com/mischa/cucumber_rails_debug"
|
17
4
|
|
18
5
|
generate "rspec"
|
19
|
-
generate "cucumber"
|
6
|
+
generate "cucumber"
|
20
7
|
generate "email_spec"
|
21
8
|
generate "pickle"
|
22
9
|
|
@@ -53,5 +40,5 @@ run "rake db:create RAILS_ENV=test"
|
|
53
40
|
git :add => "."
|
54
41
|
git :commit => "-m'added rspec and cucumber setups.'"
|
55
42
|
|
56
|
-
run "cap stage"
|
57
|
-
run "cap staging:bootstrap:ci"
|
43
|
+
# run "cap stage"
|
44
|
+
# run "cap staging:bootstrap:ci"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 11
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.11.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Micah Geisel
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-07-
|
19
|
+
date: 2010-07-26 00:00:00 -07:00
|
20
20
|
default_executable: bard
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -230,7 +230,9 @@ files:
|
|
230
230
|
- lib/bard/template.rb
|
231
231
|
- lib/bard/template/adva.rb
|
232
232
|
- lib/bard/template/authlogic.rb
|
233
|
+
- lib/bard/template/compass.rb
|
233
234
|
- lib/bard/template/exception_notifier.rb
|
235
|
+
- lib/bard/template/gems.rb
|
234
236
|
- lib/bard/template/helper.rb
|
235
237
|
- lib/bard/template/initial.rb
|
236
238
|
- lib/bard/template/static_pages.rb
|