bitmovin-player-rails 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 2fd2036465b5bca4990ce971de93f34164642511
4
- data.tar.gz: 88496637be1952fc2b6cf746586cdf97f014aa93
3
+ metadata.gz: edc2ce8e3a59c8acf0a11ba308049f5a162e6a8a
4
+ data.tar.gz: ac1dbcbb60aeccb7d3176acd6e45524ae225e8a4
5
5
  SHA512:
6
- metadata.gz: 82259951bdf2363d959c02e80ef35f0f9700206857ec4beb6392a5374c1141276067f7cb7d4f0b55e6aef94e5c8a0101886b459fe20943335073c4322b918c15
7
- data.tar.gz: e238110a51da31fbb1cf676096a3c5d0de4fdfcc97ec610b32e042253b648c9fb2f9a7a196870ab93e5fc1adf9d2c938f9b43ba934883d59a74cb7c0f545cf9a
6
+ metadata.gz: 7eda7cb938f3183f9297899d6c368bc71e13e7c4b512ed9b5d10d49a6f2b64eecb28e7f7ec892649dd3c5c2444980b19ff0cd267f2b2f591e2cf31e6ae75233b
7
+ data.tar.gz: 5acf928c73bbee1ef93cc3316a37cc54a7f782547dc641f8286891c4b8f0fb0b9a150fc5288355a83aef509fc86c8f382eb699853af3302d4c4f1b50254b865e
@@ -1,7 +1,7 @@
1
1
  module Bitmovin
2
2
  module Player
3
3
  module Rails
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
6
6
  end
7
7
  end
@@ -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
- inject_into_file 'app/views/layouts/application.html.erb', :before => '</head>' do
35
- "<%= bitmovin_player_script %>\n"
36
- end
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
- default_versions = player_versions.select { |version| version["isDefault"] == true }
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2016-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails