rough_draft 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rough_draft/rails_builder.rb +36 -5
- data/lib/rough_draft/rails_generator.rb +6 -0
- data/lib/rough_draft/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11e03f074323ed5983f20d2fa49138ae92452832
|
|
4
|
+
data.tar.gz: f5c45c785842510ea5827ef303bb5023f553ccb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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'
|
data/lib/rough_draft/version.rb
CHANGED
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:
|
|
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-
|
|
12
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|