feedjira-youtube 0.2.0 → 0.3.0

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: 9939a3dd7fba1d7d8752ee71bc0f91ef40f5fbcb9586fc32a8656e50ae07390c
4
- data.tar.gz: 3141d3ea3c80b6d95dc7202a7f0f83e708e9ed0f082fb8ff942f3a790ddebb5d
3
+ metadata.gz: 1bd2615d31810db47f83c978ada23fc5e9c4e0075e308778668af34a5fa46ec9
4
+ data.tar.gz: 330440db07582c1489ca872361eff4735d3c870297852ff4ca93f5d9e14f2c9c
5
5
  SHA512:
6
- metadata.gz: 9e07989700f8cb44b9158b6c16e8d5444a4e800a085f736b643c8b3751aa631a05cc89c9af409f20cc7db35ee7c61ed33d42a749592d521f57d7c510be9af99d
7
- data.tar.gz: 3c5d77729daf9ac9172e65f803dbd80a672df485cab962c3a0268c8c98199daf669e553cb088cf8b48d9c1684666239ce78237861191f5318b594ddb393edc69
6
+ metadata.gz: a835f79788774de3089cd1214f237ce1c6c9cf28d738e663e8577429464e052baf017b7884b889ce0864524e85ef7f422ec0fea315e31361708faf076e1d3dfd
7
+ data.tar.gz: 575bb6a287e6da4b706ed1c985cb8e363664ff77c8e4d96a6f42a5668a35519ed1c1c2ca2412fb32590b6788c70c55bf7586c8739bf57ad59b607b5886a29e39
@@ -0,0 +1 @@
1
+ 2.6.5
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+
3
+ cache:
4
+ directories:
5
+ - /home/travis/.rvm/
6
+
7
+ install:
8
+ - gem install bundler
9
+ - bundle install -j 5
10
+
11
+ script:
12
+ - bundle exec rspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- feedjira-youtube (0.2.0)
4
+ feedjira-youtube (0.3.0)
5
5
  feedjira
6
6
 
7
7
  GEM
@@ -11,40 +11,33 @@ GEM
11
11
  coderay (1.1.2)
12
12
  crass (1.0.4)
13
13
  diff-lcs (1.3)
14
- faraday (0.15.4)
15
- multipart-post (>= 1.2, < 3)
16
- faraday_middleware (0.13.1)
17
- faraday (>= 0.7.4, < 1.0)
18
- feedjira (2.2.0)
19
- faraday (>= 0.9)
20
- faraday_middleware (>= 0.9)
21
- loofah (>= 2.0)
14
+ feedjira (3.0.0)
15
+ loofah (>= 2.2.1)
22
16
  sax-machine (>= 1.0)
23
- loofah (2.2.3)
17
+ loofah (2.3.0)
24
18
  crass (~> 1.0.2)
25
19
  nokogiri (>= 1.5.9)
26
20
  method_source (0.9.2)
27
21
  mini_portile2 (2.4.0)
28
- multipart-post (2.0.0)
29
- nokogiri (1.10.1)
22
+ nokogiri (1.10.4)
30
23
  mini_portile2 (~> 2.4.0)
31
24
  pry (0.12.2)
32
25
  coderay (~> 1.1.0)
33
26
  method_source (~> 0.9.0)
34
- rake (12.3.2)
35
- rspec (3.8.0)
36
- rspec-core (~> 3.8.0)
37
- rspec-expectations (~> 3.8.0)
38
- rspec-mocks (~> 3.8.0)
39
- rspec-core (3.8.0)
40
- rspec-support (~> 3.8.0)
41
- rspec-expectations (3.8.2)
27
+ rake (13.0.0)
28
+ rspec (3.9.0)
29
+ rspec-core (~> 3.9.0)
30
+ rspec-expectations (~> 3.9.0)
31
+ rspec-mocks (~> 3.9.0)
32
+ rspec-core (3.9.0)
33
+ rspec-support (~> 3.9.0)
34
+ rspec-expectations (3.9.0)
42
35
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.8.0)
44
- rspec-mocks (3.8.0)
36
+ rspec-support (~> 3.9.0)
37
+ rspec-mocks (3.9.0)
45
38
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.8.0)
47
- rspec-support (3.8.0)
39
+ rspec-support (~> 3.9.0)
40
+ rspec-support (3.9.0)
48
41
  sax-machine (1.3.2)
49
42
 
50
43
  PLATFORMS
@@ -58,4 +51,4 @@ DEPENDENCIES
58
51
  rspec
59
52
 
60
53
  BUNDLED WITH
61
- 1.17.2
54
+ 2.0.2
data/README.md CHANGED
@@ -7,6 +7,7 @@ Differences with the original parser :
7
7
  - it add `<br>` tags to `#summary`
8
8
  - it add `<br>` tags to `#content`
9
9
  - it add player to `#content`
10
+ - it replace URLs by links
10
11
 
11
12
  ```ruby
12
13
  gem "feedjira-youtube"
@@ -1,6 +1,8 @@
1
1
  module Feedjira
2
2
  module Youtube
3
3
  class EntryParser < Parser::AtomYoutubeEntry
4
+ LINK_REGEXP = URI.regexp(%w(http https))
5
+
4
6
  sax_config.top_level_elements.delete("media:description")
5
7
  sax_config.top_level_elements.delete("summary")
6
8
 
@@ -12,6 +14,7 @@ module Feedjira
12
14
  super
13
15
  .delete("\r")
14
16
  .gsub("\n", "<br/>\n")
17
+ .gsub(LINK_REGEXP) { %(<a href="#{$&}">#{$&}</a>) }
15
18
  end
16
19
 
17
20
  def content
@@ -1,5 +1,5 @@
1
1
  module Feedjira
2
2
  module Youtube
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedjira-youtube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit MARTIN-CHAVE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-05 00:00:00.000000000 Z
11
+ date: 2019-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: feedjira
@@ -33,6 +33,8 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - ".gitignore"
35
35
  - ".rspec"
36
+ - ".ruby-version"
37
+ - ".travis.yml"
36
38
  - Gemfile
37
39
  - Gemfile.lock
38
40
  - LICENSE.txt
@@ -62,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
64
  - !ruby/object:Gem::Version
63
65
  version: '0'
64
66
  requirements: []
65
- rubygems_version: 3.0.1
67
+ rubygems_version: 3.0.3
66
68
  signing_key:
67
69
  specification_version: 4
68
70
  summary: Alternative Youtube parser for Feedjira.