youtube_parser 0.1.1 → 0.1.2

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: 2787d7682c42086c3586dd86a774760b0ee78f314ab297cc06e669cd1c5b8167
4
- data.tar.gz: 537a9cdf529e9b5760661aa75188bfc0990d82402de42776f9ebd6786394bc8c
3
+ metadata.gz: 37de03ca4cf583c72ed032b32f6a69afa8e67562a85cadd753a73e8cff2b3754
4
+ data.tar.gz: 4c2dc703e0cf7c954bf48b2e3d5413ed15b693a9282517b7381de11f22092e52
5
5
  SHA512:
6
- metadata.gz: c131bee117f67f0ad2735d6b5ef82ccd68265db53564fc98f1cbb6f090c954983c7de7470628992757be9ab50b76fa6549d511157441e689322477d7d2d4dbd2
7
- data.tar.gz: b31abce91b7e2a2773f162143aabf96dd71563c24f5e4350e40750e95089491ca4f496c7d44e2a0bea85d4fd0ec51b1088a38ce472864e5d6beaec226cb63b4a
6
+ metadata.gz: c0c46db11b78fdc4ac1346ea44e67fbdc05ab2417b536e1e588177c3f3d5b4e30fdf57cf523b32b554960b6d966ec8addec3d2e0dd97b35c12dcbc9b855d0a68
7
+ data.tar.gz: 304fb644a213c32686c5ce13162a0a5c8dd8c510cefb9d9a331bde8dd1725cdf9ac5535d9db1f0fa8d7c2dd4ad22c63c83c40bdae8c053be1dee5a280fdb3d45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- youtube_parser (0.1.1)
4
+ youtube_parser (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,8 +12,8 @@ GEM
12
12
  minitest (~> 5.1)
13
13
  tzinfo (~> 1.1)
14
14
  zeitwerk (~> 2.2)
15
- addressable (2.6.0)
16
- public_suffix (>= 2.0.2, < 4.0)
15
+ addressable (2.7.0)
16
+ public_suffix (>= 2.0.2, < 5.0)
17
17
  byebug (11.0.1)
18
18
  concurrent-ruby (1.1.5)
19
19
  crack (0.4.3)
@@ -21,13 +21,13 @@ GEM
21
21
  diff-lcs (1.3)
22
22
  faraday (0.17.1)
23
23
  multipart-post (>= 1.2, < 3)
24
- hashdiff (0.3.7)
24
+ hashdiff (1.0.0)
25
25
  i18n (1.7.0)
26
26
  concurrent-ruby (~> 1.0)
27
27
  minitest (5.13.0)
28
28
  multipart-post (2.1.1)
29
29
  oj (3.9.2)
30
- public_suffix (3.0.3)
30
+ public_suffix (4.0.2)
31
31
  rake (10.5.0)
32
32
  rspec (3.9.0)
33
33
  rspec-core (~> 3.9.0)
@@ -42,14 +42,14 @@ GEM
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
43
  rspec-support (~> 3.9.0)
44
44
  rspec-support (3.9.0)
45
- safe_yaml (1.0.4)
45
+ safe_yaml (1.0.5)
46
46
  thread_safe (0.3.6)
47
47
  tzinfo (1.2.5)
48
48
  thread_safe (~> 0.1)
49
- webmock (3.0.1)
49
+ webmock (3.7.6)
50
50
  addressable (>= 2.3.6)
51
51
  crack (>= 0.3.2)
52
- hashdiff
52
+ hashdiff (>= 0.4.0, < 2.0.0)
53
53
  zeitwerk (2.2.2)
54
54
 
55
55
  PLATFORMS
@@ -8,6 +8,7 @@ module YoutubeParser
8
8
  def info
9
9
  {
10
10
  title: title,
11
+ email: email,
11
12
  description: description,
12
13
  country: country,
13
14
  tags: tags,
@@ -24,6 +24,7 @@ module YoutubeParser
24
24
  opts = { ssl: { verify: false }, request: { timeout: 10 } }
25
25
  @client ||= Faraday.new(BASE_URL, opts) do |request|
26
26
  request.adapter Faraday.default_adapter
27
+ request.headers['Accept-Language'] = 'en-US'
27
28
  request.headers['User-Agent'] = options.user_agent if options.user_agent
28
29
  request.proxy = proxy if options.proxy
29
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YoutubeParser
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youtube_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - o.vykhor