dodonki_sample 0.1.6 → 0.2.1

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: 98a75d44828cfe2bf735062482b5ba28c6444b73d544d2d11d25e12e3a64025e
4
- data.tar.gz: d0e6d6588491892bb39661284ac488b55ca1998d26fa92fbb3a850fc772003cb
3
+ metadata.gz: 3eaa3c1ca4130be98af97aafd3d23b5568eb8ebf654aefaa101be3d4c3db8673
4
+ data.tar.gz: 6f6cfde15abfd4e7792dcacd25142b2fe2a3d80332c6dac6553b6cd32fc7a739
5
5
  SHA512:
6
- metadata.gz: 888a5c648373edd94e5b6243814425f49ded1adb663186b8953ff7d492bcb3ec360fd70379c8b3121561a613a477bc0ee4ccc856e629ae808afcb681db6a488f
7
- data.tar.gz: 5331bd7b7340e8776129dd7ca300d09b80f6beb0926ad0375a556d5c96ba4649b33858d583d7826c87dafc09099ac6c421a31223b5cb7e56155200907e92235a
6
+ metadata.gz: 8f210bf70ac76a6c50b752a84dba815b0af75f7e301268e372326c8580f65a7de3cdffbffb37eff9657ba67bf435fc8e59f153da5343569beda857db5da8b4f3
7
+ data.tar.gz: 7f1edf8621b48d9f93f2140e67c8b40ba365ee32fbf637f44b8d52a2df3f2dbb51d717c21bdb5e924c9674419c2524bb06d5c5a653719d34ccd5cc5cb49c4faa
@@ -1,135 +1,127 @@
1
- version: 2 # use CircleCI 2.0
2
- jobs: # a collection of steps
3
- build: # runs not using Workflows must have a `build` job as entry point
4
- parallelism: 3 # run three instances of this job in parallel
5
- docker: # run the steps with Docker
6
- - image: circleci/ruby:2.4.2-jessie-node # ...with this image as the primary container; this is where all `steps` will run
7
- environment: # environment variables for primary container
8
- BUNDLE_JOBS: 3
9
- BUNDLE_RETRY: 3
10
- BUNDLE_PATH: vendor/bundle
11
-
12
- steps: # a collection of executable commands
13
- - checkout # special step to check out source code to working directory
14
-
15
- - run:
16
- name: install Bundler
17
- command: |
18
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
19
- source $BASH_ENV
20
- gem install bundler
21
-
22
- # Which version of bundler?
23
- - run:
24
- name: Which bundler?
25
- command: bundle -v
26
-
27
- # Restore bundle cache
28
- # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
29
- - restore_cache:
30
- keys:
31
- - gem-sample-{{ checksum "Gemfile.lock" }}
32
- - gem-sample-
33
-
34
- - run: # Install Ruby dependencies
35
- name: Bundle Install
36
- command: bundle check --path vendor/bundle || bundle install --deployment
37
-
38
- # Store bundle cache for Ruby dependencies
39
- - save_cache:
40
- key: gem-sample-{{ checksum "Gemfile.lock" }}
41
- paths:
42
- - vendor/bundle
43
-
44
- # run rubocop!
45
- - run:
46
- name: run rubocop
47
- command: |
48
- bundle exec rubocop
49
- - run:
50
- name: Run rspec in parallel
51
- command: |
52
- bundle exec rspec --profile 10 \
53
- --format RspecJunitFormatter \
54
- --out test_results/rspec.xml \
55
- --format progress \
56
- $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
57
- # create document
58
- - run:
59
- name: create document
60
- command: |
61
- bundle exec yard
62
-
63
- # Save test results for timing analysis
64
- - store_test_results: # Upload test results for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
65
- path: test_results
66
- - store_artifacts:
67
- # テスト結果をtest-resultsディレクトリに吐き出す
68
- path: test_results
69
- destination: test-results
1
+ version: 2.1
2
+ orbs:
3
+ ruby: circleci/ruby@1.1.2
4
+ slack: circleci/slack@3.4.2
5
+ executors:
6
+ base:
7
+ docker:
8
+ - image: cimg/ruby:2.6.6
9
+ auth:
10
+ username: dodonki1223
11
+ password: $DOCKERHUB_PASSWORD
12
+ environment:
13
+ BUNDLE_APP_CONFIG: .bundle
14
+ TZ: "Asia/Tokyo"
15
+ working_directory: ~/dodonki1223/dodonki_sample
16
+
17
+ commands:
18
+ save-workspace:
19
+ steps:
20
+ - persist_to_workspace:
21
+ # working_directory からの相対パスか絶対パスを指定します
22
+ root: .
23
+ paths: .
24
+
25
+ using-workspace:
26
+ steps:
27
+ - attach_workspace:
28
+ # working_directory からの相対パスか絶対パスを指定します
29
+ at: .
30
+
31
+ collect-reports:
32
+ steps:
70
33
  - store_artifacts:
71
34
  # カバレッジの結果をcoverage-resultsディレクトリに吐き出す
72
35
  path: coverage
73
36
  destination: coverage-results
37
+
38
+ create-document:
39
+ steps:
40
+ - run:
41
+ name: Create document
42
+ command: |
43
+ bundle exec yard
74
44
  - store_artifacts:
75
45
  # ドキュメントの結果をyard-resultsディレクトリに吐き出す
76
46
  path: ./doc
77
47
  destination: yard-results
