qiita_trend 0.3.5 → 0.3.6

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: 4e74aadb2bce6f5771bebadc4bf48a9edb09c621e33ff95c239da3d458d87264
4
- data.tar.gz: 6fc7f0c9c2a9543025ddd74d25ee6c205fdf256adf83fd808a7d7923dc4a21ce
3
+ metadata.gz: 326e5c0a033ddcbf017c285c7737209366e37ec96a96fed6656a491e8089ca10
4
+ data.tar.gz: 6394bf03e8bd3cc615c6a0c1bc7667661ff28f86a8d30690234a0c5248f07f0c
5
5
  SHA512:
6
- metadata.gz: 20fd415c7ae5685333264565899c36845449a807eb2ac900acae3849ce81b2770a59d5b1d6efe141677b9f8b40bc6d6c69c74ca9b254f3095f1e90af5d3c4e50
7
- data.tar.gz: f3412f29aac75eebf1b5a799571af7bb023a33f4ec71aa726993de44cdfd37e6784724efc0666e4ed1213f999c63479560cc4944ebbb15bc141bb0c04dd8ffd8
6
+ metadata.gz: 20c16e631d20e707fbee89a12a3c17d181870f19128f47c2b51d2169bdc0b1dcebb93964ed7e9dfe7766afc3d8e9d1b1c6e783fe8dd77fe12f0d382f71622c64
7
+ data.tar.gz: 3feed3f1f88c721050e98649dbd4be40708aba94235e84e5147d854c46b6c3078ed6cd10dbafb50de4e4c074ca00d6bce19d5129bcf604b872d7b7ee9361115f
data/.circleci/config.yml CHANGED
@@ -1,62 +1,58 @@
1
- # Ruby CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
- #
5
- version: 2
6
- jobs:
7
- build:
1
+ version: 2.1
2
+ executors:
3
+ base:
8
4
  docker:
9
5
  - image: circleci/ruby:2.6.0
10
6
  environment:
11
7
  BUNDLE_PATH: vendor/bundle
12
-
13
8
  working_directory: ~/repo
14
9
 
10
+ commands:
11
+ # ref:https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411
12
+ install-bundler:
15
13
  steps:
16
- - checkout
17
-
18
- # Install Bundler
19
- # ref:https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411
20
14
  - run:
21
15
  name: Install Bundler
22
16
  command: |
23
17
  echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
24
18
  source $BASH_ENV
25
19
  gem install bundler
20
+ # Which version of bundler?
21
+ bundle -v
26
22
 
27
- # Which version of bundler?
28
- - run:
29
- name: Which bundler?
30
- command: bundle -v
31
-
32
- # Restore bundle cache
33
- # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
23
+ # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
24
+ restore-gem-cache:
25
+ steps:
34
26
  - restore_cache:
35
27
  keys:
36
28
  - v1-dependencies-{{ checksum "Gemfile.lock" }}
37
29
  # fallback to using the latest cache if no exact match is found
38
30
  - v1-dependencies-
39
31
 
40
- # Install gem
32
+ install-gem:
33
+ steps:
41
34
  - run:
42
35
  name: Install gem
43
36
  command: |
44
37
  # jobs=4は並列処理をして高速化するための設定(4つのjobで実行するって意味)
45
38
  bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
46
39
 
47
- # Store bundle cache for Ruby dependencies
40
+ save-gem-cache:
41
+ steps:
48
42
  - save_cache:
49
43
  paths:
50
44
  - ./vendor/bundle
51
45
  key: v1-dependencies-{{ checksum "Gemfile.lock" }}
52
46
 
53
- # Run RuboCop
47
+ run-rubocop:
48
+ steps:
54
49
  - run:
55
50
  name: Run RuboCop
56
51
  command: |
57
52
  bundle exec rubocop
58
53
 
59
- # Run tests
54
+ run-tests:
55
+ steps:
60
56
  - run:
61
57
  name: Run tests
62
58
  command: |
@@ -68,13 +64,16 @@ jobs:
68
64
  --format progress \
69
65
  $TEST_FILES
70
66
 
71
- # Create document
67
+ create-document:
68
+ steps:
72
69
  - run:
73
70
  name: Create document
74
71
  command: |
75
72
  bundle exec yard
76
73
 
