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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbf591f8e7127156b0284bd8e90405b1b70c2594
4
- data.tar.gz: b9a94cc3fa74f108e9fcc5e39ec266f6c85e63ba
3
+ metadata.gz: f0e2eaf6a81f2faed4126f7b3dd49bbeb4282833
4
+ data.tar.gz: adbedb2a3a388845965cb03c027f33b29b45e335
5
5
  SHA512:
6
- metadata.gz: ba1d7e7e287385968d6daa232e8c8a3819b9ea13d41edc006b62cea31e17d67d5737a7c28161003d8731eecf1440d6781d78dfa19c4ba8ea9af375a56cb5286f
7
- data.tar.gz: 623efca2c9475006e39cda9c6bb3055dbd845ce1476ff1c6f9965365a5ff93a5ba38d6277dfae523e03583fe5c13f9d85d01222fbcc343665810cfdf59d23a1d
6
+ metadata.gz: ad5800963dae8ede65c172af50651a408fdc6d6dadc0cb7a869d933b6fa9cebcac40f9192fa67182cb5ae6b39a42f3e4ffa981a0416304a3c60d46e76d09f09f
7
+ data.tar.gz: 57292ff0ba54f5624e27f768c55e8cb6b7a3276bc87b5a1ea98a91c6e6e690bdfde93cd899c0188c48a4165ba8d76ec448c16ba22caf0aa1b16fd10e04e0b805
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
5
4
  - 2.0.0
5
+ - 2.1.0
6
6
  script: bundle exec rake
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
- Time.parse(start_time),
21
+ TIMEZONE.parse(start_time),
19
22
  nil,
20
23
  description
21
24
  )
@@ -1,3 +1,3 @@
1
1
  module OwaspRiScraper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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.1
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