dodonki_sample 0.1.8 → 0.1.9

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: af70180e781854e60f582c8eed73639f56ec50f87321156282362beae3e96fe7
4
- data.tar.gz: c44927904fe76193a397400243ef05de9aaceb9853f03a770f61a50c253d6d65
3
+ metadata.gz: 6e590d6e2caff06f2c04932f4127ebf2f72864755f27cc3763e319cdc28d3dc6
4
+ data.tar.gz: 13d34175b849c322bff7b770c59b7053911ea6ca03572a0a69eaf9e48daae7cd
5
5
  SHA512:
6
- metadata.gz: ca4bec33a1c83b53e083c4fe8c2c9db1a8f15c41bc1d2be0cbfc197767b674dbb2da4f4b3a3e0af1512313e308ba0a8793821a439a84a239f9f3e6d965e3d21f
7
- data.tar.gz: f8df0475b59be6823edd03b9aa32741728e7a98740d5122bcd16e04b3b14d9bfa4e9103e6eb055edbc2f908576ced03d24acc77588be708815a8895055068fbd
6
+ metadata.gz: da465b333d6d439271e578c9af6e22a817b91bf0e52c18bf3c6910bfa13ec59188f209190e17ca3e65153d975fec9cf36347d0a55a0e6b51078b88888b68f39f
7
+ data.tar.gz: 3ae14ba1a1e25e1c5e43c42e198d9c2bac64b778b34622470d02ab8e10b2f5c382d43c4598fbf96a0df5ecd2d5c237e2d834a5edf097f6406e2832eb85a414e1
@@ -1,135 +1,134 @@
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
48
 
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
49
+ deploy-rubygems:
50
+ steps:
51
+ # ref:https://support.circleci.com/hc/ja/articles/115015628247-%E6%8E%A5%E7%B6%9A%E3%82%92%E7%B6%9A%E8%A1%8C%E3%81%97%E3%81%BE%E3%81%99%E3%81%8B-%E3%81%AF%E3%81%84-%E3%81%84%E3%81%84%E3%81%88-
52
+ # read/write両方の権限が必要
53
+ - add_ssh_keys:
54
+ fingerprints:
55
+ - "38:d2:72:5e:9f:67:93:9a:ec:95:94:a2:0e:bf:41:9e"
86
56
 
57
+ # ref:https://circleci.com/docs/2.0/gh-bb-integration/#establishing-the-authenticity-of-an-ssh-host
87
58
  - run:
88
- name: install Bundler
59
+ name: Avoid hosts unknown for github
89
60
  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
61
+ mkdir -p ~/.ssh
62
+ echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
63
+ bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
64
+ ' >> ~/.ssh/known_hosts
115
65
 
116
66
  - run:
117
- name: deploy
67
+ name: Deploy RubyGems
118
68
  command: |
119
- curl -u dodonki1223:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
69
+ curl -u dodonki1223:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
70
+ chmod 0600 ~/.gem/credentials
120
71
  git config user.name dodonki1223
121
72
  git config user.email $RUBYGEMS_EMAIL
122
73
  bundle exec rake build
123
74
  bundle exec rake release
124
75
 
76
+ jobs:
77
+ setup:
78
+ executor: base
79
+ steps:
80
+ - checkout
81
+ - ruby/install-deps
82
+ - save-workspace
83
+
84
+ lint:
85
+ executor: base
86
+ steps:
87
+ - using-workspace
88
+ - ruby/install-deps
89
+ - ruby/rubocop-check
90
+
91
+ test:
92
+ executor: base
93
+ steps:
94
+ - using-workspace
95
+ - ruby/install-deps
96
+ - ruby/rspec-test:
97
+ out-path: 'test_results/rspec/'
98
+ - collect-reports
99
+
100
+ document:
101
+ executor: base
102
+ steps:
103
+ - using-workspace
104
+ - ruby/install-deps
105
+ - create-document
106
+
107
+ deploy:
108
+ executor: base
109
+ steps:
110
+ - using-workspace
111
+ - ruby/install-deps
112
+ - deploy-rubygems
113
+
125
114
  workflows:
126
- version: 2
127
- build-and-deploy:
115
+ version: 2.1
116
+ main:
128
117
  jobs:
129
- - build
118
+ - setup
119
+ - lint:
120
+ requires:
121
+ - setup
122
+ - test:
123
+ requires:
124
+ - setup
125
+ - document:
126
+ requires:
127
+ - setup
130
128
  - deploy:
131
129
  requires:
132
- - build
130
+ - lint
131
+ - test
133
132
  filters:
134
133
  branches:
135
134
  only: master
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dodonki_sample (0.1.8)
4
+ dodonki_sample (0.1.9)
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.8'
4
+ VERSION = '0.1.9'
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.8
4
+ version: 0.1.9
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-21 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