trailer 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5ef9d938575a0cbb5572d94c31a83abb9defb0457a8da5490f3d32125816521f
4
+ data.tar.gz: 01010af54861f7127fc144e4970d00a1356081f564d59c161fd0289148224c62
5
+ SHA512:
6
+ metadata.gz: 276bbfbf9e53b96c3460b902976a290845afc5e8b5b1d595d4af13537497a4bef5b0e33b0413d7c622079e8b504e350b88e9dafb9c3940b280bcfad46b34501c
7
+ data.tar.gz: d774b1e6d66dbeff66de86a677624e6a8e94f1edfd9b468854f1c1621f1751d011c01123982d47b29b26d0a472c5bd38e1ad2736ad15ea92f6005c82420cf770
Binary file
Binary file
@@ -0,0 +1,116 @@
1
+ defaults: &defaults
2
+ working_directory: ~/trailer
3
+ docker:
4
+ - image: circleci/ruby:2.6-node
5
+ environment:
6
+ RACK_ENV: test
7
+
8
+ version: 2.1
9
+ jobs:
10
+ checkout_code:
11
+ <<: *defaults
12
+ steps:
13
+ - checkout
14
+ - save_cache:
15
+ key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
16
+ paths:
17
+ - ~/trailer
18
+
19
+ rspec_tests:
20
+ <<: *defaults
21
+ parallelism: 1
22
+ steps:
23
+ - restore_cache:
24
+ key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
25
+ - restore_cache:
26
+ key: v1-gem-cache-{{ arch }}-{{ checksum "Gemfile" }}
27
+ - run: bundle --path vendor/bundle
28
+
29
+ - run:
30
+ name: RSpec
31
+ command: bundle exec rake spec
32
+
33
+ - store_artifacts:
34
+ path: coverage
35
+
36
+ - run:
37
+ name: Step for failed RSpec
38
+ command: bundle exec rspec --only-failures
39
+
40
+ rubocop_test:
41
+ <<: *defaults
42
+ parallelism: 1
43
+ steps:
44
+ - restore_cache:
45
+ key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
46
+ - restore_cache:
47
+ key: v1-gem-cache-{{ arch }}-{{ checksum "Gemfile" }}
48
+ - run: bundle --path vendor/bundle
49
+ - run:
50
+ name: Rubocop
51
+ command: bundle exec rubocop --config ~/trailer/.rubocop.yml
52
+
53
+ bundle_dependencies:
54
+ <<: *defaults
55
+ parallelism: 1
56
+ steps:
57
+ - restore_cache:
58
+ key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
59
+ - restore_cache:
60
+ name: Restore bundler cache
61
+ keys:
62
+ - v1-gem-cache-{{ arch }}-{{ checksum "Gemfile" }}
63
+
64
+ - run:
65
+ name: bundler Install
66
+ command: bundle check --path vendor/bundle || bundle install --path vendor/bundle --jobs 4 --retry 3
67
+
68
+ - save_cache:
69
+ name: Store bundler cache
70
+ key: v1-gem-cache-{{ arch }}-{{ checksum "Gemfile" }}
71
+ paths:
72
+ - vendor/bundle
73
+
74
+ rake_bundle_audit:
75
+ <<: *defaults
76
+ parallelism: 1
77
+ steps:
78
+ - restore_cache:
79
+ key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
80
+ - restore_cache:
81
+ key: v1-gem-cache-{{ arch }}-{{ checksum "Gemfile" }}
82
+ - run: bundle --path vendor/bundle
83
+ - run: bundle exec bundle-audit update
84
+ - run: bundle exec bundle-audit
85
+
86
+ rake_bundle_leak:
87
+ <<: *defaults
88
+ parallelism: 1
89
+ steps:
90
+ - restore_cache:
91
+ key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
92
+ - restore_cache:
93
+ key: v1-gem-cache-{{ arch }}-{{ checksum "Gemfile" }}
94
+ - run: bundle --path vendor/bundle
95
+ - run: bundle exec bundler-leak --update
96
+
97
+ workflows:
98
+ version: 2
99
+ build:
100
+ jobs:
101
+ - checkout_code
102
+ - bundle_dependencies:
103
+ requires:
104
+ - checkout_code
105
+ - rspec_tests:
106
+ requires:
107
+ - bundle_dependencies
108
+ - rake_bundle_audit:
109
+ requires:
110
+ - bundle_dependencies
111
+ - rake_bundle_leak:
112
+ requires:
113
+ - bundle_dependencies
114
+ - rubocop_test:
115
+ requires:
116
+ - bundle_dependencies
@@ -0,0 +1,6 @@
1
+ AWS_ACCESS_KEY_ID="XXXXXXXXXXXXXXXXXXXX"
2
+ AWS_REGION="us-east-1"
3
+ AWS_SECRET_ACCESS_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
4
+ TRAILER_APPLICATION_NAME="shuttlerock"
5
+ TRAILER_HOST_NAME='web.1'
6
+ TRAILER_SERVICE_NAME='studio'
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.env
3
+ /.ruby-version
4
+ /.yardoc
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /Gemfile.lock
9
+ /pkg/
10
+ /spec/reports/
11
+ /tmp/
12
+
13
+ # rspec failure tracking
14
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,263 @@
1
+ # See example at https://github.com/bbatsov/rubocop/blob/master/config/default.yml
2
+ require:
3
+ - rubocop-performance
4
+ - rubocop-rspec
5
+
6
+ AllCops:
7
+ TargetRubyVersion: 2.6
8
+ Exclude:
9
+ - 'bin/**/*'
10
+ - 'tmp/**/*'
11
+ - 'vendor/**/*'
12
+
13
+ Layout/EmptyLines:
14
+ Enabled: true
15
+
16
+ Layout/EmptyLinesAroundAttributeAccessor:
17
+ Enabled: true
18
+
19
+ Layout/EmptyLinesAroundBlockBody:
20
+ Enabled: true
21
+
22
+ Layout/HashAlignment:
23
+ EnforcedHashRocketStyle: table
24
+ EnforcedColonStyle: table
25
+
26
+ Layout/LineLength:
27
+ Max: 150
28
+
29
+ Layout/SpaceAroundMethodCallOperator:
30
+ Enabled: true
31
+
32
+ Lint/BinaryOperatorWithIdenticalOperands:
33
+ Enabled: true
34
+
35
+ Lint/DuplicateElsifCondition:
36
+ Enabled: true
37
+
38
+ Lint/DuplicateRescueException:
39
+ Enabled: true
40
+
41
+ Lint/EmptyConditionalBody:
42
+ Enabled: true
43
+
44
+ Lint/FloatComparison:
45
+ Enabled: true
46
+
47
+ Lint/MissingSuper:
48
+ Enabled: true
49
+
50
+ Lint/MixedRegexpCaptureTypes:
51
+ Enabled: true
52
+
53
+ Lint/OutOfRangeRegexpRef:
54
+ Enabled: true
55
+
56
+ Lint/RaiseException:
57
+ Enabled: true
58
+
59
+ Lint/SelfAssignment:
60
+ Enabled: true
61
+
62
+ Lint/StructNewOverride:
63
+ Enabled: true
64
+
65
+ Lint/TopLevelReturnWithArgument:
66
+ Enabled: true
67
+
68
+ Lint/UnreachableLoop:
69
+ Enabled: true
70
+
71
+ Layout/SpaceBeforeFirstArg:
72
+ Enabled: true
73
+
74
+ Layout/SpaceInsideParens:
75
+ Enabled: true
76
+
77
+ Lint/DeprecatedOpenSSLConstant:
78
+ Enabled: true
79
+
80
+ Metrics/AbcSize:
81
+ Enabled: true
82
+ Max: 30
83
+
84
+ Metrics/BlockLength:
85
+ Enabled: false
86
+ CountComments: false
87
+
88
+ Metrics/ClassLength:
89
+ Enabled: false
90
+ CountComments: false
91
+
92
+ Metrics/CyclomaticComplexity:
93
+ Enabled: true
94
+ Max: 20
95
+
96
+ Metrics/MethodLength:
97
+ Enabled: true
98
+ CountComments: false
99
+ Max: 40
100
+
101
+ Metrics/PerceivedComplexity:
102
+ Enabled: true
103
+ Max: 20
104
+
105
+ Naming/BlockParameterName:
106
+ MinNameLength: 2
107
+
108
+ Naming/MethodParameterName:
109
+ MinNameLength: 2
110
+
111
+ Performance/AncestorsInclude:
112
+ Enabled: true
113
+
114
+ Performance/BigDecimalWithNumericArgument:
115
+ Enabled: true
116
+
117
+ Performance/RedundantSortBlock:
118
+ Enabled: true
119
+
120
+ Performance/RedundantStringChars:
121
+ Enabled: true
122
+
123
+ Performance/ReverseFirst:
124
+ Enabled: true
125
+
126
+ Performance/SortReverse:
127
+ Enabled: true
128
+
129
+ Performance/Squeeze:
130
+ Enabled: true
131
+
132
+ Performance/StringInclude:
133
+ Enabled: true
134
+
135
+ RSpec/ContextWording:
136
+ Enabled: false
137
+
138
+ RSpec/ExampleLength:
139
+ Enabled: true
140
+ Max: 30
141
+
142
+ RSpec/FilePath:
143
+ Enabled: false
144
+
145
+ RSpec/MultipleExpectations:
146
+ Enabled: true
147
+ Max: 15
148
+
149
+ RSpec/NamedSubject:
150
+ Enabled: false
151
+
152
+ RSpec/RepeatedDescription:
153
+ Enabled: false
154
+
155
+ RSpec/RepeatedExample:
156
+ Enabled: false
157
+
158
+ RSpec/EmptyExampleGroup:
159
+ Enabled: false
160
+
161
+ RSpec/MultipleMemoizedHelpers:
162
+ Enabled: true
163
+ Max: 10
164
+
165
+ RSpec/SubjectStub:
166
+ Enabled: false
167
+
168
+ Style/AccessModifierDeclarations:
169
+ Enabled: true
170
+
171
+ Style/AccessorGrouping:
172
+ Enabled: true
173
+
174
+ Style/AndOr:
175
+ Enabled: true
176
+
177
+ Style/ArrayCoercion:
178
+ Enabled: true
179
+
180
+ Style/BisectedAttrAccessor:
181
+ Enabled: true
182
+
183
+ Style/BlockDelimiters:
184
+ Enabled: true
185
+
186
+ Style/CaseLikeIf:
187
+ Enabled: true
188
+
189
+ Style/ClassAndModuleChildren:
190
+ Enabled: true
191
+ EnforcedStyle: nested
192
+
193
+ Style/Documentation:
194
+ Enabled: false
195
+
196
+ Style/ExplicitBlockArgument:
197
+ Enabled: true
198
+
199
+ Style/ExponentialNotation:
200
+ Enabled: false
201
+
202
+ Style/FrozenStringLiteralComment:
203
+ Enabled: true
204
+
205
+ Style/GlobalStdStream:
206
+ Enabled: true
207
+
208
+ Style/HashAsLastArrayItem:
209
+ Enabled: true
210
+
211
+ Style/HashEachMethods:
212
+ Enabled: true
213
+
214
+ Style/HashLikeCase:
215
+ Enabled: true
216
+
217
+ Style/HashTransformKeys:
218
+ Enabled: true
219
+
220
+ Style/HashTransformValues:
221
+ Enabled: true
222
+
223
+ Style/OptionalBooleanParameter:
224
+ Enabled: true
225
+
226
+ Style/RedundantAssignment:
227
+ Enabled: true
228
+
229
+ Style/RedundantFetchBlock:
230
+ Enabled: true
231
+
232
+ Style/RedundantFileExtensionInRequire:
233
+ Enabled: true
234
+
235
+ Style/RedundantRegexpCharacterClass:
236
+ Enabled: true
237
+
238
+ Style/RedundantRegexpEscape:
239
+ Enabled: true
240
+
241
+ Style/RedundantReturn:
242
+ Enabled: true
243
+
244
+ Style/SingleArgumentDig:
245
+ Enabled: true
246
+
247
+ Style/SlicingWithRange:
248
+ Enabled: true
249
+
250
+ Style/StringConcatenation:
251
+ Enabled: true
252
+
253
+ Style/TrailingCommaInArguments:
254
+ Enabled: true
255
+ EnforcedStyleForMultiline: comma
256
+
257
+ Style/TrailingCommaInArrayLiteral:
258
+ Enabled: true
259
+ EnforcedStyleForMultiline: comma
260
+
261
+ Style/TrailingCommaInHashLiteral:
262
+ Enabled: true
263
+ EnforcedStyleForMultiline: comma
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.2
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## 0.1.4 - 2020-08-27
4
+
5
+ ### Features
6
+
7
+ * Initial release. ([#1])
8
+
9
+ [#1]: https://github.com/shuttlerock/trailer/pull/1
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in trailer.gemspec
8
+ gemspec