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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -2
- data/CHANGELOG.md +11 -8
- data/Gemfile +0 -2
- data/Rakefile +0 -3
- data/app/jobs/pageflow/chart/scrape_site_job.rb +10 -13
- data/app/views/pageflow/chart/{page.html → page.html.erb} +0 -0
- data/bin/{rails → rails-cmd} +0 -0
- data/chart.gemspec +3 -6
- data/db/migrate/20140417112724_create_pageflow_chart_scraped_sites.rb +1 -1
- data/db/migrate/20160211085234_add_use_custom_theme_to_scraped_sites.rb +1 -1
- data/lib/generators/pageflow_chart/install/install_generator.rb +17 -3
- data/lib/pageflow/chart.rb +0 -4
- data/lib/pageflow/chart/configuration.rb +1 -1
- data/lib/pageflow/chart/engine.rb +1 -1
- data/lib/pageflow/chart/version.rb +1 -1
- data/spec/controllers/pageflow/chart/scraped_sites_controller_spec.rb +3 -3
- data/spec/factories/scraped_sites.rb +3 -3
- data/spec/jobs/pageflow/chart/scrape_site_job_spec.rb +2 -2
- data/spec/pageflow/chart/configuration_spec.rb +2 -2
- data/spec/requests/scraping_site_spec.rb +2 -2
- data/spec/spec_helper.rb +5 -9
- data/spec/support/active_job.rb +7 -0
- data/spec/support/factory_bot.rb +5 -0
- metadata +20 -144
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -13
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -25
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -29
- data/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/config/routes.rb +0 -4
- data/spec/dummy/db/schema.rb +0 -40
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +0 -58
- data/spec/dummy/public/422.html +0 -58
- data/spec/dummy/public/500.html +0 -57
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/support/factory_girl.rb +0 -5
- data/spec/support/resque.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b1435f809acae371c8763fae0b78649d2f7963827319aeb4c1c5dba27a4bd2a
|
4
|
+
data.tar.gz: 4c2316ed5fb81c380e4d0edf2d223e3fc8d14197e87159f137801162fb736371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b7f42f5daae277098f64d5fdcd131170dae0fe606a460ee233be7766258e0df47062406c6c077bcd43dd6eb9d30f0e4b2d6f2e5aee3642b17c351296723f056
|
7
|
+
data.tar.gz: f57e84c97e1db0ef06e6db4a3c93a175cf389dc6e84aaacbc4f135ac70447d5d9a9e60081b793bdfc8ded31e94086a9f838956c113fb0477212888befb9a2ddc
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
language: ruby
|
2
|
-
rvm: 2.
|
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
|
3
|
+
### Version 2.0.0
|
4
4
|
|
5
|
-
2018-
|
5
|
+
2018-12-10
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow-chart/compare/1-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-chart/compare/1-x-stable...v2.0.0)
|
8
8
|
|
9
|
-
-
|
10
|
-
([#
|
11
|
-
-
|
12
|
-
|
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-
|
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
data/Rakefile
CHANGED
@@ -1,16 +1,13 @@
|
|
1
1
|
module Pageflow
|
2
2
|
module Chart
|
3
|
-
class ScrapeSiteJob
|
4
|
-
|
5
|
-
@queue = :scraping
|
3
|
+
class ScrapeSiteJob < ActiveJob::Base
|
4
|
+
queue_as :scraping
|
6
5
|
|
7
|
-
|
6
|
+
include StateMachineJob
|
8
7
|
|
9
|
-
def
|
10
|
-
|
11
|
-
|
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
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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/bin/{rails → rails-cmd}
RENAMED
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', '~>
|
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 '
|
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,7 +1,21 @@
|
|
1
1
|
module PageflowChart
|
2
|
-
class InstallGenerator <
|
3
|
-
|
4
|
-
|
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
|
data/lib/pageflow/chart.rb
CHANGED
@@ -59,7 +59,7 @@ module Pageflow
|
|
59
59
|
selector_blacklist: ['body .noscript']
|
60
60
|
}
|
61
61
|
@paperclip_s3_default_options = {}
|
62
|
-
@paperclip_base_path = ':
|
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.
|
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
|
|
@@ -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
|
@@ -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
|
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.
|
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(':
|
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(':
|
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', :
|
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'}
|
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
|
-
|
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
|
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:
|
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-
|
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:
|
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:
|
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:
|
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.
|
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.
|
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-
|
56
|
+
name: pageflow-support
|
91
57
|
requirement: !ruby/object:Gem::Requirement
|
92
58
|
requirements:
|
93
59
|
- - "~>"
|
94
60
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
96
|
-
type: :
|
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:
|
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:
|
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: '
|
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: '
|
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/
|
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/
|
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
|