77
- # Collect Reports
74
+ collect-reports:
75
+ steps:
76
+ # ref:https://circleci.com/docs/ja/2.0/configuration-reference/#store_test_results
78
77
  - store_test_results:
79
78
  path: test_results
80
79
  - store_artifacts:
@@ -90,46 +89,9 @@ jobs:
90
89
  path: ./doc
91
90
  destination: yard-results
92
91
 
93
- deploy:
94
- docker:
95
- - image: circleci/ruby:2.6.0
96
-
92
+ # Deploy RubyGems
93
+ deploy-rubygems:
97
94
  steps:
98
- - checkout
99
-
100
- # Install Bundler
101
- # ref:https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411
102
- - run:
103
- name: install Bundler
104
- command: |
105
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
106
- source $BASH_ENV
107
- gem install bundler
108
-
109
- # Which version of bundler?
110
- - run:
111
- name: Which bundler?
112
- command: bundle -v
113
-
114
- # Restore bundle cache
115
- # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
116
- - restore_cache:
117
- keys:
118
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
119
- - v1-dependencies-
120
-
121
- # Install gem
122
- - run:
123
- name: Install gem
124
- command: bundle check --path vendor/bundle || bundle install
125
-
126
- # Store bundle cache for Ruby dependencies
127
- - save_cache:
128
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
129
- paths:
130
- - vendor/bundle
131
-
132
- # Deploy RubyGems
133
95
  - run:
134
96
  name: Deploy RubyGems
135
97
  command: |
@@ -139,14 +101,57 @@ jobs:
139
101
  bundle exec rake build
140
102
  bundle exec rake release
141
103
 
104
+ jobs:
105
+ setup:
106
+ executor: base
107
+ steps:
108
+ - checkout
109
+ - install-bundler
110
+ - restore-gem-cache
111
+ - install-gem
112
+ - save-gem-cache
113
+
114
+ lint:
115
+ executor: base
116
+ steps:
117
+ - checkout
118
+ - install-bundler
119
+ - restore-gem-cache
120
+ - run-rubocop
121
+
122
+ test:
123
+ executor: base
124
+ steps:
125
+ - checkout
126
+ - install-bundler
127
+ - restore-gem-cache
128
+ - run-tests
129
+ - create-document
130
+ - collect-reports
131
+
132
+ deploy:
133
+ executor: base
134
+ steps:
135
+ - checkout
136
+ - install-bundler
137
+ - restore-gem-cache
138
+ - deploy-rubygems
139
+
142
140
  workflows:
143
- version: 2
144
- build-and-deploy:
141
+ version: 2.1
142
+ main:
145
143
  jobs:
146
- - build
144
+ - setup
145
+ - lint:
146
+ requires:
147
+ - setup
148
+ - test:
149
+ requires:
150
+ - setup
147
151
  - deploy:
148
152
  requires:
149
- - build
153
+ - lint
154
+ - test
150
155
  filters:
151
156
  branches:
152
157
  only: master # masterブランチの時だけDeployJobを実行するようにする
data/.gitignore CHANGED
@@ -11,6 +11,9 @@
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
13
 
14
+ # Exclude InteliJ
15
+ .idea
16
+
14
17
  /cache/
15
18
  /spec/vcr/
16
19
  /vendor/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiita_trend (0.3.5)
4
+ qiita_trend (0.3.6)
5
5
  mechanize
6
6
  nokogiri (~> 1.9)
7
7
 
@@ -32,14 +32,14 @@ GEM
32
32
  nokogiri (~> 1.6)
33
33
  ntlm-http (~> 0.1, >= 0.1.1)
34
34
  webrobots (>= 0.0.9, < 0.2)
35
- mime-types (3.2.2)
35
+ mime-types (3.3)
36
36
  mime-types-data (~> 3.2015)
37
- mime-types-data (3.2019.0331)
37
+ mime-types-data (3.2019.1009)
38
38
  mini_portile2 (2.4.0)
39
39
  net-http-digest_auth (1.4.1)
40
40
  net-http-persistent (3.1.0)
41
41
  connection_pool (~> 2.2)
42
- nokogiri (1.10.4)
42
+ nokogiri (1.10.7)
43
43
  mini_portile2 (~> 2.4.0)
44
44
  ntlm-http (0.1.1)
45
45
  parallel (1.17.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QiitaTrend
4
- VERSION = '0.3.5'
4
+ VERSION = '0.3.6'
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - dodonki1223
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2019-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize