rubocop_challenger 1.0.0.pre3 → 1.0.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +18 -0
- data/.rubocop_todo.yml +1 -1
- data/Gemfile.lock +1 -1
- data/bin/jailbreak +23 -0
- data/lib/rubocop_challenger/git/command.rb +7 -1
- data/lib/rubocop_challenger/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff966fe6c53440718235c54deae1cedecd6958a076e7bf29bac0f99ff5f26b92
|
4
|
+
data.tar.gz: f011ea0b2d78e17075c95300c4cd539a3ccd42f75fe6185d50ec04468e6ee61c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afafb0309fef92a70ec9c1b213888fd0b4ca9031b42d6b6ab05cb0aad08ecb9ff64eced6a53daa3083ebcd65ab6fbbdec0da07be6382328174c335a13d60cfdc
|
7
|
+
data.tar.gz: 1b16ea174536463b4c33d72dff17d0d30d75860e75ec64377283c5e3e6a02178b27e5e6d73581b96d3a3dcfc9f0c5493cac8c5ac8c95aacfc0fd0985d86aee14
|
data/.circleci/config.yml
CHANGED
@@ -69,6 +69,18 @@ references:
|
|
69
69
|
- *save_bundle_install_cache
|
70
70
|
- run: bundle exec rubocop
|
71
71
|
|
72
|
+
- &yardoc
|
73
|
+
working_directory: ~/repo
|
74
|
+
steps:
|
75
|
+
- checkout
|
76
|
+
- *restore_bundle_install_cache
|
77
|
+
- *bundle_install
|
78
|
+
- *save_bundle_install_cache
|
79
|
+
- run: bundle exec yardoc -o ./yardoc
|
80
|
+
- store_artifacts:
|
81
|
+
path: ./yardoc
|
82
|
+
destination: yardoc
|
83
|
+
|
72
84
|
jobs:
|
73
85
|
build_on_ruby_2.3:
|
74
86
|
docker:
|
@@ -90,6 +102,10 @@ jobs:
|
|
90
102
|
docker:
|
91
103
|
- image: circleci/ruby:2.3-node-browsers
|
92
104
|
<<: *rubocop
|
105
|
+
yardoc:
|
106
|
+
docker:
|
107
|
+
- image: circleci/ruby:2.3-node-browsers
|
108
|
+
<<: *yardoc
|
93
109
|
verify_rubocop_challenge:
|
94
110
|
docker:
|
95
111
|
- image: circleci/ruby:2.3-node-browsers
|
@@ -100,6 +116,7 @@ jobs:
|
|
100
116
|
- *bundle_install
|
101
117
|
- *save_bundle_install_cache
|
102
118
|
- run: bundle exec rake install
|
119
|
+
- run: bundle exec bin/jailbreak
|
103
120
|
- run:
|
104
121
|
name: Verify Rubocop Challenge
|
105
122
|
command: |
|
@@ -157,6 +174,7 @@ workflows:
|
|
157
174
|
- build_on_ruby_2.5
|
158
175
|
- build_on_ruby_latest
|
159
176
|
- rubocop
|
177
|
+
- yardoc
|
160
178
|
- verify_rubocop_challenge
|
161
179
|
- release:
|
162
180
|
context: RubyGems API Key
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2018-11-
|
3
|
+
# on 2018-11-26 15:03:09 +0900 using RuboCop version 0.60.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
data/bin/jailbreak
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# usage: bin/create_release_pr VERSION
|
5
|
+
|
6
|
+
require 'bundler/setup'
|
7
|
+
require 'rubocop_challenger'
|
8
|
+
|
9
|
+
VERSION_FILE_PATH = 'lib/rubocop_challenger/version.rb'
|
10
|
+
rubocop = RubocopChallenger::Rubocop::Command.new
|
11
|
+
|
12
|
+
# Read any ruby file
|
13
|
+
version_file = File.read(VERSION_FILE_PATH)
|
14
|
+
|
15
|
+
# Modify the file contents
|
16
|
+
version_file.sub!('# frozen_string_literal: true', '')
|
17
|
+
version_file.gsub!("\n", " \n ")
|
18
|
+
|
19
|
+
# Write the origin ruby file
|
20
|
+
File.write(VERSION_FILE_PATH, version_file)
|
21
|
+
|
22
|
+
# Regenerate .rubocop_todo.yml
|
23
|
+
rubocop.auto_gen_config
|
@@ -39,8 +39,14 @@ module RubocopChallenger
|
|
39
39
|
run_with_environments('commit', '-m', "\"#{message}\"")
|
40
40
|
end
|
41
41
|
|
42
|
+
# Execute git push command
|
43
|
+
#
|
44
|
+
# @note For security, this command add a quiet option automatically.
|
45
|
+
# @param remote [String] The remote repository name.
|
46
|
+
# @param branch [String] The target branch. default: `#current_branch`
|
47
|
+
# @return [String] The command's standard output.
|
42
48
|
def push(remote, branch = current_branch)
|
43
|
-
run('push', remote, branch)
|
49
|
+
run('push', '-q', remote, branch)
|
44
50
|
end
|
45
51
|
|
46
52
|
def current_sha1
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.pre4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryosuke_sato
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- Rakefile
|
174
174
|
- bin/console
|
175
175
|
- bin/create_release_pr
|
176
|
+
- bin/jailbreak
|
176
177
|
- bin/setup
|
177
178
|
- challenger.gemspec
|
178
179
|
- exe/rubocop_challenger
|