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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52fb5b6dd20bd8d5c8960befac12e903242509aeef46d45d9813723ca9827563
4
- data.tar.gz: 7a32dd6d11c15ab4675c015404215ac1f3faea74726cae26c189d706169110ad
3
+ metadata.gz: 873e65f4277d8a4f7e921b622346e34f9c2ccc389b188ee36154fdff59e6d1b0
4
+ data.tar.gz: b69e9ae0430de47adc63af8912cb43dd903de20b7cd15c79475878611599f33d
5
5
  SHA512:
6
- metadata.gz: a536dbfb6e0cfaa0db1962e4c2a567c0ccca18b4003204105f5eca3330ecdf0caa5b824b18bfef2ebad6256431a0e9ffd007cf4d9da5eaf6f98b0e9b4eb5449c
7
- data.tar.gz: e22cfc330a83c55a3b81c1c14903352df80d9b495c5480bed44c4808a801fc374a7209c9355265122d4ed539bed8aeb4a7a3076b1fdb7235932794fb32a152d9
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.4)
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
- thread_safe (0.3.6)
96
- tzinfo (1.2.5)
97
- thread_safe (~> 0.1)
74
+ tilt (2.0.8)
98
75
 
99
76
  PLATFORMS
100
77
  ruby
@@ -0,0 +1,7 @@
1
+ require 'padrino-helpers'
2
+
3
+ module Videos::TagHelpers
4
+ include Padrino::Helpers
5
+ include Padrino::Helpers::TagHelpers
6
+ include Padrino::Helpers::AssetTagHelpers
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Videos
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
data/lib/videos/video.rb CHANGED
@@ -1,9 +1,5 @@
1
- require 'action_view'
2
-
3
1
  class Videos::Video
4
- include ActionView::Helpers::TagHelper
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
- concat(tag(:source, src: @uri.to_s, type: @uri.content_type))
23
- concat(content_tag(:span, sorry_message, class: 'sorry'))
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
@@ -1,4 +1,5 @@
1
1
  require "videos/version"
2
+ require "videos/tag_helpers"
2
3
  require "videos/uri"
3
4
  require "videos/video"
4
5
  require "videos/youtube"
data/videos.gemspec CHANGED
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "html_validation", "~> 1.1"
28
28
 
29
29
  spec.add_dependency "httparty", "~> 0.16"
30
- spec.add_dependency "actionview", "~> 5"
30
+ spec.add_dependency "padrino-helpers", "~> 0.14"
31
31
  end
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
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-06 00:00:00.000000000 Z
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: actionview
98
+ name: padrino-helpers
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '5'
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: '5'
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