youtube_to_rss 0.3.2 → 0.3.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/Gemfile +0 -10
- data/Gemfile.lock +7 -122
- data/lib/youtube_to_rss/version.rb +1 -1
- data/lib/youtube_to_rss.rb +12 -9
- data/youtube_to_rss.gemspec +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: 60fd78a73f53895e371a44e52fc53c85f324367c4747a016a88a6cc0fb40185f
|
|
4
|
+
data.tar.gz: 8644a437705985033e4d71a9ed89f8acffa0ef1445cd2607ba29873d2176eebb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c2402941edad47eaa89a9392581312328f5c496bbcd666b5dd29f20969d5612ccd76bc212254e5a50274a3ec555f552a91ea4494170faed8b6fd59e6e6e0749
|
|
7
|
+
data.tar.gz: c022eb930698aac3f624ee15e8f73b61fcef3a6352cc07899b1253968559c7adcd9aa0ae776a352a9a96b40d8330cda6b31e3fee3ebd0a0b85311cab5dadd020
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,95 +1,19 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
youtube_to_rss (0.3.
|
|
5
|
-
|
|
4
|
+
youtube_to_rss (0.3.4)
|
|
5
|
+
httparty
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
actionpack (6.1.0)
|
|
11
|
-
actionview (= 6.1.0)
|
|
12
|
-
activesupport (= 6.1.0)
|
|
13
|
-
rack (~> 2.0, >= 2.0.9)
|
|
14
|
-
rack-test (>= 0.6.3)
|
|
15
|
-
rails-dom-testing (~> 2.0)
|
|
16
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
17
|
-
actionview (6.1.0)
|
|
18
|
-
activesupport (= 6.1.0)
|
|
19
|
-
builder (~> 3.1)
|
|
20
|
-
erubi (~> 1.4)
|
|
21
|
-
rails-dom-testing (~> 2.0)
|
|
22
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
23
|
-
activesupport (6.1.0)
|
|
24
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
25
|
-
i18n (>= 1.6, < 2)
|
|
26
|
-
minitest (>= 5.1)
|
|
27
|
-
tzinfo (~> 2.0)
|
|
28
|
-
zeitwerk (~> 2.3)
|
|
29
|
-
ast (2.4.1)
|
|
30
|
-
builder (3.2.4)
|
|
31
|
-
byebug (11.1.3)
|
|
32
|
-
coderay (1.1.3)
|
|
33
|
-
concurrent-ruby (1.1.7)
|
|
34
|
-
crass (1.0.6)
|
|
35
10
|
diff-lcs (1.4.4)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
domain_name (~> 0.5)
|
|
42
|
-
i18n (1.8.5)
|
|
43
|
-
concurrent-ruby (~> 1.0)
|
|
44
|
-
loofah (2.8.0)
|
|
45
|
-
crass (~> 1.0.2)
|
|
46
|
-
nokogiri (>= 1.5.9)
|
|
47
|
-
method_source (1.0.0)
|
|
48
|
-
mime-types (3.4.1)
|
|
49
|
-
mime-types-data (~> 3.2015)
|
|
50
|
-
mime-types-data (3.2023.0218.1)
|
|
51
|
-
mini_portile2 (2.4.0)
|
|
52
|
-
minitest (5.14.2)
|
|
53
|
-
netrc (0.11.0)
|
|
54
|
-
nokogiri (1.10.10)
|
|
55
|
-
mini_portile2 (~> 2.4.0)
|
|
56
|
-
parallel (1.20.1)
|
|
57
|
-
parser (2.7.2.0)
|
|
58
|
-
ast (~> 2.4.1)
|
|
59
|
-
pry (0.13.1)
|
|
60
|
-
coderay (~> 1.1)
|
|
61
|
-
method_source (~> 1.0)
|
|
62
|
-
pry-byebug (3.10.1)
|
|
63
|
-
byebug (~> 11.0)
|
|
64
|
-
pry (>= 0.13, < 0.15)
|
|
65
|
-
pry-doc (1.1.0)
|
|
66
|
-
pry (~> 0.11)
|
|
67
|
-
yard (~> 0.9.11)
|
|
68
|
-
pry-rails (0.3.9)
|
|
69
|
-
pry (>= 0.10.4)
|
|
70
|
-
rack (2.2.3)
|
|
71
|
-
rack-test (1.1.0)
|
|
72
|
-
rack (>= 1.0, < 3)
|
|
73
|
-
rails-dom-testing (2.0.3)
|
|
74
|
-
activesupport (>= 4.2.0)
|
|
75
|
-
nokogiri (>= 1.6)
|
|
76
|
-
rails-html-sanitizer (1.3.0)
|
|
77
|
-
loofah (~> 2.3)
|
|
78
|
-
railties (6.1.0)
|
|
79
|
-
actionpack (= 6.1.0)
|
|
80
|
-
activesupport (= 6.1.0)
|
|
81
|
-
method_source
|
|
82
|
-
rake (>= 0.8.7)
|
|
83
|
-
thor (~> 1.0)
|
|
84
|
-
rainbow (3.0.0)
|
|
11
|
+
httparty (0.21.0)
|
|
12
|
+
mini_mime (>= 1.0.0)
|
|
13
|
+
multi_xml (>= 0.5.2)
|
|
14
|
+
mini_mime (1.1.2)
|
|
15
|
+
multi_xml (0.6.0)
|
|
85
16
|
rake (12.3.3)
|
|
86
|
-
regexp_parser (2.0.0)
|
|
87
|
-
rest-client (2.1.0)
|
|
88
|
-
http-accept (>= 1.7.0, < 2.0)
|
|
89
|
-
http-cookie (>= 1.0.2, < 2.0)
|
|
90
|
-
mime-types (>= 1.16, < 4.0)
|
|
91
|
-
netrc (~> 0.8)
|
|
92
|
-
rexml (3.2.4)
|
|
93
17
|
rspec (3.10.0)
|
|
94
18
|
rspec-core (~> 3.10.0)
|
|
95
19
|
rspec-expectations (~> 3.10.0)
|
|
@@ -102,53 +26,14 @@ GEM
|
|
|
102
26
|
rspec-mocks (3.10.0)
|
|
103
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
104
28
|
rspec-support (~> 3.10.0)
|
|
105
|
-
rspec-rails (4.0.1)
|
|
106
|
-
actionpack (>= 4.2)
|
|
107
|
-
activesupport (>= 4.2)
|
|
108
|
-
railties (>= 4.2)
|
|
109
|
-
rspec-core (~> 3.9)
|
|
110
|
-
rspec-expectations (~> 3.9)
|
|
111
|
-
rspec-mocks (~> 3.9)
|
|
112
|
-
rspec-support (~> 3.9)
|
|
113
29
|
rspec-support (3.10.0)
|
|
114
|
-
rubocop (1.6.1)
|
|
115
|
-
parallel (~> 1.10)
|
|
116
|
-
parser (>= 2.7.1.5)
|
|
117
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
118
|
-
regexp_parser (>= 1.8, < 3.0)
|
|
119
|
-
rexml
|
|
120
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
|
121
|
-
ruby-progressbar (~> 1.7)
|
|
122
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
|
123
|
-
rubocop-ast (1.3.0)
|
|
124
|
-
parser (>= 2.7.1.5)
|
|
125
|
-
ruby-progressbar (1.10.1)
|
|
126
|
-
spring (2.1.1)
|
|
127
|
-
spring-commands-rspec (1.0.4)
|
|
128
|
-
spring (>= 0.9.1)
|
|
129
|
-
thor (1.0.1)
|
|
130
|
-
tzinfo (2.0.3)
|
|
131
|
-
concurrent-ruby (~> 1.0)
|
|
132
|
-
unf (0.1.4)
|
|
133
|
-
unf_ext
|
|
134
|
-
unf_ext (0.0.8.2)
|
|
135
|
-
unicode-display_width (1.7.0)
|
|
136
|
-
yard (0.9.25)
|
|
137
|
-
zeitwerk (2.4.2)
|
|
138
30
|
|
|
139
31
|
PLATFORMS
|
|
140
32
|
ruby
|
|
141
33
|
|
|
142
34
|
DEPENDENCIES
|
|
143
|
-
pry
|
|
144
|
-
pry-byebug
|
|
145
|
-
pry-doc
|
|
146
|
-
pry-rails
|
|
147
35
|
rake (~> 12.0)
|
|
148
36
|
rspec (~> 3.0)
|
|
149
|
-
rspec-rails
|
|
150
|
-
rubocop
|
|
151
|
-
spring-commands-rspec
|
|
152
37
|
youtube_to_rss!
|
|
153
38
|
|
|
154
39
|
BUNDLED WITH
|
data/lib/youtube_to_rss.rb
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
require 'youtube_to_rss/version'
|
|
2
|
-
require '
|
|
3
|
-
require 'nokogiri'
|
|
2
|
+
require 'httparty'
|
|
4
3
|
|
|
5
4
|
module YoutubeToRss
|
|
6
|
-
|
|
5
|
+
include HTTParty
|
|
7
6
|
|
|
8
7
|
class << self
|
|
9
8
|
def convert(url)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
retrieve_rss_url(get_parsed_response(url))
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
private
|
|
13
|
+
|
|
14
|
+
def get_parsed_response(url)
|
|
15
|
+
get(url).parsed_response
|
|
16
|
+
end
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
def retrieve_rss_url(parsed_response)
|
|
19
|
+
parsed_response.split('"rssUrl":"').last.split('",').first
|
|
17
20
|
end
|
|
18
21
|
end
|
|
19
22
|
end
|
data/youtube_to_rss.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
16
16
|
spec.metadata["source_code_uri"] = "https://github.com/ccozkan/youtube_to_rss"
|
|
17
17
|
|
|
18
|
-
spec.add_dependency "
|
|
18
|
+
spec.add_dependency "httparty"
|
|
19
19
|
|
|
20
20
|
# Specify which files should be added to the gem when it is released.
|
|
21
21
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: youtube_to_rss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- C Çağrı Özkan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: httparty
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|