primo 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,6 +4,12 @@ A better, configurable, default (prime) Rails stack.
4
4
 
5
5
  Inspired by Steve Klabnik's article ["Rails has Two Default Stacks"](http://words.steveklabnik.com/rails-has-two-default-stacks)
6
6
 
7
+ ## Why is this useful?
8
+
9
+ Rails Templates are awesome, especially for hackers that often need to set up the same basic app. Sadly there is currently no sharing between application templates and Primo tries to make this easier.
10
+
11
+ By default Primo allows you to run a Rails install with a template based on PostgreSQL/HAML/Rspec, but the goal is to eventually allow anyone to specify their default template, or handpick a template on per-project basis.
12
+
7
13
  ## Usage
8
14
 
9
15
  ```
@@ -15,13 +21,27 @@ primo app_name #instead of "rails new app_name"
15
21
 
16
22
  This generates PostgreSQL/HAML/Rspec Rails app using [this template](https://github.com/cbetta/primo/blob/master/templates/prime.rb).
17
23
 
24
+ ## Plans
25
+
26
+ * Allow user to specify custom template (from gem, local, or remote) in a ~/.primo file
27
+ * Add more standard templates to the gem
28
+ * Think about a "template server" much like rubygems.org to allow people to upload/share their templates and reference them by name.
18
29
 
19
30
  ## Release notes
20
31
 
32
+ * **0.0.4** Fixing template
21
33
  * **0.0.3** Removed direct Rails dependency
22
34
  * **0.0.2** Added simple installer for "Prime stack"
23
35
  * **0.0.1** Gem skeleton
24
36
 
37
+ ## Contributing
38
+
39
+ 1. Fork it
40
+ 2. Create your feature branch (git checkout -b my-new-feature)
41
+ 3. Commit your changes (git commit -am 'Add some feature')
42
+ 4. Push to the branch (git push origin my-new-feature)
43
+ 5. Create new Pull Request
44
+
25
45
  ## License
26
46
 
27
47
  See [LICENSE](https://github.com/cbetta/primo/blob/master/LICENSE)
data/lib/primo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Primo
2
- VERSION = "0.0.3" unless defined? Primo::VERSION
2
+ VERSION = "0.0.4" unless defined? Primo::VERSION
3
3
  end
data/templates/prime.rb CHANGED
@@ -43,7 +43,6 @@ end
43
43
 
44
44
  run "rm -rf test"
45
45
  run "rm -rf autotest"
46
- run "rails generate rspec:install"
47
46
 
48
47
  # Specify generators
49
48
  application <<-EOF
@@ -51,4 +50,9 @@ application <<-EOF
51
50
  g.template_engine :haml
52
51
  g.test_framework :rspec
53
52
  end
54
- EOF
53
+ EOF
54
+
55
+ # Finalize setup
56
+
57
+ run "bundle"
58
+ run "rails generate rspec:install"
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-27 00:00:00.000000000 Z
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A better, configurable, default (prime) Rails stack.
15
15
  email: