gb-firestarter 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef7a0390b86447bb462ed9ba47a83c459537ec1
4
- data.tar.gz: 4f4a0885bb308310d183bf87e2db3649a5878cf2
3
+ metadata.gz: 2ee266d9096a5e4cfef6f9cfe61337b98348a8d1
4
+ data.tar.gz: 322bc5ca3d6e9bdc75f870c7df829ca7ba2048f5
5
5
  SHA512:
6
- metadata.gz: 5090ce2816eaf50bba6edc8a28f37f05bf957a21d117560ea06ecc86c7a04c945c3968d4bac38cdb22af921e9777385988bba329ebc02672d4d4ce65487b91ee
7
- data.tar.gz: 5d4a6feb8a3ce87f003b2c8a64ba9014c8acf52996d74fda2bc40df72f193c0dc07cab0d23ae314942282ad1c7fcd6e6fb2a135862eff905b7e7c658695595b4
6
+ metadata.gz: 6fb093db049ec095554c2e325a4dcb1fb78dbab2203cdddfd9b9bc909498544f4a6cfa8c2c87f22744b14ed533d01d9e54e2b8e6e3ae2206d13097f977666aa3
7
+ data.tar.gz: ceaa9e2bf52dbd1d4a108c8ac7326016c53a7593c5c22d5afd096c4e538f9c2f726dd530d7cc1478b1e8953da60068945ed834f1440e0f80b66088af7312edf6
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.5
3
+ - 2.2.0
4
4
  - ruby-head
5
5
  env:
6
- - "RAILS_VERSION=4.1.8"
6
+ - "RAILS_VERSION=4.2.0"
7
7
  - "RAILS_VERSION=master"
8
8
  matrix:
9
9
  allow_failures:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gb-firestarter (0.2.0)
4
+ gb-firestarter (0.3.0)
5
5
  bundler (~> 1.3)
6
6
  rails (= 4.2.0)
7
7
 
@@ -43,7 +43,7 @@ GEM
43
43
  minitest (~> 5.1)
44
44
  thread_safe (~> 0.3, >= 0.3.4)
45
45
  tzinfo (~> 1.1)
46
- arel (6.0.0)
46
+ arel (6.0.3)
47
47
  aruba (0.5.4)
48
48
  childprocess (>= 0.3.6)
49
49
  cucumber (>= 1.1.1)
@@ -55,35 +55,37 @@ GEM
55
55
  rack (>= 1.0.0)
56
56
  rack-test (>= 0.5.4)
57
57
  xpath (~> 2.0)
58
- childprocess (0.5.5)
58
+ childprocess (0.5.6)
59
59
  ffi (~> 1.0, >= 1.0.11)
60
60
  coderay (1.1.0)
61
- cucumber (1.3.18)
61
+ cucumber (2.0.0)
62
62
  builder (>= 2.1.2)
63
+ cucumber-core (~> 1.1.3)
63
64
  diff-lcs (>= 1.1.3)
64
65
  gherkin (~> 2.12)
65
66
  multi_json (>= 1.7.5, < 2.0)
66
- multi_test (>= 0.1.1)
67
+ multi_test (>= 0.1.2)
68
+ cucumber-core (1.1.3)
69
+ gherkin (~> 2.12.0)
67
70
  diff-lcs (1.2.5)
68
71
  erubis (2.7.0)
69
- ffi (1.9.6)
72
+ ffi (1.9.8)
70
73
  gherkin (2.12.2)
71
74
  multi_json (~> 1.3)
72
- globalid (0.3.2)
75
+ globalid (0.3.6)
73
76
  activesupport (>= 4.1.0)
74
- hike (1.2.3)
75
77
  i18n (0.7.0)
76
- json (1.8.2)
77
- loofah (2.0.1)
78
+ json (1.8.3)
79
+ loofah (2.0.3)
78
80
  nokogiri (>= 1.5.9)
79
81
  mail (2.6.3)
80
82
  mime-types (>= 1.16, < 3)
81
83
  method_source (0.8.2)
82
84
  mime-types (2.4.3)
83
85
  mini_portile (0.6.2)
84
- minitest (5.5.1)
85
- multi_json (1.10.1)
86
- multi_test (0.1.1)
86
+ minitest (5.8.1)
87
+ multi_json (1.11.0)
88
+ multi_test (0.1.2)
87
89
  nokogiri (1.6.6.2)
88
90
  mini_portile (~> 0.6.0)
89
91
  pry (0.10.1)
@@ -106,11 +108,11 @@ GEM
106
108
  sprockets-rails
107
109
  rails-deprecated_sanitizer (1.0.3)
108
110
  activesupport (>= 4.2.0.alpha)
109
- rails-dom-testing (1.0.5)
111
+ rails-dom-testing (1.0.7)
110
112
  activesupport (>= 4.2.0.beta, < 5.0)
111
113
  nokogiri (~> 1.6.0)
112
114
  rails-deprecated_sanitizer (>= 1.0.1)
113
- rails-html-sanitizer (1.0.1)
115
+ rails-html-sanitizer (1.0.2)
114
116
  loofah (~> 2.0)
115
117
  railties (4.2.0)
116
118
  actionpack (= 4.2.0)
@@ -127,18 +129,14 @@ GEM
127
129
  diff-lcs (>= 1.1.3, < 2.0)
128
130
  rspec-mocks (2.99.3)
129
131
  slop (3.6.0)
130
- sprockets (2.12.3)
131
- hike (~> 1.2)
132
- multi_json (~> 1.0)
133
- rack (~> 1.0)
134
- tilt (~> 1.1, != 1.3.0)
135
- sprockets-rails (2.2.4)
132
+ sprockets (3.3.5)
133
+ rack (> 1, < 3)
134
+ sprockets-rails (2.3.3)
136
135
  actionpack (>= 3.0)
137
136
  activesupport (>= 3.0)
138
137
  sprockets (>= 2.8, < 4.0)
139
138
  thor (0.19.1)
140
- thread_safe (0.3.4)
141
- tilt (1.4.1)
139
+ thread_safe (0.3.5)
142
140
  tzinfo (1.2.2)
143
141
  thread_safe (~> 0.1)
144
142
  xpath (2.0.0)
@@ -194,6 +194,10 @@ end
194
194
  copy_file 'rack_timeout.rb', 'config/initializers/rack_timeout.rb'
195
195
  end
196
196
 
197
+ def configure_slim
198
+ copy_file 'slim.rb', 'config/initializers/slim.rb'
199
+ end
200
+
197
201
  def configure_action_mailer
198
202
  action_mailer_host 'development', "#{app_name}.local"
199
203
  action_mailer_host 'test', 'www.example.com'
@@ -275,6 +279,10 @@ end
275
279
  copy_file 'disable_xml_params.rb', 'config/initializers/disable_xml_params.rb'
276
280
  end
277
281
 
282
+ def scss_lint_config
283
+ copy_file 'scss-lint.yml', '.scss-lint.yml'
284
+ end
285
+
278
286
  def setup_default_rake_task
279
287
  append_file 'Rakefile' do
280
288
  "task(:default).clear\ntask :default => [:spec]\n"
@@ -33,6 +33,7 @@ module Firestarter
33
33
  invoke :remove_routes_comment_lines
34
34
  invoke :setup_git
35
35
  invoke :setup_database
36
+ invoke :scss_lint_config
36
37
  invoke :outro
37
38
  end
38
39
 
@@ -1,4 +1,4 @@
1
1
  module Firestarter
2
2
  RAILS_VERSION = ENV['RAILS_VERSION'] || '4.2.0'
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
@@ -29,6 +29,8 @@ group :development, :test do
29
29
  gem 'awesome_print'
30
30
  gem 'factory_girl_rails'
31
31
  gem 'rspec-rails', '~> 3.0'
32
+ gem 'rubocop', require: false
33
+ gem 'scss_lint', require: false
32
34
  end
33
35
 
34
36
  group :test do
@@ -38,7 +40,6 @@ group :test do
38
40
  gem 'simplecov', require: false
39
41
  gem 'timecop'
40
42
  gem 'webmock'
41
- gem 'rubocop', require: false
42
43
  end
43
44
 
44
45
  group :production, :staging do
@@ -2,9 +2,6 @@ require File.expand_path('../config/application', __FILE__)
2
2
  Rails.application.load_tasks
3
3
 
4
4
  if %w(development test).include? Rails.env
5
- require 'rubocop/rake_task'
6
- RuboCop::RakeTask.new
7
-
8
5
  task(:default).clear
9
- task default: [:rubocop, :spec]
6
+ task default: [:lint, :spec]
10
7
  end
@@ -1,9 +1,11 @@
1
1
  doctype html
2
- html
2
+ html lang='en'
3
3
  head
4
- meta charset="utf-8"
5
- meta name="ROBOTS" content="NOODP"
4
+ meta charset='utf-8'
5
+ meta name='ROBOTS' content='NOODP'
6
6
  title = title
