pageflow-panorama 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/CHANGELOG.md +16 -35
- data/Gemfile +0 -2
- data/app/jobs/pageflow/panorama/unpack_package_job.rb +7 -7
- data/db/migrate/20140915133249_create_packages.rb +18 -2
- data/db/migrate/20160824115300_add_parent_file_to_packages.rb +1 -1
- data/lib/pageflow/panorama/engine.rb +1 -1
- data/lib/pageflow/panorama/s3_bucket.rb +15 -5
- data/lib/pageflow/panorama/unpack_to_s3.rb +1 -1
- data/lib/pageflow/panorama/version.rb +1 -1
- data/lib/pageflow/panorama/zip_entry_paperclip_io_adapter.rb +1 -1
- data/pageflow-panorama.gemspec +15 -16
- data/spec/models/pageflow/panorama/package_spec.rb +2 -2
- data/spec/pageflow/panorama/job_status_attributes_spec.rb +8 -3
- data/spec/pageflow/panorama/unpack_to_s3_spec.rb +3 -3
- data/spec/support/config/active_job.rb +7 -0
- metadata +36 -62
- data/spec/support/config/resque.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 500c7e9bed41c89b126e3793d0f958fa472a7749ebd31c02045f44840fcf5d8c
|
4
|
+
data.tar.gz: 3a6f4ab360d1e5d0c16dc58a903b4d5e356c14360350aa04432dea0d0ebd0f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3945f9b655595abb18f7fab80f73d71b69a5ab580f750190883043ccbaa30756c4cafb195c448aa8dbc51924cecfa25b9d32ac1d5c62f604aded5224fff941b5
|
7
|
+
data.tar.gz: fd41e73d383a9f316f48ba6f45116484849e0faf5e1645bf4d398865d35a1e78434898c0af50fd829eb46b0ceebe78f63aea549158947601ea355f50c1785e2a
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,43 +1,24 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version
|
3
|
+
### Version 2.0.0
|
4
4
|
|
5
|
-
|
5
|
+
2018-12-10
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow-panorama/compare/
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-panorama/compare/1-x-stable...v2.0.0)
|
8
8
|
|
9
|
-
-
|
10
|
-
([#
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
[
|
17
|
-
|
18
|
-
-
|
19
|
-
|
20
|
-
-
|
21
|
-
([#18](https://github.com/codevise/pageflow-panorama/pull/18))
|
22
|
-
- Fix unpacking progress and improve retry
|
23
|
-
([#17](https://github.com/codevise/pageflow-panorama/pull/17))
|
24
|
-
- Prevent leaving invalid packages on the file system
|
25
|
-
([#16](https://github.com/codevise/pageflow-panorama/pull/16))
|
26
|
-
- Update semmy
|
27
|
-
([#15](https://github.com/codevise/pageflow-panorama/pull/15))
|
28
|
-
- Setup travis
|
29
|
-
([#14](https://github.com/codevise/pageflow-panorama/pull/14))
|
30
|
-
- Migration added index for video files instead of packages
|
31
|
-
([#13](https://github.com/codevise/pageflow-panorama/pull/13))
|
32
|
-
- Allow different thumbnail names
|
33
|
-
([#12](https://github.com/codevise/pageflow-panorama/pull/12))
|
34
|
-
- Support pageflow 12
|
35
|
-
([#11](https://github.com/codevise/pageflow-panorama/pull/11))
|
36
|
-
- Add css class to background for slim controls shadow
|
37
|
-
([#10](https://github.com/codevise/pageflow-panorama/pull/10))
|
38
|
-
- Add nested files support
|
39
|
-
([#9](https://github.com/codevise/pageflow-panorama/pull/9))
|
9
|
+
- Migrate to Pageflow 13
|
10
|
+
([#22](https://github.com/codevise/pageflow-panorama/pull/22))
|
11
|
+
- Set package attachment in specs
|
12
|
+
([#27](https://github.com/codevise/pageflow-panorama/pull/27))
|
13
|
+
- Replace hostedfile.columns in migration
|
14
|
+
([#26](https://github.com/codevise/pageflow-panorama/pull/26))
|
15
|
+
- Migrate unpacking to aws-sdk-s3 api
|
16
|
+
([#25](https://github.com/codevise/pageflow-panorama/pull/25))
|
17
|
+
- Turn lib into eager load path
|
18
|
+
([#24](https://github.com/codevise/pageflow-panorama/pull/24))
|
19
|
+
- Add options parameter to io adapter initializer
|
20
|
+
([#23](https://github.com/codevise/pageflow-panorama/pull/23))
|
40
21
|
|
41
22
|
See
|
42
|
-
[
|
23
|
+
[1-x-stable branch](https://github.com/codevise/pageflow-panorama/blob/1-x-stable/CHANGELOG.md)
|
43
24
|
for previous changes.
|
data/Gemfile
CHANGED
@@ -2,12 +2,12 @@ require 'pageflow/panorama/validation'
|
|
2
2
|
|
3
3
|
module Pageflow
|
4
4
|
module Panorama
|
5
|
-
class UnpackPackageJob
|
6
|
-
|
5
|
+
class UnpackPackageJob < ActiveJob::Base
|
6
|
+
queue_as :slow
|
7
7
|
|
8
|
-
|
8
|
+
include StateMachineJob
|
9
9
|
|
10
|
-
def
|
10
|
+
def perform_with_result(package, _options)
|
11
11
|
JobStatusAttributes.handle(package, stage: :unpacking) do |&progress|
|
12
12
|
Archive.for(package) do |archive|
|
13
13
|
parse(package, archive)
|
@@ -22,7 +22,7 @@ module Pageflow
|
|
22
22
|
|
23
23
|
private_class_method
|
24
24
|
|
25
|
-
def
|
25
|
+
def unpack_to_s3(package, archive, &progress)
|
26
26
|
bucket = Panorama.bucket_factory.from_attachment(package.attachment_on_s3)
|
27
27
|
|
28
28
|
UnpackToS3
|
@@ -33,14 +33,14 @@ module Pageflow
|
|
33
33
|
.upload(&progress)
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def parse(package, archive)
|
37
37
|
result = Validation.parse(archive)
|
38
38
|
|
39
39
|
package.index_document = result.index_document
|
40
40
|
process_thumbnail(package, archive.find_entry(result.thumbnail))
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
43
|
+
def process_thumbnail(package, thumbnail_file)
|
44
44
|
package.thumbnail = thumbnail_file
|
45
45
|
package.valid?
|
46
46
|
|
@@ -1,7 +1,23 @@
|
|
1
|
-
class CreatePackages < ActiveRecord::Migration
|
1
|
+
class CreatePackages < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
create_table :pageflow_panorama_packages do |t|
|
4
|
-
|
4
|
+
t.belongs_to(:entry, index: true)
|
5
|
+
t.belongs_to(:uploader, index: true)
|
6
|
+
|
7
|
+
t.string(:state)
|
8
|
+
t.string(:rights)
|
9
|
+
|
10
|
+
t.string(:attachment_on_filesystem_file_name)
|
11
|
+
t.string(:attachment_on_filesystem_content_type)
|
12
|
+
t.integer(:attachment_on_filesystem_file_size, limit: 8)
|
13
|
+
t.datetime(:attachment_on_filesystem_updated_at)
|
14
|
+
|
15
|
+
t.string(:attachment_on_s3_file_name)
|
16
|
+
t.string(:attachment_on_s3_content_type)
|
17
|
+
t.integer(:attachment_on_s3_file_size, limit: 8)
|
18
|
+
t.datetime(:attachment_on_s3_updated_at)
|
19
|
+
|
20
|
+
t.timestamps
|
5
21
|
|
6
22
|
t.integer(:unpacking_progress)
|
7
23
|
t.string(:unpacking_error_message)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddParentFileToPackages < ActiveRecord::Migration
|
1
|
+
class AddParentFileToPackages < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
add_column :pageflow_panorama_packages, :parent_file_id, :integer
|
4
4
|
add_column :pageflow_panorama_packages, :parent_file_model_type, :string
|
@@ -6,7 +6,7 @@ module Pageflow
|
|
6
6
|
class Engine < Rails::Engine
|
7
7
|
isolate_namespace Pageflow::Panorama
|
8
8
|
|
9
|
-
config.
|
9
|
+
config.paths.add('lib', eager_load: true)
|
10
10
|
config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.yml').to_s]
|
11
11
|
end
|
12
12
|
end
|
@@ -8,11 +8,21 @@ module Pageflow
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def write(name:, input_stream:, content_length:, content_type:)
|
11
|
-
object = bucket.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
object = bucket.object(name)
|
12
|
+
|
13
|
+
object.put(body: StreamWithSize.new(input_stream, content_length),
|
14
|
+
acl: 'public-read',
|
15
|
+
content_type: content_type,
|
16
|
+
content_length: content_length)
|
17
|
+
end
|
18
|
+
|
19
|
+
class StreamWithSize < SimpleDelegator
|
20
|
+
attr_reader :size
|
21
|
+
|
22
|
+
def initialize(stream, size)
|
23
|
+
super(stream)
|
24
|
+
@size = size
|
25
|
+
end
|
16
26
|
end
|
17
27
|
|
18
28
|
class Factory
|
data/pageflow-panorama.gemspec
CHANGED
@@ -4,31 +4,30 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'pageflow/panorama/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'pageflow-panorama'
|
8
8
|
spec.version = Pageflow::Panorama::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.summary =
|
12
|
-
spec.homepage =
|
13
|
-
spec.license =
|
9
|
+
spec.authors = ['Codevise Solutions']
|
10
|
+
spec.email = ['info@codevise.de']
|
11
|
+
spec.summary = 'Pagetype for iframe embedded 360° panoramas'
|
12
|
+
spec.homepage = 'https://github.com/codevise/pageflow-panorama'
|
13
|
+
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.files = `git ls-files`.split($/)
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
|
-
spec.require_paths = [
|
17
|
+
spec.require_paths = ['lib']
|
18
18
|
|
19
19
|
spec.required_ruby_version = '~> 2.1'
|
20
20
|
|
21
|
-
spec.add_runtime_dependency
|
22
|
-
spec.add_runtime_dependency '
|
23
|
-
spec.add_runtime_dependency
|
21
|
+
spec.add_runtime_dependency 'pageflow', '~> 13.x'
|
22
|
+
spec.add_runtime_dependency 'rubyzip', '~> 1.1'
|
23
|
+
spec.add_runtime_dependency 'aws-sdk-s3', '~> 1.17'
|
24
24
|
spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
|
25
25
|
|
26
|
-
spec.add_development_dependency 'pageflow-support', '
|
27
|
-
spec.add_development_dependency
|
28
|
-
spec.add_development_dependency
|
29
|
-
spec.add_development_dependency
|
30
|
-
spec.add_development_dependency '
|
31
|
-
spec.add_development_dependency "mysql2"
|
26
|
+
spec.add_development_dependency 'pageflow-support', '~> 13.x'
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.0'
|
28
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
29
|
+
spec.add_development_dependency 'rspec-rails', '~> 3.7'
|
30
|
+
spec.add_development_dependency 'factory_bot_rails', '~> 4.8'
|
32
31
|
|
33
32
|
# Semantic versioning rake tasks
|
34
33
|
spec.add_development_dependency 'semmy', '~> 1.0'
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
module Pageflow
|
4
4
|
module Panorama
|
5
5
|
describe Package do
|
6
|
-
describe '#process',
|
6
|
+
describe '#process', perform_jobs: true do
|
7
7
|
it 'parses thumbnail and index document' do
|
8
8
|
zip_file = File.open(Engine.root.join('spec', 'fixtures', 'krpano.zip'))
|
9
9
|
package = Package.create!(attachment: zip_file)
|
@@ -72,7 +72,7 @@ module Pageflow
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
describe '#retry'
|
75
|
+
describe '#retry' do
|
76
76
|
it 'resets unpacking progress and error_message' do
|
77
77
|
zip_file = File.open(Engine.root.join('spec', 'fixtures', 'krpano.zip'))
|
78
78
|
package = Package.create!(attachment: zip_file,
|
@@ -5,7 +5,7 @@ module Pageflow
|
|
5
5
|
describe JobStatusAttributes do
|
6
6
|
describe '#handle' do
|
7
7
|
it 'updates phase progress attribute when passed block is called' do
|
8
|
-
record = Package.create!(unpacking_progress: 0)
|
8
|
+
record = Package.create!(attachment: zip_file, unpacking_progress: 0)
|
9
9
|
|
10
10
|
JobStatusAttributes.handle(record, stage: :unpacking) do |&progress|
|
11
11
|
progress.call(20)
|
@@ -15,7 +15,7 @@ module Pageflow
|
|
15
15
|
end
|
16
16
|
|
17
17
|
it 'sets phase error message if error with message_i18n_key is raised' do
|
18
|
-
record = Package.create!(unpacking_progress: 0)
|
18
|
+
record = Package.create!(attachment: zip_file, unpacking_progress: 0)
|
19
19
|
error_with_message_i18n_key = Class.new(RuntimeError) do
|
20
20
|
def message_i18n_key
|
21
21
|
:i18n_key
|
@@ -35,7 +35,8 @@ module Pageflow
|
|
35
35
|
|
36
36
|
describe '#reset' do
|
37
37
|
it 'resets progress and error message attrbute' do
|
38
|
-
record = Package.create!(
|
38
|
+
record = Package.create!(attachment: zip_file,
|
39
|
+
unpacking_progress: 20,
|
39
40
|
unpacking_error_message: 'fail')
|
40
41
|
|
41
42
|
JobStatusAttributes.reset(record, stage: :unpacking)
|
@@ -44,6 +45,10 @@ module Pageflow
|
|
44
45
|
expect(record.unpacking_error_message).to eq(nil)
|
45
46
|
end
|
46
47
|
end
|
48
|
+
|
49
|
+
def zip_file
|
50
|
+
File.open(Engine.root.join('spec', 'fixtures', 'krpano.zip'))
|
51
|
+
end
|
47
52
|
end
|
48
53
|
end
|
49
54
|
end
|
@@ -45,7 +45,7 @@ module Pageflow
|
|
45
45
|
|
46
46
|
it 'retries when write fails' do
|
47
47
|
archive = Zip::File.open(Engine.root.join('spec', 'fixtures', 'some.txt.zip'))
|
48
|
-
bucket = Doubles.bucket_raising_once(
|
48
|
+
bucket = Doubles.bucket_raising_once(Aws::S3::Errors::SlowDown.new(nil, 'message'))
|
49
49
|
unpack_to_s3 = UnpackToS3.new(archive: archive,
|
50
50
|
destination_bucket: bucket,
|
51
51
|
destination_base_path: 'base')
|
@@ -58,7 +58,7 @@ module Pageflow
|
|
58
58
|
|
59
59
|
it 're-raises exception when write fails too often' do
|
60
60
|
archive = Zip::File.open(Engine.root.join('spec', 'fixtures', 'some.txt.zip'))
|
61
|
-
bucket = Doubles.bucket_raising(
|
61
|
+
bucket = Doubles.bucket_raising(Aws::S3::Errors::SlowDown.new(nil, 'message'))
|
62
62
|
unpack_to_s3 = UnpackToS3.new(archive: archive,
|
63
63
|
destination_bucket: bucket,
|
64
64
|
destination_base_path: 'base')
|
@@ -67,7 +67,7 @@ module Pageflow
|
|
67
67
|
|
68
68
|
expect {
|
69
69
|
unpack_to_s3.upload
|
70
|
-
}.to raise_error(
|
70
|
+
}.to raise_error(Aws::S3::Errors::SlowDown)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
metadata
CHANGED
@@ -1,69 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-panorama
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.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
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.11'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: 13.x
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.11'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: 13.x
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: rubyzip
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.2'
|
40
|
-
- - "<"
|
31
|
+
- - "~>"
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
33
|
+
version: '1.1'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0.2'
|
50
|
-
- - "<"
|
38
|
+
- - "~>"
|
51
39
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
40
|
+
version: '1.1'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
42
|
+
name: aws-sdk-s3
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
45
|
- - "~>"
|
58
46
|
- !ruby/object:Gem::Version
|
59
|
-
version: '1.
|
47
|
+
version: '1.17'
|
60
48
|
type: :runtime
|
61
49
|
prerelease: false
|
62
50
|
version_requirements: !ruby/object:Gem::Requirement
|
63
51
|
requirements:
|
64
52
|
- - "~>"
|
65
53
|
- !ruby/object:Gem::Version
|
66
|
-
version: '1.
|
54
|
+
version: '1.17'
|
67
55
|
- !ruby/object:Gem::Dependency
|
68
56
|
name: pageflow-public-i18n
|
69
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,86 +70,72 @@ dependencies:
|
|
82
70
|
name: pageflow-support
|
83
71
|
requirement: !ruby/object:Gem::Requirement
|
84
72
|
requirements:
|
85
|
-
- - "
|
73
|
+
- - "~>"
|
86
74
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
75
|
+
version: 13.x
|
88
76
|
type: :development
|
89
77
|
prerelease: false
|
90
78
|
version_requirements: !ruby/object:Gem::Requirement
|
91
79
|
requirements:
|
92
|
-
- - "
|
80
|
+
- - "~>"
|
93
81
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
82
|
+
version: 13.x
|
95
83
|
- !ruby/object:Gem::Dependency
|
96
84
|
name: bundler
|
97
85
|
requirement: !ruby/object:Gem::Requirement
|
98
86
|
requirements:
|
99
|
-
- - "
|
87
|
+
- - "~>"
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
89
|
+
version: '1.0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
93
|
requirements:
|
106
|
-
- - "
|
94
|
+
- - "~>"
|
107
95
|
- !ruby/object:Gem::Version
|
108
|
-
version: '0'
|
96
|
+
version: '1.0'
|
109
97
|
- !ruby/object:Gem::Dependency
|
110
98
|
name: rake
|
111
99
|
requirement: !ruby/object:Gem::Requirement
|
112
100
|
requirements:
|
113
|
-
- - "
|
101
|
+
- - "~>"
|
114
102
|
- !ruby/object:Gem::Version
|
115
|
-
version: '0'
|
103
|
+
version: '12.0'
|
116
104
|
type: :development
|
117
105
|
prerelease: false
|
118
106
|
version_requirements: !ruby/object:Gem::Requirement
|
119
107
|
requirements:
|
120
|
-
- - "
|
108
|
+
- - "~>"
|
121
109
|
- !ruby/object:Gem::Version
|
122
|
-
version: '0'
|
110
|
+
version: '12.0'
|
123
111
|
- !ruby/object:Gem::Dependency
|
124
112
|
name: rspec-rails
|
125
113
|
requirement: !ruby/object:Gem::Requirement
|
126
114
|
requirements:
|
127
115
|
- - "~>"
|
128
116
|
- !ruby/object:Gem::Version
|
129
|
-
version: '3.
|
117
|
+
version: '3.7'
|
130
118
|
type: :development
|
131
119
|
prerelease: false
|
132
120
|
version_requirements: !ruby/object:Gem::Requirement
|
133
121
|
requirements:
|
134
122
|
- - "~>"
|
135
123
|
- !ruby/object:Gem::Version
|
136
|
-
version: '3.
|
137
|
-
- !ruby/object:Gem::Dependency
|
138
|
-
name: factory_girl_rails
|
139
|
-
requirement: !ruby/object:Gem::Requirement
|
140
|
-
requirements:
|
141
|
-
- - ">="
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '0'
|
144
|
-
type: :development
|
145
|
-
prerelease: false
|
146
|
-
version_requirements: !ruby/object:Gem::Requirement
|
147
|
-
requirements:
|
148
|
-
- - ">="
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: '0'
|
124
|
+
version: '3.7'
|
151
125
|
- !ruby/object:Gem::Dependency
|
152
|
-
name:
|
126
|
+
name: factory_bot_rails
|
153
127
|
requirement: !ruby/object:Gem::Requirement
|
154
128
|
requirements:
|
155
|
-
- - "
|
129
|
+
- - "~>"
|
156
130
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
131
|
+
version: '4.8'
|
158
132
|
type: :development
|
159
133
|
prerelease: false
|
160
134
|
version_requirements: !ruby/object:Gem::Requirement
|
161
135
|
requirements:
|
162
|
-
- - "
|
136
|
+
- - "~>"
|
163
137
|
- !ruby/object:Gem::Version
|
164
|
-
version: '
|
138
|
+
version: '4.8'
|
165
139
|
- !ruby/object:Gem::Dependency
|
166
140
|
name: semmy
|
167
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,8 +218,8 @@ files:
|
|
244
218
|
- spec/pageflow/panorama/unpack_to_s3_spec.rb
|
245
219
|
- spec/pageflow/panorama/validation/kr_pano_spec.rb
|
246
220
|
- spec/spec_helper.rb
|
221
|
+
- spec/support/config/active_job.rb
|
247
222
|
- spec/support/config/pageflow_panorama.rb
|
248
|
-
- spec/support/config/resque.rb
|
249
223
|
- spec/support/helpers/doubles.rb
|
250
224
|
homepage: https://github.com/codevise/pageflow-panorama
|
251
225
|
licenses:
|
@@ -267,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
241
|
version: '0'
|
268
242
|
requirements: []
|
269
243
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.
|
244
|
+
rubygems_version: 2.7.5
|
271
245
|
signing_key:
|
272
246
|
specification_version: 4
|
273
247
|
summary: Pagetype for iframe embedded 360° panoramas
|
@@ -281,6 +255,6 @@ test_files:
|
|
281
255
|
- spec/pageflow/panorama/unpack_to_s3_spec.rb
|
282
256
|
- spec/pageflow/panorama/validation/kr_pano_spec.rb
|
283
257
|
- spec/spec_helper.rb
|
258
|
+
- spec/support/config/active_job.rb
|
284
259
|
- spec/support/config/pageflow_panorama.rb
|
285
|
-
- spec/support/config/resque.rb
|
286
260
|
- spec/support/helpers/doubles.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
RSpec.configure do |config|
|
2
|
-
config.before(:each, inline_resque: true) do
|
3
|
-
Resque.inline = true
|
4
|
-
end
|
5
|
-
|
6
|
-
config.after(:each, inline_resque: true) do
|
7
|
-
Resque.inline = false
|
8
|
-
end
|
9
|
-
|
10
|
-
config.before(:each, stub_resque: true) do
|
11
|
-
allow(Resque).to receive(:enqueue)
|
12
|
-
end
|
13
|
-
end
|