tappy 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/tappy +3 -5
- data/lib/tappy/filter/agent_filter.rb +1 -1
- data/lib/tappy/filter/filter.rb +1 -0
- data/lib/tappy.rb +1 -1
- metadata +2 -2
data/bin/tappy
CHANGED
@@ -6,16 +6,14 @@ require 'tappy'
|
|
6
6
|
host = ARGV[0] || "localhost"
|
7
7
|
port = ARGV[1].to_i
|
8
8
|
port = 9090 if port == 0
|
9
|
-
filter_option = ARGV[2] || "foursquare"
|
9
|
+
@@filter_option = ARGV[2] || "foursquare"
|
10
10
|
|
11
11
|
module Tappy
|
12
12
|
class MyTappy < TappyBase
|
13
|
-
set :
|
14
|
-
set :filter, "Tappy::AgentFilter"
|
15
|
-
set :filter_options, filter_option
|
13
|
+
set :filter_options, @@filter_option
|
16
14
|
end
|
17
15
|
end
|
18
16
|
|
19
|
-
puts "Start Tappy server on #{host}:#{port}, options: #{filter_option}"
|
17
|
+
puts "Start Tappy server on #{host}:#{port}, options: #{@@filter_option}"
|
20
18
|
|
21
19
|
Tappy::TappyBase.run! :host => host, :port => port
|
data/lib/tappy/filter/filter.rb
CHANGED
data/lib/tappy.rb
CHANGED