qiita_trend 0.5.2 → 0.5.4
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 +4 -4
- data/.circleci/config.yml +6 -7
- data/.ruby-version +1 -1
- data/Gemfile.lock +44 -43
- data/lib/qiita_trend/trend.rb +2 -2
- data/lib/qiita_trend/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2efa96168d42a7a7786d099a9aa2c1fa7af5649ed1fe039464c18d8b9558a8ba
|
4
|
+
data.tar.gz: 27b30a5bc647cad43f45a505d067978f79e10e778d8b8461c955e492ba5b0964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0daa4d082d7bf80e269bb3eb668baff66289a4cf10a94b3886e5c44913cbbc3756ce9f2c037a19451367ef4645e3283ce05f144a798f8fdea6d1084c4479930
|
7
|
+
data.tar.gz: ca4cde6991cf859adea32919ee95b003d1030529c25b3933540d281e7412f940eff071db8d6010d849365ca8db132cc07bce7bd49f46ee56016e7c6fbe02b5fd
|
data/.circleci/config.yml
CHANGED
@@ -5,7 +5,7 @@ orbs:
|
|
5
5
|
executors:
|
6
6
|
base:
|
7
7
|
docker:
|
8
|
-
- image: cimg/ruby:2.
|
8
|
+
- image: cimg/ruby:2.7.0
|
9
9
|
auth:
|
10
10
|
username: dodonki1223
|
11
11
|
password: $DOCKERHUB_PASSWORD
|
@@ -51,15 +51,14 @@ commands:
|
|
51
51
|
|
52
52
|
deploy-rubygems:
|
53
53
|
steps:
|
54
|
-
# https://
|
55
|
-
|
54
|
+
# ref:https://circleci.com/docs/ja/github-integration/#create-a-github-deploy-key
|
55
|
+
- add_ssh_keys:
|
56
|
+
fingerprints:
|
57
|
+
- "48:2e:41:d0:6a:c5:f8:37:49:9e:3a:00:f8:74:5c:7b"
|
56
58
|
- run:
|
57
59
|
name: Avoid hosts unknown for github
|
58
60
|
command: |
|
59
|
-
|
60
|
-
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|
61
|
-
' >> ~/.ssh/known_hosts
|
62
|
-
|
61
|
+
ssh-keyscan github.com >> ~/.ssh/known_hosts
|
63
62
|
- run:
|
64
63
|
name: Deploy RubyGems
|
65
64
|
command: |
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.0
|
data/Gemfile.lock
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
qiita_trend (0.5.
|
4
|
+
qiita_trend (0.5.4)
|
5
5
|
mechanize (~> 2.7)
|
6
6
|
nokogiri (~> 1.11)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
public_suffix (>= 2.0.2, <
|
11
|
+
addressable (2.8.1)
|
12
|
+
public_suffix (>= 2.0.2, < 6.0)
|
13
13
|
ast (2.4.2)
|
14
14
|
byebug (11.1.3)
|
15
15
|
coderay (1.1.3)
|
16
|
-
connection_pool (2.
|
16
|
+
connection_pool (2.3.0)
|
17
17
|
crack (0.4.5)
|
18
18
|
rexml
|
19
|
-
diff-lcs (1.
|
20
|
-
docile (1.
|
19
|
+
diff-lcs (1.5.0)
|
20
|
+
docile (1.4.0)
|
21
21
|
domain_name (0.5.20190701)
|
22
22
|
unf (>= 0.0.5, < 1.0.0)
|
23
23
|
hashdiff (1.0.1)
|
24
|
-
http-cookie (1.0.
|
24
|
+
http-cookie (1.0.5)
|
25
25
|
domain_name (~> 0.5)
|
26
|
-
mechanize (2.8.
|
27
|
-
addressable (~> 2.
|
26
|
+
mechanize (2.8.5)
|
27
|
+
addressable (~> 2.8)
|
28
28
|
domain_name (~> 0.5, >= 0.5.20190701)
|
29
29
|
http-cookie (~> 1.0, >= 1.0.3)
|
30
30
|
mime-types (~> 3.0)
|
@@ -35,46 +35,46 @@ GEM
|
|
35
35
|
webrick (~> 1.7)
|
36
36
|
webrobots (~> 0.1.2)
|
37
37
|
method_source (1.0.0)
|
38
|
-
mime-types (3.
|
38
|
+
mime-types (3.4.1)
|
39
39
|
mime-types-data (~> 3.2015)
|
40
|
-
mime-types-data (3.
|
40
|
+
mime-types-data (3.2022.0105)
|
41
41
|
net-http-digest_auth (1.4.1)
|
42
42
|
net-http-persistent (4.0.1)
|
43
43
|
connection_pool (~> 2.2)
|
44
|
-
nokogiri (1.
|
44
|
+
nokogiri (1.13.9)
|
45
45
|
racc (~> 1.4)
|
46
|
-
parallel (1.
|
47
|
-
parser (3.
|
46
|
+
parallel (1.22.1)
|
47
|
+
parser (3.1.2.1)
|
48
48
|
ast (~> 2.4.1)
|
49
|
-
pry (0.
|
49
|
+
pry (0.14.1)
|
50
50
|
coderay (~> 1.1)
|
51
51
|
method_source (~> 1.0)
|
52
|
-
pry-byebug (3.
|
52
|
+
pry-byebug (3.10.1)
|
53
53
|
byebug (~> 11.0)
|
54
|
-
pry (
|
55
|
-
pry-doc (1.
|
54
|
+
pry (>= 0.13, < 0.15)
|
55
|
+
pry-doc (1.3.0)
|
56
56
|
pry (~> 0.11)
|
57
57
|
yard (~> 0.9.11)
|
58
|
-
public_suffix (
|
59
|
-
racc (1.
|
60
|
-
rainbow (3.
|
61
|
-
rake (13.0.
|
62
|
-
regexp_parser (2.
|
58
|
+
public_suffix (5.0.0)
|
59
|
+
racc (1.6.0)
|
60
|
+
rainbow (3.1.1)
|
61
|
+
rake (13.0.6)
|
62
|
+
regexp_parser (2.6.0)
|
63
63
|
rexml (3.2.5)
|
64
|
-
rspec (3.
|
65
|
-
rspec-core (~> 3.
|
66
|
-
rspec-expectations (~> 3.
|
67
|
-
rspec-mocks (~> 3.
|
68
|
-
rspec-core (3.
|
69
|
-
rspec-support (~> 3.
|
70
|
-
rspec-expectations (3.
|
64
|
+
rspec (3.12.0)
|
65
|
+
rspec-core (~> 3.12.0)
|
66
|
+
rspec-expectations (~> 3.12.0)
|
67
|
+
rspec-mocks (~> 3.12.0)
|
68
|
+
rspec-core (3.12.0)
|
69
|
+
rspec-support (~> 3.12.0)
|
70
|
+
rspec-expectations (3.12.0)
|
71
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
|
-
rspec-support (~> 3.
|
73
|
-
rspec-mocks (3.
|
72
|
+
rspec-support (~> 3.12.0)
|
73
|
+
rspec-mocks (3.12.0)
|
74
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
-
rspec-support (~> 3.
|
76
|
-
rspec-support (3.
|
77
|
-
rspec_junit_formatter (0.
|
75
|
+
rspec-support (~> 3.12.0)
|
76
|
+
rspec-support (3.12.0)
|
77
|
+
rspec_junit_formatter (0.6.0)
|
78
78
|
rspec-core (>= 2, < 4, != 2.12.0)
|
79
79
|
rubocop (0.93.1)
|
80
80
|
parallel (~> 1.10)
|
@@ -85,8 +85,8 @@ GEM
|
|
85
85
|
rubocop-ast (>= 0.6.0)
|
86
86
|
ruby-progressbar (~> 1.7)
|
87
87
|
unicode-display_width (>= 1.4.0, < 2.0)
|
88
|
-
rubocop-ast (1.
|
89
|
-
parser (>=
|
88
|
+
rubocop-ast (1.23.0)
|
89
|
+
parser (>= 3.1.1.0)
|
90
90
|
rubocop-rspec (1.44.1)
|
91
91
|
rubocop (~> 0.87)
|
92
92
|
rubocop-ast (>= 0.7.1)
|
@@ -97,19 +97,20 @@ GEM
|
|
97
97
|
simplecov-html (~> 0.11)
|
98
98
|
simplecov_json_formatter (~> 0.1)
|
99
99
|
simplecov-html (0.12.3)
|
100
|
-
simplecov_json_formatter (0.1.
|
100
|
+
simplecov_json_formatter (0.1.4)
|
101
101
|
unf (0.1.4)
|
102
102
|
unf_ext
|
103
|
-
unf_ext (0.0.
|
104
|
-
unicode-display_width (1.
|
103
|
+
unf_ext (0.0.8.2)
|
104
|
+
unicode-display_width (1.8.0)
|
105
105
|
vcr (5.1.0)
|
106
|
-
webmock (3.
|
107
|
-
addressable (>= 2.
|
106
|
+
webmock (3.18.1)
|
107
|
+
addressable (>= 2.8.0)
|
108
108
|
crack (>= 0.3.2)
|
109
109
|
hashdiff (>= 0.4.0, < 2.0.0)
|
110
110
|
webrick (1.7.0)
|
111
111
|
webrobots (0.1.2)
|
112
|
-
yard (0.9.
|
112
|
+
yard (0.9.28)
|
113
|
+
webrick (~> 1.7.0)
|
113
114
|
|
114
115
|
PLATFORMS
|
115
116
|
ruby
|
data/lib/qiita_trend/trend.rb
CHANGED
@@ -64,7 +64,7 @@ module QiitaTrend
|
|
64
64
|
# @param [TrendType] trend_type トレンドタイプ
|
65
65
|
# @return [String] トレンドタイプによるxpath
|
66
66
|
def get_xpath(trend_type)
|
67
|
-
trend_type == TrendType::PERSONAL ? '//script[@data-component-name="New2HomeIndexPage"]' : '//script[@data-component-name="
|
67
|
+
trend_type == TrendType::PERSONAL ? '//script[@data-component-name="New2HomeIndexPage"]' : '//script[@data-component-name="New2HomeTrendPage"]'
|
68
68
|
end
|
69
69
|
|
70
70
|
# Qiitaのトレンドのデータを取得する
|
@@ -73,7 +73,7 @@ module QiitaTrend
|
|
73
73
|
# @param [TrendType] trend_type トレンドタイプ
|
74
74
|
# @return [Array] トレンドタイプによるトレンドデータ
|
75
75
|
def get_data(trends_data, trend_type)
|
76
|
-
trend_type == TrendType::PERSONAL ? trends_data['personalizedFeed']['personalizedFeed']['edges'] : trends_data['trend']['
|
76
|
+
trend_type == TrendType::PERSONAL ? trends_data['personalizedFeed']['personalizedFeed']['edges'] : trends_data['trend']['edges']
|
77
77
|
end
|
78
78
|
|
79
79
|
# ユーザーの画像のURLを取得する
|
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.5.
|
4
|
+
version: 0.5.4
|
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: 2023-03-25 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.1.
|
274
|
+
rubygems_version: 3.1.2
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: Easy to get trend for Qiita in 10 seconds
|