owasp_ri_scraper 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +2 -0
- data/lib/owasp_ri_scraper/event_parser.rb +4 -1
- data/lib/owasp_ri_scraper/version.rb +1 -1
- data/owasp_ri_scraper.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e2eaf6a81f2faed4126f7b3dd49bbeb4282833
|
4
|
+
data.tar.gz: adbedb2a3a388845965cb03c027f33b29b45e335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad5800963dae8ede65c172af50651a408fdc6d6dadc0cb7a869d933b6fa9cebcac40f9192fa67182cb5ae6b39a42f3e4ffa981a0416304a3c60d46e76d09f09f
|
7
|
+
data.tar.gz: 57292ff0ba54f5624e27f768c55e8cb6b7a3276bc87b5a1ea98a91c6e6e690bdfde93cd899c0188c48a4165ba8d76ec448c16ba22caf0aa1b16fd10e04e0b805
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# OwaspRiScraper
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/PVDTechEvents/owasp_ri_scraper.png?branch=master)](https://travis-ci.org/PVDTechEvents/owasp_ri_scraper)
|
4
|
+
|
3
5
|
Scrape currently scheduled event from [OWASP RI](https://www.owasp.org/index.php/Rhode_Island).
|
4
6
|
Built for automating updates to [PVDTechEvents.com](http://pvdtechevents.com/).
|
5
7
|
|
@@ -1,8 +1,11 @@
|
|
1
1
|
require 'owasp_ri_scraper/event'
|
2
2
|
require 'nokogiri'
|
3
|
+
require 'active_support/time'
|
3
4
|
|
4
5
|
module OwaspRiScraper
|
5
6
|
|
7
|
+
TIMEZONE = ActiveSupport::TimeZone["America/New_York"]
|
8
|
+
|
6
9
|
class EventParser
|
7
10
|
|
8
11
|
# This method is extremely fragile, but so far OWASP.org has been sticking to
|
@@ -15,7 +18,7 @@ module OwaspRiScraper
|
|
15
18
|
description = event_node.children.select(&:text?).map(&:text).join("\n").strip
|
16
19
|
|
17
20
|
Event.new(
|
18
|
-
|
21
|
+
TIMEZONE.parse(start_time),
|
19
22
|
nil,
|
20
23
|
description
|
21
24
|
)
|
data/owasp_ri_scraper.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency 'nokogiri'
|
22
|
+
spec.add_dependency 'activesupport'
|
22
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
23
24
|
spec.add_development_dependency "rake"
|
24
25
|
spec.add_development_dependency "rspec"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: owasp_ri_scraper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Gillooly
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|