primo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +79 -1
- data/README.md +14 -0
- data/bin/primo +7 -0
- data/lib/primo/version.rb +1 -1
- data/primo.gemspec +2 -0
- data/templates/prime.rb +55 -0
- metadata +29 -4
data/Gemfile.lock
CHANGED
@@ -1,11 +1,89 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
primo (0.0.
|
4
|
+
primo (0.0.2)
|
5
|
+
rails
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: http://rubygems.org/
|
8
9
|
specs:
|
10
|
+
actionmailer (3.2.11)
|
11
|
+
actionpack (= 3.2.11)
|
12
|
+
mail (~> 2.4.4)
|
13
|
+
actionpack (3.2.11)
|
14
|
+
activemodel (= 3.2.11)
|
15
|
+
activesupport (= 3.2.11)
|
16
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
journey (~> 1.0.4)
|
19
|
+
rack (~> 1.4.0)
|
20
|
+
rack-cache (~> 1.2)
|
21
|
+
rack-test (~> 0.6.1)
|
22
|
+
sprockets (~> 2.2.1)
|
23
|
+
activemodel (3.2.11)
|
24
|
+
activesupport (= 3.2.11)
|
25
|
+
builder (~> 3.0.0)
|
26
|
+
activerecord (3.2.11)
|
27
|
+
activemodel (= 3.2.11)
|
28
|
+
activesupport (= 3.2.11)
|
29
|
+
arel (~> 3.0.2)
|
30
|
+
tzinfo (~> 0.3.29)
|
31
|
+
activeresource (3.2.11)
|
32
|
+
activemodel (= 3.2.11)
|
33
|
+
activesupport (= 3.2.11)
|
34
|
+
activesupport (3.2.11)
|
35
|
+
i18n (~> 0.6)
|
36
|
+
multi_json (~> 1.0)
|
37
|
+
arel (3.0.2)
|
38
|
+
builder (3.0.4)
|
39
|
+
erubis (2.7.0)
|
40
|
+
hike (1.2.1)
|
41
|
+
i18n (0.6.1)
|
42
|
+
journey (1.0.4)
|
43
|
+
json (1.7.6)
|
44
|
+
mail (2.4.4)
|
45
|
+
i18n (>= 0.4.0)
|
46
|
+
mime-types (~> 1.16)
|
47
|
+
treetop (~> 1.4.8)
|
48
|
+
mime-types (1.19)
|
49
|
+
multi_json (1.5.0)
|
50
|
+
polyglot (0.3.3)
|
51
|
+
rack (1.4.4)
|
52
|
+
rack-cache (1.2)
|
53
|
+
rack (>= 0.4)
|
54
|
+
rack-ssl (1.3.2)
|
55
|
+
rack
|
56
|
+
rack-test (0.6.2)
|
57
|
+
rack (>= 1.0)
|
58
|
+
rails (3.2.11)
|
59
|
+
actionmailer (= 3.2.11)
|
60
|
+
actionpack (= 3.2.11)
|
61
|
+
activerecord (= 3.2.11)
|
62
|
+
activeresource (= 3.2.11)
|
63
|
+
activesupport (= 3.2.11)
|
64
|
+
bundler (~> 1.0)
|
65
|
+
railties (= 3.2.11)
|
66
|
+
railties (3.2.11)
|
67
|
+
actionpack (= 3.2.11)
|
68
|
+
activesupport (= 3.2.11)
|
69
|
+
rack-ssl (~> 1.3.2)
|
70
|
+
rake (>= 0.8.7)
|
71
|
+
rdoc (~> 3.4)
|
72
|
+
thor (>= 0.14.6, < 2.0)
|
73
|
+
rake (10.0.3)
|
74
|
+
rdoc (3.12)
|
75
|
+
json (~> 1.4)
|
76
|
+
sprockets (2.2.2)
|
77
|
+
hike (~> 1.2)
|
78
|
+
multi_json (~> 1.0)
|
79
|
+
rack (~> 1.0)
|
80
|
+
tilt (~> 1.1, != 1.3.0)
|
81
|
+
thor (0.17.0)
|
82
|
+
tilt (1.3.3)
|
83
|
+
treetop (1.4.12)
|
84
|
+
polyglot
|
85
|
+
polyglot (>= 0.3.1)
|
86
|
+
tzinfo (0.3.35)
|
9
87
|
|
10
88
|
PLATFORMS
|
11
89
|
ruby
|
data/README.md
CHANGED
@@ -1,7 +1,21 @@
|
|
1
1
|
# Primo
|
2
2
|
|
3
|
+
A better, configurable, default (prime) Rails stack.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
```
|
8
|
+
gem install primo
|
9
|
+
|
10
|
+
primo app_name
|
11
|
+
```
|
12
|
+
|
13
|
+
This generates PostgreSQL/HAML/Rspec Rails app using [this template](https://github.com/cbetta/primo/blob/master/templates/prime.rb).
|
14
|
+
|
15
|
+
|
3
16
|
## Release notes
|
4
17
|
|
18
|
+
* **0.0.2** Added simple installer for "Prime stack"
|
5
19
|
* **0.0.1** Gem skeleton
|
6
20
|
|
7
21
|
## License
|
data/bin/primo
ADDED
data/lib/primo/version.rb
CHANGED
data/primo.gemspec
CHANGED
data/templates/prime.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Setup PG
|
2
|
+
gsub_file "Gemfile", "gem 'sqlite3'", "gem 'pg'"
|
3
|
+
|
4
|
+
database_config = <<-EOF
|
5
|
+
development:
|
6
|
+
adapter: postgresql
|
7
|
+
encoding: unicode
|
8
|
+
database: #{app_name}_dev
|
9
|
+
|
10
|
+
test:
|
11
|
+
adapter: postgresql
|
12
|
+
encoding: unicode
|
13
|
+
database: #{app_name}_test
|
14
|
+
EOF
|
15
|
+
|
16
|
+
remove_file "config/database.yml"
|
17
|
+
file "config/database.yml", database_config
|
18
|
+
file "config/database.yml.example", database_config
|
19
|
+
|
20
|
+
# Setup HAML
|
21
|
+
gem "haml"
|
22
|
+
gem_group :development do
|
23
|
+
gem "haml-rails"
|
24
|
+
end
|
25
|
+
|
26
|
+
remove_file "app/views/layouts/application.html.erb"
|
27
|
+
file "app/views/layouts/application.html.haml", <<-EOF
|
28
|
+
!!!
|
29
|
+
%html
|
30
|
+
%head
|
31
|
+
%title #{app_name.humanize}
|
32
|
+
= stylesheet_link_tag :application, media: "all"
|
33
|
+
= javascript_include_tag :application
|
34
|
+
= csrf_meta_tags
|
35
|
+
%body
|
36
|
+
= yield
|
37
|
+
EOF
|
38
|
+
|
39
|
+
# Setup Rspec
|
40
|
+
gem_group :development, :test do
|
41
|
+
gem "rspec-rails"
|
42
|
+
end
|
43
|
+
|
44
|
+
run "rm -rf test"
|
45
|
+
run "rm -rf autotest"
|
46
|
+
|
47
|
+
run "rails generate rspec:install"
|
48
|
+
|
49
|
+
# Specify generators
|
50
|
+
application <<-EOF
|
51
|
+
config.generators do |g|
|
52
|
+
g.template_engine :haml
|
53
|
+
g.test_framework :rspec
|
54
|
+
end
|
55
|
+
EOF
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,29 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
13
|
-
dependencies:
|
12
|
+
date: 2013-01-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
14
30
|
description: A better, configurable, default (prime) Rails stack.
|
15
31
|
email:
|
16
32
|
- cbetta@gmail.com
|
17
|
-
executables:
|
33
|
+
executables:
|
34
|
+
- primo
|
18
35
|
extensions: []
|
19
36
|
extra_rdoc_files: []
|
20
37
|
files:
|
@@ -25,8 +42,10 @@ files:
|
|
25
42
|
- LICENSE
|
26
43
|
- README.md
|
27
44
|
- Rakefile
|
45
|
+
- bin/primo
|
28
46
|
- lib/primo/version.rb
|
29
47
|
- primo.gemspec
|
48
|
+
- templates/prime.rb
|
30
49
|
homepage: http://github.com/cbetta/primo
|
31
50
|
licenses:
|
32
51
|
- MIT
|
@@ -40,12 +59,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
59
|
- - ! '>='
|
41
60
|
- !ruby/object:Gem::Version
|
42
61
|
version: '0'
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
hash: -4492109339490378635
|
43
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
66
|
none: false
|
45
67
|
requirements:
|
46
68
|
- - ! '>='
|
47
69
|
- !ruby/object:Gem::Version
|
48
70
|
version: '0'
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
hash: -4492109339490378635
|
49
74
|
requirements: []
|
50
75
|
rubyforge_project:
|
51
76
|
rubygems_version: 1.8.24
|