pageflow-vr 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +15 -3
- data/app/controllers/pageflow/vr/static_files_controller.rb +15 -0
- data/lib/pageflow/vr/projection_auto_detection.rb +2 -1
- data/lib/pageflow/vr/version.rb +1 -1
- data/pageflow-vr.gemspec +1 -1
- metadata +13 -8
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1237c87ba6ce085e25ba3fdad8a6d3fff9ede5a952ecf4fae233c37b306418fa
|
4
|
+
data.tar.gz: 5bfbafb1e6d2659b04990e605642a4ea7b5e55e6b9649f8591f480592ce646c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f105c9ad7de6990095aa2212cb49d8a4487ac9cc7e4b20281fca6ef10e9799b2469ffb1d7944249c1830e348fa2ddae82b963f4d3cfb0174937e52a3015adf88
|
7
|
+
data.tar.gz: 14bb3bb562c8ec70022cadf4eb21ebdbc6b0c326daeb41541f24a17515fce22d4882bea221794fbf83d59a4344da9c54e6b1eedf6fcef182042b0675948292c0
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 1.
|
3
|
+
### Version 1.1.0
|
4
4
|
|
5
|
-
|
5
|
+
2018-12-10
|
6
6
|
|
7
|
-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-vr/compare/1-0-stable...v1.1.0)
|
8
|
+
|
9
|
+
- Add support for Pageflow 13
|
10
|
+
([#3](https://github.com/codevise/pageflow-vr/pull/3),
|
11
|
+
[#4](https://github.com/codevise/pageflow-vr/pull/4))
|
12
|
+
- Bug fix: Allow displaying vrview in embedded entry
|
13
|
+
([#2](https://github.com/codevise/pageflow-vr/pull/2))
|
14
|
+
- Bug fix: Skip projectionAutoDetection for videos without usage
|
15
|
+
([#5](https://github.com/codevise/pageflow-vr/pull/5))
|
16
|
+
|
17
|
+
See
|
18
|
+
[1-0-stable branch](https://github.com/codevise/pageflow-vr/blob/1-0-stable/CHANGELOG.md)
|
19
|
+
for previous changes.
|
@@ -1,6 +1,15 @@
|
|
1
1
|
module Pageflow
|
2
2
|
module Vr
|
3
3
|
class StaticFilesController < ActionController::Base
|
4
|
+
after_action :allow_iframe, only: :vrview
|
5
|
+
|
6
|
+
# By default Rails only allows XHR requests with js content type
|
7
|
+
# (see docs of
|
8
|
+
# `ActionController::RequestForgeryProtection`). This controller
|
9
|
+
# serves static assets, though. Allow using its endpoint in
|
10
|
+
# `<script>` tags.
|
11
|
+
protect_from_forgery except: :vrview
|
12
|
+
|
4
13
|
def vrview
|
5
14
|
respond_to do |format|
|
6
15
|
format.html
|
@@ -8,6 +17,12 @@ module Pageflow
|
|
8
17
|
format.js
|
9
18
|
end
|
10
19
|
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def allow_iframe
|
24
|
+
response.headers.except! 'X-Frame-Options'
|
25
|
+
end
|
11
26
|
end
|
12
27
|
end
|
13
28
|
end
|
@@ -3,7 +3,8 @@ module Pageflow
|
|
3
3
|
class ProjectionAutoDetection
|
4
4
|
def call(options)
|
5
5
|
file = options[:file]
|
6
|
-
return unless file.is_a?(VideoFile)
|
6
|
+
return unless file.is_a?(VideoFile) && file.usages.any?
|
7
|
+
|
7
8
|
usage = file.usages.first
|
8
9
|
|
9
10
|
if dimension_present?(file) && auto_detection_enabled?(usage)
|
data/lib/pageflow/vr/version.rb
CHANGED
data/pageflow-vr.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.required_ruby_version = '~> 2.1'
|
19
19
|
|
20
|
-
spec.add_dependency 'pageflow', '
|
20
|
+
spec.add_dependency 'pageflow', ['>= 12.0', '< 14']
|
21
21
|
spec.add_dependency 'pageflow-public-i18n', '~> 1.10'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-vr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '12.0'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: '14'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '12.0'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: '14'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: pageflow-public-i18n
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,7 +110,6 @@ files:
|
|
104
110
|
- ".eslintrc"
|
105
111
|
- ".gitignore"
|
106
112
|
- ".rspec"
|
107
|
-
- ".travis.yml"
|
108
113
|
- CHANGELOG.md
|
109
114
|
- CODE_OF_CONDUCT.md
|
110
115
|
- Gemfile
|
@@ -164,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
169
|
version: '0'
|
165
170
|
requirements: []
|
166
171
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
172
|
+
rubygems_version: 2.7.5
|
168
173
|
signing_key:
|
169
174
|
specification_version: 4
|
170
175
|
summary: Page type for 360° videos based on Google Vrview.
|