web_stat 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6272119868a8870fda3ab8c33fee1238c5a8ca6c0859ce96f77e127c097cd2a8
4
- data.tar.gz: a54ba5ce70af23594694cf6d8585391b6632b75ff4f6ee9f3067c987146b4752
3
+ metadata.gz: e09b39af40b8307541b0c9be774a603c893fa15a1e3dbf0ef4cc3b75912a7c56
4
+ data.tar.gz: d0f291a214b07adeba7679c82c1a710a60797eb4a3924badcd2d2fee96d750a2
5
5
  SHA512:
6
- metadata.gz: 61fbcb05d550f7363c14da7cb951fcf282dc500485cc8be82467a3c991dfce86822c7670a0d0a06ba45caf1718a37492b0830394dea444d9d6d339787c912956
7
- data.tar.gz: aaef967c6dbfe7883154fcca87e2f0a1f8f12fc12ee42a6c232d65283850f3948d7cc58a0f974bc60572da6fa164b85c8aee571690450fd59ae88481372ecd7b
6
+ metadata.gz: 3a150d48af70feb1840c1aeaebe5720c8ea8b0600c2571427130de835414d96d0fa2a14b7cff85e36484ed801102e394d96971b2c681725db6eb3d3333a3f641
7
+ data.tar.gz: 708a5bcce8bd1313d05ace67ad5db3351e54f7f7e6c1798061256699c6c99129e2a7c3d9e05ad7052dbdd497c15b8fb0d8afe091484697fe1b294731fb3fcc24
@@ -45,7 +45,7 @@ module WebStat
45
45
  def youtube_decscription
46
46
  regex_string = WebStat::Configure.get["id_extraction_regexs"]["youtube"]
47
47
  if @url.match(regex_string)
