kronk 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kronk
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
8
+ - 1
7
9
  - 0
8
- - 3
9
- version: 1.0.3
10
+ version: 1.1.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Jeremie Castagna
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-12-09 00:00:00 -08:00
18
+ date: 2010-12-12 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: 3
28
30
  segments:
29
31
  - 3
30
32
  - 1
@@ -40,6 +42,7 @@ dependencies:
40
42
  requirements:
41
43
  - - ~>
42
44
  - !ruby/object:Gem::Version
45
+ hash: 11
43
46
  segments:
44
47
  - 1
45
48
  - 2
@@ -54,6 +57,7 @@ dependencies:
54
57
  requirements:
55
58
  - - ~>
56
59
  - !ruby/object:Gem::Version
60
+ hash: 9
57
61
  segments:
58
62
  - 1
59
63
  - 3
@@ -68,6 +72,7 @@ dependencies:
68
72
  requirements:
69
73
  - - ~>
70
74
  - !ruby/object:Gem::Version
75
+ hash: 1
71
76
  segments:
72
77
  - 0
73
78
  - 5
@@ -82,6 +87,7 @@ dependencies:
82
87
  requirements:
83
88
  - - ">="
84
89
  - !ruby/object:Gem::Version
90
+ hash: 15
85
91
  segments:
86
92
  - 2
87
93
  - 0
@@ -90,19 +96,20 @@ dependencies:
90
96
  type: :runtime
91
97
  version_requirements: *id005
92
98
  - !ruby/object:Gem::Dependency
93
- name: rubyforge
99
+ name: cookiejar
94
100
  prerelease: false
95
101
  requirement: &id006 !ruby/object:Gem::Requirement
96
102
  none: false
97
103
  requirements:
98
- - - ">="
104
+ - - ~>
99
105
  - !ruby/object:Gem::Version
106
+ hash: 19
100
107
  segments:
101
- - 2
102
108
  - 0
103
- - 4
104
- version: 2.0.4
105
- type: :development
109
+ - 3
110
+ - 0
111
+ version: 0.3.0
112
+ type: :runtime
106
113
  version_requirements: *id006
107
114
  - !ruby/object:Gem::Dependency
108
115
  name: mocha
@@ -112,6 +119,7 @@ dependencies:
112
119
  requirements:
113
120
  - - ~>
114
121
  - !ruby/object:Gem::Version
122
+ hash: 47
115
123
  segments:
116
124
  - 0
117
125
  - 9
@@ -127,15 +135,16 @@ dependencies:
127
135
  requirements:
128
136
  - - ">="
129
137
  - !ruby/object:Gem::Version
138
+ hash: 47
130
139
  segments:
131
140
  - 2
132
- - 6
133
- - 2
134
- version: 2.6.2
141
+ - 8
142
+ - 0
143
+ version: 2.8.0
135
144
  type: :development
136
145
  version_requirements: *id008
137
146
  description: |-
138
- Kronk runs diffs against data from live and cached http responses.
147
+ Kronk runs diffs against data from live and cached http responses.
139
148
  Kronk was made possible by the sponsoring of AT&T Interactive.
140
149
  email:
141
150
  - yaksnrainbows@gmail.com
@@ -144,14 +153,14 @@ executables:
144
153
  extensions: []
145
154
 
146
155
  extra_rdoc_files:
147
- - History.txt
148
156
  - Manifest.txt
149
- - README.txt
157
+ - History.rdoc
158
+ - README.rdoc
150
159
  files:
151
160
  - .autotest
152
- - History.txt
161
+ - History.rdoc
153
162
  - Manifest.txt
154
- - README.txt
163
+ - README.rdoc
155
164
  - Rakefile
156
165
  - bin/kronk
157
166
  - lib/kronk.rb
@@ -161,10 +170,16 @@ files:
161
170
  - lib/kronk/request.rb
162
171
  - lib/kronk/response.rb
163
172
  - lib/kronk/xml_parser.rb
164
- - test/test_kronk.rb
173
+ - test/mocks/200_response.json
174
+ - test/mocks/200_response.plist
175
+ - test/mocks/200_response.txt
176
+ - test/mocks/200_response.xml
177
+ - test/mocks/301_response.txt
178
+ - test/mocks/302_response.txt
165
179
  - test/test_data_set.rb
166
180
  - test/test_diff.rb
167
181
  - test/test_helper.rb
182
+ - test/test_kronk.rb
168
183
  - test/test_request.rb
