circleci-bundle-update-pr 1.19.1 → 2.0.0

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: 730cf45188a3e7ade4a86888213ad67b10fa42361e4756981742bf4860a2f367
4
- data.tar.gz: 7ac1b4bb2bbf24b5d1f9e99eff77daed08ce47b8dbf7303a2ada5c632813febe
3
+ metadata.gz: ca0f586fe71477f8f9e4e1ea9d7a5459283b63cccfbb51dc38406a48ea0a543a
4
+ data.tar.gz: 324a4619c170a0cfdb495d503eef5a178742c736f4304c8e298ceb20a8456952
5
5
  SHA512:
6
- metadata.gz: c495fb836efa260792e4566196535ea6e303a0cb381f986c28cc17dc6fe0acaa8eb6dfd06cbdd64a25669bef0a4a675b3e5b35b86863497d956f185aac26885e
7
- data.tar.gz: 3895f662650e7fcffb41b487b30eee9645765799dabf70d99d3add75e22776cb5e938f8b2197a2ab6a0f2b8fcfbd006b1ebd7b44767c9b27f6012db881f0d038
6
+ metadata.gz: 2a7514514afd1cc031b42efb488b5db935e64aa52294c5695dc2aa6f61ed4a56dde6bc3af7fe9cd9b36154954289320ebd60086c513d503eed6c3794ac436c93
7
+ data.tar.gz: 133c87fe7015b10c71acf4b0f53e94ed16ad4b79223f308f4063af4a86e06cdc53ffe190fcab3489ce2a0e73375055282e4d2fe3ace1ed5620c2bbcdf9d13238
@@ -1,32 +1,43 @@
1
1
  version: 2.1
2
2
 
3
+ orbs:
4
+ pushover: masutaka/pushover@dev:beta3
5
+
3
6
  executors:
4
7
  default:
5
8
  parameters:
6
9
  ruby_version:
7
10
  type: enum
8
- enum: ['2.3', '2.4', '2.5', '2.6', '2.7']
11
+ enum: ['2.4', '2.5', '2.6', '2.7']
9
12
  docker:
10
- - image: ruby:<< parameters.ruby_version >>-alpine
11
- working_directory: /work
13
+ - image: cimg/ruby:<< parameters.ruby_version >>
14
+ working_directory: ~/repo
12
15
 
13
16
  commands:
17
+ notify_on_failure_on_default_branch:
18
+ steps:
19
+ - pushover/notify:
20
+ title: "Failed: ${CIRCLE_PROJECT_REPONAME}'s job (${CIRCLE_JOB})"
21
+ message: "failed ${CIRCLE_USERNAME:Bot}'s build (#${CIRCLE_BUILD_NUM}) in ${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME} (${CIRCLE_BRANCH})"
22
+ priority: 1 # high
23
+ fail_only: true
24
+ only_for_branches: master
14
25
  setup_requirements:
15
26
  steps:
16
27
  - run:
17
28
  name: Install System Dependencies
18
29
  command: |
19
- # See also https://circleci.com/docs/2.0/custom-images/#adding-required-and-custom-tools-or-files
20
- apk add --update-cache --no-cache --no-progress git openssh-client tar gzip ca-certificates \
21
- build-base tzdata
30
+ # for cimg/ruby:2.4
31
+ sudo apt update -q
32
+ sudo apt install -q tzdata
22
33
  - run:
23
34
  name: Set timezone to Asia/Tokyo
24
- command: cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
35
+ command: sudo cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
25
36
  restore_bundle_cache:
26
37
  parameters:
27
38
  ruby_version:
28
39
  type: enum
29
- enum: ['2.3', '2.4', '2.5', '2.6', '2.7']
40
+ enum: ['2.4', '2.5', '2.6', '2.7']
30
41
  steps:
31
42
  - restore_cache:
32
43
  name: Restore bundle cache
@@ -37,20 +48,25 @@ commands:
37
48
  parameters:
