standard-performance 1.0.0 → 1.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: 23048433c69f45dac01b8b01b285c082057bbf298881d917eeca5ab3ede9d799
4
- data.tar.gz: e98436b3aa86cbc7592da6ca72079763a4e2af673e811517cd3454c307d46609
3
+ metadata.gz: 1bae992bcc9fe9ebfe27b0fa39731373d07c9fa4eb60ca6d5114c3a2d20bb152
4
+ data.tar.gz: bdc0203b28a41368821a1dcab79bb6da9dbf4e1885f9f37536158082117ed223
5
5
  SHA512:
6
- metadata.gz: 951d2d0842df9094215a0ce85e594300bdcfd8290aba993abeab9a95015007829580fb437e11cb029a2c9a69b50db312287b5d62f774425a3ed19ae59e287c06
7
- data.tar.gz: '09473cdf55509bd401ac62c023091b869c03e355e6129729eefbb9a2e6e44e56547f03e7872140443bf3b9a2fb7281e2d0c9c905399c11d321139031a7c48cb0'
6
+ metadata.gz: d1bd85a254885e8850d2b22fdde747c47ec8e31685d9325e0e030cd41b4e2e69389ce684bc667e30b3f96c26598fdbaad4642b0a0b333fd49b668dfc4ec5a738
7
+ data.tar.gz: e3187abc3f81b1e20d7a2c6c2e0e312400946dbedc2424e5a98c579d12a79cad6acd77acf1b69a0f69c277c603de900bf4e15b0564f7cb6d6d80ea8f3f3c6474
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
- ## [Unreleased]
1
+ ## [1.1.0]
2
+
3
+ - Updates rubocop-performance from 1.16.0 to 1.18.0
4
+ - Updates past the circular dependency in an older version of standardrb for development.
5
+
6
+ ## [1.0.1]
7
+
8
+ - Ease dependency resolution by relying on rubocop transitively
2
9
 
3
10
  ## [1.0.0]
4
11
 
data/Gemfile CHANGED
@@ -5,9 +5,3 @@ gem "rake"
5
5
  gem "minitest"
6
6
  gem "standard"
7
7
  gem "m"
8
-
9
- group :test do
10
- gem "rubocop", "~> 1.48.1"
11
- end
12
-
13
- gem "lint_roller", path: "../lint_roller"
data/Gemfile.lock CHANGED
@@ -1,14 +1,9 @@
1
- PATH
2
- remote: ../lint_roller
3
- specs:
4
- lint_roller (1.0.0)
5
-
6
1
  PATH
7
2
  remote: .
8
3
  specs:
9
- standard-performance (1.0.0)
4
+ standard-performance (1.1.0)
10
5
  lint_roller (~> 1.0)
11
- rubocop-performance (~> 1.16.0)
6
+ rubocop-performance (~> 1.18.0)
12
7
 
13
8
  GEM
14
9
  remote: https://rubygems.org/
@@ -16,49 +11,54 @@ GEM
16
11
  ast (2.4.2)
17
12
  json (2.6.3)
18
13
  language_server-protocol (3.17.0.3)
14
+ lint_roller (1.0.0)
19
15
  m (1.6.1)
20
16
  method_source (>= 0.6.7)
21
17
  rake (>= 0.9.2.2)
22
18
  method_source (1.0.0)
23
19
  minitest (5.18.0)
24
- parallel (1.22.1)
25
- parser (3.2.2.0)
20
+ parallel (1.23.0)
21
+ parser (3.2.2.1)
26
22
  ast (~> 2.4.1)
27
23
  rainbow (3.1.1)
28
24
  rake (13.0.6)
29
- regexp_parser (2.7.0)
25
+ regexp_parser (2.8.0)
30
26
  rexml (3.2.5)
31
- rubocop (1.48.1)
27
+ rubocop (1.50.2)
32
28
  json (~> 2.3)
33
29
  parallel (~> 1.10)
