pageflow-chart 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -2
  4. data/CHANGELOG.md +11 -8
  5. data/Gemfile +0 -2
  6. data/Rakefile +0 -3
  7. data/app/jobs/pageflow/chart/scrape_site_job.rb +10 -13
  8. data/app/views/pageflow/chart/{page.html → page.html.erb} +0 -0
  9. data/bin/{rails → rails-cmd} +0 -0
  10. data/chart.gemspec +3 -6
  11. data/db/migrate/20140417112724_create_pageflow_chart_scraped_sites.rb +1 -1
  12. data/db/migrate/20160211085234_add_use_custom_theme_to_scraped_sites.rb +1 -1
  13. data/lib/generators/pageflow_chart/install/install_generator.rb +17 -3
  14. data/lib/pageflow/chart.rb +0 -4
  15. data/lib/pageflow/chart/configuration.rb +1 -1
  16. data/lib/pageflow/chart/engine.rb +1 -1
  17. data/lib/pageflow/chart/version.rb +1 -1
  18. data/spec/controllers/pageflow/chart/scraped_sites_controller_spec.rb +3 -3
  19. data/spec/factories/scraped_sites.rb +3 -3
  20. data/spec/jobs/pageflow/chart/scrape_site_job_spec.rb +2 -2
  21. data/spec/pageflow/chart/configuration_spec.rb +2 -2
  22. data/spec/requests/scraping_site_spec.rb +2 -2
  23. data/spec/spec_helper.rb +5 -9
  24. data/spec/support/active_job.rb +7 -0
  25. data/spec/support/factory_bot.rb +5 -0
  26. metadata +20 -144
  27. data/spec/dummy/README.rdoc +0 -28
  28. data/spec/dummy/Rakefile +0 -6
  29. data/spec/dummy/app/assets/images/.keep +0 -0
  30. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  31. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  32. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  33. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  34. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  35. data/spec/dummy/app/mailers/.keep +0 -0
  36. data/spec/dummy/app/models/.keep +0 -0
  37. data/spec/dummy/app/models/concerns/.keep +0 -0
  38. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  39. data/spec/dummy/bin/bundle +0 -3
  40. data/spec/dummy/bin/rails +0 -4
  41. data/spec/dummy/bin/rake +0 -4
  42. data/spec/dummy/config.ru +0 -4
  43. data/spec/dummy/config/application.rb +0 -25
  44. data/spec/dummy/config/boot.rb +0 -5
  45. data/spec/dummy/config/database.yml +0 -25
  46. data/spec/dummy/config/environment.rb +0 -5
  47. data/spec/dummy/config/environments/development.rb +0 -29
  48. data/spec/dummy/config/environments/production.rb +0 -80
  49. data/spec/dummy/config/environments/test.rb +0 -36
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  51. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  52. data/spec/dummy/config/initializers/inflections.rb +0 -16
  53. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  54. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  55. data/spec/dummy/config/initializers/session_store.rb +0 -3
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  57. data/spec/dummy/config/locales/en.yml +0 -23
  58. data/spec/dummy/config/routes.rb +0 -4
  59. data/spec/dummy/db/schema.rb +0 -40
  60. data/spec/dummy/lib/assets/.keep +0 -0
  61. data/spec/dummy/public/404.html +0 -58
  62. data/spec/dummy/public/422.html +0 -58
  63. data/spec/dummy/public/500.html +0 -57
  64. data/spec/dummy/public/favicon.ico +0 -0
  65. data/spec/support/factory_girl.rb +0 -5
  66. data/spec/support/resque.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3edeadab75c938eec7fbdaeedef925d5aa79dfd758072d822f66e8f730850651
4
- data.tar.gz: e9de614880042bebf4b941f70664ae0b0f7bb5a653eee29fc695f5b3f71bfdce
3
+ metadata.gz: 2b1435f809acae371c8763fae0b78649d2f7963827319aeb4c1c5dba27a4bd2a
4
+ data.tar.gz: 4c2316ed5fb81c380e4d0edf2d223e3fc8d14197e87159f137801162fb736371
5
5
  SHA512:
6
- metadata.gz: 325a81fb99b6786a72fb613c496507a62d6fa37fa8a53d342d58b85c68a246791c354b00866ae51835b6930afa087d8306a37923c5ec8f682c471878cc4dad5c
7
- data.tar.gz: 14dbc39347ffdac89c0e7d5579f8ba299bc0508507de9146cccd9fc992ddd2d8d29f29101c76134cc2054b43660d07c75473d85be8e2c31de1fb5b45ef7ede67
6
+ metadata.gz: 2b7f42f5daae277098f64d5fdcd131170dae0fe606a460ee233be7766258e0df47062406c6c077bcd43dd6eb9d30f0e4b2d6f2e5aee3642b17c351296723f056
7
+ data.tar.gz: f57e84c97e1db0ef06e6db4a3c93a175cf389dc6e84aaacbc4f135ac70447d5d9a9e60081b793bdfc8ded31e94086a9f838956c113fb0477212888befb9a2ddc
data/.gitignore CHANGED
@@ -14,6 +14,7 @@ lib/bundler/man
14
14
  pkg
15
15
  rdoc
16
16
  spec/reports
17
+ spec/dummy
17
18
  test/tmp
18
19
  test/version_tmp
19
20
  tmp
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
- rvm: 2.1.7
2
+ rvm: 2.3
3
3
 
4
4
  # User container based travis infrastructure which allows caching
5
5
  # features for open source projects.
@@ -10,5 +10,4 @@ services:
10
10
  - redis-server
11
11
 
12
12
  script:
13
- - bin/rake app:db:setup app:db:test:load
14
13
  - bin/rspec
data/CHANGELOG.md CHANGED
@@ -1,16 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.2.0
3
+ ### Version 2.0.0
4
4
 
5
- 2018-07-30
5
+ 2018-12-10
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-chart/compare/1-1-stable...v1.2.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-chart/compare/1-x-stable...v2.0.0)
8
8
 
9
- - Add support for right to left layout
10
- ([#44](https://github.com/codevise/pageflow-chart/pull/44))
11
- - Use split layout utils provided by pageflow 12.2
12
- ([#42](https://github.com/codevise/pageflow-chart/pull/42))
9
+ - Update to Pageflow 13
10
+ ([#45](https://github.com/codevise/pageflow-chart/pull/45),
11
+ [#47](https://github.com/codevise/pageflow-chart/pull/47),
12
+ [#48](https://github.com/codevise/pageflow-chart/pull/48),
13
+ [#46](https://github.com/codevise/pageflow-chart/pull/46))
14
+ - Fix page template extension
15
+ ([#49](https://github.com/codevise/pageflow-chart/pull/49))
13
16
 
14
17
  See
15
- [1-1-stable branch](https://github.com/codevise/pageflow-chart/blob/1-1-stable/CHANGELOG.md)
18
+ [1-x-stable branch](https://github.com/codevise/pageflow-chart/blob/1-x-stable/CHANGELOG.md)
16
19
  for previous changes.
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in chart.gemspec
4
4
  gemspec
5
-
6
- gem 'state_machine', git: 'https://github.com/codevise/state_machine.git'
data/Rakefile CHANGED
@@ -14,9 +14,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
- APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
- load 'rails/tasks/engine.rake'
19
-
20
17
  Bundler::GemHelper.install_tasks
21
18
 
22
19
  require 'semmy'
@@ -1,16 +1,13 @@
1
1
  module Pageflow
2
2
  module Chart
3
- class ScrapeSiteJob
4
- extend StateMachineJob
5
- @queue = :scraping
3
+ class ScrapeSiteJob < ActiveJob::Base
4
+ queue_as :scraping
6
5
 
7
- attr_reader :downloader
6
+ include StateMachineJob
8
7
 
9
- def initialize(downloader)
10
- @downloader = downloader
11
- end
12
-
13
- def perform(scraped_site)
8
+ def perform_with_result(scraped_site,
9
+ _options = {},
10
+ downloader: downloader_for(scraped_site))
14
11
  downloader.load_following_refresh_tags(scraped_site.url) do |file|
15
12
  scraper = Scraper.new(file.read, Chart.config.scraper_options)
16
13
  scraped_site.html_file = StringIOWithContentType.new(
@@ -40,10 +37,10 @@ module Pageflow
40
37
  :ok
41
38
  end
42
39
 
43
- def self.perform_with_result(scraped_site, options = {})
44
- # This is were the downloader passed to `initialize` is created.
45
- new(RefreshTagFollowingDownloader.new(Downloader.new(base_url: scraped_site.url)))
46
- .perform(scraped_site)
40
+ private
41
+
42
+ def downloader_for(scraped_site)
43
+ RefreshTagFollowingDownloader.new(Downloader.new(base_url: scraped_site.url))
47
44
  end
48
45
 
49
46
  def begin_try_catch
File without changes
data/chart.gemspec CHANGED
@@ -18,18 +18,15 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.required_ruby_version = '~> 2.1'
20
20
 
21
- spec.add_runtime_dependency 'pageflow', '~> 12.2.x'
21
+ spec.add_runtime_dependency 'pageflow', '~> 13.x'
22
22
  spec.add_runtime_dependency 'nokogiri', '~> 1.0'
23
- spec.add_runtime_dependency 'paperclip', '~> 4.2'
24
- spec.add_runtime_dependency 'state_machine', '~> 1.2'
25
- spec.add_runtime_dependency 'state_machine_job', ['>= 0.2', '< 2']
26
23
  spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
27
24
 
25
+ spec.add_development_dependency 'pageflow-support', '~> 13.x'
28
26
  spec.add_development_dependency 'bundler', '~> 1.0'
29
27
  spec.add_development_dependency 'rake', '~> 12.0'
30
28
  spec.add_development_dependency 'rspec-rails', '~> 3.0'
31
- spec.add_development_dependency 'factory_girl_rails', '~> 4.5'
32
- spec.add_development_dependency 'sqlite3', '~> 1.3'
29
+ spec.add_development_dependency 'factory_bot_rails', '~> 4.8'
33
30
  spec.add_development_dependency 'webmock', '~> 3.0'
34
31
 
35
32
  # Semantic versioning rake tasks
@@ -1,4 +1,4 @@
1
- class CreatePageflowChartScrapedSites < ActiveRecord::Migration
1
+ class CreatePageflowChartScrapedSites < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :pageflow_chart_scraped_sites do |t|
4
4
  t.string :url
@@ -1,4 +1,4 @@
1
- class AddUseCustomThemeToScrapedSites < ActiveRecord::Migration
1
+ class AddUseCustomThemeToScrapedSites < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :pageflow_chart_scraped_sites, :use_custom_theme, :boolean, default: true, null: false
4
4
  end
@@ -1,7 +1,21 @@
1
1
  module PageflowChart
2
- class InstallGenerator < Pageflow::PageTypeInstallGenerator
3
- def engine
4
- Pageflow::Chart::Engine
2
+ class InstallGenerator < Rails::Generators::Base
3
+ desc 'Install the Pageflow plugin and the necessary migrations.'
4
+
5
+ def register_plugin
6
+ inject_into_file('config/initializers/pageflow.rb',
7
+ after: "Pageflow.configure do |config|\n") do
8
+
9
+ " config.page_types.register(Pageflow::Chart.page_type)\n"
10
+ end
11
+ end
12
+
13
+ def mount_engine
14
+ route("mount Pageflow::Chart::Engine, at: '/charts'\n")
15
+ end
16
+
17
+ def install_migrations
18
+ rake 'pageflow_chart:install:migrations'
5
19
  end
6
20
  end
7
21
  end
@@ -1,7 +1,3 @@
1
- require 'paperclip'
2
- require 'state_machine'
3
- require 'state_machine_job'
4
-
5
1
  require 'pageflow/chart/engine'
6
2
 
7
3
  module Pageflow
@@ -59,7 +59,7 @@ module Pageflow
59
59
  selector_blacklist: ['body .noscript']
60
60
  }
61
61
  @paperclip_s3_default_options = {}
62
- @paperclip_base_path = ':host'
62
+ @paperclip_base_path = ':pageflow_s3_root'
63
63
  @scraped_sites_root_url = nil
64
64
  @supported_hosts = [
65
65
  'http://cf.datawrapper.de',
@@ -5,7 +5,7 @@ module Pageflow
5
5
  class Engine < Rails::Engine
6
6
  isolate_namespace Pageflow::Chart
7
7
 
8
- config.autoload_paths << File.join(config.root, 'lib')
8
+ config.paths.add('lib', eager_load: true)
9
9
  config.assets.precompile += ['pageflow/chart/custom.css', 'pageflow/chart/transparent_background.css']
10
10
  config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.yml').to_s]
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module Chart
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
@@ -7,14 +7,14 @@ module Pageflow
7
7
  routes { Pageflow::Chart::Engine.routes }
8
8
 
9
9
  it 'responds with success' do
10
- post(:create, scraped_site: {url: "http://example.com/chart.html"}, format: 'json')
10
+ post(:create, params: {scraped_site: {url: "http://example.com/chart.html"}}, format: 'json')
11
11
 
12
12
  expect(response.status).to eq(201)
13
13
  end
14
14
 
15
15
  it 'creates scraped site' do
16
16
  expect {
17
- post(:create, scraped_site: {url: "http://example.com/chart.html"}, format: 'json')
17
+ post(:create, params: {scraped_site: {url: "http://example.com/chart.html"}}, format: 'json')
18
18
  }.to change { ScrapedSite.count }
19
19
  end
20
20
  end
@@ -25,7 +25,7 @@ module Pageflow
25
25
  it 'responds with success' do
26
26
  scraped_site = create(:scraped_site, state: 'unprocessed')
27
27
 
28
- get(:show, id: scraped_site.id, format: 'json')
28
+ get(:show, params: { id: scraped_site.id }, format: 'json')
29
29
 
30
30
  expect(response.status).to eq(200)
31
31
  end
@@ -1,5 +1,5 @@
1
- FactoryGirl.define do
2
- factory :scraped_site, :class => 'Pageflow::Chart::ScrapedSite' do
3
- url "MyString"
1
+ FactoryBot.define do
2
+ factory :scraped_site, class: 'Pageflow::Chart::ScrapedSite' do
3
+ url 'MyString'
4
4
  end
5
5
  end
@@ -7,14 +7,14 @@ module Pageflow
7
7
  it 'scrapes html' do
8
8
  scraper = double('Scraper', html: '<html>rewritten</html>')
9
9
  downloader = double('Downloader', load: '<html>original</html>')
10
- job = ScrapeSiteJob.new(downloader)
10
+ job = ScrapeSiteJob.new
11
11
  scraped_site = create(:scraped_site, url: 'http://example.com')
12
12
 
13
13
  allow(Scraper).to receive(:new).and_return(scraper)
14
14
 
15
15
  expect(downloader).to receive(:load_following_refresh_tags).with('http://example.com')
16
16
 
17
- job.perform(scraped_site)
17
+ job.perform_with_result(scraped_site, {}, downloader: downloader)
18
18
  end
19
19
  end
20
20
  end
@@ -9,7 +9,7 @@ module Pageflow
9
9
 
10
10
  result = configuration.paperclip_options(extension: 'js')
11
11
 
12
- expect(result[:path]).to eq(':host/:class/:id_partition/all.js')
12
+ expect(result[:path]).to eq(':pageflow_s3_root/:class/:id_partition/all.js')
13
13
  end
14
14
 
15
15
  it 'allows to override basename of path option' do
@@ -17,7 +17,7 @@ module Pageflow
17
17
 
18
18
  result = configuration.paperclip_options(basename: 'some', extension: 'js')
19
19
 
20
- expect(result[:path]).to eq(':host/:class/:id_partition/some.js')
20
+ expect(result[:path]).to eq(':pageflow_s3_root/:class/:id_partition/some.js')
21
21
  end
22
22
 
23
23
  it 'uses paperclip_base_path as prefix' do
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  module Pageflow
4
4
  module Chart
5
- describe 'scraping site', :inline_resque => true do
5
+ describe 'scraping site', perform_jobs: true do
6
6
  before do
7
7
  stub_request(:get, "http://example.com/chart.html")
8
8
  .to_return(:status => 200, :body => File.read('spec/fixtures/datawrapper.html'))
@@ -11,7 +11,7 @@ module Pageflow
11
11
  end
12
12
 
13
13
  it 'downloads html and dependencies' do
14
- post('/charts/scraped_sites', scraped_site: {url: 'http://example.com/chart.html'}, format: 'json')
14
+ post('/charts/scraped_sites.json', params: {scraped_site: {url: 'http://example.com/chart.html'}})
15
15
 
16
16
  expect(ScrapedSite.first.html_file).to be_present
17
17
  expect(ScrapedSite.first.javascript_file).to be_present
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,9 @@
1
- require 'ostruct'
2
-
3
1
  ENV['RAILS_ENV'] ||= 'test'
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
2
+ ENV['PAGEFLOW_PLUGIN_ENGINE'] = 'pageflow_chart'
3
+
4
+ require 'pageflow/support'
5
+ Pageflow::Dummy.setup
6
+
5
7
  require 'rspec/rails'
6
8
 
7
9
  engine_root = File.join(File.dirname(__FILE__), '..')
@@ -13,9 +15,3 @@ RSpec.configure do |config|
13
15
  config.infer_spec_type_from_file_location!
14
16
  config.order = "random"
15
17
  end
16
-
17
- module Pageflow
18
- def self.config
19
- OpenStruct.new( paperclip_s3_default_options: {})
20
- end
21
- 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
@@ -0,0 +1,5 @@
1
+ require 'factory_bot_rails'
2
+
3
+ RSpec.configure do |config|
4
+ config.include FactoryBot::Syntax::Methods
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-30 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 12.2.x
19
+ version: 13.x
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 12.2.x
26
+ version: 13.x
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,67 +39,33 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: paperclip
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '4.2'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '4.2'
55
- - !ruby/object:Gem::Dependency
56
- name: state_machine
42
+ name: pageflow-public-i18n
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '1.2'
47
+ version: '1.0'
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '1.2'
69
- - !ruby/object:Gem::Dependency
70
- name: state_machine_job
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0.2'
76
- - - "<"
77
- - !ruby/object:Gem::Version
78
- version: '2'
79
- type: :runtime
80
- prerelease: false
81
- version_requirements: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- version: '0.2'
86
- - - "<"
87
- - !ruby/object:Gem::Version
88
- version: '2'
54
+ version: '1.0'
89
55
  - !ruby/object:Gem::Dependency
90
- name: pageflow-public-i18n
56
+ name: pageflow-support
91
57
  requirement: !ruby/object:Gem::Requirement
92
58
  requirements:
93
59
  - - "~>"
94
60
  - !ruby/object:Gem::Version
95
- version: '1.0'
96
- type: :runtime
61
+ version: 13.x
62
+ type: :development
97
63
  prerelease: false
98
64
  version_requirements: !ruby/object:Gem::Requirement
99
65
  requirements:
100
66
  - - "~>"
101
67
  - !ruby/object:Gem::Version
102
- version: '1.0'
68
+ version: 13.x
103
69
  - !ruby/object:Gem::Dependency
104
70
  name: bundler
105
71
  requirement: !ruby/object:Gem::Requirement
@@ -143,33 +109,19 @@ dependencies:
143
109
  - !ruby/object:Gem::Version
144
110
  version: '3.0'
145
111
  - !ruby/object:Gem::Dependency
146
- name: factory_girl_rails
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '4.5'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '4.5'
159
- - !ruby/object:Gem::Dependency
160
- name: sqlite3
112
+ name: factory_bot_rails
161
113
  requirement: !ruby/object:Gem::Requirement
162
114
  requirements:
163
115
  - - "~>"
164
116
  - !ruby/object:Gem::Version
165
- version: '1.3'
117
+ version: '4.8'
166
118
  type: :development
167
119
  prerelease: false
168
120
  version_requirements: !ruby/object:Gem::Requirement
169
121
  requirements:
170
122
  - - "~>"
171
123
  - !ruby/object:Gem::Version
172
- version: '1.3'
124
+ version: '4.8'
173
125
  - !ruby/object:Gem::Dependency
174
126
  name: webmock
175
127
  requirement: !ruby/object:Gem::Requirement
@@ -244,9 +196,9 @@ files:
244
196
  - app/helpers/pageflow/chart/scraped_sites_helper.rb
245
197
  - app/jobs/pageflow/chart/scrape_site_job.rb
246
198
  - app/models/pageflow/chart/scraped_site.rb
247
- - app/views/pageflow/chart/page.html
199
+ - app/views/pageflow/chart/page.html.erb
248
200
  - app/views/pageflow/chart/page_type.json.jbuilder
249
- - bin/rails
201
+ - bin/rails-cmd
250
202
  - bin/rake
251
203
  - bin/rspec
252
204
  - chart.gemspec
@@ -265,44 +217,6 @@ files:
265
217
  - lib/pageflow/chart/scraper.rb
266
218
  - lib/pageflow/chart/version.rb
267
219
  - spec/controllers/pageflow/chart/scraped_sites_controller_spec.rb
268
- - spec/dummy/README.rdoc
269
- - spec/dummy/Rakefile
270
- - spec/dummy/app/assets/images/.keep
271
- - spec/dummy/app/assets/javascripts/application.js
272
- - spec/dummy/app/assets/stylesheets/application.css
273
- - spec/dummy/app/controllers/application_controller.rb
274
- - spec/dummy/app/controllers/concerns/.keep
275
- - spec/dummy/app/helpers/application_helper.rb
276
- - spec/dummy/app/mailers/.keep
277
- - spec/dummy/app/models/.keep
278
- - spec/dummy/app/models/concerns/.keep
279
- - spec/dummy/app/views/layouts/application.html.erb
280
- - spec/dummy/bin/bundle
281
- - spec/dummy/bin/rails
282
- - spec/dummy/bin/rake
283
- - spec/dummy/config.ru
284
- - spec/dummy/config/application.rb
285
- - spec/dummy/config/boot.rb
286
- - spec/dummy/config/database.yml
287
- - spec/dummy/config/environment.rb
288
- - spec/dummy/config/environments/development.rb
289
- - spec/dummy/config/environments/production.rb
290
- - spec/dummy/config/environments/test.rb
291
- - spec/dummy/config/initializers/backtrace_silencers.rb
292
- - spec/dummy/config/initializers/filter_parameter_logging.rb
293
- - spec/dummy/config/initializers/inflections.rb
294
- - spec/dummy/config/initializers/mime_types.rb
295
- - spec/dummy/config/initializers/secret_token.rb
296
- - spec/dummy/config/initializers/session_store.rb
297
- - spec/dummy/config/initializers/wrap_parameters.rb
298
- - spec/dummy/config/locales/en.yml
299
- - spec/dummy/config/routes.rb
300
- - spec/dummy/db/schema.rb
301
- - spec/dummy/lib/assets/.keep
302
- - spec/dummy/public/404.html
303
- - spec/dummy/public/422.html
304
- - spec/dummy/public/500.html
305
- - spec/dummy/public/favicon.ico
306
220
  - spec/factories/scraped_sites.rb
307
221
  - spec/fixtures/datawrapper.html
308
222
  - spec/jobs/pageflow/chart/scrape_site_job_spec.rb
@@ -313,10 +227,10 @@ files:
313
227
  - spec/pageflow/chart/scraper_spec.rb
314
228
  - spec/requests/scraping_site_spec.rb
315
229
  - spec/spec_helper.rb
316
- - spec/support/factory_girl.rb
230
+ - spec/support/active_job.rb
231
+ - spec/support/factory_bot.rb
317
232
  - spec/support/html_fragment.rb
318
233
  - spec/support/paperclip.rb
319
- - spec/support/resque.rb
320
234
  - spec/support/webmock.rb
321
235
  homepage: https://github.com/codevise/pageflow-chart
322
236
  licenses:
@@ -344,44 +258,6 @@ specification_version: 4
344
258
  summary: Pagetype for Embedded Datawrapper Charts
345
259
  test_files:
346
260
  - spec/controllers/pageflow/chart/scraped_sites_controller_spec.rb
347
- - spec/dummy/README.rdoc
348
- - spec/dummy/Rakefile
349
- - spec/dummy/app/assets/images/.keep
350
- - spec/dummy/app/assets/javascripts/application.js
351
- - spec/dummy/app/assets/stylesheets/application.css
352
- - spec/dummy/app/controllers/application_controller.rb
353
- - spec/dummy/app/controllers/concerns/.keep
354
- - spec/dummy/app/helpers/application_helper.rb
355
- - spec/dummy/app/mailers/.keep
356
- - spec/dummy/app/models/.keep
357
- - spec/dummy/app/models/concerns/.keep
358
- - spec/dummy/app/views/layouts/application.html.erb
359
- - spec/dummy/bin/bundle
360
- - spec/dummy/bin/rails
361
- - spec/dummy/bin/rake
362
- - spec/dummy/config.ru
363
- - spec/dummy/config/application.rb
364
- - spec/dummy/config/boot.rb
365
- - spec/dummy/config/database.yml
366
- - spec/dummy/config/environment.rb
367
- - spec/dummy/config/environments/development.rb
368
- - spec/dummy/config/environments/production.rb
369
- - spec/dummy/config/environments/test.rb
370
- - spec/dummy/config/initializers/backtrace_silencers.rb
371
- - spec/dummy/config/initializers/filter_parameter_logging.rb
372
- - spec/dummy/config/initializers/inflections.rb
373
- - spec/dummy/config/initializers/mime_types.rb
374
- - spec/dummy/config/initializers/secret_token.rb
375
- - spec/dummy/config/initializers/session_store.rb
376
- - spec/dummy/config/initializers/wrap_parameters.rb
377
- - spec/dummy/config/locales/en.yml
378
- - spec/dummy/config/routes.rb
379
- - spec/dummy/db/schema.rb
380
- - spec/dummy/lib/assets/.keep
381
- - spec/dummy/public/404.html
382
- - spec/dummy/public/422.html
383
- - spec/dummy/public/500.html
384
- - spec/dummy/public/favicon.ico
385
261
  - spec/factories/scraped_sites.rb
386
262
  - spec/fixtures/datawrapper.html
387
263
  - spec/jobs/pageflow/chart/scrape_site_job_spec.rb
@@ -392,8 +268,8 @@ test_files:
392
268
  - spec/pageflow/chart/scraper_spec.rb
393
269
  - spec/requests/scraping_site_spec.rb
394
270
  - spec/spec_helper.rb
395
- - spec/support/factory_girl.rb
271
+ - spec/support/active_job.rb
272
+ - spec/support/factory_bot.rb
396
273
  - spec/support/html_fragment.rb
397
274
  - spec/support/paperclip.rb
398
- - spec/support/resque.rb
399
275
  - spec/support/webmock.rb