guestlistapp 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/guestlistapp +6 -0
  2. metadata +2 -2
data/bin/guestlistapp CHANGED
@@ -19,6 +19,10 @@ while url
19
19
  end
20
20
  item = { name: x.inner_text.strip, img: src }
21
21
 
22
+ if $attendees.detect {|x| x[:name] == item[:name]}
23
+ puts "Dup: #{item[:name]}"
24
+ next
25
+ end
22
26
  $attendees << item
23
27
  end
24
28
  nextpage = doc.at("*[@data-next-page]/@data-next-page")
@@ -27,6 +31,8 @@ while url
27
31
  puts "Getting #{url}"
28
32
  end
29
33
 
34
+ $attendees = $attendees.sort_by {|x| x[:name].downcase}
35
+
30
36
  require 'sinatra'
31
37
  require 'haml'
32
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guestlistapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
12
+ date: 2013-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: haml