ww 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +30 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +38 -0
- data/Rakefile +1 -1
- data/example/spy_eye.ru +1 -0
- data/example/spy_eye_output.html +260 -266
- data/lib/ww/double/mock.rb +23 -3
- data/lib/ww/double/spy.rb +5 -1
- data/lib/ww/double.rb +1 -3
- data/lib/ww/server.rb +20 -2
- data/lib/ww/spy_eye.html.haml +26 -26
- data/lib/ww.rb +1 -1
- data/spec/spec_helper.rb +18 -0
- data/spec/ww/double/mock_spec.rb +60 -0
- data/spec/ww/double/spy_spec.rb +80 -0
- data/spec/ww/double/stub_spec.rb +59 -0
- data/spec/ww/server_integration_spec.rb +22 -1
- metadata +8 -3
- data/spec/ww/double_spec.rb +0 -144
data/ChangeLog
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
== 0.3.1 / 2010 01-20
|
2
|
+
* add utility method to store all request.
|
3
|
+
* silence WEBrick and Thin servers.
|
4
|
+
* add mock expectation methods.
|
5
|
+
|
6
|
+
== 0.3.0 / 2010 01-17
|
7
|
+
* add Ww::Server interface to use from unit test.
|
8
|
+
* separete human readable spy features to Ww::SpyEye.
|
9
|
+
|
10
|
+
== 0.2.1 / 2010 01-14
|
11
|
+
* FIX add dependency to haml.
|
12
|
+
|
13
|
+
== 0.2.0 / 2010 01-14
|
14
|
+
* restart with new name `ww'
|
15
|
+
|
16
|
+
== 0.1.0 / 2009-11-09
|
17
|
+
* to_app(&block) is now wrapper for Sinatra.
|
18
|
+
|
19
|
+
== 0.0.3 / 2009-10-27
|
20
|
+
|
21
|
+
* to_app(&block) takes 2 arguments, builder and stubber.
|
22
|
+
|
23
|
+
== 0.0.2 / 2009-10-27
|
24
|
+
|
25
|
+
* to_app(&block) let to specify extra rackware.
|
26
|
+
|
27
|
+
== 0.0.1 / 2009-10-27
|
28
|
+
|
29
|
+
* initial release
|
30
|
+
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009-2010 MOROHASHI Kyosuke
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
= Double Web
|
2
|
+
|
3
|
+
Framework to build double Web server.
|
4
|
+
|
5
|
+
== Description
|
6
|
+
|
7
|
+
`ww' helps building double (Stub, Mock, Spy) Web server using Sinatra.
|
8
|
+
|
9
|
+
for details see http://wiki.github.com/esminc/ww/
|
10
|
+
|
11
|
+
== Planning features.
|
12
|
+
|
13
|
+
see http://github.com/moro/ww/issues
|
14
|
+
|
15
|
+
== Installation
|
16
|
+
|
17
|
+
gem install --source=http://gemcutter.org/ ww
|
18
|
+
|
19
|
+
=== Old version
|
20
|
+
|
21
|
+
if you prefer old version of ww, get it from GitHub's `Download' tabs.
|
22
|
+
|
23
|
+
$ curl http://github.com/moro/ww/tarball/v#{version} -o ww-#{version}.tar.gz
|
24
|
+
$ tar xzf ww-#{version}.tar.gz
|
25
|
+
$ cd moro-ww-#{sha1}/
|
26
|
+
$ gem build ww-#{version}.gemspec
|
27
|
+
$ gem install -l ./ww-#{version}.gem
|
28
|
+
|
29
|
+
== Acknowledgements
|
30
|
+
|
31
|
+
ww's development has been supported by Eiwa System Management,Inc.
|
32
|
+
|
33
|
+
== Copyright
|
34
|
+
|
35
|
+
Author:: MOROHASHI Kyosuke <moronatural@gmail.com>
|
36
|
+
Copyright:: Copyright (c) 2009 MOROHASHI Kyosuke
|
37
|
+
License:: MIT
|
38
|
+
|
data/Rakefile
CHANGED
@@ -61,7 +61,7 @@ spec = Gem::Specification.new do |s|
|
|
61
61
|
s.add_dependency('json', '>=1.2.0')
|
62
62
|
#s.required_ruby_version = '>= 1.8.2'
|
63
63
|
|
64
|
-
s.files = %w(Rakefile) +
|
64
|
+
s.files = %w(README.rdoc ChangeLog MIT-LICENSE Rakefile) +
|
65
65
|
Dir.glob("{bin,doc,spec,lib,templates,generator,extras,website,script}/**/*") +
|
66
66
|
Dir.glob("ext/**/*.{h,c,rb}") +
|
67
67
|
Dir.glob("example/**/*") +
|
data/example/spy_eye.ru
CHANGED