juke 0.1.1 → 0.1.2
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.
- data/VERSION +1 -1
- data/juke.gemspec +16 -18
- data/lib/juke/cucumber.rb +7 -0
- metadata +10 -6
- data/.gitignore +0 -21
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|
data/juke.gemspec
CHANGED
|
@@ -1,39 +1,37 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{juke}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Brian Smith"]
|
|
12
|
-
s.date = %q{
|
|
12
|
+
s.date = %q{2011-02-09}
|
|
13
13
|
s.description = %q{JSON API steps for Cucumber, hand-crafted for you in Juke *nod to Aruba*}
|
|
14
14
|
s.email = %q{bsmith@swig505.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"LICENSE",
|
|
17
|
-
|
|
17
|
+
"README.md"
|
|
18
18
|
]
|
|
19
19
|
s.files = [
|
|
20
20
|
".document",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"lib/juke/formatters/json.rb"
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"README.md",
|
|
23
|
+
"Rakefile",
|
|
24
|
+
"VERSION",
|
|
25
|
+
"juke.gemspec",
|
|
26
|
+
"lib/juke.rb",
|
|
27
|
+
"lib/juke/adapters/rack.rb",
|
|
28
|
+
"lib/juke/adapters/rails.rb",
|
|
29
|
+
"lib/juke/api.rb",
|
|
30
|
+
"lib/juke/cucumber.rb",
|
|
31
|
+
"lib/juke/ext/utils.rb",
|
|
32
|
+
"lib/juke/formatters/json.rb"
|
|
34
33
|
]
|
|
35
34
|
s.homepage = %q{http://github.com/Lytol/juke}
|
|
36
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
|
37
35
|
s.require_paths = ["lib"]
|
|
38
36
|
s.rubygems_version = %q{1.3.7}
|
|
39
37
|
s.summary = %q{JSON API steps for Cucumber}
|
data/lib/juke/cucumber.rb
CHANGED
|
@@ -42,6 +42,13 @@ Then /^(?:|response )should have (.+)$/ do |obj|
|
|
|
42
42
|
response_body.should include obj
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
Then /^(?:|response )should include hash:$/ do |name_value_pairs|
|
|
46
|
+
name_value_pairs.rows_hash.each do |key, value|
|
|
47
|
+
response_body.should have_key(key)
|
|
48
|
+
response_body[key].should == value
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
45
52
|
Then /^status should be (\d{3})$/ do |status|
|
|
46
53
|
response_status.should == status.to_i
|
|
47
54
|
end
|
metadata
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: juke
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 31
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 0
|
|
7
8
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.1.2
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Brian Smith
|
|
@@ -14,7 +15,7 @@ autorequire:
|
|
|
14
15
|
bindir: bin
|
|
15
16
|
cert_chain: []
|
|
16
17
|
|
|
17
|
-
date:
|
|
18
|
+
date: 2011-02-09 00:00:00 -08:00
|
|
18
19
|
default_executable:
|
|
19
20
|
dependencies:
|
|
20
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -25,6 +26,7 @@ dependencies:
|
|
|
25
26
|
requirements:
|
|
26
27
|
- - ">="
|
|
27
28
|
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 13
|
|
28
30
|
segments:
|
|
29
31
|
- 1
|
|
30
32
|
- 2
|
|
@@ -40,6 +42,7 @@ dependencies:
|
|
|
40
42
|
requirements:
|
|
41
43
|
- - ">="
|
|
42
44
|
- !ruby/object:Gem::Version
|
|
45
|
+
hash: 3
|
|
43
46
|
segments:
|
|
44
47
|
- 0
|
|
45
48
|
version: "0"
|
|
@@ -56,7 +59,6 @@ extra_rdoc_files:
|
|
|
56
59
|
- README.md
|
|
57
60
|
files:
|
|
58
61
|
- .document
|
|
59
|
-
- .gitignore
|
|
60
62
|
- LICENSE
|
|
61
63
|
- README.md
|
|
62
64
|
- Rakefile
|
|
@@ -74,8 +76,8 @@ homepage: http://github.com/Lytol/juke
|
|
|
74
76
|
licenses: []
|
|
75
77
|
|
|
76
78
|
post_install_message:
|
|
77
|
-
rdoc_options:
|
|
78
|
-
|
|
79
|
+
rdoc_options: []
|
|
80
|
+
|
|
79
81
|
require_paths:
|
|
80
82
|
- lib
|
|
81
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -83,6 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
83
85
|
requirements:
|
|
84
86
|
- - ">="
|
|
85
87
|
- !ruby/object:Gem::Version
|
|
88
|
+
hash: 3
|
|
86
89
|
segments:
|
|
87
90
|
- 0
|
|
88
91
|
version: "0"
|
|
@@ -91,6 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
91
94
|
requirements:
|
|
92
95
|
- - ">="
|
|
93
96
|
- !ruby/object:Gem::Version
|
|
97
|
+
hash: 3
|
|
94
98
|
segments:
|
|
95
99
|
- 0
|
|
96
100
|
version: "0"
|