nozomi 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rails3-template.rb +31 -14
  3. data/nozomi.gemspec +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -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 capistrano)
16
- TEST_GEMS = %w(rspec rspec-rails capybara webrat)
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
- # generate 'rspec'
85
- # run "haml --rails #{run "pwd"}"
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("Remove public files") { remove_public_files }
90
- git_commit("Readme") { add_readme }
91
- git_commit("Copy database.yml") { copy_db_yml }
92
- git_commit("Install jQuery") { install_jquery }
93
- git_commit("Bundler gemfile") { add_gemfile }
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
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nozomi}
8
- s.version = "0.0.2"
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-09-28}
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
- - 2
9
- version: 0.0.2
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-09-28 00:00:00 +10:00
17
+ date: 2010-11-24 00:00:00 +11:00
18
18
  default_executable: nozomi
19
19
  dependencies: []
20
20