rough_draft 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df405e5e1c9afb4eac866848c0879e98680955c7
4
- data.tar.gz: 806505cf70909e816098813f4f990bb972af4234
3
+ metadata.gz: 11e03f074323ed5983f20d2fa49138ae92452832
4
+ data.tar.gz: f5c45c785842510ea5827ef303bb5023f553ccb1
5
5
  SHA512:
6
- metadata.gz: 41f64d6e2b7610748a40b1569707aa22040e838da3579130b60facc4e1574796d27f94146cbe338ab93a2d94208a45c94ed85a699995620fafb252a2c8cd1f1a
7
- data.tar.gz: 0bd1be04e349f3572abd1c7fc704eebad488b44481acb322f1fb0fa6074c181eeba68e088da9631bfb73e43d8c3a263eef5e638e76bf1a6a9488e28888240a83
6
+ metadata.gz: abf1020a00bd132e7de261bf3f205ac37f0eac8a0caaec0b97521c75d7f3a10f1bfa1d0ca78344de807e12b3f18fde0ee0c45f8104f95e1a24db4f2a89073f40
7
+ data.tar.gz: 1045cba9f1a1fbd2179cb7ed65a4d99278430fe77aaee5e27cc3d49201565b086d2ed001b5d2a704f2400bac1ec21b9c498b588fd18c892b1e749fb57c79b8c1
@@ -135,6 +135,36 @@ class RailsBuilder < Rails::AppBuilder
135
135
  git_commit 'Configure Rubocop'
136
136
  end
137
137
 
138
+ def jshint
139
+ copy_file 'jshintrc', '.jshintrc'
140
+
141
+ git_commit 'Configure JSHint'
142
+ end
143
+
144
+ def coffeelint
145
+ copy_source_file 'coffeelint.json'
146
+
147
+ git_commit 'Configure Coffeelint'
148
+ end
149
+
150
+ def css_lint
151
+ copy_file 'csslintrc', '.csslintrc'
152
+
153
+ git_commit 'Configure CSS Lint'
154
+ end
155
+
156
+ def scss_lint
157
+ copy_file 'scss-lint.yml', '.scss-lint.yml'
158
+
159
+ git_commit 'Configure SCSS Lint'
160
+ end
161
+
162
+ def git_hooks
163
+ copy_file 'overcommit.yml', '.overcommit.yml'
164
+
165
+ git_commit 'Configure Git Hooks'
166
+ end
167
+
138
168
  def disable_generators
139
169
  config = <<-RUBY
140
170
  config.generators do |generate|
@@ -175,7 +205,7 @@ class RailsBuilder < Rails::AppBuilder
175
205
  end
176
206
 
177
207
  def travis
178
- run 'travis enable'
208
+ run 'travis enable --pro'
179
209
  template 'travis.yml.erb', '.travis.yml'
180
210
 
181
211
  git_commit 'Setup Travis CI'
@@ -366,7 +396,7 @@ skylight:
366
396
  end
367
397
 
368
398
  def github_repo(repo_name)
369
- run "hub create #{repo_name}"
399
+ run "hub create #{repo_name} -p"
370
400
  git remote: 'remove origin'
371
401
  git remote: "add -t master origin git@github.com:#{repo_name}.git"
372
402
  git push: "--quiet --set-upstream origin master"
@@ -399,9 +429,6 @@ git remote add production git@heroku.com:#{heroku_production_app_name}.git
399
429
 
400
430
  append_file 'bin/setup', remotes
401
431
 
402
- git remote: "add staging git@heroku.com:#{heroku_staging_app_name}.git"
403
- git remote: "add production git@heroku.com:#{heroku_production_app_name}.git"
404
-
405
432
  git_commit 'Add staging and production remotes to setup script'
406
433
  end
407
434
 
@@ -419,6 +446,10 @@ git remote add production git@heroku.com:#{heroku_production_app_name}.git
419
446
  git_commit 'Add all configuration settings', :include_settings => true
420
447
  end
421
448
 
449
+ def setup
450
+ run './bin/setup'
451
+ end
452
+
422
453
  private
423
454
 
424
455
  def remove_commented_route_lines
@@ -52,6 +52,11 @@ class RailsGenerator < Rails::Generators::AppGenerator
52
52
  build :setup_script
53
53
  build :disable_generators
54
54
  build :rubocop
55
+ build :jshint
56
+ build :coffeelint
57
+ build :css_lint
58
+ build :scss_lint
59
+ build :git_hooks
55
60
 
56
61
  # Test
57
62
  build :rspec
@@ -119,6 +124,7 @@ class RailsGenerator < Rails::Generators::AppGenerator
119
124
  bundle_command 'update'
120
125
 
121
126
  build :git_finalize
127
+ build :setup
122
128
 
123
129
  say ''
124
130
  say 'Congratulations'
@@ -1,3 +1,3 @@
1
1
  module RoughDraft
2
- VERSION = "1.1.0"
2
+ VERSION = '2.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rough_draft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-05 00:00:00.000000000 Z
12
+ date: 2014-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails