surveymonkey-style 0.0.1 → 0.1.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
  SHA256:
3
- metadata.gz: 6fa423d533e1db15ac33ae06f01bcc8da4027ffc4f353e9be7444443b798643e
4
- data.tar.gz: 5ca3e96d666c7d79da1de48181bb1f5e4144dcfde3035e52473d0f59a7336f1a
3
+ metadata.gz: 4bc053ec165afeb7a7f2fbee0f31349466dc7b7f66de9bb1bf5062109718a568
4
+ data.tar.gz: e4ee65542286b7d9c5c7d4ea6de5e3786930669ed85a79098d93f9279c905fc0
5
5
  SHA512:
6
- metadata.gz: 1e8c8c2bbf8408411e22bcb3e99046566e8073c84c6328575dffc8e41ef3151750f6ecba2fcef4d98be994557a44b366704cb697a980e1f376e1a661d2f507a0
7
- data.tar.gz: 700f635d860e3991b4c053fe9c43adc87c29df2ea9b6fae9e9763ce9c16911ff483abc25815d1a99e56ba56c287cac2d1a3595e909e42e8c56c4862269664017
6
+ metadata.gz: 9ae384eccca234898dfc3a41400fe711818459dbb877a01c7f417c38778908269851b4fd26afd4e46e718a1e791d2ded91806a6329f0267d8b43476d23e7ec96
7
+ data.tar.gz: edcbb052a0383a2f4a3852d277d000409f7c2462fa6ce8806b72da6fac0c775296b69f962279d22063b5f151610ad51fc0252d65b1ef4d60bc1cae6255eeae5a
@@ -0,0 +1,16 @@
1
+ version: 1
2
+ update_configs:
3
+ # Update your Gemfile (& lockfiles) as soon as
4
+ # new versions are published to the RubyGems registry
5
+ - package_manager: 'ruby:bundler'
6
+ directory: '/'
7
+ update_schedule: 'live'
8
+
9
+ default_reviewers:
10
+ # TODO: We need to create a getfeedback/ruby-libraries team
11
+ - 'mdeering'
12
+ default_labels:
13
+ - 'Dependencies'
14
+ - 'Dependabot'
15
+
16
+ # To learn more about this config file, visit: https://dependabot.com/docs/config-file/
@@ -0,0 +1,38 @@
1
+ name: Default rake tasks
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+ if: "!contains(github.event.head_commit.message, 'ci-skip')"
10
+
11
+ strategy:
12
+ matrix:
13
+ ruby: ['2.5', '2.6', '2.7']
14
+
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby ${{ matrix.ruby }}
18
+ uses: actions/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ - name: Install required packages
22
+ run: |
23
+ sudo apt-get update
24
+ - name: Cache gems
25
+ uses: actions/cache@v1
26
+ with:
27
+ path: vendor/bundle
28
+ key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
29
+ restore-keys: |
30
+ ${{ runner.os}}-gem-
31
+ - name: Install gems
32
+ run: |
33
+ gem install bundler
34
+ bundle config path vendor/bundle
35
+ bundle install --jobs 4 --retry 3
36
+ - name: Build, test, and lint with default Rake task
37
+ run: |
38
+ bundle exec rake
@@ -1,5 +1,6 @@
1
1
  inherit_gem:
2
2
  surveymonkey-style:
3
+ - rubocop/performance.yml
3
4
  - rubocop/rspec.yml
4
5
  - rubocop/ruby.yml
