qiita_trend 0.4.4 → 0.4.5

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: a9f72474f53962e844a41d6bc6080c3abc23b4fd2492d5be9f30a5456f66a14d
4
- data.tar.gz: 7f08bf843350d2de37e44e7966f954f19ea59b12836e15cbe38b659cff10a815
3
+ metadata.gz: 83a51498035ba246edfedbe6961d00ca621101466367b414a11dfac2786898cd
4
+ data.tar.gz: 692aa267fab531eae0aa94382bdfb633a10520aa051c3c957f0ae94c67135be4
5
5
  SHA512:
6
- metadata.gz: 5899976e67178dbe9662e6bf4b604ce19600b786220d5725e925498af94f61de57eada3555c6fb1dc53676240019cd0adcaa921334328b0fdfd405c9d86957a9
7
- data.tar.gz: 9d695e08ff83871d0e95bb03353fd1556acbfeab73176b05a87fb35e29bdb7599ac1f44a508942037991a5ea7f1299692895ab51e1ccf839cf7dd91b6df15afb
6
+ metadata.gz: 2fe96acf2e2d7644399ae9d7f2a9af813189ddea8cde464b0940212cc8a9b9cc6e05689ed3aac1ae178effe1fd6999881d6a98797b486372cc130802c3d3b2f8
7
+ data.tar.gz: f3b04ccf33818a5d0df195f84e78a55f11b14fdb19180e87051445678512052ab92268bc4c7b806decbbecf32e55cdb8010a36a02cb2d579046781ecc100eef2
@@ -1,10 +1,14 @@
1
1
  version: 2.1
2
2
  orbs:
3
+ ruby: circleci/ruby@1.1.2
3
4
  slack: circleci/slack@3.4.2
4
5
  executors:
5
6
  base:
6
7
  docker:
7
- - image: circleci/ruby:2.6.0
8
+ - image: cimg/ruby:2.6.6
9
+ auth:
10
+ username: dodonki1223
11
+ password: $DOCKERHUB_PASSWORD
8
12
  environment:
9
13
  # Bundlerのパス設定が書き換えられ`vendor/bundle`ではなくて`/usr/local/bundle`を参照してしまい`bundle exec`でエラーになる
10
14
  # Bundlerのconfigファイル(pathの設定がされたもの)をworkspaceで永続化し`vendor/bundle`を参照するようにするための設定
@@ -14,36 +18,6 @@ executors:
14
18
  working_directory: ~/dodonki1223/qiita_trend
15
19
 
16
20
  commands:
17
- install-bundler:
18
- steps:
19
- - run:
20
- name: Install bundler(2.1.0)
21
- command: gem install bundler:2.1.0
22
-
23
- # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
24
- restore-gem-cache:
25
- steps:
26
- - restore_cache:
27
- keys:
28
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
29
- # fallback to using the latest cache if no exact match is found
30
- - v1-dependencies-
31
-
32
- install-gem:
33
- steps:
34
- - run:
35
- name: Install gem
36
- command: |
37
- # jobs=4は並列処理をして高速化するための設定(4つのjobで実行するって意味)
38
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
39
-
40
- save-gem-cache:
41
- steps:
42
- - save_cache:
43
- paths:
44
- - ./vendor/bundle
45
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
46
-
47
21
  save-workspace:
48
22
  steps:
49
23
  - persist_to_workspace:
@@ -57,35 +31,8 @@ commands:
57
31
  # working_directory からの相対パスか絶対パスを指定します
58
32
  at: .
59
33
 
60
- run-rubocop:
61
- steps:
62
- - run:
63
- name: Run RuboCop
64
- command: |
65
- bundle exec rubocop
66
-
67
- run-tests:
68
- steps:
69
- - run:
70
- name: Run tests
71
- command: |
72
- TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
73
- bundle exec rspec \
74
- --format progress \
75
- --format RspecJunitFormatter \
76
- --out test_results/rspec/rspec.xml \
77
- --format progress \
78
- $TEST_FILES
79
-
80
34
  collect-reports:
81
35
  steps:
82
- # ref:https://circleci.com/docs/ja/2.0/configuration-reference/#store_test_results
83
- - store_test_results:
84
- path: test_results
85
- - store_artifacts:
86
- # テスト結果をtest-resultsディレクトリに吐き出す
87
- path: test_results
88
- destination: test-results
89
36
  - store_artifacts:
90
37
  # カバレッジの結果をcoverage-resultsディレクトリに吐き出す
91
38
  path: coverage
@@ -140,39 +87,37 @@ jobs:
140
87
  executor: base
141
88
  steps:
142
89
  - checkout
143
- - install-bundler
144
- - restore-gem-cache
145
- - install-gem
146
- - save-gem-cache
90
+ - ruby/install-deps
147
91
  - save-workspace
148
92
 
149
93
  lint:
150
94
  executor: base
151
95
  steps:
152
96
  - using-workspace
153
- - install-bundler
154
- - run-rubocop
97
+ - ruby/install-deps
98
+ - ruby/rubocop-check
155
99
 
156
100
  test:
157
101
  executor: base
158
102
  steps:
159
103
  - using-workspace
160
- - install-bundler
161
- - run-tests
104
+ - ruby/install-deps
105
+ - ruby/rspec-test:
106
+ out-path: 'test_results/rspec/'
162
107
  - collect-reports
163
108
 
164
109
  document:
165
110
  executor: base
166
111
  steps:
167
112
  - using-workspace
168
- - install-bundler
113
+ - ruby/install-deps
169
114
  - create-document
170
115
 
171
116
  deploy:
172
117
  executor: base
173
118
  steps:
174
119
  - using-workspace
175
- - install-bundler
120
+ - ruby/install-deps
176
121
  - deploy-rubygems
177
122
  - deploy-notification
178
123
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiita_trend (0.4.4)
4
+ qiita_trend (0.4.5)
5
5
  mechanize (~> 2.7)
6
6
  nokogiri (~> 1.10)
7
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QiitaTrend
4
- VERSION = '0.4.4'
4
+ VERSION = '0.4.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita_trend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - dodonki1223
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-06 00:00:00.000000000 Z
11
+ date: 2020-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  - !ruby/object:Gem::Version
272
272
  version: '0'
273
273
  requirements: []
274
- rubygems_version: 3.0.1
274
+ rubygems_version: 3.1.3
275
275
  signing_key:
276
276
  specification_version: 4
277
277
  summary: Easy to get trend for Qiita in 10 seconds