shaped 0.7.0 → 0.7.1

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
  SHA256:
3
- metadata.gz: 6243debb70327afd9840f95f340bafd00f2de355e247bba0c6f16f3328c11e6b
4
- data.tar.gz: b993c1b5252874d7d76c845bac27331eacf6de59f24b5f6aa8da2e8caa5ff1c1
3
+ metadata.gz: b3fda7351bf12258e204d3b16b43728f2d42daeee4cf67a022ad0b6bb2a46c70
4
+ data.tar.gz: 72866461bd6422824d424f2593659d89eab25b66f9f834ecec11aae690f4d5fd
5
5
  SHA512:
6
- metadata.gz: 0feed58b9c6ac20113a75ec9d560b69102a8240e192b6ce353d6a2da2e82ca01b9aa6d80422ad0565e3a367537c2bb8de9fe10c7242969a8f56a0ff8cabe824a
7
- data.tar.gz: 2dff65af38ece59c0ad34309f8111606cbc7bee03a5be912561965f0e8557eef5253d50d872317a8d0a97669c8a0c98b4906ca57696d194c8d293fa0e37eb005
6
+ metadata.gz: 154eb78ea527ab740be7bea30b6dec6687706707e5c32da17fc68bd0095137d06b6cc18c202358e86967c82fdcb0b983eed25ba19cdffc049138f99f69f18ab7
7
+ data.tar.gz: 6f94a4300de38ad85718ce7f7e953ebc6ed131bb0a77973633a7bf88ced9db1135fa7d20b64da416f77923f409d13ad16119a3673e58fe295679cbc9e5173e58
@@ -1,144 +1,5 @@
1
- AllCops:
2
- EnabledByDefault: true
3
- Exclude:
4
- - !ruby/regexp /\/db\/migrate/201[1-8].*\.rb\z/
5
- # auto-generated files; best to leave as-is
6
- - bin/{annotate,brakeman,bundle,database_consistency,pallets,rubocop,sidekiq}
7
- - db/schema.rb
8
- - lib/tasks/auto_annotate_models.rake
9
- - node_modules/**/*
10
- TargetRubyVersion: 2.7
11
- Bundler/GemComment:
12
- Enabled: false
13
- Layout/ArgumentAlignment:
14
- EnforcedStyle: with_fixed_indentation
15
- Layout/ClassStructure:
16
- ExpectedOrder:
17
- - module_inclusion
18
- - constants
19
- - public_class_methods
20
- - initializer
21
- - public_methods
22
- - protected_methods
23
- - private_methods
24
- Layout/DotPosition:
25
- EnforcedStyle: trailing
26
- Layout/FirstArgumentIndentation:
27
- Enabled: false # this rule doesn't play nicely with the way that I like to use `memoize`
28
- Layout/FirstArrayElementIndentation:
29
- EnforcedStyle: consistent
30
- Layout/LineLength:
31
- IgnoredPatterns:
32
- # ignore line length if the line is a comment without any spaces; it's probably not something we
33
- # can fix (e.g. a long file path)
34
- - !ruby/regexp /^ *#? [\S]+$/
35
- Max: 100
36
- Layout/MultilineMethodCallIndentation:
37
- EnforcedStyle: indented
38
- Layout/SpaceBeforeBlockBraces:
39
- Enabled: false
40
- Layout/SpaceBeforeSemicolon:
41
- Enabled: false
42
- Layout/SpaceInsideHashLiteralBraces:
43
- EnforcedStyle: space
44
- Lint/ConstantResolution:
45
- Enabled: false
46
- Lint/RedundantSplatExpansion:
47
- Enabled: false
48
- Metrics/AbcSize:
49
- Enabled: false
50
- Metrics/BlockLength:
51
- Enabled: false
52
- Metrics/ClassLength:
53
- Enabled: false
54
- Metrics/MethodLength:
55
- Max: 30
56
- Naming/RescuedExceptionsVariableName:
57
- Enabled: false
58
- Style/BlockDelimiters:
59
- Enabled: false
60
- Style/ClassAndModuleChildren:
61
- EnforcedStyle: compact
62
- Style/CollectionMethods:
63
- Enabled: false
64
- Style/ConstantVisibility:
65
- Enabled: false
66
- Style/Copyright:
67
- Enabled: false
68
- Style/DisableCopsWithinSourceCodeDirective:
69
- Enabled: false
70
- Style/Documentation:
71
- Enabled: false
72
- Style/DocumentationMethod:
73
- Enabled: false
74
- Style/EmptyCaseCondition:
75
- Enabled: false
76
- Style/FrozenStringLiteralComment:
77
- Enabled: true
78
- Style/GlobalVars:
79
- Enabled: false
80
- Style/GuardClause:
81
- Enabled: false
82
- Style/IfUnlessModifier:
83
- Enabled: false
84
- Style/InlineComment:
85
- Enabled: false
86
- Style/Lambda:
87
- Enabled: false
88
- Style/MethodCallWithArgsParentheses:
89
- IgnoredMethods:
90
- - add_runtime_dependency
91
- - desc
92
- - fail
93
- - file
94
- - gem
95
- - head
96
- - include
97
- - integer
98
- - load
99
- - p
100
- - print
101
- - puts
102
- - render
103
- - require
104
- - require_relative
105
- - ruby
106
- - run
107
- - string
108
- - source
109
- Style/MissingElse:
110
- Enabled: false
111
- Style/NegatedIf:
112
- Enabled: false
113
- Style/ImplicitRuntimeError:
114
- Enabled: false
115
- Style/MethodCalledOnDoEndBlock:
116
- Enabled: false
117
- Style/NumericPredicate:
118
- Enabled: false
119
- Style/ParenthesesAroundCondition:
120
- Enabled: false
121
- Style/RescueModifier:
122
- Enabled: false
123
- Style/RescueStandardError:
124
- Enabled: false
125
- Style/ReturnNil:
126
- Enabled: false
127
- Style/RegexpLiteral:
128
- Enabled: false
129
- Style/Semicolon:
130
- Enabled: false
131
- Style/SignalException:
132
- Enabled: false
133
- Style/StderrPuts:
134
- Enabled: false
135
- Style/StringHashKeys:
136
- Enabled: false
137
- Style/TernaryParentheses:
138
- Enabled: false
139
- Style/TrailingCommaInArguments:
140
- EnforcedStyleForMultiline: comma
141
- Style/TrailingCommaInArrayLiteral:
142
- EnforcedStyleForMultiline: comma
143
- Style/TrailingCommaInHashLiteral:
144
- EnforcedStyleForMultiline: comma
1
+ inherit_gem:
2
+ runger_style:
3
+ - rulesets/default.yml # gem 'rubocop'
4
+ - rulesets/performance.yml # gem 'rubocop-performance'
5
+ - rulesets/rspec.yml # gem 'rubocop-rspec'
@@ -10,5 +10,5 @@ notifications:
10
10
  on_success: never
