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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1dd8882acc8a93ab6dc8a02b67f151d2c3ed5afc
4
- data.tar.gz: 104f93596ecaadcfad90f8be78c85900a2a6b0d7
2
+ SHA256:
3
+ metadata.gz: 500c7e9bed41c89b126e3793d0f958fa472a7749ebd31c02045f44840fcf5d8c
4
+ data.tar.gz: 3a6f4ab360d1e5d0c16dc58a903b4d5e356c14360350aa04432dea0d0ebd0f28
5
5
  SHA512:
6
- metadata.gz: e1f75d47dbca60c4a4ed35e1650eeb6502af56ae253c7bf2cf1d03059b8cf0610b5bce364d2bf97cee92b948b07244129d08dcab5344df19a51f86fda1a4df46
7
- data.tar.gz: b6368917787af55b1ca3cc0df19731806dde3669b2faec32451841aad817e2ee026c1ff83d30daf82bbd4760d65511a9b90ee4578c49c14fcec5811b20f4c1e2
6
+ metadata.gz: 3945f9b655595abb18f7fab80f73d71b69a5ab580f750190883043ccbaa30756c4cafb195c448aa8dbc51924cecfa25b9d32ac1d5c62f604aded5224fff941b5
7
+ data.tar.gz: fd41e73d383a9f316f48ba6f45116484849e0faf5e1645bf4d398865d35a1e78434898c0af50fd829eb46b0ceebe78f63aea549158947601ea355f50c1785e2a
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
- rvm: 2.1
2
+ rvm: 2.3
3
3
 
4
4
  # User container based travis infrastructure which allows caching
5
5
  # features for open source projects.
data/CHANGELOG.md CHANGED
@@ -1,43 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.0.1
3
+ ### Version 2.0.0
4
4
 
5
- 2017-08-10
5
+ 2018-12-10
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-panorama/compare/v1.0.0...v1.0.1)
7
+ [Compare changes](https://github.com/codevise/pageflow-panorama/compare/1-x-stable...v2.0.0)
8
8
 
9
- - Rename .css.scss files to just .css and update readme
10
- ([#20](https://github.com/codevise/pageflow-panorama/pull/20))
11
-
12
- ### Version 1.0.0
13
-
14
- 2017-08-10
15
-
16
- [Compare changes](https://github.com/codevise/pageflow-panorama/compare/0-3-stable...v1.0.0)
17
-
18
- - Improve thumbnail processing
19
- ([#19](https://github.com/codevise/pageflow-panorama/pull/19))
20
- - Load subdirectories of `config/locales`.
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
- [0-3-stable branch](https://github.com/codevise/pageflow-panorama/blob/0-3-stable/CHANGELOG.md)
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,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in panorama.gemspec
4
4
  gemspec
5
-
6
- gem 'state_machine', git: 'https://github.com/codevise/state_machine.git'
@@ -2,12 +2,12 @@ require 'pageflow/panorama/validation'
2
2
 
3
3
  module Pageflow
4
4
  module Panorama
5
- class UnpackPackageJob
6
- @queue = :slow
5
+ class UnpackPackageJob < ActiveJob::Base
6
+ queue_as :slow
7
7
 
8
- extend StateMachineJob
8
+ include StateMachineJob
9
9
 
10
- def self.perform_with_result(package, _options)
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 self.unpack_to_s3(package, archive, &progress)
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 self.parse(package, archive)
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 self.process_thumbnail(package, thumbnail_file)
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
- Pageflow::HostedFile.columns(t)
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.autoload_paths << File.join(config.root, 'lib')
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.objects[name]
12
- object.write(input_stream,
13
- acl: :public_read,
14
- content_type: content_type,
15
- content_length: content_length)
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
@@ -46,7 +46,7 @@ module Pageflow
46
46
 
47
47
  begin
48
48
  yield
49
- rescue AWS::S3::Errors::SlowDown
49
+ rescue Aws::S3::Errors::SlowDown
50
50
  retries += 1
51
51
 
52
52
  raise if retries > 5
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module Panorama
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ module Pageflow
9
9
  attr_writer(:original_filename)
10
10
  end
11
11
 
12
- def initialize(entry)
12
+ def initialize(entry, options = {})
13
13
  @entry = entry
14
14
  cache_current_values
15
15
  end
@@ -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 = "pageflow-panorama"
7
+ spec.name = 'pageflow-panorama'
8
8
  spec.version = Pageflow::Panorama::VERSION
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"
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 = ["lib"]
17
+ spec.require_paths = ['lib']
18
18
 
19
19
  spec.required_ruby_version = '~> 2.1'
20
20
 
21
- spec.add_runtime_dependency "pageflow", [">= 0.11", "< 13"]
22
- spec.add_runtime_dependency 'state_machine_job', ['>= 0.2', '< 2']
23
- spec.add_runtime_dependency "rubyzip", "~> 1.1"
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', '>= 0.11.4'
27
- spec.add_development_dependency "bundler"
28
- spec.add_development_dependency "rake"
29
- spec.add_development_dependency "rspec-rails", "~> 3.0"
30
- spec.add_development_dependency 'factory_girl_rails'
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', inline_resque: true do
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', stub_resque: true do
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!(unpacking_progress: 20,
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(AWS::S3::Errors::SlowDown)
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(AWS::S3::Errors::SlowDown)
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(AWS::S3::Errors::SlowDown)
70
+ }.to raise_error(Aws::S3::Errors::SlowDown)
71
71
  end
72
72
  end
73
73
  end
@@ -0,0 +1,7 @@
1
+ RSpec.configure do |config|
2
+ config.before(:each) do |example|
3
+ ActiveJob::Base.queue_adapter = :test
4
+ ActiveJob::Base.queue_adapter.perform_enqueued_jobs =
5
+ example.metadata[:perform_jobs]
6
+ end
7
+ 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: 1.0.1
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: 2017-08-10 00:00:00.000000000 Z
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: '13'
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: '13'
26
+ version: 13.x
33
27
  - !ruby/object:Gem::Dependency
34
- name: state_machine_job
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: '2'
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: '2'
40
+ version: '1.1'
53
41
  - !ruby/object:Gem::Dependency
54
- name: rubyzip
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.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.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: 0.11.4
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: 0.11.4
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.0'
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.0'
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: mysql2
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: '0'
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: '0'
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.6.8
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