78
- # See https://circleci.com/docs/2.0/deployment-integrations/ for example deploy configs
79
-
80
- deploy:
81
- docker: # run the steps with Docker
82
- - image: circleci/ruby:2.4.2-jessie-node # ...with this image as the primary container; this is where all `steps` will run
83
-
84
- steps: # a collection of executable commands
85
- - checkout # special step to check out source code to working directory
86
48
 
49
+ deploy-rubygems:
50
+ steps:
51
+ # ref:https://circleci.com/docs/2.0/gh-bb-integration/#establishing-the-authenticity-of-an-ssh-host
87
52
  - run:
88
- name: install Bundler
53
+ name: Avoid hosts unknown for github
89
54
  command: |
90
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
91
- source $BASH_ENV
92
- gem install bundler
93
-
94
- # Which version of bundler?
95
- - run:
96
- name: Which bundler?
97
- command: bundle -v
98
-
99
- # Restore bundle cache
100
- # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
101
- - restore_cache:
102
- keys:
103
- - gem-deploy-{{ checksum "Gemfile.lock" }}
104
- - gem-deploy-
105
-
106
- - run: # Install Ruby dependencies
107
- name: Bundle Install
108
- command: bundle check --path vendor/bundle || bundle install
109
-
110
- # Store bundle cache for Ruby dependencies
111
- - save_cache:
112
- key: gem-deploy-{{ checksum "Gemfile.lock" }}
113
- paths:
114
- - vendor/bundle
55
+ mkdir -p ~/.ssh
56
+ echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
57
+ ' >> ~/.ssh/known_hosts
115
58
 
116
59
  - run:
117
- name: deploy
60
+ name: Deploy RubyGems
118
61
  command: |
119
- curl -u dodonki1223:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
62
+ curl -u dodonki1223:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
63
+ chmod 0600 ~/.gem/credentials
120
64
  git config user.name dodonki1223
121
65
  git config user.email $RUBYGEMS_EMAIL
122
66
  bundle exec rake build
123
67
  bundle exec rake release
124
68
 
69
+ jobs:
70
+ setup:
71
+ executor: base
72
+ steps:
73
+ - checkout
74
+ - ruby/install-deps
75
+ - save-workspace
76
+
77
+ lint:
78
+ executor: base
79
+ steps:
80
+ - using-workspace
81
+ - ruby/install-deps
82
+ - ruby/rubocop-check
83
+
84
+ test:
85
+ executor: base
86
+ steps:
87
+ - using-workspace
88
+ - ruby/install-deps
89
+ - ruby/rspec-test:
90
+ out-path: 'test_results/rspec/'
91
+ - collect-reports
92
+
93
+ document:
94
+ executor: base
95
+ steps:
96
+ - using-workspace
97
+ - ruby/install-deps
98
+ - create-document
99
+
100
+ deploy:
101
+ executor: base
102
+ steps:
103
+ - using-workspace
104
+ - ruby/install-deps
105
+ - deploy-rubygems
106
+
125
107
  workflows:
126
- version: 2
127
- build-and-deploy:
108
+ version: 2.1
109
+ main:
128
110
  jobs:
129
- - build
111
+ - setup
112
+ - lint:
113
+ requires:
114
+ - setup
115
+ - test:
116
+ requires:
117
+ - setup
118
+ - document:
119
+ requires:
120
+ - setup
130
121
  - deploy:
131
122
  requires:
132
- - build
123
+ - lint
124
+ - test
133
125
  filters:
134
126
  branches:
135
127
  only: master
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dodonki_sample (0.1.6)
4
+ dodonki_sample (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,12 +10,12 @@ GEM
10
10
  diff-lcs (1.3)
11
11
  docile (1.3.1)
12
12
  jaro_winkler (1.5.3)
13
- json (2.1.0)
13
+ json (2.3.1)
14
14
  parallel (1.17.0)
15
15
  parser (2.6.3.0)
16
16
  ast (~> 2.4.0)
17
17
  rainbow (3.0.0)
18
- rake (10.5.0)
18
+ rake (13.0.1)
19
19
  rspec (3.8.0)
20
20
  rspec-core (~> 3.8.0)
21
21
  rspec-expectations (~> 3.8.0)
@@ -55,7 +55,7 @@ PLATFORMS
55
55
  DEPENDENCIES
56
56
  bundler (~> 2.0)
57
57
  dodonki_sample!
58
- rake (~> 10.0)
58
+ rake (~> 13.0)
59
59
  rspec (~> 3.0)
60
60
  rspec_junit_formatter
61
61
  rubocop (~> 0.62)
@@ -64,4 +64,4 @@ DEPENDENCIES
64
64
  yard
65
65
 
66
66
  BUNDLED WITH
67
- 2.0.2
67
+ 2.1.2
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.require_paths = ['lib']
32
32
 
33
33
  spec.add_development_dependency 'bundler', '~> 2.0'
34
- spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'rake', '~> 13.0'
35
35
  spec.add_development_dependency 'rspec', '~> 3.0'
36
36
  spec.add_development_dependency 'rspec_junit_formatter'
37
37
  spec.add_development_dependency 'rubocop', '~> 0.62'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DodonkiSample
4
- VERSION = '0.1.6'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dodonki_sample
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dodonki1223
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2020-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
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: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -163,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
- rubyforge_project:
167
- rubygems_version: 2.7.3
166
+ rubygems_version: 3.1.3
168
167
  signing_key:
169
168
  specification_version: 4
170
169
  summary: dodonki sample gem file