nozomi 0.0.1 → 0.0.2
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/README.markdown +20 -10
- data/VERSION +1 -1
- data/bin/nozomi +23 -2
- data/lib/rails3-template.rb +15 -13
- data/nozomi.gemspec +2 -2
- metadata +3 -6
data/README.markdown
CHANGED
@@ -12,15 +12,10 @@ rspec
|
|
12
12
|
|
13
13
|
I don't remember the last time I used Test::Unit, does anybody actually use it anymore?
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Because cucumber is pretty heavyweight and somewhat awkward compared to plain old rspec, (admit it non-devs rarely read or write your stories anyway)
|
19
|
-
|
20
|
-
capybara
|
21
|
-
--------
|
15
|
+
jquery
|
16
|
+
------
|
22
17
|
|
23
|
-
|
18
|
+
jQuery is today's default JS framework of choice
|
24
19
|
|
25
20
|
haml
|
26
21
|
----
|
@@ -35,7 +30,7 @@ Now that SCSS is a superset of CSS there should be no arguments here
|
|
35
30
|
compass
|
36
31
|
-------
|
37
32
|
|
38
|
-
Useful for its library of CSS3 mixins and other useful utility functions
|
33
|
+
Useful for its library of CSS3 mixins and other useful utility functions, and a sprite builder called lemonade
|
39
34
|
|
40
35
|
grid-coordinates
|
41
36
|
----------------
|
@@ -45,7 +40,22 @@ Because blueprint and other compass css frameworks are too heavyweight
|
|
45
40
|
decent_exposure
|
46
41
|
---------------
|
47
42
|
|
48
|
-
For fashion-model thin controllers, so skinny they're barely there. (Nozomi is also a Japanese fashion model)
|
43
|
+
For fashion-model thin controllers, so skinny they're barely there. (Did you know that Nozomi is also a Japanese fashion model?)
|
44
|
+
|
45
|
+
rspec-integration
|
46
|
+
-----------------
|
47
|
+
|
48
|
+
Because cucumber is pretty heavyweight and somewhat awkward compared to plain old rspec, (admit it non-devs rarely read or write your stories anyway)
|
49
|
+
|
50
|
+
capybara
|
51
|
+
--------
|
52
|
+
|
53
|
+
The best interface for driving any kind of integration specs with Selenium, Webrat, etc
|
54
|
+
|
55
|
+
jammit
|
56
|
+
------
|
57
|
+
|
58
|
+
There's no sense in sending more down the wire than you absolutely have to.
|
49
59
|
|
50
60
|
|
51
61
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/bin/nozomi
CHANGED
@@ -5,11 +5,32 @@
|
|
5
5
|
begin
|
6
6
|
project_name = ARGV[0]
|
7
7
|
raise unless project_name
|
8
|
-
template_path = "lib
|
8
|
+
template_path = File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "rails3-template.rb"))
|
9
9
|
|
10
10
|
cmd = "rails new #{project_name} -m #{template_path} --skip-gemfile --skip-test-unit --skip-prototype"
|
11
11
|
puts cmd
|
12
12
|
system cmd
|
13
13
|
rescue
|
14
|
-
puts
|
14
|
+
puts <<-USAGE
|
15
|
+
|
16
|
+
Welcome to nozomi, the fastest way to get going on Rails.
|
17
|
+
|
18
|
+
nozomi is a simple wrapper for the `rails new` command
|
19
|
+
with a slight difference of opinions.
|
20
|
+
|
21
|
+
* git for version control
|
22
|
+
* rspec for testing
|
23
|
+
* haml for templating
|
24
|
+
* sass and compass for stylesheets
|
25
|
+
* grid-coordinates for a flexible grid layout
|
26
|
+
|
27
|
+
When nozomi is done you'll have a git repo containing your app.
|
28
|
+
Each step of the process is committed individually, so you'll know
|
29
|
+
exactly what nozomi did.
|
30
|
+
|
31
|
+
Just type
|
32
|
+
|
33
|
+
nozomi <app_name>
|
34
|
+
|
35
|
+
USAGE
|
15
36
|
end
|
data/lib/rails3-template.rb
CHANGED
@@ -4,7 +4,12 @@
|
|
4
4
|
#
|
5
5
|
# rails new myapp -m rails3-template.rb --skip-gemfile --skip-test-unit --skip-prototype
|
6
6
|
#
|
7
|
-
# Written on a nozomi shinkansen so you know it's awesome
|
7
|
+
# Written on a nozomi at 300km/h (the fastest of all the Japanese shinkansen trains) so you know it's awesome
|
8
|
+
|
9
|
+
# ideas:
|
10
|
+
# make each opinion one change to the gemfile so each commit contains one opinion
|
11
|
+
# .nozomi file or folder created on each nozomi run
|
12
|
+
# -i interactive mode
|
8
13
|
|
9
14
|
|
10
15
|
GEMS = %w(haml compass formtastic decent_exposure capistrano)
|
@@ -32,12 +37,12 @@ end
|
|
32
37
|
|
33
38
|
def remove_public_files
|
34
39
|
%w{index.html favicon.ico}.each do |f|
|
35
|
-
|
40
|
+
git :rm => "public/#{f}"
|
36
41
|
end
|
37
42
|
end
|
38
43
|
|
39
44
|
def add_readme
|
40
|
-
|
45
|
+
git :rm => "README"
|
41
46
|
file "README.markdown", <<-MARKDOWN
|
42
47
|
README
|
43
48
|
======
|
@@ -51,18 +56,15 @@ def install_jquery
|
|
51
56
|
url = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
|
52
57
|
run 'mkdir -p public/javascripts/vendor'
|
53
58
|
inside('public/javascripts/vendor') do
|
54
|
-
|
55
|
-
raise "Cannot download jquery. Please check your internet connection..." unless result == 0
|
59
|
+
run "wget --output-document=#{filename} #{url}"
|
56
60
|
end
|
57
61
|
end
|
58
62
|
|
59
63
|
def add_gemfile
|
60
64
|
file "Gemfile", <<-RUBY
|
61
|
-
|
62
|
-
source 'http://rubygems.org'
|
65
|
+
source 'http://gemcutter.org'
|
63
66
|
|
64
67
|
gem 'rails', '3.0.0'
|
65
|
-
|
66
68
|
#{GEMS.map{ |gem| gem_def(gem) }.join("\n")}
|
67
69
|
|
68
70
|
# persistence
|
@@ -84,11 +86,11 @@ end
|
|
84
86
|
|
85
87
|
begin
|
86
88
|
initial_git_commit "Initial commit from rails"
|
87
|
-
git_commit("Remove public files") { remove_public_files
|
88
|
-
git_commit("Readme") { add_readme
|
89
|
-
git_commit("Copy database.yml") { copy_db_yml
|
90
|
-
|
91
|
-
git_commit("Bundler gemfile") { add_gemfile
|
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 }
|
92
94
|
|
93
95
|
puts <<-MSG
|
94
96
|
Nozomi Rails template complete! Your next steps are:
|
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.2"
|
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-
|
12
|
+
s.date = %q{2010-09-28}
|
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
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nozomi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 29
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Josh Price
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-28 00:00:00 +10:00
|
19
18
|
default_executable: nozomi
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -53,7 +52,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
52
|
requirements:
|
54
53
|
- - ">="
|
55
54
|
- !ruby/object:Gem::Version
|
56
|
-
hash: 3
|
57
55
|
segments:
|
58
56
|
- 0
|
59
57
|
version: "0"
|
@@ -62,7 +60,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
60
|
requirements:
|
63
61
|
- - ">="
|
64
62
|
- !ruby/object:Gem::Version
|
65
|
-
hash: 3
|
66
63
|
segments:
|
67
64
|
- 0
|
68
65
|
version: "0"
|