suspenders 0.2.3 → 0.2.4
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/Rakefile +1 -1
- data/features/rake_clean.feature +2 -0
- data/suspenders.gemspec +2 -4
- data/template/files/_javascript.html.erb +1 -1
- data/template/files/suspenders_layout.html.erb.erb +2 -2
- data/template/suspenders.rb +22 -16
- data/template/trout/Gemfile +11 -12
- metadata +5 -9
- data/template/trout/public/javascripts/jquery-ui.js +0 -1012
- data/template/trout/public/javascripts/jquery.js +0 -167
data/Rakefile
CHANGED
data/features/rake_clean.feature
CHANGED
|
@@ -4,6 +4,7 @@ Feature: Rake works in the suspended project
|
|
|
4
4
|
When I drop and create the required databases
|
|
5
5
|
And I run the rake task "db:create"
|
|
6
6
|
And I run the rake task "db:migrate"
|
|
7
|
+
And I run the rake task "db:test:prepare"
|
|
7
8
|
And I run the rake task "cucumber"
|
|
8
9
|
Then I see a successful response in the shell
|
|
9
10
|
|
|
@@ -11,5 +12,6 @@ Feature: Rake works in the suspended project
|
|
|
11
12
|
When I drop and create the required databases
|
|
12
13
|
And I generate "model post title:string"
|
|
13
14
|
And I run the rake task "db:migrate"
|
|
15
|
+
And I run the rake task "db:test:prepare"
|
|
14
16
|
And I run the rake task "spec"
|
|
15
17
|
Then I see a successful response in the shell
|
data/suspenders.gemspec
CHANGED
|
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
|
5
5
|
|
|
6
6
|
s.name = 'suspenders'
|
|
7
|
-
s.version = '0.2.
|
|
8
|
-
s.date = '
|
|
7
|
+
s.version = '0.2.4'
|
|
8
|
+
s.date = '2011-06-01'
|
|
9
9
|
|
|
10
10
|
s.summary = "Generate a Rails app using thoughtbot's best practices."
|
|
11
11
|
s.description = <<-HERE
|
|
@@ -52,8 +52,6 @@ rush to build something amazing; don't use it if you like missing deadlines.
|
|
|
52
52
|
template/files/time_formats.rb
|
|
53
53
|
template/suspenders.rb
|
|
54
54
|
template/trout/Gemfile
|
|
55
|
-
template/trout/public/javascripts/jquery-ui.js
|
|
56
|
-
template/trout/public/javascripts/jquery.js
|
|
57
55
|
template/trout/public/javascripts/prefilled_input.js
|
|
58
56
|
]
|
|
59
57
|
# = MANIFEST =
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<%%= link_to "Sign in", sign_in_path %>
|
|
15
15
|
<%% end -%>
|
|
16
16
|
</div>
|
|
17
|
-
<%%= render
|
|
17
|
+
<%%= render 'shared/flashes' -%>
|
|
18
18
|
<%%= yield %>
|
|
19
|
-
<%%= render
|
|
19
|
+
<%%= render 'shared/javascript' %>
|
|
20
20
|
</body>
|
|
21
21
|
</html>
|
data/template/suspenders.rb
CHANGED
|
@@ -69,14 +69,11 @@ template "suspenders_layout.html.erb.erb",
|
|
|
69
69
|
"app/views/layouts/application.html.erb",
|
|
70
70
|
:force => true
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
%w(jquery jquery-ui).each do |file|
|
|
75
|
-
trout "public/javascripts/#{file}.js"
|
|
76
|
-
end
|
|
72
|
+
trout 'Gemfile'
|
|
73
|
+
run "bundle install"
|
|
77
74
|
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
say "Let's use jQuery"
|
|
76
|
+
generate "jquery:install", "--ui"
|
|
80
77
|
|
|
81
78
|
say "Pulling in some common javascripts"
|
|
82
79
|
|
|
@@ -88,9 +85,6 @@ copy_file "README_FOR_SUSPENDERS", "doc/README_FOR_SUSPENDERS"
|
|
|
88
85
|
|
|
89
86
|
say "Get ready for bundler... (this will take a while)"
|
|
90
87
|
|
|
91
|
-
trout 'Gemfile'
|
|
92
|
-
run "bundle install"
|
|
93
|
-
|
|
94
88
|
say "Let's use MySQL"
|
|
95
89
|
|
|
96
90
|
template "mysql_database.yml.erb", "config/database.yml", :force => true
|
|
@@ -132,12 +126,23 @@ rake "flutie:install"
|
|
|
132
126
|
say "Ignore the right files"
|
|
133
127
|
|
|
134
128
|
concat_file "suspenders_gitignore", ".gitignore"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
129
|
+
|
|
130
|
+
["app/models",
|
|
131
|
+
"app/views/pages",
|
|
132
|
+
"db/migrate",
|
|
133
|
+
"log",
|
|
134
|
+
"public/images",
|
|
135
|
+
"spec/support",
|
|
136
|
+
"spec/lib",
|
|
137
|
+
"spec/models",
|
|
138
|
+
"spec/views",
|
|
139
|
+
"spec/controllers",
|
|
140
|
+
"spec/helpers",
|
|
141
|
+
"spec/support/matchers",
|
|
142
|
+
"spec/support/helpers",
|
|
143
|
+
"spec/support/shared_examples"].each do |dir|
|
|
144
|
+
empty_directory_with_gitkeep dir
|
|
145
|
+
end
|
|
141
146
|
|
|
142
147
|
say "Copying miscellaneous support files"
|
|
143
148
|
|
|
@@ -145,6 +150,7 @@ copy_file "errors.rb", "config/initializers/errors.rb"
|
|
|
145
150
|
copy_file "time_formats.rb", "config/initializers/time_formats.rb"
|
|
146
151
|
copy_file "body_class_helper.rb", "app/helpers/body_class_helper.rb"
|
|
147
152
|
|
|
153
|
+
|
|
148
154
|
say "Setting up a root route"
|
|
149
155
|
|
|
150
156
|
route "root :to => 'Clearance::Sessions#new'"
|
data/template/trout/Gemfile
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
source :rubygems
|
|
2
2
|
|
|
3
|
-
gem "rails", "
|
|
3
|
+
gem "rails", "~> 3.0.7"
|
|
4
4
|
gem "rack"
|
|
5
|
-
gem "clearance", "~> 0.
|
|
6
|
-
gem "
|
|
5
|
+
gem "clearance", "~> 0.11.1"
|
|
6
|
+
gem "sass"
|
|
7
7
|
gem "high_voltage"
|
|
8
|
-
gem "hoptoad_notifier"
|
|
8
|
+
gem "hoptoad_notifier", "~> 2.4.11"
|
|
9
9
|
gem "RedCloth", :require => "redcloth"
|
|
10
10
|
gem "paperclip"
|
|
11
|
-
gem "will_paginate"
|
|
12
11
|
gem "validation_reflection"
|
|
13
12
|
gem "formtastic"
|
|
14
13
|
gem "mysql"
|
|
15
|
-
gem "flutie"
|
|
14
|
+
gem "flutie", "~> 1.1.8"
|
|
16
15
|
gem "dynamic_form"
|
|
16
|
+
gem "jquery-rails"
|
|
17
|
+
gem "rake", "~> 0.8.7"
|
|
17
18
|
|
|
18
19
|
# RSpec needs to be in :development group to expose generators
|
|
19
20
|
# and rake tasks without having to type RAILS_ENV=test.
|
|
20
21
|
group :development, :test do
|
|
21
|
-
gem "rspec-rails", "~> 2.
|
|
22
|
+
gem "rspec-rails", "~> 2.6.1"
|
|
22
23
|
gem "ruby-debug", :platforms => :mri_18
|
|
23
24
|
gem "ruby-debug19", :platforms => :mri_19
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
group :test do
|
|
27
|
-
gem "cucumber-rails"
|
|
28
|
+
gem "cucumber-rails", "0.4.1"
|
|
28
29
|
gem "factory_girl_rails"
|
|
29
30
|
gem "bourne"
|
|
30
|
-
gem "capybara"
|
|
31
31
|
gem "database_cleaner"
|
|
32
32
|
gem "fakeweb"
|
|
33
33
|
gem "sham_rack"
|
|
34
|
-
gem "nokogiri"
|
|
35
34
|
gem "timecop"
|
|
36
35
|
gem "treetop"
|
|
37
|
-
gem "shoulda"
|
|
36
|
+
gem "shoulda-matchers"
|
|
38
37
|
gem "launchy"
|
|
39
|
-
gem "
|
|
38
|
+
gem "capybara-webkit"
|
|
40
39
|
gem "thin"
|
|
41
40
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: suspenders
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.2.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- thoughtbot
|
|
@@ -15,8 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
19
|
-
default_executable: suspenders
|
|
18
|
+
date: 2011-06-01 00:00:00 Z
|
|
20
19
|
dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|
|
22
21
|
name: rails
|
|
@@ -102,10 +101,7 @@ files:
|
|
|
102
101
|
- template/files/time_formats.rb
|
|
103
102
|
- template/suspenders.rb
|
|
104
103
|
- template/trout/Gemfile
|
|
105
|
-
- template/trout/public/javascripts/jquery-ui.js
|
|
106
|
-
- template/trout/public/javascripts/jquery.js
|
|
107
104
|
- template/trout/public/javascripts/prefilled_input.js
|
|
108
|
-
has_rdoc: true
|
|
109
105
|
homepage: http://github.com/thoughtbot/suspenders-gem
|
|
110
106
|
licenses: []
|
|
111
107
|
|
|
@@ -135,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
131
|
requirements: []
|
|
136
132
|
|
|
137
133
|
rubyforge_project:
|
|
138
|
-
rubygems_version: 1.
|
|
134
|
+
rubygems_version: 1.7.2
|
|
139
135
|
signing_key:
|
|
140
136
|
specification_version: 2
|
|
141
137
|
summary: Generate a Rails app using thoughtbot's best practices.
|