fozzie 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Guardfile +3 -0
- data/doc/lib/core_ext/hash.html +79 -0
- data/doc/lib/fozzie.html +148 -0
- data/doc/lib/fozzie/configuration.html +174 -0
- data/doc/lib/fozzie/interface.html +288 -0
- data/doc/lib/fozzie/rack/middleware.html +97 -0
- data/doc/lib/fozzie/rails/middleware.html +97 -0
- data/doc/lib/fozzie/socket.html +123 -0
- data/doc/lib/fozzie/version.html +36 -0
- data/fozzie.gemspec +6 -0
- data/lib/fozzie.rb +52 -10
- data/lib/fozzie/configuration.rb +16 -32
- data/lib/fozzie/interface.rb +121 -0
- data/lib/fozzie/rack/middleware.rb +3 -0
- data/lib/fozzie/rails/middleware.rb +4 -0
- data/lib/fozzie/socket.rb +44 -0
- data/lib/fozzie/version.rb +1 -1
- data/spec/lib/fozzie/configuration_spec.rb +9 -42
- data/spec/lib/fozzie/interface_spec.rb +136 -0
- data/spec/lib/fozzie/rack/middleware_spec.rb +3 -5
- data/spec/lib/fozzie/rails/middleware_spec.rb +35 -29
- data/spec/lib/fozzie_spec.rb +6 -138
- metadata +69 -28
- data/lib/fozzie/classes.rb +0 -146
- data/lib/fozzie/config.rb +0 -19
- data/spec/lib/fozzie/config_spec.rb +0 -24
data/lib/fozzie/config.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Fozzie::Config do
|
4
|
-
|
5
|
-
subject do
|
6
|
-
F = Class.new { extend Fozzie::Config } unless defined?(F)
|
7
|
-
F
|
8
|
-
end
|
9
|
-
|
10
|
-
it { should respond_to(:configure) }
|
11
|
-
it { should respond_to(:config) }
|
12
|
-
it { should respond_to(:c) }
|
13
|
-
|
14
|
-
it "allows dynamic assignment" do
|
15
|
-
{
|
16
|
-
:host => 'somewhere.local',
|
17
|
-
:port => 99
|
18
|
-
}.each do |field, val|
|
19
|
-
F.configure {|c| c.send("#{field}=", val) }
|
20
|
-
F.c.send(field).should == val
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|