7
+ meta name='viewport' content='width=device-width, initial-scale=1.0'
8
+ meta http-equiv='X-UA-Compatible' content='IE=edge'
7
9
  = stylesheet_link_tag :application, media: 'all'
8
10
  = csrf_meta_tags
9
11
  body
@@ -0,0 +1,13 @@
1
+ if %w(development test).include? Rails.env
2
+ require 'rubocop/rake_task'
3
+ require 'scss_lint'
4
+ require 'scss_lint/rake_task'
5
+
6
+ RuboCop::RakeTask.new
7
+ SCSSLint::RakeTask.new do |t|
8
+ t.config = '.scss-lint.yml'
9
+ end
10
+
11
+ desc 'Lint code'
12
+ task lint: [:rubocop, :scss_lint]
13
+ end
@@ -0,0 +1,233 @@
1
+ exclude: ['bower_components/**', 'build/**', 'node_modules/**', 'styleguide/**', 'coverage/**', 'vendor/**']
2
+
3
+ linters:
4
+ Compass::*:
5
+ enabled: false
6
+
7
+ DuplicateProperty:
8
+ enabled: false
9
+
10
+ LeadingZero:
11
+ enabled: false
12
+
13
+ MergeableSelector:
14
+ enabled: false
15
+
16
+ NameFormat:
17
+ enabled: true
18
+ convention: ^(([A-Z][a-z]*)+$|(([A-Z][a-z]*)+|u|is|js)(-|--)([a-z]+([a-z]|[A-Z])*)+|(([A-Z][a-z]*)+|u|is|js)(-|--)([a-z]+([a-z]|[A-Z])*)+(--[a-z]+([a-z]|[A-Z])*)+)|[ng]-(\w)+(-(\w)*)*$
19
+ convention_explanation: Use SuitCSS components' naming convention (https://github.com/suitcss/suit/blob/master/doc/README.md)
20
+ variable_convention: ^.+$
21
+ mixin_convention: ^.+$
22
+ placeholder_convention: ^.+$
23
+ function_convention: ^.+$
24
+
25
+ PropertySortOrder:
26
+ order:
27
+ - content
28
+ - counter-increment
29
+ - counter-reset
30
+ - counter-set
31
+ - quotes
32
+ -
33
+ - position
34
+ - top
35
+ - right
36
+ - bottom
37
+ - left
38
+ - offset-before
39
+ - offset-after
40
+ - offset-start
41
+ - offset-end
42
+ - z-index
43
+ -
44
+ - align-self
45
+ - order
46
+ - flex
47
+ - flex-grow
48
+ - flex-shrink
49
+ - flex-basis
50
+ - display
51
+ - flex-flow
52
+ - flex-direction
53
+ - flex-wrap
54
+ - align-content
55
+ - align-items
56
+ - justify-content
57
+ - box-sizing
58
+ - visibility
59
+ - float
60
+ - clear
61
+ - width
62
+ - height
63
+ - max-width
64
+ - max-height
65
+ - min-width
66
+ - min-height
67
+ - padding
68
+ - padding-top
69
+ - padding-right
70
+ - padding-bottom
71
+ - padding-left
72
+ - margin
73
+ - margin-top
74
+ - margin-right
75
+ - margin-bottom
76
+ - margin-left
77
+ - overflow
78
+ - overflow-x
79
+ - overflow-x
80
+ - resize
81
+ -
82
+ - background
83
+ - background-attachment
84
+ - background-color
85
+ - background-image
86
+ - background-position
87
+ - background-repeat
88
+ - background-size
89
+ - border
90
+ - border-top
91
+ - border-right
92
+ - border-bottom
93
+ - border-left
94
+ - border-collapse
95
+ - border-color
96
+ - border-top-color
97
+ - border-right-color
98
+ - border-bottom-color
99
+ - border-left-color
100
+ - border-image
101
+ - border-spacing
102
+ - border-style
103
+ - border-top-style
104
+ - border-right-style
105
+ - border-bottom-style
106
+ - border-left-style
107
+ - border-width
108
+ - border-top-width
109
+ - border-right-width
110
+ - border-bottom-width
111
+ - border-left-width
112
+ - border-radius
113
+ - border-top-right-radius
114
+ - border-bottom-right-radius
115
+ - border-bottom-left-radius
116
+ - border-top-left-radius
117
+ - border-radius-topright
118
+ - border-radius-bottomright
119
+ - border-radius-bottomleft
120
+ - border-radius-topleft
121
+ - box-shadow
122
+ - caret-color
123
+ - clip
124
+ - color
125
+ - cursor
126
+ - fill
127
+ - list-style
128
+ - list-style-image
129
+ - list-style-position
130
+ - list-style-type
131
+ - marker-side
132
+ - opacity
133
+ - outline
134
+ - outline-offset
135
+ - pointer-events
136
+ - stroke
137
+ -
138
+ - alignment-adjust
139
+ - alignment-baseline
140
+ - baseline-shift
141
+ - dominant-baseline
142
+ - drop-initial-after-adjust
143
+ - drop-initial-after-align
144
+ - drop-initial-before-adjust
145
+ - drop-initial-before-align
146
+ - drop-initial-size
147
+ - drop-initial-value
148
+ - font
149
+ - font-family
150
+ - font-feature-settings
151
+ - font-kerning
152
+ - font-language-override
153
+ - font-size
154
+ - font-size-adjust
155
+ - font-smoothing
156
+ - font-stretch
157
+ - font-style
158
+ - font-synthesis
159
+ - font-variant
160
+ - font-variant-alternates
161
+ - font-variant-caps
162
+ - font-variant-east-asian
163
+ - font-variant-ligatures
164
+ - font-variant-numeric
165
+ - font-variant-position
166
+ - font-weight
167
+ - hanging-punctuation
168
+ - hyphens
169
+ - inline-box-align
170
+ - letter-spacing
171
+ - line-break
172
+ - line-height
173
+ - line-stacking
174
+ - line-stacking-ruby
175
+ - line-stacking-shift
176
+ - line-stacking-strategy
177
+ - overflow-wrap
178
+ - tab-size
179
+ - text-align
180
+ - text-align-last
181
+ - text-decoration
182
+ - text-emphasis
183
+ - text-height
184
+ - text-indent
185
+ - text-justify
186
+ - text-overflow
187
+ - text-rendering
188
+ - text-shadow
189
+ - text-size-adjust
190
+ - text-transform
191
+ - vertical-align
192
+ - white-space
193
+ - word-break
194
+ - word-spacing
195
+ - word-wrap
196
+ -
197
+ - backface-visibility
198
+ - perspective
199
+ - perspective-origin
200
+ - transform
201
+ - transform-origin
202
+ - transform-style
203
+ -
204
+ - animation
205
+ - animation-delay
206
+ - animation-duration
207
+ - animation-iteration-count
208
+ - animation-name
209
+ - animation-play-state
210
+ - animation-timing-function
211
+ - animation-fill-mode
212
+ - transition
213
+ - transition-delay
214
+ - transition-duration
215
+ - transition-property
216
+ - transition-timing-function
217
+ separate_groups: true
218
+
219
+ SelectorFormat:
220
+ enabled: true
221
+ convention: ^(([A-Z][a-z]*)+$|(([A-Z][a-z]*)+|u|is|js)(-|--)([a-z]+([a-z]|[A-Z])*)+|(([A-Z][a-z]*)+|u|is|js)(-|--)([a-z]+([a-z]|[A-Z])*)+(--[a-z]+([a-z]|[A-Z])*)+)|[ng]-(\w)+(-(\w)*)*$
222
+ convention_explanation: Use SuitCSS components' naming convention (https://github.com/suitcss/suit/blob/master/doc/README.md)
223
+ ignored_types: ["attribute", "element", "pseudo-selector"]
224
+
225
+ SingleLinePerProperty:
226
+ enabled: true
227
+ allow_single_line_rule_sets: false
228
+
229
+ VariableForProperty:
230
+ enabled: true
231
+ properties:
232
+ - color
233
+ - font
data/templates/slim.rb ADDED
@@ -0,0 +1 @@
1
+ Slim::Engine.set_default_options pretty: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gb-firestarter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - groupbuddies
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,12 +136,15 @@ files:
136
136
  - templates/firestarter_gitignore
137
137
  - templates/firestarter_layout.slim.erb
138
138
  - templates/i18n.rb
139
+ - templates/lint_rake_task.rb
139
140
  - templates/postgresql_database.yml.erb
140
141
  - templates/puma.rb
141
142
  - templates/rack_timeout.rb
142
143
  - templates/ruby-version.erb
143
144
  - templates/sample.env
145
+ - templates/scss-lint.yml
144
146
  - templates/secret_token.rb
147
+ - templates/slim.rb
145
148
  - templates/smtp.rb
146
149
  - templates/spec_helper.rb
147
150
  - templates/staging.rb