rb42-videos 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -31
- data/lib/videos/tag_helpers.rb +7 -0
- data/lib/videos/version.rb +1 -1
- data/lib/videos/video.rb +3 -7
- data/lib/videos.rb +1 -0
- data/videos.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 873e65f4277d8a4f7e921b622346e34f9c2ccc389b188ee36154fdff59e6d1b0
|
4
|
+
data.tar.gz: b69e9ae0430de47adc63af8912cb43dd903de20b7cd15c79475878611599f33d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b225f55044e7a5c4018700a7143032b2af4b98c680c8de3285d968013cdd5a2d9284a06adbf825e13a9fb0a47ab0561fdf48f40b76f67f458be19d7c11dba2b
|
7
|
+
data.tar.gz: 519160e8ea3eced86059d06ee73246d404a7d001d584d93bf46b71114e20bfd3b0ad6f6078dab1001e99143aab27d82d4bd173e3ddbcb32d1537844d9fb459e8
|
data/Gemfile.lock
CHANGED
@@ -1,30 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rb42-videos (1.0.
|
5
|
-
actionview (~> 5)
|
4
|
+
rb42-videos (1.0.5)
|
6
5
|
httparty (~> 0.16)
|
6
|
+
padrino-helpers (~> 0.14)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionview (5.1.5)
|
12
|
-
activesupport (= 5.1.5)
|
13
|
-
builder (~> 3.1)
|
14
|
-
erubi (~> 1.4)
|
15
|
-
rails-dom-testing (~> 2.0)
|
16
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
17
|
-
activesupport (5.1.5)
|
18
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
-
i18n (~> 0.7)
|
20
|
-
minitest (~> 5.1)
|
21
|
-
tzinfo (~> 1.1)
|
22
|
-
builder (3.2.3)
|
23
11
|
coderay (1.1.2)
|
24
12
|
concurrent-ruby (1.0.5)
|
25
|
-
crass (1.0.3)
|
26
13
|
diff-lcs (1.3)
|
27
|
-
erubi (1.7.1)
|
28
14
|
ffi (1.9.23)
|
29
15
|
formatador (0.2.5)
|
30
16
|
guard (2.14.2)
|
@@ -50,28 +36,21 @@ GEM
|
|
50
36
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
51
37
|
rb-inotify (~> 0.9, >= 0.9.7)
|
52
38
|
ruby_dep (~> 1.2)
|
53
|
-
loofah (2.2.0)
|
54
|
-
crass (~> 1.0.2)
|
55
|
-
nokogiri (>= 1.5.9)
|
56
39
|
lumberjack (1.0.12)
|
57
40
|
method_source (0.9.0)
|
58
|
-
mini_portile2 (2.3.0)
|
59
|
-
minitest (5.11.3)
|
60
41
|
multi_xml (0.6.0)
|
61
42
|
nenv (0.3.0)
|
62
|
-
nokogiri (1.8.2)
|
63
|
-
mini_portile2 (~> 2.3.0)
|
64
43
|
notiffany (0.1.1)
|
65
44
|
nenv (~> 0.1)
|
66
45
|
shellany (~> 0.0)
|
46
|
+
padrino-helpers (0.14.3)
|
47
|
+
i18n (~> 0.6, >= 0.6.7)
|
48
|
+
padrino-support (= 0.14.3)
|
49
|
+
tilt (>= 1.4.1, < 3)
|
50
|
+
padrino-support (0.14.3)
|
67
51
|
pry (0.11.3)
|
68
52
|
coderay (~> 1.1.0)
|
69
53
|
method_source (~> 0.9.0)
|
70
|
-
rails-dom-testing (2.0.3)
|
71
|
-
activesupport (>= 4.2.0)
|
72
|
-
nokogiri (>= 1.6)
|
73
|
-
rails-html-sanitizer (1.0.3)
|
74
|
-
loofah (~> 2.0)
|
75
54
|
rake (10.5.0)
|
76
55
|
rb-fsevent (0.10.3)
|
77
56
|
rb-inotify (0.9.10)
|
@@ -92,9 +71,7 @@ GEM
|
|
92
71
|
ruby_dep (1.5.0)
|
93
72
|
shellany (0.0.1)
|
94
73
|
thor (0.20.0)
|
95
|
-
|
96
|
-
tzinfo (1.2.5)
|
97
|
-
thread_safe (~> 0.1)
|
74
|
+
tilt (2.0.8)
|
98
75
|
|
99
76
|
PLATFORMS
|
100
77
|
ruby
|
data/lib/videos/version.rb
CHANGED
data/lib/videos/video.rb
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
require 'action_view'
|
2
|
-
|
3
1
|
class Videos::Video
|
4
|
-
include
|
5
|
-
include ActionView::Helpers::TextHelper
|
6
|
-
include ActionView::Context
|
2
|
+
include Videos::TagHelpers
|
7
3
|
attr_reader :uri
|
8
4
|
attr_accessor :options
|
9
5
|
|
@@ -19,8 +15,8 @@ class Videos::Video
|
|
19
15
|
|
20
16
|
def embed_code
|
21
17
|
content_tag(:video, '', controls: controls) do
|
22
|
-
|
23
|
-
|
18
|
+
tag(:source, src: @uri.to_s, type: @uri.content_type) +
|
19
|
+
content_tag(:span, sorry_message, class: 'sorry')
|
24
20
|
end
|
25
21
|
end
|
26
22
|
alias_method :to_html, :embed_code
|
data/lib/videos.rb
CHANGED
data/videos.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb42-videos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Burnette
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,19 +95,19 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.16'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: padrino-helpers
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0.14'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0.14'
|
111
111
|
description: Videos is an API for going from a URL to video embed code.
|
112
112
|
email:
|
113
113
|
- ryan.burnette@gmail.com
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- Rakefile
|
125
125
|
- bin/console
|
126
126
|
- lib/videos.rb
|
127
|
+
- lib/videos/tag_helpers.rb
|
127
128
|
- lib/videos/uri.rb
|
128
129
|
- lib/videos/version.rb
|
129
130
|
- lib/videos/video.rb
|