48
- id = @url.gsub(%r{#{regex_string}}, '\1')
48
+ id = @url.gsub(%r{#{regex_string}.*$}, '\1')
49
49
  youtube = Google::Apis::YoutubeV3::YouTubeService.new
50
50
  youtube.key = WebStat::Configure.get["api_keys"]["youtube"]
51
51
  response = youtube.list_videos(:snippet, id: id)
@@ -66,7 +66,7 @@ module WebStat
66
66
  # If there is a thumbnail rule, apply it.
67
67
  WebStat::Configure.get["id_extraction_regexs"].each do |provider, regex_string|
68
68
  if @url.match(regex_string)
69
- return @url.gsub(%r{#{regex_string}}, WebStat::Configure.get["thumbnail_regex"][provider])
69
+ return @url.gsub(%r{#{regex_string}.*$}, WebStat::Configure.get["thumbnail_regex"][provider])
70
70
  end
71
71
  end
72
72
  readability_content = ::Nokogiri::HTML(Readability::Document.new(@nokogiri.at('body').to_s).content)
@@ -1,3 +1,3 @@
1
1
  module WebStat
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web_stat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - yusuke abe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-22 00:00:00.000000000 Z
11
+ date: 2021-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -263,7 +263,6 @@ files:
263
263
  - CODE_OF_CONDUCT.md
264
264
  - Dockerfile
265
265
  - Gemfile
266
- - Gemfile.lock
267
266
  - LICENSE.txt
268
267
  - README.md
269
268
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,211 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- web_stat (0.5.0)
5
- bundler (>= 2.0.2)
6
- cld (>= 0.8.0)
7
- google-api-client (>= 0.53.0)
8
- mechanize (>= 2.7.7)
9
- natto (>= 1.1.2)
10
- nokogiri (>= 1.10.4)
11
- pdf-reader (= 2.4.0)
12
- rexml (>= 3.2.4)
13
- ruby-readability (>= 0.7)
14
- sanitize (>= 5.0.0)
15
- selenium-webdriver (= 3.142.7)
16
- webrick (>= 1.7.0)
17
-
18
- GEM
19
- remote: https://rubygems.org/
20
- specs:
21
- Ascii85 (1.0.3)
22
- activesupport (6.1.3.2)
23
- concurrent-ruby (~> 1.0, >= 1.0.2)
24
- i18n (>= 1.6, < 2)
25
- minitest (>= 5.1)
26
- tzinfo (~> 2.0)
27
- zeitwerk (~> 2.3)
28
- addressable (2.7.0)
29
- public_suffix (>= 2.0.2, < 5.0)
30
- afm (0.2.2)
31
- byebug (11.1.3)
32
- childprocess (3.0.0)
33
- cld (0.8.0)
34
- ffi
35
- coderay (1.1.3)
36
- concurrent-ruby (1.1.9)
37
- connection_pool (2.2.5)
38
- crack (0.4.5)
39
- rexml
40
- crass (1.0.6)
41
- declarative (0.0.20)
42
- diff-lcs (1.4.4)
43
- domain_name (0.5.20190701)
44
- unf (>= 0.0.5, < 1.0.0)
45
- faraday (1.4.2)
46
- faraday-em_http (~> 1.0)
47
- faraday-em_synchrony (~> 1.0)
48
- faraday-excon (~> 1.1)
49
- faraday-net_http (~> 1.0)
50
- faraday-net_http_persistent (~> 1.1)
51
- multipart-post (>= 1.2, < 3)
52
- ruby2_keywords (>= 0.0.4)
53
- faraday-em_http (1.0.0)
54
- faraday-em_synchrony (1.0.0)
55
- faraday-excon (1.1.0)
56
- faraday-net_http (1.0.1)
57
- faraday-net_http_persistent (1.1.0)
58
- ffi (1.15.3)
59
- gems (1.2.0)
60
- google-api-client (0.53.0)
61
- google-apis-core (~> 0.1)
62
- google-apis-generator (~> 0.1)
63
- google-apis-core (0.3.0)
64
- addressable (~> 2.5, >= 2.5.1)
65
- googleauth (~> 0.14)
66
- httpclient (>= 2.8.1, < 3.0)
67
- mini_mime (~> 1.0)
68
- representable (~> 3.0)
69
- retriable (>= 2.0, < 4.0)
70
- rexml
71
- signet (~> 0.14)
72
- webrick
73
- google-apis-discovery_v1 (0.4.0)
74
- google-apis-core (~> 0.1)
75
- google-apis-generator (0.3.0)
76
- activesupport (>= 5.0)
77
- gems (~> 1.2)
78
- google-apis-core (~> 0.1)
79
- google-apis-discovery_v1 (~> 0.0)
80
- thor (>= 0.20, < 2.a)
81
- googleauth (0.16.2)
82
- faraday (>= 0.17.3, < 2.0)
83
- jwt (>= 1.4, < 3.0)
84
- memoist (~> 0.16)
85
- multi_json (~> 1.11)
86
- os (>= 0.9, < 2.0)
87
- signet (~> 0.14)
88
- guess_html_encoding (0.0.11)
89
- hashdiff (1.0.1)
90
- hashery (2.1.2)
91
- http-cookie (1.0.4)
92
- domain_name (~> 0.5)
93
- httpclient (2.8.3)
94
- i18n (1.8.10)
95
- concurrent-ruby (~> 1.0)
96
- jwt (2.2.3)
97
- mechanize (2.8.1)
98
- addressable (~> 2.7)
99
- domain_name (~> 0.5, >= 0.5.20190701)
100
- http-cookie (~> 1.0, >= 1.0.3)
101
- mime-types (~> 3.0)
102
- net-http-digest_auth (~> 1.4, >= 1.4.1)
103
- net-http-persistent (>= 2.5.2, < 5.0.dev)
104
- nokogiri (~> 1.11, >= 1.11.2)
105
- rubyntlm (~> 0.6, >= 0.6.3)
106
- webrick (~> 1.7)
107
- webrobots (~> 0.1.2)
108
- memoist (0.16.2)
109
- method_source (1.0.0)
110
- mime-types (3.3.1)
111
- mime-types-data (~> 3.2015)
112
- mime-types-data (3.2021.0225)
113
- mini_mime (1.1.0)
114
- mini_portile2 (2.5.3)
115
- minitest (5.14.4)
116
- multi_json (1.15.0)
117
- multipart-post (2.1.1)
118
- natto (1.2.0)
119
- ffi (>= 1.9.0)
120
- net-http-digest_auth (1.4.1)
121
- net-http-persistent (4.0.1)
122
- connection_pool (~> 2.2)
123
- nokogiri (1.11.7)
124
- mini_portile2 (~> 2.5.0)
125
- racc (~> 1.4)
126
- nokogumbo (2.0.5)
127
- nokogiri (~> 1.8, >= 1.8.4)
128
- os (1.1.1)
129
- pdf-reader (2.4.0)
130
- Ascii85 (~> 1.0.0)
131
- afm (~> 0.2.1)
132
- hashery (~> 2.0)
133
- ruby-rc4
134
- ttfunk
135
- pry (0.13.1)
136
- coderay (~> 1.1)
137
- method_source (~> 1.0)
138
- pry-byebug (3.9.0)
139
- byebug (~> 11.0)
140
- pry (~> 0.13.0)
141
- public_suffix (4.0.6)
142
- racc (1.5.2)
143
- rake (13.0.3)
144
- representable (3.1.1)
145
- declarative (< 0.1.0)
146
- trailblazer-option (>= 0.1.1, < 0.2.0)
147
- uber (< 0.2.0)
148
- retriable (3.1.2)
149
- rexml (3.2.4)
150
- rspec (3.10.0)
151
- rspec-core (~> 3.10.0)
152
- rspec-expectations (~> 3.10.0)
153
- rspec-mocks (~> 3.10.0)
154
- rspec-core (3.10.1)
155
- rspec-support (~> 3.10.0)
156
- rspec-expectations (3.10.1)
157
- diff-lcs (>= 1.2.0, < 2.0)
158
- rspec-support (~> 3.10.0)
159
- rspec-mocks (3.10.2)
160
- diff-lcs (>= 1.2.0, < 2.0)
161
- rspec-support (~> 3.10.0)
162
- rspec-support (3.10.2)
163
- ruby-rc4 (0.1.5)
164
- ruby-readability (0.7.0)
165
- guess_html_encoding (>= 0.0.4)
166
- nokogiri (>= 1.6.0)
167
- ruby2_keywords (0.0.4)
168
- rubyntlm (0.6.3)
169
- rubyzip (2.3.0)
170
- sanitize (5.2.3)
171
- crass (~> 1.0.2)
172
- nokogiri (>= 1.8.0)
173
- nokogumbo (~> 2.0)
174
- selenium-webdriver (3.142.7)
175
- childprocess (>= 0.5, < 4.0)
176
- rubyzip (>= 1.2.2)
177
- signet (0.15.0)
178
- addressable (~> 2.3)
179
- faraday (>= 0.17.3, < 2.0)
180
- jwt (>= 1.5, < 3.0)
181
- multi_json (~> 1.10)
182
- thor (1.1.0)
183
- trailblazer-option (0.1.1)
184
- ttfunk (1.7.0)
185
- tzinfo (2.0.4)
186
- concurrent-ruby (~> 1.0)
187
- uber (0.1.0)
188
- unf (0.1.4)
189
- unf_ext
190
- unf_ext (0.0.7.7)
191
- webmock (3.11.2)
192
- addressable (>= 2.3.6)
193
- crack (>= 0.3.2)
194
- hashdiff (>= 0.4.0, < 2.0.0)
195
- webrick (1.7.0)
196
- webrobots (0.1.2)
197
- zeitwerk (2.4.2)
198
-
199
- PLATFORMS
200
- ruby
201
-
202
- DEPENDENCIES
203
- pry (>= 0.13.1)
204
- pry-byebug (= 3.9.0)
205
- rake (>= 10.0)
206
- rspec (>= 3.0)
207
- web_stat!
208
- webmock (>= 3.8.3)
209
-
210
- BUNDLED WITH
211
- 2.2.4