rubocop_challenger 2.0.0.pre2 → 2.0.0.pre3

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: 7a16dd2ba41bc75373d730d5b92bd0e908a26a9ac8ec5e6ec3732d122f3ca946
4
- data.tar.gz: ee5feeabc11854d8f5d214dadf4a476dcfd531618f073eca548ce706c82ec215
3
+ metadata.gz: d68362c0596c27f7914f20e1a5b966c320e61057c1b5ba764ffdd48bcd0ea91c
4
+ data.tar.gz: 7ba72c268fb67798ff19df0d339b5e1b828eb86c6b3bfd71e6539b9839281861
5
5
  SHA512:
6
- metadata.gz: 33269aaa091dd13c2e7a81a57d89930d16238c494ca07a6307290c125ae57ba160fafcb6abcd84f717231e23ed031d99324570fc245e6360c78b402a9b75b457
7
- data.tar.gz: d274632af2fa2cc0a9dd9f30527b0e19073d97e06c02d2701a95d8426ebab782d79efd963f8c794aa10ddc828eb5f728cb018e4957a955598a43ef6c1eb23dc3
6
+ metadata.gz: 47cc68e268b14d321bd28e23cd1d79b2a54750313ef12774ce69ecc1f6a0f14d921ab67301b2daed4c57e189d115827894f59506db6ee2ef9fa091b998084e3d
7
+ data.tar.gz: 9f047f7c73d4c96e7743dcb14165947c1c2e4055b5461a08e6216901277cfc94374451d0a865068a3abb188c82af77477bd9f342e47c5d4df14d0945f6bd246d
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-04-09 22:04:02 +0900 using RuboCop version 0.67.2.
3
+ # on 2019-06-05 10:24:36 +0900 using RuboCop version 0.71.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop_challenger (2.0.0.pre2)
4
+ rubocop_challenger (2.0.0.pre3)
5
5
  pr_comet
6
6
  rubocop
7
7
  rubocop-rspec
@@ -11,7 +11,7 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- addressable (2.5.2)
14
+ addressable (2.6.0)
15
15
  public_suffix (>= 2.0.2, < 4.0)
16
16
  ast (2.4.0)
17
17
  byebug (11.0.1)
@@ -23,11 +23,11 @@ GEM
23
23
  jaro_winkler (1.5.2)
24
24
  json (2.2.0)
25
25
  method_source (0.9.2)
26
- multipart-post (2.0.0)
26
+ multipart-post (2.1.1)
27
27
  octokit (4.14.0)
28
28
  sawyer (~> 0.8.0, >= 0.5.3)
29
29
  parallel (1.17.0)
30
- parser (2.6.2.1)
30
+ parser (2.6.3.0)
31
31
  ast (~> 2.4.0)
32
32
  pr_comet (0.1.1)
33
33
  octokit
@@ -37,8 +37,7 @@ GEM
37
37
  pry-byebug (3.7.0)
38
38
  byebug (~> 11.0)
39
39
  pry (~> 0.10)
40
- psych (3.1.0)
41
- public_suffix (3.0.3)
40
+ public_suffix (3.1.0)
42
41
  rainbow (3.0.0)
43
42
  rake (10.5.0)
44
43
  rspec (3.8.0)
@@ -47,7 +46,7 @@ GEM
47
46
  rspec-mocks (~> 3.8.0)
48
47
  rspec-core (3.8.0)
49
48
  rspec-support (~> 3.8.0)
50
- rspec-expectations (3.8.2)
49
+ rspec-expectations (3.8.3)
51
50
  diff-lcs (>= 1.2.0, < 2.0)
52
51
  rspec-support (~> 3.8.0)
53
52
  rspec-mocks (3.8.0)
@@ -56,27 +55,26 @@ GEM
56
55
  rspec-support (3.8.0)
57
56
  rspec_junit_formatter (0.4.1)
58
57
  rspec-core (>= 2, < 4, != 2.12.0)
59
- rubocop (0.67.2)
58
+ rubocop (0.71.0)
60
59
  jaro_winkler (~> 1.5.1)
61
60
  parallel (~> 1.10)
62
- parser (>= 2.5, != 2.5.1.1)
63
- psych (>= 3.1.0)
61
+ parser (>= 2.6)
64
62
  rainbow (>= 2.2.2, < 4.0)
65
63
  ruby-progressbar (~> 1.7)
66
- unicode-display_width (>= 1.4.0, < 1.6)
67
- rubocop-rspec (1.32.0)
64
+ unicode-display_width (>= 1.4.0, < 1.7)
65
+ rubocop-rspec (1.33.0)
68
66
  rubocop (>= 0.60.0)
69
- ruby-progressbar (1.10.0)
70
- sawyer (0.8.1)
71
- addressable (>= 2.3.5, < 2.6)
72
- faraday (~> 0.8, < 1.0)
67
+ ruby-progressbar (1.10.1)
68
+ sawyer (0.8.2)
69
+ addressable (>= 2.3.5)
70
+ faraday (> 0.8, < 2.0)
73
71
  simplecov (0.16.1)
74
72
  docile (~> 1.1)
75
73
  json (>= 1.8, < 3)
76
74
  simplecov-html (~> 0.10.0)
77
75
  simplecov-html (0.10.2)
78
76
  thor (0.20.3)
79
- unicode-display_width (1.5.0)
77
+ unicode-display_width (1.6.0)
80
78
  yard (0.9.19)
81
79
 
82
80
  PLATFORMS
@@ -75,16 +75,36 @@ module RubocopChallenger
75
75
  pr_comet.create!(pr_comet_options) unless dry_run
76
76
  end
77
77
 
78
+ # @param before_version [String]
79
+ # @param after_version [String]
78
80
  def generate_pull_request_body(before_version, after_version)
79
81
  <<~MARKDOWN
80
82
  Re-generated the .rubocop_todo.yml because it was generated by old version RuboCop.
81
83
 
82
- * Using RuboCop version: `#{before_version}` -> `#{after_version}`
84
+ * Using RuboCop version: [`#{before_version}...#{after_version}`](#{compare_page_url(before_version, after_version)})
85
+ * [Release Note](#{release_page_url(after_version)})
83
86
 
84
87
  Auto generated by [rubocop_challenger](https://github.com/ryz310/rubocop_challenger)
85
88
  MARKDOWN
86
89
  end
87
90
 
91
+ RUBOCOP_REPO_URL = 'https://github.com/rubocop-hq/rubocop'
92
+
93
+ # Generates GitHub release note page URL
94
+ #
95
+ # @param after_version [String]
96
+ def release_page_url(after_version)
97
+ "#{RUBOCOP_REPO_URL}/releases/tag/v#{after_version}"
98
+ end
99
+
100
+ # Generates GitHub compare page URL
101
+ #
102
+ # @param before_version [String]
103
+ # @param after_version [String]
104
+ def compare_page_url(before_version, after_version)
105
+ "#{RUBOCOP_REPO_URL}/compare/v#{before_version}...v#{after_version}"
106
+ end
107
+
88
108
  def timestamp
89
109
  @timestamp ||= Time.now.strftime('%Y%m%d%H%M%S')
90
110
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopChallenger
4
- VERSION = '2.0.0.pre2'
4
+ VERSION = '2.0.0.pre3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_challenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre2
4
+ version: 2.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryosuke_sato
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-09 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pr_comet