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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f26c4218cd093108c11aecd1dcb8a04166be5cad85ff6724975b5ca4cac1fdc2
4
- data.tar.gz: c65a8527ca461ed7f29a0e0f2d5a943f917d61102dc670efcdce94600316ad0c
3
+ metadata.gz: 2efa96168d42a7a7786d099a9aa2c1fa7af5649ed1fe039464c18d8b9558a8ba
4
+ data.tar.gz: 27b30a5bc647cad43f45a505d067978f79e10e778d8b8461c955e492ba5b0964
5
5
  SHA512:
6
- metadata.gz: 3fc0a83b3f0a0b4e9b8d3d3796d1d6d1c46a44952dcd78433364a00816b918e728b742d5a2dd269f2c781b2f94107c6c4425e824da2b51cca6d68666f06621a6
7
- data.tar.gz: 3a7d4e7fe50f2d9247b5c41726c27a73f65b76c85d138b2284cc11d93e193bd8469a07e102d4c89b8801457f7689600b72925bda5da9ee8d6ea9e66745039a6d
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.6.6
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://discuss.circleci.com/t/the-authenticity-of-github-host-cant-be-stablished/33133 と同じ現象で job が進まなくなるので以下の記事を参考に実装
55
- # ref:https://circleci.com/docs/ja/2.0/gh-bb-integration/#ssh-%E3%83%9B%E3%82%B9%E3%83%88%E3%81%AE%E4%BF%A1%E9%A0%BC%E6%80%A7%E3%81%AE%E7%A2%BA%E7%AB%8B
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
- mkdir -p ~/.ssh
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.6.5
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.2)
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.7.0)
12
- public_suffix (>= 2.0.2, < 5.0)
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.2.3)
16
+ connection_pool (2.3.0)
17
17
  crack (0.4.5)
18
18
  rexml
19
- diff-lcs (1.4.4)
20
- docile (1.3.5)
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.3)
24
+ http-cookie (1.0.5)
25
25
  domain_name (~> 0.5)
26
- mechanize (2.8.0)
27
- addressable (~> 2.7)
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.3.1)
38
+ mime-types (3.4.1)
39
39
  mime-types-data (~> 3.2015)
40
- mime-types-data (3.2021.0225)
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.11.2)
44
+ nokogiri (1.13.9)
45
45
  racc (~> 1.4)
46
- parallel (1.20.1)
47
- parser (3.0.1.0)
46
+ parallel (1.22.1)
47
+ parser (3.1.2.1)
48
48
  ast (~> 2.4.1)
49
- pry (0.13.1)
49
+ pry (0.14.1)
50
50
  coderay (~> 1.1)
51
51
  method_source (~> 1.0)
52
- pry-byebug (3.9.0)
52
+ pry-byebug (3.10.1)
53
53
  byebug (~> 11.0)
54
- pry (~> 0.13.0)
55
- pry-doc (1.1.0)
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 (4.0.6)
59
- racc (1.5.2)
60
- rainbow (3.0.0)
61
- rake (13.0.3)
62
- regexp_parser (2.1.1)
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.10.0)
65
- rspec-core (~> 3.10.0)
66
- rspec-expectations (~> 3.10.0)
67
- rspec-mocks (~> 3.10.0)
68
- rspec-core (3.10.1)
69
- rspec-support (~> 3.10.0)
70
- rspec-expectations (3.10.1)
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.10.0)
73
- rspec-mocks (3.10.2)
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.10.0)
76
- rspec-support (3.10.2)
77
- rspec_junit_formatter (0.4.1)
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.4.1)
89
- parser (>= 2.7.1.5)
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.2)
100
+ simplecov_json_formatter (0.1.4)
101
101
  unf (0.1.4)
102
102
  unf_ext
103
- unf_ext (0.0.7.7)
104
- unicode-display_width (1.7.0)
103
+ unf_ext (0.0.8.2)
104
+ unicode-display_width (1.8.0)
105
105
  vcr (5.1.0)
106
- webmock (3.12.2)
107
- addressable (>= 2.3.6)
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.26)
112
+ yard (0.9.28)
113
+ webrick (~> 1.7.0)
113
114
 
114
115
  PLATFORMS
115
116
  ruby
@@ -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="HomeIndexPage"]'
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']['trend']['edges']
76
+ trend_type == TrendType::PERSONAL ? trends_data['personalizedFeed']['personalizedFeed']['edges'] : trends_data['trend']['edges']
77
77
  end
78
78
 
79
79
  # ユーザーの画像のURLを取得する
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QiitaTrend
4
- VERSION = '0.5.2'
4
+ VERSION = '0.5.4'
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.5.2
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: 2022-09-13 00:00:00.000000000 Z
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.3
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