38
49
  ruby_version:
39
50
  type: enum
40
- enum: ['2.3', '2.4', '2.5', '2.6', '2.7']
51
+ enum: ['2.4', '2.5', '2.6', '2.7']
41
52
  steps:
42
53
  - save_cache:
43
54
  name: Save bundle cache
44
55
  key: gems-ruby<< parameters.ruby_version >>-{{ .Environment.COMMON_CACHE_KEY }}-{{ checksum "Gemfile.lock" }}
45
56
  paths:
46
- - /usr/local/bundle
57
+ - ~/repo/vendor/bundle
58
+ install_bundler:
59
+ steps:
60
+ - run:
61
+ name: install bundler
62
+ command: gem install -N bundler:1.17.3 # same version as Gemfile.lock
47
63
 
48
64
  jobs:
49
65
  build:
50
66
  parameters:
51
67
  ruby_version:
52
68
  type: enum
53
- enum: ['2.3', '2.4', '2.5', '2.6', '2.7']
69
+ enum: ['2.4', '2.5', '2.6', '2.7']
54
70
  executor:
55
71
  name: default
56
72
  ruby_version: << parameters.ruby_version >>
@@ -59,18 +75,17 @@ jobs:
59
75
  - checkout
60
76
  - restore_bundle_cache:
61
77
  ruby_version: << parameters.ruby_version >>
62
- - run:
63
- name: install bundler
64
- command: gem install -N bundler:1.17.2 # same version as Gemfile.lock
78
+ - install_bundler
65
79
  - run:
66
80
  name: bundle install
67
81
  command: |
68
- bundle check || bundle install --jobs=4 --retry=3
69
- bundle clean --force
82
+ bundle check || bundle install --jobs=4 --retry=3 --path=vendor/bundle
83
+ bundle clean
70
84
  - save_bundle_cache:
71
85
  ruby_version: << parameters.ruby_version >>
72
- - run: rubocop
73
- - run: rspec
86
+ - run: bundle exec rubocop
87
+ - run: bundle exec rspec
88
+ - notify_on_failure_on_default_branch
74
89
  continuous_bundle_update:
75
90
  executor:
76
91
  name: default
@@ -80,6 +95,7 @@ jobs:
80
95
  - checkout
81
96
  - restore_bundle_cache:
82
97
  ruby_version: '2.7'
98
+ - install_bundler
83
99
  - run:
84
100
  name: Install edge circleci-bundle-update-pr
85
101
  command: |
@@ -88,14 +104,12 @@ jobs:
88
104
  - deploy:
89
105
  name: Run circleci-bundle-update-pr
90
106
  command: circleci-bundle-update-pr CircleCI circleci@example.com $CIRCLE_BRANCH
107
+ - notify_on_failure_on_default_branch
91
108
 
92
109
  workflows:
93
110
  version: 2
94
111
  ordinary:
95
112
  jobs:
96
- - build:
97
- name: ruby-2.3
98
- ruby_version: '2.3'
99
113
  - build:
100
114
  name: ruby-2.4
101
115
  ruby_version: '2.4'
@@ -3,7 +3,8 @@ require: rubocop-rspec
3
3
 
4
4
  AllCops:
5
5
  DisplayCopNames: true
6
- TargetRubyVersion: 2.3
6
+ NewCops: enable
7
+ TargetRubyVersion: 2.4
7
8
 
8
9
  Layout/LineLength:
9
10
  Enabled: false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- circleci-bundle-update-pr (1.19.1)
4
+ circleci-bundle-update-pr (2.0.0)
5
5
  compare_linker (>= 1.4.0)
6
6
  octokit
7
7
 
@@ -10,52 +10,60 @@ GEM
10
10
  specs:
11
11
  addressable (2.7.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
- ast (2.4.0)
13
+ ast (2.4.1)
14
14
  compare_linker (1.4.4)
15
15
  httpclient
16
16
  octokit
17
- diff-lcs (1.3)
18
- faraday (1.0.0)
17
+ diff-lcs (1.4.4)
18
+ faraday (1.1.0)
19
19
  multipart-post (>= 1.2, < 3)
20
+ ruby2_keywords
20
21
  httpclient (2.8.3)
21
- jaro_winkler (1.5.4)
22
22
  multipart-post (2.1.1)
23
- octokit (4.17.0)
23
+ octokit (4.19.0)
24
24
  faraday (>= 0.9)
25
25
  sawyer (~> 0.8.0, >= 0.5.3)
26
- parallel (1.19.1)
27
- parser (2.7.0.2)
28
- ast (~> 2.4.0)
29
- public_suffix (4.0.3)
26
+ parallel (1.19.2)
27
+ parser (2.7.2.0)
28
+ ast (~> 2.4.1)
29
+ public_suffix (4.0.6)
30
30
  rainbow (3.0.0)
31
31
  rake (13.0.1)
32
+ regexp_parser (1.8.2)
33
+ rexml (3.2.4)
32
34
  rspec (3.9.0)
33
35
  rspec-core (~> 3.9.0)
34
36
  rspec-expectations (~> 3.9.0)
35
37
  rspec-mocks (~> 3.9.0)
36
- rspec-core (3.9.1)
37
- rspec-support (~> 3.9.1)
38
- rspec-expectations (3.9.0)
38
+ rspec-core (3.9.3)
39
+ rspec-support (~> 3.9.3)
40
+ rspec-expectations (3.9.3)
39
41
  diff-lcs (>= 1.2.0, < 2.0)
40
42
  rspec-support (~> 3.9.0)
41
43
  rspec-mocks (3.9.1)
42
44
  diff-lcs (>= 1.2.0, < 2.0)
43
45
  rspec-support (~> 3.9.0)
44
- rspec-support (3.9.2)
45
- rubocop (0.79.0)
46
- jaro_winkler (~> 1.5.1)
46
+ rspec-support (3.9.4)
47
+ rubocop (0.93.1)
47
48
  parallel (~> 1.10)
48
- parser (>= 2.7.0.1)
49
+ parser (>= 2.7.1.5)
49
50
  rainbow (>= 2.2.2, < 4.0)
51
+ regexp_parser (>= 1.8)
52
+ rexml
53
+ rubocop-ast (>= 0.6.0)
50
54
  ruby-progressbar (~> 1.7)
51
- unicode-display_width (>= 1.4.0, < 1.7)
52
- rubocop-rspec (1.38.1)
53
- rubocop (>= 0.68.1)
55
+ unicode-display_width (>= 1.4.0, < 2.0)
56
+ rubocop-ast (1.1.0)
57
+ parser (>= 2.7.1.5)
58
+ rubocop-rspec (1.44.1)
59
+ rubocop (~> 0.87)
60
+ rubocop-ast (>= 0.7.1)
54
61
  ruby-progressbar (1.10.1)
62
+ ruby2_keywords (0.0.2)
55
63
  sawyer (0.8.2)
56
64
  addressable (>= 2.3.5)
57
65
  faraday (> 0.8, < 2.0)
58
- unicode-display_width (1.6.1)
66
+ unicode-display_width (1.7.0)
59
67
 
60
68
  PLATFORMS
61
69
  ruby
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
+ spec.required_ruby_version = '>= 2.4.0'
23
+
22
24
  spec.add_dependency 'compare_linker', '>= 1.4.0'
23
25
  spec.add_dependency 'octokit'
24
26
 
@@ -4,7 +4,7 @@ module Circleci
4
4
  module Bundle
5
5
  module Update
6
6
  module Pr
7
- VERSION = '1.19.1'
7
+ VERSION = '2.0.0'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circleci-bundle-update-pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Masuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-17 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compare_linker
@@ -146,14 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: '0'
149
+ version: 2.4.0
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.0.3
156
+ rubygems_version: 3.1.2
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Provide continues bundle update using CircleCI