34
30
  parser (>= 3.2.0.0)
35
31
  rainbow (>= 2.2.2, < 4.0)
36
32
  regexp_parser (>= 1.8, < 3.0)
37
33
  rexml (>= 3.2.5, < 4.0)
38
- rubocop-ast (>= 1.26.0, < 2.0)
34
+ rubocop-ast (>= 1.28.0, < 2.0)
39
35
  ruby-progressbar (~> 1.7)
40
36
  unicode-display_width (>= 2.4.0, < 3.0)
41
- rubocop-ast (1.28.0)
37
+ rubocop-ast (1.29.0)
42
38
  parser (>= 3.2.1.0)
43
- rubocop-performance (1.16.0)
39
+ rubocop-performance (1.18.0)
44
40
  rubocop (>= 1.7.0, < 2.0)
45
41
  rubocop-ast (>= 0.4.0)
46
42
  ruby-progressbar (1.13.0)
47
- standard (1.26.0)
43
+ standard (1.28.5)
48
44
  language_server-protocol (~> 3.17.0.2)
49
- rubocop (~> 1.48.1)
50
- rubocop-performance (~> 1.16.0)
45
+ lint_roller (~> 1.0)
46
+ rubocop (~> 1.50.2)
47
+ standard-custom (~> 1.0.0)
48
+ standard-performance (~> 1.0.1)
49
+ standard-custom (1.0.0)
50
+ lint_roller (~> 1.0)
51
51
  unicode-display_width (2.4.2)
52
52
 
53
53
  PLATFORMS
54
54
  arm64-darwin-22
55
+ ruby
56
+ x86_64-linux
55
57
 
56
58
  DEPENDENCIES
57
- lint_roller!
58
59
  m
59
60
  minitest
60
61
  rake
61
- rubocop (~> 1.48.1)
62
62
  standard
63
63
  standard-performance!
64
64
 
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-1.9.yml
@@ -0,0 +1,14 @@
1
+ inherit_from: ./ruby-2.0.yml
2
+
3
+ # String#end_with? added in Ruby 2.0.0
4
+ # https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-end_with-3F
5
+ Performance/EndWith:
6
+ Enabled: false
7
+
8
+ # String#start_with? added in Ruby 2.0.0
9
+ # https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-start_with-3F
10
+ Performance/StartWith:
11
+ Enabled: false
12
+
13
+ Performance/DoubleStartEndWith:
14
+ Enabled: false
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.1.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.2.yml
data/docs/RELEASE.md ADDED
@@ -0,0 +1,43 @@
1
+ # How to release Standard Performance
2
+
3
+ Because this gem was generated with the [bundler `gem`
4
+ command](https://bundler.io/man/bundle-gem.1.html), [our Rakefile](/Rakefile)
5
+ loads `bundler/gem_tasks`, which provides a lot of the commands one needs
6
+ to manage a gem's release lifecycle:
7
+
8
+ ```
9
+ $ rake -T
10
+ rake build # Build standard-x.x.x.gem into the pkg directory
11
+ rake clean # Remove any temporary products
12
+ rake clobber # Remove any generated files
13
+ rake install # Build and install standard-x.x.x.gem into system gems
14
+ rake install:local # Build and install standard-x.x.x.gem into system gems without network access
15
+ rake release[remote] # Create tag vx.x.x and build and push standard-0.5.2.gem to rubygems.org
16
+ ```
17
+
18
+ Most of these commands are depended on (read: run by) `rake release`, which is
19
+ really the only one we'll need for releasing the gem to
20
+ [Rubygems.org](https://rubygems.org/gems/standard).
21
+
22
+ ## Release steps
23
+
24
+ 1. Make sure git is up to date and `bundle exec rake` exits cleanly
25
+ 1. If you upgraded rubocop-performance, be sure to lock it down in
26
+ `standard-performance.gemspec`. To avoid being broken transitively, we stick
27
+ to exact release dependencies (e.g. "0.91.0" instead of "~> 0.91")
28
+ 1. Update `CHANGELOG.md` as exhaustively as you are able and set the top header
29
+ to "Unreleased"
30
+ 1. Commit all your changes, and push to `main`. There will be separate commits
31
+ for the release and the changes. The first is the changes commit.
32
+ 1. Bump the appropriate version segment in `lib/standard/version.rb` (basic
33
+ semantic versioning rules apply; if the release updates Rubocop, follow its
34
+ version bump at a minimum—if rubocop saw minor bump, we'll also bump the
35
+ minor version)
36
+ 1. Run `bundle` so that Bundler writes this version to `Gemfile.lock`
37
+ 1. Commit `lib/standard/performance/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
38
+ with the message equal to the new version (e.g. "0.42.1")
39
+ 1. Finally, run `bundle exec rake release`, which will hopefully succeed
40
+ 1. Provide your multi-factor-auth token when prompted to finish publishing the
41
+ gem
42
+ 1. [Tweet](https://twitter.com) about your awesome new release! (Shameless
43
+ self-promotion is the most important part of open source software)
@@ -49,10 +49,19 @@ module Standard::Performance
49
49
  end
50
50
 
51
51
  def determine_yaml_path(desired_version)
52
+ desired_version = Gem::Version.new(desired_version) unless desired_version.is_a?(Gem::Version)
52
53
  default = "base.yml"
53
54
 
54
55
  file_name = if !Gem::Version.correct?(desired_version)
55
56
  default
57
+ elsif desired_version < Gem::Version.new("1.9")
58
+ "ruby-1.8.yml"
59
+ elsif desired_version < Gem::Version.new("2.0")
60
+ "ruby-1.9.yml"
61
+ elsif desired_version < Gem::Version.new("2.1")
62
+ "ruby-2.0.yml"
63
+ elsif desired_version < Gem::Version.new("2.2")
64
+ "ruby-2.1.yml"
56
65
  elsif desired_version < Gem::Version.new("2.3")
57
66
  "ruby-2.2.yml"
58
67
  else
@@ -1,5 +1,5 @@
1
1
  module Standard
2
2
  module Performance
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-15 00:00:00.000000000 Z
11
+ date: 2023-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lint_roller
@@ -30,15 +30,15 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.16.0
33
+ version: 1.18.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.16.0
41
- description:
40
+ version: 1.18.0
41
+ description:
42
42
  email:
43
43
  - searls@gmail.com
44
44
  executables: []
@@ -53,7 +53,12 @@ files:
53
53
  - README.md
54
54
  - Rakefile
55
55
  - config/base.yml
56
+ - config/ruby-1.8.yml
57
+ - config/ruby-1.9.yml
58
+ - config/ruby-2.0.yml
59
+ - config/ruby-2.1.yml
56
60
  - config/ruby-2.2.yml
61
+ - docs/RELEASE.md
57
62
  - lib/standard-performance.rb
58
63
  - lib/standard/performance.rb
59
64
  - lib/standard/performance/plugin.rb
@@ -66,7 +71,7 @@ metadata:
66
71
  source_code_uri: https://github.com/standardrb/standard-performance
67
72
  changelog_uri: https://github.com/standardrb/standard-performance/blob/main/CHANGELOG.md
68
73
  default_lint_roller_plugin: Standard::Performance::Plugin
69
- post_install_message:
74
+ post_install_message:
70
75
  rdoc_options: []
71
76
  require_paths:
72
77
  - lib
@@ -81,8 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
86
  - !ruby/object:Gem::Version
82
87
  version: '0'
83
88
  requirements: []
84
- rubygems_version: 3.4.10
85
- signing_key:
89
+ rubygems_version: 3.1.6
90
+ signing_key:
86
91
  specification_version: 4
87
92
  summary: Standard Ruby Plugin providing configuration for rubocop-performance
88
93
  test_files: []