lalala 4.0.0.dev.339 → 4.0.0.dev.343

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
  SHA1:
3
- metadata.gz: e91d1a69370ce03241a151589b88e0a541d7d907
4
- data.tar.gz: 6f3ea642e9e3a9ec6e63468fbff5c4771c1284f9
3
+ metadata.gz: b184a4e5f05dfbe730fb045435d0395fcfc84a8e
4
+ data.tar.gz: 0a930f52611553daaf59d0bd3344886b8a7a8006
5
5
  SHA512:
6
- metadata.gz: 8096e0ef884dd1a46cb94f3c84f9b5df96d96fd26df0448e7585592a9cdc5d1b7017328f55b76ec24525c654b87d7d787c01b31822cbb01a4f5070672ae09921
7
- data.tar.gz: 139132ec45b821f9301bc3115a4916f14c21da293972bd02bfd84584b66f3fbf469673ab8dd786bf2bdb45ecca76cef60f4b73f157288aaa1edc584fc3a013d1
6
+ metadata.gz: 04d86d8ad0637c2dbaeda2c394c6dd304b861d987e450be146536ad568ff33e76c1536aa420fb8f2769cd328a050d68cea4a5222c92e8c783c5eab3eacea0466
7
+ data.tar.gz: 1bee33ec07101495507d28a54b7520d66ff156aa8208ae0a4963a1ec654334f426644789ec9814fd623507743ce2f4916f4be03de82fa9dc31e8612974906dc9
@@ -0,0 +1,38 @@
1
+ class Lalala::Markdown::Handlers::Vimeo < Lalala::Markdown::Handlers::Base
2
+
3
+ def initialize(options={})
4
+ options.assert_valid_keys(:color, :height, :show_badge, :show_byline, :show_portrait, :show_title, :width)
5
+
6
+ options = {
7
+ color: "ffffff",
8
+ height: 315,
9
+ show_badge: 0,
10
+ show_byline: 0,
11
+ show_portrait: 0,
12
+ show_title: 0,
13
+ width: 560
14
+ }.merge(options)
15
+
16
+ @options = options
17
+ end
18
+
19
+ def image(url, alt=nil, title=nil)
20
+ unless %r|^vimeo[:]//(.+)$| === url
21
+ return ""
22
+ end
23
+
24
+ id = $1
25
+
26
+ helpers.content_tag(
27
+ :iframe,
28
+ "",
29
+ width: @options[:width],
30
+ height: @options[:height],
31
+ src: "//player.vimeo.com/video/#{id}?portrait=#{@options[:show_portrait]}&title=#{@options[:show_title]}&badge=#{@options[:show_badge]}&byline=#{@options[:show_byline]}&color=#{@options[:color]}&wmode=transparent",
32
+
33
+ frameborder: 0,
34
+ allowfullscreen: true
35
+ )
36
+ end
37
+
38
+ end
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.0.0"
3
- BUILD = "339"
3
+ BUILD = "343"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lalala
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.dev.339
4
+ version: 4.0.0.dev.343
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-07-03 00:00:00.000000000 Z
16
+ date: 2014-09-26 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activeadmin
@@ -1464,6 +1464,7 @@ files:
1464
1464
  - lib/lalala/markdown.rb
1465
1465
  - lib/lalala/markdown/active_model.rb
1466
1466
  - lib/lalala/markdown/handlers/base.rb
1467
+ - lib/lalala/markdown/handlers/vimeo.rb
1467
1468
  - lib/lalala/markdown/handlers/youtube.rb
1468
1469
  - lib/lalala/markdown/html_renderer.rb
1469
1470
  - lib/lalala/markdown/input_helper.rb
@@ -1585,7 +1586,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1585
1586
  version: 1.3.1
1586
1587
  requirements: []
1587
1588
  rubyforge_project:
1588
- rubygems_version: 2.2.2
1589
+ rubygems_version: 2.4.1
1589
1590
  signing_key:
1590
1591
  specification_version: 4
1591
1592
  summary: 'Lalala: Probably the best CMS in the world.'