asset_cloud 2.7.1 → 2.7.3

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +6 -0
  3. data/.github/workflows/ci.yml +21 -7
  4. data/.github/workflows/cla.yml +22 -0
  5. data/.gitignore +0 -1
  6. data/.rubocop.yml +0 -1
  7. data/.ruby-version +1 -0
  8. data/Gemfile +5 -3
  9. data/Gemfile.lock +180 -0
  10. data/History.md +9 -0
  11. data/README.rdoc +1 -3
  12. data/Rakefile +18 -16
  13. data/asset_cloud.gemspec +19 -18
  14. data/dev.yml +1 -2
  15. data/lib/asset_cloud/asset.rb +17 -13
  16. data/lib/asset_cloud/asset_extension.rb +27 -15
  17. data/lib/asset_cloud/base.rb +77 -72
  18. data/lib/asset_cloud/bucket.rb +5 -2
  19. data/lib/asset_cloud/buckets/active_record_bucket.rb +16 -14
  20. data/lib/asset_cloud/buckets/blackhole_bucket.rb +2 -0
  21. data/lib/asset_cloud/buckets/bucket_chain.rb +38 -31
  22. data/lib/asset_cloud/buckets/file_system_bucket.rb +14 -15
  23. data/lib/asset_cloud/buckets/gcs_bucket.rb +6 -8
  24. data/lib/asset_cloud/buckets/invalid_bucket.rb +9 -6
  25. data/lib/asset_cloud/buckets/memory_bucket.rb +7 -4
  26. data/lib/asset_cloud/buckets/s3_bucket.rb +11 -8
  27. data/lib/asset_cloud/buckets/versioned_memory_bucket.rb +4 -2
  28. data/lib/asset_cloud/callbacks.rb +24 -16
  29. data/lib/asset_cloud/free_key_locator.rb +6 -6
  30. data/lib/asset_cloud/metadata.rb +11 -7
  31. data/lib/asset_cloud/validations.rb +9 -5
  32. data/lib/asset_cloud.rb +24 -22
  33. data/spec/active_record_bucket_spec.rb +27 -26
  34. data/spec/asset_cloud/metadata_spec.rb +4 -2
  35. data/spec/asset_extension_spec.rb +17 -16
  36. data/spec/asset_spec.rb +27 -21
  37. data/spec/base_spec.rb +93 -92
  38. data/spec/blackhole_bucket_spec.rb +12 -11
  39. data/spec/bucket_chain_spec.rb +61 -56
  40. data/spec/bucket_spec.rb +6 -5
  41. data/spec/callbacks_spec.rb +65 -39
  42. data/spec/file_system_spec.rb +25 -24
  43. data/spec/find_free_key_spec.rb +16 -17
  44. data/spec/gcs_bucket_remote_spec.rb +23 -22
  45. data/spec/gcs_bucket_spec.rb +48 -60
  46. data/spec/memory_bucket_spec.rb +12 -11
  47. data/spec/mock_s3_interface.rb +17 -6
  48. data/spec/remote_s3_bucket_spec.rb +31 -28
  49. data/spec/s3_bucket_spec.rb +19 -17
  50. data/spec/spec_helper.rb +8 -7
  51. data/spec/validations_spec.rb +13 -12
  52. data/spec/versioned_memory_bucket_spec.rb +11 -10
  53. metadata +13 -36
  54. data/.github/probots.yml +0 -2
  55. data/.rubocop_todo.yml +0 -326
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'spec_helper'
2
+
3
+ require "spec_helper"
3
4
 
4
5
  class ValidatedAsset < AssetCloud::Asset
5
6
  validate :no_cats
@@ -7,8 +8,8 @@ class ValidatedAsset < AssetCloud::Asset
7
8
  private
8
9
 
9
10
  def no_cats
10
- add_error('no cats allowed!') if value =~ /cat/i
11
- add_warning('bad dog!', 'wet dog smell!') if value =~ /dog/i
11
+ add_error("no cats allowed!") if value =~ /cat/i
12
+ add_warning("bad dog!", "wet dog smell!") if value =~ /dog/i
12
13
  end
