bitmovin-player-rails 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edc2ce8e3a59c8acf0a11ba308049f5a162e6a8a
|
4
|
+
data.tar.gz: ac1dbcbb60aeccb7d3176acd6e45524ae225e8a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eda7cb938f3183f9297899d6c368bc71e13e7c4b512ed9b5d10d49a6f2b64eecb28e7f7ec892649dd3c5c2444980b19ff0cd267f2b2f591e2cf31e6ae75233b
|
7
|
+
data.tar.gz: 5acf928c73bbee1ef93cc3316a37cc54a7f782547dc641f8286891c4b8f0fb0b9a150fc5288355a83aef509fc86c8f382eb699853af3302d4c4f1b50254b865e
|
@@ -31,9 +31,17 @@ class BitmovinPlayerGenerator < Rails::Generators::Base
|
|
31
31
|
template "config.yml.erb", "config/bitmovin_player.yml"
|
32
32
|
application "config.bitmovin_player = config_for(:bitmovin_player)"
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
if (File.exists?('app/views/layouts/application.html.haml'))
|
35
|
+
inject_into_file 'app/views/layouts/application.html.haml', :before => '%body' do
|
36
|
+
"= bitmovin_player_script\n"
|
37
|
+
end
|
38
|
+
puts "Injected a script tag into your HAML Layout. Please make sure it is indented correctly."
|
39
|
+
end
|
40
|
+
if (File.exists?('app/views/layouts/application.html.erb'))
|
41
|
+
inject_into_file 'app/views/layouts/application.html.erb', :before => '</head>' do
|
42
|
+
"<%= bitmovin_player_script %>\n"
|
43
|
+
end
|
44
|
+
end
|
37
45
|
|
38
46
|
puts "Installation successful!"
|
39
47
|
readme File.expand_path('.././INSTRUCTIONS', __FILE__)
|
@@ -46,7 +54,7 @@ class BitmovinPlayerGenerator < Rails::Generators::Base
|
|
46
54
|
check_api_response!(response)
|
47
55
|
player_versions = JSON.parse(response.body)
|
48
56
|
|
49
|
-
|
57
|
+
player_versions.select { |version| version["isDefault"] == true }
|
50
58
|
end
|
51
59
|
|
52
60
|
def check_api_response!(response)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitmovin-player-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Hoelbling-Inzko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|