5
6
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- surveymonkey-style (0.0.1)
4
+ surveymonkey-style (0.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -11,7 +11,7 @@ GEM
11
11
  diff-lcs (1.3)
12
12
  ffi (1.12.2)
13
13
  formatador (0.2.5)
14
- guard (2.16.1)
14
+ guard (2.16.2)
15
15
  formatador (>= 0.2.4)
16
16
  listen (>= 2.7, < 4.0)
17
17
  lumberjack (>= 1.0.12, < 2.0)
@@ -20,8 +20,8 @@ GEM
20
20
  pry (>= 0.9.12)
21
21
  shellany (~> 0.0)
22
22
  thor (>= 0.18.1)
23
- guard-bundler (3.0.0)
24
- bundler (>= 2.1, < 3)
23
+ guard-bundler (2.2.1)
24
+ bundler (>= 1.3.0, < 3)
25
25
  guard (~> 2.2)
26
26
  guard-compat (~> 1.1)
27
27
  guard-compat (1.2.1)
@@ -36,56 +36,56 @@ GEM
36
36
  guard (>= 2.0)
37
37
  guard-compat (>= 1.2)
38
38
  yardstick (>= 0.9)
39
- jaro_winkler (1.5.4)
40
39
  listen (3.2.1)
41
40
  rb-fsevent (~> 0.10, >= 0.10.3)
42
41
  rb-inotify (~> 0.9, >= 0.9.10)
43
- lumberjack (1.2.1)
44
- method_source (0.9.2)
42
+ lumberjack (1.2.4)
43
+ method_source (1.0.0)
45
44
  nenv (0.3.0)
46
45
  notiffany (0.1.3)
47
46
  nenv (~> 0.1)
48
47
  shellany (~> 0.0)
49
48
  parallel (1.19.1)
50
- parser (2.7.0.2)
49
+ parser (2.7.1.2)
51
50
  ast (~> 2.4.0)
52
- pry (0.12.2)
53
- coderay (~> 1.1.0)
54
- method_source (~> 0.9.0)
51
+ pry (0.13.1)
52
+ coderay (~> 1.1)
53
+ method_source (~> 1.0)
55
54
  rainbow (3.0.0)
56
- rake (10.5.0)
57
- rb-fsevent (0.10.3)
55
+ rake (13.0.1)
56
+ rb-fsevent (0.10.4)
58
57
  rb-inotify (0.10.1)
59
58
  ffi (~> 1.0)
59
+ rexml (3.2.4)
60
60
  rspec (3.9.0)
61
61
  rspec-core (~> 3.9.0)
62
62
  rspec-expectations (~> 3.9.0)
63
63
  rspec-mocks (~> 3.9.0)
64
- rspec-core (3.9.1)
65
- rspec-support (~> 3.9.1)
66
- rspec-expectations (3.9.0)
64
+ rspec-core (3.9.2)
65
+ rspec-support (~> 3.9.3)
66
+ rspec-expectations (3.9.2)
67
67
  diff-lcs (>= 1.2.0, < 2.0)
68
68
  rspec-support (~> 3.9.0)
69
69
  rspec-mocks (3.9.1)
70
70
  diff-lcs (>= 1.2.0, < 2.0)
71
71
  rspec-support (~> 3.9.0)
72
- rspec-support (3.9.2)
73
- rubocop (0.79.0)
74
- jaro_winkler (~> 1.5.1)
72
+ rspec-support (3.9.3)
73
+ rubocop (0.83.0)
75
74
  parallel (~> 1.10)
76
75
  parser (>= 2.7.0.1)
77
76
  rainbow (>= 2.2.2, < 4.0)
77
+ rexml
78
78
  ruby-progressbar (~> 1.7)
79
- unicode-display_width (>= 1.4.0, < 1.7)
79
+ unicode-display_width (>= 1.4.0, < 2.0)
80
80
  rubocop-performance (1.5.2)
81
81
  rubocop (>= 0.71.0)
82
- rubocop-rspec (1.37.1)
82
+ rubocop-rspec (1.39.0)
83
83
  rubocop (>= 0.68.1)
84
84
  ruby-progressbar (1.10.1)
85
85
  shellany (0.0.1)
86
86
  thor (1.0.1)
87
- unicode-display_width (1.6.1)
88
- yard (0.9.24)
87
+ unicode-display_width (1.7.0)
88
+ yard (0.9.25)
89
89
  yardstick (0.9.9)
90
90
  yard (~> 0.8, >= 0.8.7.2)
91
91
 
@@ -97,7 +97,7 @@ DEPENDENCIES
97
97
  guard-rspec
98
98
  guard-rubocop
99
99
  guard-yardstick
100
- rake (~> 10.0)
100
+ rake
101
101
  rspec
102
102
  rubocop
103
103
  rubocop-performance
@@ -6,8 +6,8 @@ module SurveyMonkey
6
6
  module Version
7
7
 
8
8
  MAJOR = 0
9
- MINOR = 0
10
- PATCH = 1
9
+ MINOR = 1
10
+ PATCH = 0
11
11
  PRE_RELEASE = nil
12
12
 
13
13
  # Current semantic version of the gem
@@ -0,0 +1,5 @@
1
+ inherit_from:
2
+ - ./performance.yml
3
+ - ./rails.yml
4
+ - ./rspec.yml
5
+ - ./ruby.yml
@@ -0,0 +1 @@
1
+ require: rubocop-performance
@@ -0,0 +1,9 @@
1
+ require: rubocop-rails
2
+
3
+ Metrics/MethodLength:
4
+ Exclude:
5
+ - db/migrate/*.rb
6
+
7
+ Style/Documentation:
8
+ Exclude:
9
+ - db/migrate/*.rb
@@ -1,5 +1,9 @@
1
1
  AllCops:
2
2
  DisplayCopNames: true
3
+ NewCops: enable
4
+
5
+ Layout/CaseIndentation:
6
+ EnforcedStyle: end
3
7
 
4
8
  # Whitespace is never a bad thing
5
9
  Layout/EmptyLinesAroundBlockBody:
@@ -9,10 +13,18 @@ Layout/EmptyLinesAroundBlockBody:
9
13
  Layout/EmptyLinesAroundClassBody:
10
14
  Enabled: false
11
15
 
16
+ # Whitespace is never a bad thing
17
+ Layout/EmptyLinesAroundMethodBody:
18
+ Enabled: false
19
+
12
20
  # Whitespace is never a bad thing
13
21
  Layout/EmptyLinesAroundModuleBody:
14
22
  Enabled: false
15
23
 
24
+ Layout/HashAlignment:
25
+ EnforcedColonStyle: table
26
+ EnforcedHashRocketStyle: table
27
+
16
28
  Layout/LineLength:
17
29
  # Chosen the value of 125 as that is the width GitHub/GitLab provide
18
30
  # before you need to do any horizontal scrolling
@@ -22,3 +34,8 @@ Layout/LineLength:
22
34
  # anyway with %i[foo bar baz] VS [:foo, :bar, :baz]? Street cred../
23
35
  Style/SymbolArray:
24
36
  EnforcedStyle: brackets
37
+
38
+ # WordArray are jarring to anyone coming from any other language. What are you gaining
39
+ # anyway with %w[foo bar baz] VS ['foo', 'bar', 'baz']? Street cred../
40
+ Style/WordArray:
41
+ EnforcedStyle: brackets
@@ -21,6 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.add_development_dependency 'rake', '~> 10.0'
25
- spec.add_development_dependency 'rspec', '~> 3.0'
24
+ spec.add_development_dependency 'rake'
26
25
  end
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surveymonkey-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Deering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-19 00:00:00.000000000 Z
11
+ date: 2020-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '10.0'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '10.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '3.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '3.0'
26
+ version: '0'
41
27
  description: Set of common SurveyMonkey coding and linting settings and configurations
42
28
  email:
43
29
  - mdeering@mdeering.com
@@ -45,6 +31,8 @@ executables: []
45
31
  extensions: []
46
32
  extra_rdoc_files: []
47
33
  files:
34
+ - ".dependabot/config.yml"
35
+ - ".github/workflows/rake.yml"
48
36
  - ".gitignore"
49
37
  - ".rspec"
50
38
  - ".rubocop.yml"
@@ -58,6 +46,9 @@ files:
58
46
  - bin/setup
59
47
  - lib/surveymonkey/style.rb
60
48
  - lib/surveymonkey/style/version.rb
49
+ - rubocop/all.yml
50
+ - rubocop/performance.yml
51
+ - rubocop/rails.yml
61
52
  - rubocop/rspec.yml
62
53
  - rubocop/ruby.yml
63
54
  - surveymonkey-style.gemspec
@@ -80,7 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
71
  - !ruby/object:Gem::Version
81
72
  version: '0'
82
73
  requirements: []
83
- rubygems_version: 3.1.2
74
+ rubyforge_project:
75
+ rubygems_version: 2.7.10
84
76
  signing_key:
85
77
  specification_version: 4
86
78
  summary: SurveyMonkey coding standards