13
14
  end
14
15
 
@@ -18,24 +19,24 @@ end
18
19
 
19
20
  describe ValidatedAsset do
20
21
  before(:each) do
21
- @cloud = BasicCloud.new(File.dirname(__FILE__) + '/files', 'http://assets/')
22
- @cat = @cloud.build('dog_pound/fido', 'cat')
23
- @dog = @cloud.build('dog_pound/fido', 'dog')
22
+ @cloud = BasicCloud.new(File.dirname(__FILE__) + "/files", "http://assets/")
23
+ @cat = @cloud.build("dog_pound/fido", "cat")
24
+ @dog = @cloud.build("dog_pound/fido", "dog")
24
25
  end
25
26
 
26
27
  describe "#store" do
27
28
  it "should not store the asset unless validations pass" do
28
- expect(@cloud).to(receive(:write).with('dog_pound/fido', 'dog').and_return(true))
29
+ expect(@cloud).to(receive(:write).with("dog_pound/fido", "dog").and_return(true))
29
30
 
30
31
  @cat.store
31
32
  expect(@cat.store).to(eq(false))
32
- expect(@cat.errors).to(eq(['no cats allowed!']))
33
+ expect(@cat.errors).to(eq(["no cats allowed!"]))
33
34
  expect(@dog.store).to(eq(true))
34
35
  end
35
36
 
36
37
  it "should store asset with warnings and save them in the warnings array" do
37
38
  expect(@dog.store).to(eq(true))
38
- expect(@dog.warnings).to(eq(['bad dog!', 'wet dog smell!']))
39
+ expect(@dog.warnings).to(eq(["bad dog!", "wet dog smell!"]))
39
40
  expect(@cat.store).to(eq(false))
40
41
  expect(@cat.warnings).to(eq([]))
41
42
  end
@@ -54,10 +55,10 @@ describe ValidatedAsset do
54
55
  describe "#valid?" do
55
56
  it "should clear errors, run validations, and return validity" do
56
57
  @cat.store
57
- expect(@cat.errors).to(eq(['no cats allowed!']))
58
+ expect(@cat.errors).to(eq(["no cats allowed!"]))
58
59
  expect(@cat.valid?).to(eq(false))
59
- expect(@cat.errors).to(eq(['no cats allowed!']))
60
- @cat.value = 'disguised feline'
60
+ expect(@cat.errors).to(eq(["no cats allowed!"]))
61
+ @cat.value = "disguised feline"
61
62
  expect(@cat.valid?).to(eq(true))
62
63
  expect(@cat.errors).to(be_empty)
63
64
  end
@@ -1,36 +1,37 @@
1
1
  # frozen_string_literal: true
2
- require 'spec_helper'
2
+
3
+ require "spec_helper"
3
4
 
4
5
  class VersionedMemoryCloud < AssetCloud::Base
5
6
  bucket :memory, AssetCloud::VersionedMemoryBucket
6
7
  end
7
8
 
8
9
  describe AssetCloud::VersionedMemoryBucket do
9
- directory = File.dirname(__FILE__) + '/files'
10
+ directory = File.dirname(__FILE__) + "/files"
10
11
 
11
12
  before do
12
- @fs = VersionedMemoryCloud.new(directory, 'http://assets/files')
13
- %w{one two three}.each do |content|
13
+ @fs = VersionedMemoryCloud.new(directory, "http://assets/files")
14
+ ["one", "two", "three"].each do |content|
14
15
  @fs.write("memory/foo", content)
15
16
  end
16
17
  end
17
18
 
18
- describe '#versioned?' do
19
+ describe "#versioned?" do
19
20
  it "should return true" do
20
21
  expect(@fs.buckets[:memory].versioned?).to(eq(true))
21
22
  end
22
23
  end
23
24
 
24
- describe '#read_version' do
25
+ describe "#read_version" do
25
26
  it "should return the appropriate data when given a key and version" do
