nozomi 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rails3-template.rb +31 -14
- data/nozomi.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/rails3-template.rb
CHANGED
@@ -7,13 +7,14 @@
|
|
7
7
|
# Written on a nozomi at 300km/h (the fastest of all the Japanese shinkansen trains) so you know it's awesome
|
8
8
|
|
9
9
|
# ideas:
|
10
|
+
# test to see if you have the correct rails version
|
10
11
|
# make each opinion one change to the gemfile so each commit contains one opinion
|
11
12
|
# .nozomi file or folder created on each nozomi run
|
12
13
|
# -i interactive mode
|
13
14
|
|
14
15
|
|
15
|
-
GEMS = %w(haml compass formtastic decent_exposure
|
16
|
-
TEST_GEMS = %w(rspec rspec-rails capybara
|
16
|
+
GEMS = %w(haml compass formtastic decent_exposure)
|
17
|
+
TEST_GEMS = %w(rspec rspec-rails capybara)
|
17
18
|
|
18
19
|
def gem_def(gem_name)
|
19
20
|
"gem '#{gem_name}'"
|
@@ -51,6 +52,13 @@ TODO fill out your application documentation
|
|
51
52
|
MARKDOWN
|
52
53
|
end
|
53
54
|
|
55
|
+
def add_landing_page
|
56
|
+
file "public/index.html", <<-HAML
|
57
|
+
<h1>Welcome to Nozomi</h1>
|
58
|
+
<p>Your app is now ready to customise</p>
|
59
|
+
HAML
|
60
|
+
end
|
61
|
+
|
54
62
|
def install_jquery
|
55
63
|
filename = "jquery-1.4.2.min.js"
|
56
64
|
url = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
|
@@ -73,25 +81,34 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
|
|
73
81
|
group :development, :test do
|
74
82
|
#{TEST_GEMS.map{ |gem| gem_def(gem) }.join("\n ")}
|
75
83
|
|
76
|
-
gem 'ruby-debug'
|
77
|
-
gem 'awesome_print', :require => 'ap'
|
78
|
-
gem 'wirble'
|
79
|
-
gem 'hirb'
|
84
|
+
# gem 'ruby-debug'
|
85
|
+
# gem 'awesome_print', :require => 'ap'
|
86
|
+
# gem 'wirble'
|
87
|
+
# gem 'hirb'
|
80
88
|
end
|
81
89
|
RUBY
|
82
90
|
end
|
83
91
|
|
84
|
-
|
85
|
-
|
92
|
+
def install_rspec
|
93
|
+
generate 'rspec:install'
|
94
|
+
end
|
86
95
|
|
87
96
|
begin
|
88
97
|
initial_git_commit "Initial commit from rails"
|
89
|
-
git_commit("
|
90
|
-
git_commit("
|
91
|
-
git_commit("
|
92
|
-
git_commit("
|
93
|
-
git_commit("
|
94
|
-
|
98
|
+
#git_commit("Extend .gitignore ") { }
|
99
|
+
git_commit("Remove public files") { remove_public_files }
|
100
|
+
git_commit("Readme") { add_readme }
|
101
|
+
git_commit("Bundler gemfile") { add_gemfile }
|
102
|
+
git_commit("Bundle install") { run 'bundle install' }
|
103
|
+
git_commit("Friendly landing page") { add_landing_page }
|
104
|
+
git_commit("Copy database.yml") { copy_db_yml }
|
105
|
+
git_commit("Install jQuery") { install_jquery }
|
106
|
+
git_commit("Install rspec") { install_rspec }
|
107
|
+
git_commit("Install compass") { run 'compass init rails .' }
|
108
|
+
|
109
|
+
# run 'rails server &'
|
110
|
+
# run 'open http://localhost:3000'
|
111
|
+
|
95
112
|
puts <<-MSG
|
96
113
|
Nozomi Rails template complete! Your next steps are:
|
97
114
|
|
data/nozomi.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{nozomi}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Josh Price"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-11-24}
|
13
13
|
s.default_executable = %q{nozomi}
|
14
14
|
s.description = %q{Opinionated Rails project templating: rspec, capybara, haml, sass, compass, etc}
|
15
15
|
s.email = %q{joshcp@gmail.com}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Josh Price
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-11-24 00:00:00 +11:00
|
18
18
|
default_executable: nozomi
|
19
19
|
dependencies: []
|
20
20
|
|