11
11
  on_failure: always
12
12
  script:
13
- - bin/rubocop $(git ls-tree -r HEAD --name-only) --force-exclusion --format clang
13
+ - bin/rubocop --format clang
14
14
  - bin/rspec
@@ -1,3 +1,7 @@
1
+ ## v0.7.1 (2020-07-02)
2
+ ### Internal
3
+ - Source Rubocop rules/config from `runger_style` gem
4
+
1
5
  ## v0.7.0 (2020-06-24)
2
6
  ### BREAKING CHANGES
3
7
  - Rename the `Or` shape to `Any`
data/Gemfile CHANGED
@@ -5,10 +5,15 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in shaped.gemspec
6
6
  gemspec
7
7
 
8
- gem 'amazing_print'
9
- gem 'pry-byebug'
10
- gem 'rake'
11
- gem 'rubocop'
8
+ group :development, :test do
9
+ gem 'amazing_print'
10
+ gem 'pry-byebug'
11
+ gem 'rake'
12
+ gem 'rubocop', require: false
13
+ gem 'rubocop-performance', require: false
14
+ gem 'rubocop-rspec', require: false
15
+ gem 'runger_style', github: 'davidrunger/runger_style', require: false
16
+ end
12
17
 
13
18
  group :test do
14
19
  gem 'codecov', require: false
@@ -7,10 +7,16 @@ GIT
7
7
  guard-compat (~> 1.1)
8
8
  rspec (>= 2.99.0, < 4.0)
9
9
 
10
+ GIT
11
+ remote: https://github.com/davidrunger/runger_style.git
12
+ revision: 6aef7c7978c9b5306e518c18a067e2fdad2c8da1
13
+ specs:
14
+ runger_style (0.2.1)
15
+
10
16
  PATH
11
17
  remote: .
12
18
  specs:
13
- shaped (0.7.0)
19
+ shaped (0.7.1)
14
20
  activemodel (~> 6.0)
15
21
  activesupport (~> 6.0)
16
22
 
@@ -101,6 +107,10 @@ GEM
101
107
  unicode-display_width (>= 1.4.0, < 2.0)
102
108
  rubocop-ast (0.0.3)
103
109
  parser (>= 2.7.0.1)
110
+ rubocop-performance (1.6.1)
111
+ rubocop (>= 0.71.0)
112
+ rubocop-rspec (1.40.0)
113
+ rubocop (>= 0.68.1)
104
114
  ruby-progressbar (1.10.1)
105
115
  shellany (0.0.1)
106
116
  simplecov (0.18.5)
@@ -113,7 +123,7 @@ GEM
113
123
  thread_safe (~> 0.1)
114
124
  unicode-display_width (1.7.0)
115
125
  url (0.3.2)
116
- zeitwerk (2.3.0)
126
+ zeitwerk (2.3.1)
117
127
 
118
128
  PLATFORMS
119
129
  ruby
@@ -126,6 +136,9 @@ DEPENDENCIES
126
136
  rake
127
137
  rspec
128
138
  rubocop
139
+ rubocop-performance
140
+ rubocop-rspec
141
+ runger_style!
129
142
  shaped!
130
143
 
131
144
  BUNDLED WITH
@@ -17,7 +17,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path(
17
17
  bundle_binstub = File.expand_path('bundle', __dir__)
18
18
 
19
19
  if File.file?(bundle_binstub)
20
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
20
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
21
21
  load(bundle_binstub)
22
22
  else
23
23
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/guard CHANGED
@@ -17,7 +17,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path(
17
17
  bundle_binstub = File.expand_path('bundle', __dir__)
18
18
 
19
19
  if File.file?(bundle_binstub)
20
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
20
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
21
21
  load(bundle_binstub)
22
22
  else
23
23
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rspec CHANGED
@@ -18,7 +18,7 @@ ENV['BUNDLE_GEMFILE'] ||=
18
18
  bundle_binstub = File.expand_path('bundle', __dir__)
19
19
 
20
20
  if File.file?(bundle_binstub)
21
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
21
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
22
22
  load(bundle_binstub)
23
23
  else
24
24
  abort(<<~ERROR)
@@ -14,7 +14,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE_
14
14
  bundle_binstub = File.expand_path('bundle', __dir__)
15
15
 
16
16
  if File.file?(bundle_binstub)
17
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
18
18
  load(bundle_binstub)
19
19
  else
20
20
  abort(<<~ERROR)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shaped
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shaped
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel