sparkler 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dc75dee35fec5f2ff424dc902a1a80161eaa31d0
4
+ data.tar.gz: abc86eb45f781f2a77f8db9c4e5905c96f560937
5
+ SHA512:
6
+ metadata.gz: 7f418791b2899a6294453de7a73d62f50dfa92ff12f358366c271432443ad51e2916424497e825395f4e31df444ac4274bab7bd6ed1c643bf86b792385174fa0
7
+ data.tar.gz: 71d26c11975bf71e033ab1fe295bb5f5377ea5faa9a01ab08c87039f94b04d87104abae73259d39ba345d27970e94166bf94f721d613fa36594febaa1459de8b
data/README.md CHANGED
@@ -13,11 +13,9 @@ You'll get stuff like:
13
13
  * [Compass](http://compass-style.org)
14
14
  * [ZURB's Foundation](http://foundation.zurb.com/)
15
15
  * [Rspec](https://www.relishapp.com/rspec)
16
- * [Cucumber](http://cukes.info/) using chromedriver
17
16
  * [Foreman](http://ddollar.github.com/foreman/) setup using
18
- [dotenv](https://github.com/bkeepers/dotenv)
17
+ [dotenv](https://github.com/bkeepers/dotenv-rails)
19
18
  * [High Voltage][] (for static pages)
20
- * [RDiscount][] (for Markdown)
21
19
  * A staging environment.
22
20
  * An application layout rendering flash messages of any key/value.
23
21
  * A responsive layout using HTML5.
@@ -62,7 +60,7 @@ Install the gem: `gem install sparkler`.
62
60
  sparkler is Copyright © 2008-2013 Gaslight. It is free software, and may be redistributed under
63
61
  the terms specified in the LICENSE file.
64
62
 
65
- [Gaslight]: http://gaslightsoftware.com
63
+ [Gaslight]: http://gaslight.co
66
64
  [Vendor Everything]: http://ryan.mcgeary.org/2011/02/09/vendor-everything-still-applies/
67
65
  [RDiscount]: https://github.com/rtomayko/rdiscount
68
66
  [High Voltage]: https://github.com/thoughtbot/high_voltage
@@ -10,6 +10,11 @@ module Sparkler
10
10
  remove_file 'app/assets/images/rails.png'
11
11
  end
12
12
 
13
+ def use_coffeescript
14
+ remove_file 'app/assets/javascripts/application.js'
15
+ directory 'javascripts', 'app/assets/javascripts'
16
+ end
17
+
13
18
  def setup_staging_environment
14
19
  run 'cp config/environments/production.rb config/environments/staging.rb'
15
20
  end
@@ -27,17 +32,9 @@ module Sparkler
27
32
  copy_file 'application_layout.html.haml', 'app/views/layouts/application.html.haml', force: true
28
33
  end
29
34
 
30
- def add_custom_gems
31
- additions_path = find_in_source_paths 'Gemfile_additions'
32
- new_gems = File.open(additions_path).read
33
- inject_into_file 'Gemfile', "\n#{new_gems}", after: /gem 'sqlite3'/
34
-
35
- asset_gems = <<-END.gsub(/^ {4}/, '')
36
- gem 'zurb-foundation'
37
- gem 'compass-rails', github: 'milgner/compass-rails', ref: '1749c06f15dc4b058427e7969810457213647fb8'
38
- END
39
-
40
- inject_into_file 'Gemfile', "\n#{asset_gems}", after: /gem 'uglifier'.*$/
35
+ def gemfile
36
+ remove_file 'Gemfile'
37
+ copy_file 'Gemfile.new', 'Gemfile'
41
38
  end
42
39
 
43
40
  def use_sqlite_config_template
@@ -22,6 +22,7 @@ module Sparkler
22
22
  invoke :create_views_and_layouts
23
23
  invoke :copy_miscellaneous_files
24
24
  invoke :setup_foundation
25
+ invoke :use_coffeescript
25
26
  invoke :setup_sentry
26
27
  invoke :setup_env
27
28
  invoke :setup_rspec
@@ -29,6 +30,10 @@ module Sparkler
29
30
  invoke :setup_scripts
30
31
  end
31
32
 
33
+ def use_coffeescript
34
+ build :use_coffeescript
35
+ end
36
+
32
37
  def remove_useless_files
33
38
  build :remove_public_index
34
39
  build :remove_rails_logo_image
@@ -73,7 +78,7 @@ module Sparkler
73
78
 
74
79
  def customize_gemfile
75
80
  say 'Setting up gems and bundling'
76
- build :add_custom_gems
81
+ build :gemfile
77
82
  bundle_command 'install --path vendor'
78
83
  bundle_command 'package'
79
84
  end
@@ -1,3 +1,3 @@
1
1
  module Sparkler
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
data/sparkler.gemspec CHANGED
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ["lib"]
18
18
 
19
- gem.add_dependency 'rails', '4.0.0'
19
+ gem.add_dependency 'rails', '4.0.2'
20
20
  gem.add_dependency 'bundler', '>= 1.1'
21
21
  end
@@ -0,0 +1,41 @@
1
+ source 'https://rubygems.org'
2
+ ruby '2.0.0'
3
+
4
+ gem 'rails', '4.0.2'
5
+ gem 'sqlite3'
6
+
7
+ gem 'haml-rails'
8
+ gem 'high_voltage', ">= 1.2.0"
9
+ gem 'sentry-raven'
10
+
11
+ gem 'sass-rails', '~> 4.0.0'
12
+ gem 'uglifier', '>= 1.3.0'
13
+ gem 'coffee-rails', '~> 4.0.0'
14
+ gem 'compass-rails', '1.1.0.pre'
15
+ gem 'jquery-rails'
16
+ gem 'foundation-rails'
17
+
18
+ group :doc do
19
+ # bundle exec rake doc:rails generates the API under doc/api.
20
+ gem 'sdoc', require: false
21
+ end
22
+
23
+ # Use ActiveModel has_secure_password
24
+ # gem 'bcrypt-ruby', '~> 3.1.2'
25
+
26
+ group :development, :test do
27
+ gem 'debugger'
28
+ gem 'rspec-rails'
29
+ gem 'dotenv-rails'
30
+ end
31
+
32
+ group :test do
33
+ gem 'factory_girl_rails'
34
+ gem 'database_cleaner'
35
+ gem 'timecop'
36
+ end
37
+
38
+ group :staging, :production do
39
+ gem 'newrelic_rpm'
40
+ end
41
+
@@ -1,5 +1,5 @@
1
1
  - content_for(:title) { 'Welcome' }
2
- :markdown
3
- # This is a home page
4
2
 
5
- Content is written using Markdown, like Gruber intended.
3
+ %h1 This is a home page
4
+ %p You should make it better now.
5
+
@@ -0,0 +1,19 @@
1
+ # This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ # listed below.
3
+ #
4
+ # Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ # or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ #
7
+ # It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ # compiled file.
9
+ #
10
+ # Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ # about supported directives.
12
+ #
13
+ #= require jquery
14
+ #= require jquery_ujs
15
+ #= require foundation
16
+ #= require_tree .
17
+
18
+ $(document).foundation()
19
+
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
4
+ version: 0.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Moore
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-27 00:00:00.000000000 Z
11
+ date: 2013-12-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - '='
20
18
  - !ruby/object:Gem::Version
21
- version: 4.0.0
19
+ version: 4.0.2
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - '='
28
25
  - !ruby/object:Gem::Version
29
- version: 4.0.0
26
+ version: 4.0.2
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.1'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.1'
46
41
  description: Spin up a Rails app using all the tools and frameworks we like at Gaslight.
@@ -64,7 +59,7 @@ files:
64
59
  - lib/sparkler/generators/app_generator.rb
65
60
  - lib/sparkler/version.rb
66
61
  - sparkler.gemspec
67
- - templates/Gemfile_additions
62
+ - templates/Gemfile.new
68
63
  - templates/Procfile
69
64
  - templates/_flashes.html.haml
70
65
  - templates/application.css.sass
@@ -77,33 +72,33 @@ files:
77
72
  - templates/env
78
73
  - templates/gitignore_additions
79
74
  - templates/home.html.haml
75
+ - templates/javascripts/application.js.coffee
80
76
  - templates/raven.rb
81
77
  - templates/time_formats.rb
82
78
  - test/lib/sparkler/version_test.rb
83
79
  - test/test_helper.rb
84
80
  homepage: https://github.com/gaslight/sparkler
85
81
  licenses: []
82
+ metadata: {}
86
83
  post_install_message:
87
84
  rdoc_options: []
88
85
  require_paths:
89
86
  - lib
90
87
  required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
88
  requirements:
93
- - - ! '>='
89
+ - - '>='
94
90
  - !ruby/object:Gem::Version
95
91
  version: '0'
96
92
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
93
  requirements:
99
- - - ! '>='
94
+ - - '>='
100
95
  - !ruby/object:Gem::Version
101
96
  version: '0'
102
97
  requirements: []
103
98
  rubyforge_project:
104
- rubygems_version: 1.8.23
99
+ rubygems_version: 2.0.3
105
100
  signing_key:
106
- specification_version: 3
101
+ specification_version: 4
107
102
  summary: Generate a Rails app using Gaslight's choices of gems and frameworks.
108
103
  test_files:
109
104
  - test/lib/sparkler/version_test.rb
@@ -1,20 +0,0 @@
1
- gem 'puma'
2
- gem 'haml-rails'
3
- gem 'high_voltage', ">= 1.2.0"
4
- gem 'rdiscount'
5
- gem 'sentry-raven'
6
-
7
- group :development, :test do
8
- gem 'rspec-rails'
9
- gem 'dotenv-rails'
10
- end
11
-
12
- group :test do
13
- gem 'factory_girl_rails'
14
- gem 'database_cleaner'
15
- gem 'timecop'
16
- end
17
-
18
- group :staging, :production do
19
- gem 'newrelic_rpm'
20
- end