26
- expect(@fs.read_version('memory/foo', 1)).to(eq('one'))
27
- expect(@fs.read_version('memory/foo', 3)).to(eq('three'))
27
+ expect(@fs.read_version("memory/foo", 1)).to(eq("one"))
28
+ expect(@fs.read_version("memory/foo", 3)).to(eq("three"))
28
29
  end
29
30
  end
30
31
 
31
- describe '#versions' do
32
+ describe "#versions" do
32
33
  it "should return a list of available version identifiers for the given key" do
33
- expect(@fs.versions('memory/foo')).to(eq([1, 2, 3]))
34
+ expect(@fs.versions("memory/foo")).to(eq([1, 2, 3]))
34
35
  end
35
36
  end
36
37
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -25,7 +24,7 @@ dependencies:
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0'
27
26
  - !ruby/object:Gem::Dependency
28
- name: rspec
27
+ name: pry
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - ">="
@@ -39,7 +38,7 @@ dependencies:
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0'
41
40
  - !ruby/object:Gem::Dependency
42
- name: rake
41
+ name: pry-byebug
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - ">="
@@ -53,7 +52,7 @@ dependencies:
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
54
  - !ruby/object:Gem::Dependency
56
- name: pry
55
+ name: rake
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ">="
@@ -67,7 +66,7 @@ dependencies:
67
66
  - !ruby/object:Gem::Version
68
67
  version: '0'
69
68
  - !ruby/object:Gem::Dependency
70
- name: pry-byebug
69
+ name: rspec
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ">="
@@ -100,12 +99,14 @@ executables: []
100
99
  extensions: []
101
100
  extra_rdoc_files: []
102
101
  files:
103
- - ".github/probots.yml"
102
+ - ".github/dependabot.yml"
104
103
  - ".github/workflows/ci.yml"
104
+ - ".github/workflows/cla.yml"
105
105
  - ".gitignore"
106
106
  - ".rubocop.yml"
107
- - ".rubocop_todo.yml"
107
+ - ".ruby-version"
108
108
  - Gemfile
109
+ - Gemfile.lock
109
110
  - History.md
110
111
  - LICENSE
111
112
  - README.rdoc
@@ -157,7 +158,6 @@ homepage: http://github.com/Shopify/asset_cloud
157
158
  licenses: []
158
159
  metadata:
159
160
  allowed_push_host: https://rubygems.org
160
- post_install_message:
161
161
  rdoc_options: []
162
162
  require_paths:
163
163
  - lib
@@ -165,37 +165,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- version: 2.5.0
168
+ version: 3.0.0
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.2.20
176
- signing_key:
175
+ rubygems_version: 3.6.9
177
176
  specification_version: 4
178
177
  summary: An abstraction layer around arbitrary and diverse asset stores.
179
- test_files:
180
- - spec/active_record_bucket_spec.rb
181
- - spec/asset_cloud/metadata_spec.rb
182
- - spec/asset_extension_spec.rb
183
- - spec/asset_spec.rb
184
- - spec/base_spec.rb
185
- - spec/blackhole_bucket_spec.rb
186
- - spec/bucket_chain_spec.rb
187
- - spec/bucket_spec.rb
188
- - spec/callbacks_spec.rb
189
- - spec/file_system_spec.rb
190
- - spec/files/products/key.txt
191
- - spec/files/versioned_stuff/foo
192
- - spec/find_free_key_spec.rb
193
- - spec/gcs_bucket_remote_spec.rb
194
- - spec/gcs_bucket_spec.rb
195
- - spec/memory_bucket_spec.rb
196
- - spec/mock_s3_interface.rb
197
- - spec/remote_s3_bucket_spec.rb
198
- - spec/s3_bucket_spec.rb
199
- - spec/spec_helper.rb
200
- - spec/validations_spec.rb
201
- - spec/versioned_memory_bucket_spec.rb
178
+ test_files: []
data/.github/probots.yml DELETED
@@ -1,2 +0,0 @@
1
- enabled:
2
- - cla
data/.rubocop_todo.yml DELETED
@@ -1,326 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2020-05-22 10:33:52 -0400 using RuboCop version 0.82.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 7
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
12
- Layout/EmptyLineBetweenDefs:
13
- Exclude:
14
- - 'lib/asset_cloud/asset_extension.rb'
15
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
16
-
17
- # Offense count: 1
18
- # Cop supports --auto-correct.
19
- # Configuration parameters: EnforcedStyle.
20
- # SupportedStyles: empty_lines, no_empty_lines
21
- Layout/EmptyLinesAroundBlockBody:
22
- Exclude:
23
- - 'lib/asset_cloud/callbacks.rb'
24
-
25
- # Offense count: 4
26
- # Cop supports --auto-correct.
27
- # Configuration parameters: EnforcedStyle.
28
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
29
- Layout/EmptyLinesAroundClassBody:
30
- Exclude:
31
- - 'lib/asset_cloud/base.rb'
32
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
33
- - 'lib/asset_cloud/buckets/file_system_bucket.rb'
34
- - 'lib/asset_cloud/buckets/versioned_memory_bucket.rb'
35
-
36
- # Offense count: 6
37
- # Cop supports --auto-correct.
38
- # Configuration parameters: EnforcedStyle.
39
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
40
- Layout/EmptyLinesAroundModuleBody:
41
- Exclude:
42
- - 'lib/asset_cloud/asset.rb'
43
- - 'lib/asset_cloud/base.rb'
44
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
45
- - 'lib/asset_cloud/buckets/file_system_bucket.rb'
46
- - 'lib/asset_cloud/free_key_locator.rb'
47
-
48
- # Offense count: 2
49
- # Cop supports --auto-correct.
50
- # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
51
- Layout/ExtraSpacing:
52
- Exclude:
53
- - 'lib/asset_cloud/base.rb'
54
-
55
- # Offense count: 9
56
- # Cop supports --auto-correct.
57
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
58
- # URISchemes: http, https
59
- Layout/LineLength:
60
- Max: 187
61
-
62
- # Offense count: 1
63
- # Cop supports --auto-correct.
64
- Layout/RescueEnsureAlignment:
65
- Exclude:
66
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
67
-
68
- # Offense count: 5
69
- # Cop supports --auto-correct.
70
- Layout/SpaceAfterComma:
71
- Exclude:
72
- - 'lib/asset_cloud/asset.rb'
73
- - 'lib/asset_cloud/base.rb'
74
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
75
- - 'lib/asset_cloud/buckets/memory_bucket.rb'
76
-
77
- # Offense count: 7
78
- # Cop supports --auto-correct.
79
- # Configuration parameters: EnforcedStyle.
80
- # SupportedStyles: space, no_space
81
- Layout/SpaceAroundEqualsInParameterDefault:
82
- Exclude:
83
- - 'lib/asset_cloud/base.rb'
84
- - 'lib/asset_cloud/bucket.rb'
85
- - 'lib/asset_cloud/buckets/active_record_bucket.rb'
86
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
87
- - 'lib/asset_cloud/buckets/memory_bucket.rb'
88
-
89
- # Offense count: 3
90
- # Cop supports --auto-correct.
91
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
92
- # SupportedStylesForExponentOperator: space, no_space
93
- Layout/SpaceAroundOperators:
94
- Exclude:
95
- - 'lib/asset_cloud/base.rb'
96
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
97
-
98
- # Offense count: 22
99
- # Cop supports --auto-correct.
100
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
101
- # SupportedStyles: space, no_space
102
- # SupportedStylesForEmptyBraces: space, no_space
103
- Layout/SpaceInsideBlockBraces:
104
- Exclude:
105
- - 'lib/asset_cloud/base.rb'
106
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
107
-
108
- # Offense count: 2
109
- # Cop supports --auto-correct.
110
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
111
- # SupportedStyles: space, no_space, compact
112
- # SupportedStylesForEmptyBraces: space, no_space
113
- Layout/SpaceInsideHashLiteralBraces:
114
- Exclude:
115
- - 'lib/asset_cloud/buckets/active_record_bucket.rb'
116
-
117
- # Offense count: 9
118
- # Configuration parameters: AllowSafeAssignment.
119
- Lint/AssignmentInCondition:
120
- Exclude:
121
- - 'lib/asset_cloud/asset.rb'
122
- - 'lib/asset_cloud/base.rb'
123
- - 'lib/asset_cloud/buckets/active_record_bucket.rb'
124
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
125
- - 'lib/asset_cloud/buckets/s3_bucket.rb'
126
-
127
- # Offense count: 2
128
- Lint/DuplicateMethods:
129
- Exclude:
130
- - 'lib/asset_cloud/asset.rb'
131
-
132
- # Offense count: 1
133
- Lint/IneffectiveAccessModifier:
134
- Exclude:
135
- - 'lib/asset_cloud/base.rb'
136
-
137
- # Offense count: 1
138
- # Configuration parameters: AllowComments.
139
- Lint/SuppressedException:
140
- Exclude:
141
- - 'lib/asset_cloud/buckets/file_system_bucket.rb'
142
-
143
- # Offense count: 1
144
- # Cop supports --auto-correct.
145
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
146
- Lint/UnusedBlockArgument:
147
- Exclude:
148
- - 'lib/asset_cloud/buckets/memory_bucket.rb'
149
-
150
- # Offense count: 9
151
- # Cop supports --auto-correct.
152
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
153
- Lint/UnusedMethodArgument:
154
- Exclude:
155
- - 'lib/asset_cloud/base.rb'
156
- - 'lib/asset_cloud/buckets/blackhole_bucket.rb'
157
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
158
- - 'lib/asset_cloud/buckets/invalid_bucket.rb'
159
-
160
- # Offense count: 6
161
- Lint/UselessAssignment:
162
- Exclude:
163
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
164
- - 'lib/asset_cloud/buckets/file_system_bucket.rb'
165
- - 'spec/gcs_bucket_spec.rb'
166
-
167
- # Offense count: 1
168
- Naming/ConstantName:
169
- Exclude:
170
- - 'lib/asset_cloud/buckets/invalid_bucket.rb'
171
-
172
- # Offense count: 2
173
- # Cop supports --auto-correct.
174
- # Configuration parameters: EnforcedStyle.
175
- # SupportedStyles: always, conditionals
176
- Style/AndOr:
177
- Exclude:
178
- - 'lib/asset_cloud/asset.rb'
179
- - 'lib/asset_cloud/buckets/active_record_bucket.rb'
180
-
181
- # Offense count: 1
182
- # Cop supports --auto-correct.
183
- # Configuration parameters: EnforcedStyle, AllowInnerBackticks.
184
- # SupportedStyles: backticks, percent_x, mixed
185
- Style/CommandLiteral:
186
- Exclude:
187
- - 'asset_cloud.gemspec'
188
-
189
- # Offense count: 1
190
- # Cop supports --auto-correct.
191
- # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
192
- # SupportedStyles: assign_to_condition, assign_inside_condition
193
- Style/ConditionalAssignment:
194
- Exclude:
195
- - 'lib/asset_cloud/base.rb'
196
-
197
- # Offense count: 22
198
- # Cop supports --auto-correct.
199
- # Configuration parameters: EnforcedStyle.
200
- # SupportedStyles: always, always_true, never
201
- Style/FrozenStringLiteralComment:
202
- Enabled: false
203
-
204
- # Offense count: 3
205
- # Cop supports --auto-correct.
206
- # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
207
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
208
- Style/HashSyntax:
209
- Exclude:
210
- - 'lib/asset_cloud/asset_extension.rb'
211
- - 'lib/asset_cloud/buckets/active_record_bucket.rb'
212
-
213
- # Offense count: 17
214
- # Cop supports --auto-correct.
215
- # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
216
- # SupportedStyles: require_parentheses, omit_parentheses
217
- Style/MethodCallWithArgsParentheses:
218
- Exclude:
219
- - 'Gemfile'
220
- - 'Rakefile'
221
- - 'asset_cloud.gemspec'
222
- - 'lib/asset_cloud.rb'
223
- - 'lib/asset_cloud/asset.rb'
224
- - 'lib/asset_cloud/base.rb'
225
- - 'lib/asset_cloud/buckets/file_system_bucket.rb'
226
- - 'lib/asset_cloud/metadata.rb'
227
-
228
- # Offense count: 2
229
- Style/MethodMissingSuper:
230
- Exclude:
231
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
232
- - 'spec/callbacks_spec.rb'
233
-
234
- # Offense count: 2
235
- Style/MissingRespondToMissing:
236
- Exclude:
237
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
238
- - 'spec/callbacks_spec.rb'
239
-
240
- # Offense count: 2
241
- # Cop supports --auto-correct.
242
- Style/ParallelAssignment:
243
- Exclude:
244
- - 'lib/asset_cloud/base.rb'
245
- - 'lib/asset_cloud/bucket.rb'
246
-
247
- # Offense count: 2
248
- # Cop supports --auto-correct.
249
- Style/PerlBackrefs:
250
- Exclude:
251
- - 'lib/asset_cloud/base.rb'
252
- - 'lib/asset_cloud/buckets/s3_bucket.rb'
253
-
254
- # Offense count: 3
255
- # Cop supports --auto-correct.
256
- # Configuration parameters: EnforcedStyle.
257
- # SupportedStyles: short, verbose
258
- Style/PreferredHashMethods:
259
- Exclude:
260
- - 'lib/asset_cloud/buckets/memory_bucket.rb'
261
- - 'lib/asset_cloud/buckets/versioned_memory_bucket.rb'
262
-
263
- # Offense count: 2
264
- # Cop supports --auto-correct.
265
- Style/RedundantBegin:
266
- Exclude:
267
- - 'lib/asset_cloud/buckets/file_system_bucket.rb'
268
- - 'lib/asset_cloud/buckets/gcs_bucket.rb'
269
-
270
- # Offense count: 5
271
- # Cop supports --auto-correct.
272
- Style/RedundantPercentQ:
273
- Exclude:
274
- - 'asset_cloud.gemspec'
275
-
276
- # Offense count: 3
277
- # Cop supports --auto-correct.
278
- # Configuration parameters: AllowMultipleReturnValues.
279
- Style/RedundantReturn:
280
- Exclude:
281
- - 'lib/asset_cloud/buckets/bucket_chain.rb'
282
- - 'lib/asset_cloud/buckets/gcs_bucket.rb'
283
- - 'lib/asset_cloud/buckets/s3_bucket.rb'
284
-
285
- # Offense count: 14
286
- # Cop supports --auto-correct.
287
- Style/RedundantSelf:
288
- Exclude:
289
- - 'lib/asset_cloud/asset.rb'
290
- - 'lib/asset_cloud/buckets/active_record_bucket.rb'
291
- - 'lib/asset_cloud/callbacks.rb'
292
- - 'lib/asset_cloud/metadata.rb'
293
- - 'lib/asset_cloud/validations.rb'
294
-
295
- # Offense count: 4
296
- # Cop supports --auto-correct.
297
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
298
- # SupportedStyles: slashes, percent_r, mixed
299
- Style/RegexpLiteral:
300
- Exclude:
301
- - 'lib/asset_cloud/base.rb'
302
- - 'lib/asset_cloud/buckets/file_system_bucket.rb'
303
- - 'lib/asset_cloud/buckets/s3_bucket.rb'
304
-
305
- # Offense count: 10
306
- # Cop supports --auto-correct.
307
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
308
- # AllowedMethods: present?, blank?, presence, try, try!
309
- Style/SafeNavigation:
310
- Exclude:
311
- - 'lib/asset_cloud/base.rb'
312
-
313
- # Offense count: 2
314
- # Cop supports --auto-correct.
315
- # Configuration parameters: AllowIfMethodIsEmpty.
316
- Style/SingleLineMethods:
317
- Exclude:
318
- - 'lib/asset_cloud/asset_extension.rb'
319
-
320
- # Offense count: 1
321
- # Cop supports --auto-correct.
322
- # Configuration parameters: EnforcedStyle.
323
- # SupportedStyles: use_perl_names, use_english_names
324
- Style/SpecialGlobalVars:
325
- Exclude:
326
- - 'asset_cloud.gemspec'