qiita_trend 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +40 -18
- data/Gemfile.lock +2 -2
- data/lib/qiita_trend/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f5ee91dbd8f0b32decfd1e3474631c6cb21788bd1947a4a91ff19e33560acb9
|
4
|
+
data.tar.gz: bd3188a25fee2ba29a2f3f9a72cab7c43633e95bb1234b81fe596c3529ab14da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a0b70f23c2999956e725baa60b3d30dc5a6ca9d1ae6b445d681c4006929235b3c647123e950f5314db09969d839cf9bc13a5d08c45eb5e7674a0a74c21239ad
|
7
|
+
data.tar.gz: 9b450a70405b8435966f1e2d7296612df2f006dea4adbc01cadfffba9ad64cf53fbe32431ab821d5a8c79b7aa67caa2730103581701650b8d6bc19bfc8e4c6a0
|
data/.circleci/config.yml
CHANGED
@@ -4,21 +4,17 @@ executors:
|
|
4
4
|
docker:
|
5
5
|
- image: circleci/ruby:2.6.0
|
6
6
|
environment:
|
7
|
-
|
8
|
-
|
7
|
+
# Bundlerのパス設定が書き換えられ`vendor/bundle`ではなくて`/usr/local/bundle`を参照してしまい`bundle exec`でエラーになる
|
8
|
+
# Bundlerのconfigファイル(pathの設定がされたもの)をworkspaceで永続化し`vendor/bundle`を参照するようにするための設定
|
9
|
+
BUNDLE_APP_CONFIG: .bundle
|
10
|
+
working_directory: ~/dodonki1223/qiita_trend
|
9
11
|
|
10
12
|
commands:
|
11
|
-
# ref:https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411
|
12
13
|
install-bundler:
|
13
14
|
steps:
|
14
15
|
- run:
|
15
|
-
name: Install
|
16
|
-
command:
|
17
|
-
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
|
18
|
-
source $BASH_ENV
|
19
|
-
gem install bundler
|
20
|
-
# Which version of bundler?
|
21
|
-
bundle -v
|
16
|
+
name: Install bundler(2.1.0)
|
17
|
+
command: gem install bundler:2.1.0
|
22
18
|
|
23
19
|
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
|
24
20
|
restore-gem-cache:
|
@@ -44,6 +40,19 @@ commands:
|
|
44
40
|
- ./vendor/bundle
|
45
41
|
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
46
42
|
|
43
|
+
save-workspace:
|
44
|
+
steps:
|
45
|
+
- persist_to_workspace:
|
46
|
+
# working_directory からの相対パスか絶対パスを指定します
|
47
|
+
root: .
|
48
|
+
paths: .
|
49
|
+
|
50
|
+
using-workspace:
|
51
|
+
steps:
|
52
|
+
- attach_workspace:
|
53
|
+
# working_directory からの相対パスか絶対パスを指定します
|
54
|
+
at: .
|
55
|
+
|
47
56
|
run-rubocop:
|
48
57
|
steps:
|
49
58
|
- run:
|
@@ -89,13 +98,28 @@ commands:
|
|
89
98
|
path: ./doc
|
90
99
|
destination: yard-results
|
91
100
|
|
92
|
-
# Deploy RubyGems
|
93
101
|
deploy-rubygems:
|
94
102
|
steps:
|
103
|
+
# 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-
|
104
|
+
# read/write両方の権限が必要
|
105
|
+
- add_ssh_keys:
|
106
|
+
fingerprints:
|
107
|
+
- "38:d2:72:5e:9f:67:93:9a:ec:95:94:a2:0e:bf:41:9e"
|
108
|
+
|
109
|
+
# ref:https://circleci.com/docs/2.0/gh-bb-integration/#establishing-the-authenticity-of-an-ssh-host
|
110
|
+
- run:
|
111
|
+
name: Avoid hosts unknown for github
|
112
|
+
command: |
|
113
|
+
mkdir -p ~/.ssh
|
114
|
+
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|
115
|
+
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
116
|
+
' >> ~/.ssh/known_hosts
|
117
|
+
|
95
118
|
- run:
|
96
119
|
name: Deploy RubyGems
|
97
120
|
command: |
|
98
|
-
curl -u dodonki1223:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
|
121
|
+
curl -u dodonki1223:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
|
122
|
+
chmod 0600 ~/.gem/credentials
|
99
123
|
git config user.name dodonki1223
|
100
124
|
git config user.email $RUBYGEMS_EMAIL
|
101
125
|
bundle exec rake build
|
@@ -110,21 +134,20 @@ jobs:
|
|
110
134
|
- restore-gem-cache
|
111
135
|
- install-gem
|
112
136
|
- save-gem-cache
|
137
|
+
- save-workspace
|
113
138
|
|
114
139
|
lint:
|
115
140
|
executor: base
|
116
141
|
steps:
|
117
|
-
-
|
142
|
+
- using-workspace
|
118
143
|
- install-bundler
|
119
|
-
- restore-gem-cache
|
120
144
|
- run-rubocop
|
121
145
|
|
122
146
|
test:
|
123
147
|
executor: base
|
124
148
|
steps:
|
125
|
-
-
|
149
|
+
- using-workspace
|
126
150
|
- install-bundler
|
127
|
-
- restore-gem-cache
|
128
151
|
- run-tests
|
129
152
|
- create-document
|
130
153
|
- collect-reports
|
@@ -132,9 +155,8 @@ jobs:
|
|
132
155
|
deploy:
|
133
156
|
executor: base
|
134
157
|
steps:
|
135
|
-
-
|
158
|
+
- using-workspace
|
136
159
|
- install-bundler
|
137
|
-
- restore-gem-cache
|
138
160
|
- deploy-rubygems
|
139
161
|
|
140
162
|
workflows:
|
data/Gemfile.lock
CHANGED
data/lib/qiita_trend/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dodonki1223
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|