orlando_tech_meetups 0.2.2 → 0.3.0
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 +4 -4
- data/README.md +1 -14
- data/lib/orlando_tech_meetups/cli.rb +2 -1
- data/lib/orlando_tech_meetups/meetups.rb +3 -2
- data/lib/orlando_tech_meetups/scraper.rb +1 -1
- data/lib/orlando_tech_meetups/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c2c88a130c7d45910ca4b0b539683b1c4849eb
|
4
|
+
data.tar.gz: 9b81579a4e8a7d93b03efdb22839f3e1d7673ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0bd153b48ccfa78ae781d30e55fbf39ac6bdff54c06fc9f03548f45f80964f6f0551c70370477b277332fa81094d88ac1ceca82877f7637f9e4e4eaf43db740
|
7
|
+
data.tar.gz: 5292be45055ae9044d06a07e62f431a803a3e374d0464c6087eaf52442a0b8bd5b7538bd8eae86babc2f9acab5b77e8393ce0d9a612e48bedf68247a9c650061
|
data/README.md
CHANGED
@@ -4,26 +4,13 @@ This Ruby Gem provides a CLI to learn about the different tech meetup groups in
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'orlando_tech_meetups'
|
11
|
-
```
|
12
|
-
|
13
|
-
|
14
|
-
And then execute:
|
15
|
-
|
16
|
-
$ bundle
|
17
|
-
|
18
|
-
Or install it yourself as:
|
19
|
-
|
20
7
|
$ gem install orlando_tech_meetups
|
21
8
|
|
22
9
|
## Usage
|
23
10
|
|
24
11
|
Type the below and follow the on screen prompts.
|
25
12
|
|
26
|
-
$ orlando_tech_meetups
|
13
|
+
$ orlando_tech_meetups
|
27
14
|
|
28
15
|
## Development
|
29
16
|
|
@@ -12,8 +12,9 @@ class OrlandoTechMeetups::CLI
|
|
12
12
|
the_group = @meetups[input.to_i-1]
|
13
13
|
puts "#{the_group.name}"
|
14
14
|
puts "The next meetup is: #{the_group.next_meetup}"
|
15
|
+
puts "To create a new meetup group, copy and paste the link below into Chrome or Firefox..."
|
16
|
+
puts "Internet Explorer is not a browser. It's a mistake."
|
15
17
|
puts "#{the_group.url}"
|
16
|
-
puts "Copy and paste the link above into your browser to check it out and learn more!"
|
17
18
|
puts "To go back to the menu, enter 'menu'. To exit, type 'exit'."
|
18
19
|
elsif input == "menu"
|
19
20
|
meetup
|
@@ -14,7 +14,7 @@ class OrlandoTechMeetups::Meetups
|
|
14
14
|
|
15
15
|
MEETUP_URL = [
|
16
16
|
"http://www.meetup.com/Code-For-Orlando/",
|
17
|
-
"http://meetup.com/orlando-tech/",
|
17
|
+
"http://www.meetup.com/orlando-tech/",
|
18
18
|
"http://www.meetup.com/The-Iron-Yard-Orlando/",
|
19
19
|
"http://www.meetup.com/Front-End-Orlando/",
|
20
20
|
"http://www.meetup.com/Downtown-UX-Meetup/",
|
@@ -22,7 +22,8 @@ class OrlandoTechMeetups::Meetups
|
|
22
22
|
"http://www.meetup.com/OrlandoJS/",
|
23
23
|
"http://www.meetup.com/orlandodojo/",
|
24
24
|
"http://www.meetup.com/Central-Florida-RPi-Users-Group/",
|
25
|
-
"http://www.meetup.com/iot-orlando/"
|
25
|
+
"http://www.meetup.com/iot-orlando/",
|
26
|
+
"http://www.meetup.com/OrlandoDevs/"
|
26
27
|
]
|
27
28
|
|
28
29
|
def self.scrape_meetups
|
@@ -5,7 +5,7 @@
|
|
5
5
|
doc.css('html').each do |doc|
|
6
6
|
new_meetup = OrlandoTechMeetups::Meetups.new
|
7
7
|
new_meetup.name = doc.css("h1 span").text
|
8
|
-
new_meetup.next_meetup = doc.search("div li time span").
|
8
|
+
new_meetup.next_meetup = doc.search("div li time span.date").text
|
9
9
|
new_meetup.url = doc.css('div a').map { |link| link['href'] }.first
|
10
10
|
new_meetup.save
|
11
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orlando_tech_meetups
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joshnevius
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|