sparkler 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,24 +1,53 @@
1
1
  # Sparkler
2
2
 
3
- TODO: Write a gem description
3
+ Spin up a Rails app using all the tools and frameworks we like at [Gaslight][].
4
+ Inspired heavily by [thoughtbot](http://thoughtbot.com)'s
5
+ [Suspenders](https://github.com/thoughtbot/suspenders).
6
+
7
+ <a href="http://www.flickr.com/photos/blackmanvision/2601602513/" title="Sparklers by BlackmanVision, on Flickr"><img src="http://farm4.staticflickr.com/3229/2601602513_f9c989ac0a.jpg" width="500" height="333" alt="Sparklers"></a>
8
+
9
+ You'll get stuff like:
10
+
11
+ * [Haml](http://haml.info/)
12
+ * [Sass](http://sass-lang.com/)
13
+ * [Compass](http://compass-style.org)
14
+ * [ZURB's Foundation](http://foundation.zurb.com/)
15
+ * [Rspec](https://www.relishapp.com/rspec)
16
+ * [Cucumber](http://cukes.info/) using chromedriver
17
+ * [Foreman](http://ddollar.github.com/foreman/) setup using
18
+ [dotenv](https://github.com/bkeepers/dotenv)
19
+ * [High Voltage][] (for static pages)
20
+ * [RDiscount][] (for Markdown)
21
+ * A staging environment.
22
+ * An application layout rendering flash messages of any key/value.
23
+ * A responsive layout using HTML5.
24
+ * Vendored Rubygems in `vendor/ruby` and packaged gems in `vendor/cache`
25
+ becuase [Vendor Everything][] **still** applies.
26
+
27
+ Optionally, you can create a local-to-the-app Postgresql cluster. Why do that,
28
+ you ask? Well your app becomes totally independent, first of all. In addition,
29
+ when you use a tool like Foreman, PG's logs are output right along with your
30
+ other services. It's pretty nice having all app specific output in one place.
31
+
32
+ It's not my idea, by the way.
33
+
34
+ ![](http://cdmwebs.com/s/Peter_van_Hardenberg_%28pvh%29_on_Twitter-20120909-215619.jpg)
4
35
 
5
36
  ## Installation
6
37
 
7
- Add this line to your application's Gemfile:
38
+ Install the gem: `gem install sparkler`.
8
39
 
9
- gem 'sparkler'
10
-
11
- And then execute:
40
+ ## Usage
12
41
 
13
- $ bundle
42
+ * Run the `sparkler` command with no arguments and you'll see the default Rails
43
+ help. We've added a couple of options, though, which aren't currently listed.
44
+ * Most of the time, you'll want to do:
14
45
 
15
- Or install it yourself as:
46
+ `sparkler NEW_APP`
16
47
 
17
- $ gem install sparkler
48
+ * To generate a local PG cluster:
18
49
 
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
50
+ `sparkler NEW_APP --local-database`
22
51
 
23
52
  ## Contributing
24
53
 
@@ -27,3 +56,8 @@ TODO: Write usage instructions here
27
56
  3. Commit your changes (`git commit -am 'Added some feature'`)
28
57
  4. Push to the branch (`git push origin my-new-feature`)
29
58
  5. Create new Pull Request
59
+
60
+ [Gaslight]: http://gaslightsoftware.com
61
+ [Vendor Everything]: http://ryan.mcgeary.org/2011/02/09/vendor-everything-still-applies/
62
+ [RDiscount]: https://github.com/rtomayko/rdiscount
63
+ [High Voltage]: https://github.com/thoughtbot/high_voltage
@@ -24,7 +24,7 @@ module Sparkler
24
24
 
25
25
  def create_application_layout
26
26
  remove_file 'app/views/layouts/application.html.erb'
27
- template 'application_layout.html.haml', 'app/views/layouts/application.html.haml', force: true
27
+ copy_file 'application_layout.html.haml', 'app/views/layouts/application.html.haml', force: true
28
28
  end
29
29
 
30
30
  def add_custom_gems
@@ -70,7 +70,7 @@ module Sparkler
70
70
 
71
71
  def copy_miscellaneous_files
72
72
  copy_file 'time_formats.rb', 'config/initializers/time_formats.rb'
73
- copy_file 'Procfile'
73
+ template 'Procfile', 'Procfile'
74
74
  end
75
75
 
76
76
  def setup_high_voltage
@@ -36,8 +36,8 @@ module Sparkler
36
36
  if 'postgresql' == options[:database]
37
37
  build :use_postgres_config_template
38
38
  build :setup_local_postgres if options[:local_database]
39
+ build :create_database
39
40
  end
40
- build :create_database
41
41
  end
42
42
 
43
43
  def setup_staging_environment
@@ -1,3 +1,3 @@
1
1
  module Sparkler
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-09 00:00:00.000000000 Z
12
+ date: 2012-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70301467704640 !ruby/object:Gem::Requirement
16
+ requirement: &70249580039780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70301467704640
24
+ version_requirements: *70249580039780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70301451199300 !ruby/object:Gem::Requirement
27
+ requirement: &70249571851360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '1.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70301451199300
35
+ version_requirements: *70249571851360
36
36
  description: ''
37
37
  email:
38
38
  - chrism@gaslightsoftware.com