webscraper_framework 0.1.721 → 0.1.722

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57d72e976adf94b094b8f3bbce54059cc190b82f
4
- data.tar.gz: 751813962105c89e61dcd2e62555aab2e203d5e7
3
+ metadata.gz: 944a28ba87d5f262c2eeb6174dd741b478dd85cb
4
+ data.tar.gz: 92f61272943cf6e41d21e4d353c4646fbe8cb309
5
5
  SHA512:
6
- metadata.gz: d2a8a61dc467307fa9ff5ea13b0c9932f21f4569fc9c42ded60eb6afcc2d16b80c8613cc95d9dec73c29659bbad8afcb51173279a769f4bfb3c4095002e06424
7
- data.tar.gz: d31a68d0401c8d3b2968b51385cbb156315ee4aa2babf823273f306b59cb8da3d3b1eb5d60771f4504dce2ec20f858f96b5aa91bc48fd420ca9d21e4372a9284
6
+ metadata.gz: 5b38f0c9097c910f695dec233c3f0dcd931a9e0e416273bf7f8474faef33a5cc97fd7ecca052f9090eae58cf3c505b550dc4c61aa2441dfabe5c83573ea8176e
7
+ data.tar.gz: 4996e6588f050978ec6bc8cdec2df7e7ac3dc33be16808d67d824bb8b282d4b2919e5a5b23ec12957378c0ab47218d97aa6572adcc16e5cea8af624cb501d9b5
@@ -0,0 +1,19 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
5
+ %title The Scraper
6
+ :css
7
+ td, th {
8
+ padding: 1em;
9
+ background-color: #efefff;
10
+ }
11
+ th {
12
+ background-color: #aeaeaf;
13
+ }
14
+ %body
15
+ %h1 Hello, world!
16
+ %ul
17
+ %a{href: "/scrapers"}= "Scrapers (#{scrapers.count})"
18
+ %a{href: "/models"}= "Models (#{models.count})"
19
+ = content
@@ -0,0 +1 @@
1
+ %p BODY
@@ -0,0 +1,18 @@
1
+ %h1= "Model #{model.name}"
2
+
3
+ %table
4
+ %tbody
5
+ %th Primary Key
6
+ %td= model.primary_key
7
+ %a{href: "/models/#{model.name.underscore}/csv"} Export to CSV
8
+ %table
9
+ %thead
10
+ %th ID
11
+ - model.fields.each do |field|
12
+ %th= field
13
+ %tbody
14
+ - model.all.each do |id, obj|
15
+ %tr
16
+ %td= id
17
+ - model.fields.each do |field|
18
+ %td= obj[field.to_sym]
@@ -0,0 +1,15 @@
1
+
2
+ %h1 Models
3
+
4
+ %table
5
+ %thead
6
+ %th Name
7
+ %th #
8
+ %th Actions
9
+ %tbody
10
+ - models.each do |model|
11
+ %tr
12
+ %td= model
13
+ %td= model.all.count
14
+ %td
15
+ %a{href: "/models/#{model.name.underscore}"} Show
@@ -0,0 +1,11 @@
1
+
2
+ %h1 Scrapers
3
+
4
+ %table
5
+ %thead
6
+ %th Name
7
+ %tbody
8
+ - scrapers.each do |scraper|
9
+ %tr
10
+ %td= scraper
11
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webscraper_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.721
4
+ version: 0.1.722
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rene van Pelt
@@ -108,6 +108,11 @@ files:
108
108
  - lib/webscraper_framework/base.rb
109
109
  - lib/webscraper_framework/base_model.rb
110
110
  - lib/webscraper_framework/cli.rb
111
+ - views/base.html.haml
112
+ - views/home.html.haml
113
+ - views/model.html.haml
114
+ - views/models.html.haml
115
+ - views/scrapers.html.haml
111
116
  homepage:
112
117
  licenses: []
113
118
  metadata: {}