169
184
  - test/test_response.rb
170
185
  - test/test_xml_parser.rb
@@ -175,7 +190,7 @@ licenses: []
175
190
  post_install_message:
176
191
  rdoc_options:
177
192
  - --main
178
- - README.txt
193
+ - README.rdoc
179
194
  require_paths:
180
195
  - lib
181
196
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -183,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
198
  requirements:
184
199
  - - ">="
185
200
  - !ruby/object:Gem::Version
186
- hash: 2734576429023002030
201
+ hash: 3
187
202
  segments:
188
203
  - 0
189
204
  version: "0"
@@ -192,6 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
207
  requirements:
193
208
  - - ">="
194
209
  - !ruby/object:Gem::Version
210
+ hash: 3
195
211
  segments:
196
212
  - 0
197
213
  version: "0"
data/README.txt DELETED
@@ -1,122 +0,0 @@
1
- = kronk
2
-
3
- * https://github.com/yaksnrainbows/kronk
4
-
5
- == DESCRIPTION:
6
-
7
- Kronk runs diffs against data from live and cached http responses.
8
- Kronk was made possible by the sponsoring of AT&T Interactive.
9
-
10
- == FEATURES:
11
-
12
- * Parse and diff data from http response body and/or headers.
13
-
14
- * Include or exclude particular data points.
15
-
16
- * Supports json, rails-ish xml, and plist.
17
-
18
- * Support for custom data parsers.
19
-
20
- * Line numbered and custom diff output.
21
-
22
- == FUTURE:
23
-
24
- * Auto-queryer with optional param randomizing.
25
-
26
- * Support for test suites.
27
-
28
- * Support for proxies, ssl, and http auth.
29
-
30
- == SYNOPSIS:
31
-
32
- Check if your json response returns the same data as your xml variety:
33
-
34
- $ kronk http://host.com/path.json http://host.com/path.xml
35
-
36
- Compare headers only but only content type and date:
37
-
38
- $ kronk http://host.com/path1 http://host.com/path2 -I Content-Type,Date
39
-
40
- Compare body structure only:
41
-
42
- $ kronk http://host.com/path.json http://host.com/path.xml --struct
43
-
44
- Call comparison with similar uri suffixes:
45
-
46
- $ kronk http://host.com/path.json http://host.com/path.xml --suff '?page=1'
47
-
48
- Compare body and headers:
49
-
50
- $ kronk http://host.com/path.json http://host.com/path.xml -i
51
-
52
- Compare body and content type header:
53
-
54
- $ kronk http://host.com/path.json http://host.com/path.xml -i Content-Type
55
-
56
- Compare response with the previous call:
57
-
58
- $ kronk http://host.com/path --prev
59
-
60
- Compare response with a local file:
61
-
62
- $ kronk http://host.com/path.json ./saved_response.json
63
-
64
- Do a simple text diff on the http response, including headers:
65
-
66
- $ kronk http://host.com/A/path.json http://host.com/B/path.json --raw -i
67
-
68
- Run it to display formatted data:
69
-
70
- $ kronk http://host.com/path.json
71
-
72
- $ kronk http://host.com/path.json -i
73
-
74
- Run it to display raw data with headers:
75
-
76
- $ kronk http://host.com/path.json --raw -i
77
-
78
- == REQUIREMENTS:
79
-
80
- * nokogiri gem
81
-
82
- * plist gem
83
-
84
- * json gem
85
-
86
- == INSTALL:
87
-
88
- * sudo gem install kronk
89
-
90
- == DEVELOPERS:
91
-
92
- After checking out the source, run:
93
-
94
- $ rake newb
95
-
96
- This task will install any missing dependencies, run the tests/specs,
97
- and generate the RDoc.
98
-
99
- == LICENSE:
100
-
101
- (The MIT License)
102
-
103
- Copyright (c) 2010 Jeremie Castagna
104
-
105
- Permission is hereby granted, free of charge, to any person obtaining
106
- a copy of this software and associated documentation files (the
107
- 'Software'), to deal in the Software without restriction, including
108
- without limitation the rights to use, copy, modify, merge, publish,
109
- distribute, sublicense, and/or sell copies of the Software, and to
110
- permit persons to whom the Software is furnished to do so, subject to
111
- the following conditions:
112
-
113
- The above copyright notice and this permission notice shall be
114
- included in all copies or substantial portions of the Software.
115
-
116
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
117
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
118
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
119
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
120
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
121
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
122
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.