mirage 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/.rvmrc +1 -1
  2. data/Gemfile +3 -3
  3. data/Gemfile.lock +72 -0
  4. data/VERSION +1 -1
  5. data/mirage.gemspec +18 -28
  6. data/mirage_server.rb +4 -0
  7. metadata +103 -111
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm --create use default@mirage
1
+ rvm --create use 1.9.2@mirage
data/Gemfile CHANGED
@@ -5,13 +5,13 @@ gem 'childprocess', '~> 0.1'
5
5
 
6
6
  group :development do
7
7
  gem 'rake'
8
- gem 'cucumber', "0.8.7"
8
+ gem 'cucumber'
9
9
  gem 'rspec', "2.6.0"
10
10
  gem "jeweler", "~> 1.5.2"
11
- gem 'sinatra-reloader'
11
+ gem 'sinatra-contrib'
12
12
  gem 'mechanize', '1.0.0'
13
13
  gem 'gemcutter'
14
14
  gem "nokogiri", "1.4.7"
15
- gem "waitforit", "0.0.1.pre8"
15
+ gem "waitforit"
16
16
  end
17
17
 
@@ -0,0 +1,72 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ backports (2.3.0)
5
+ builder (3.0.0)
6
+ childprocess (0.2.3)
7
+ ffi (~> 1.0.6)
8
+ cucumber (1.1.4)
9
+ builder (>= 2.1.2)
10
+ diff-lcs (>= 1.1.2)
11
+ gherkin (~> 2.7.1)
12
+ json (>= 1.4.6)
13
+ term-ansicolor (>= 1.0.6)
14
+ diff-lcs (1.1.3)
15
+ eventmachine (0.12.10)
16
+ ffi (1.0.11)
17
+ gemcutter (0.7.1)
18
+ gherkin (2.7.1)
19
+ json (>= 1.4.6)
20
+ git (1.2.5)
21
+ jeweler (1.5.2)
22
+ bundler (~> 1.0.0)
23
+ git (>= 1.2.5)
24
+ rake
25
+ json (1.6.3)
26
+ mechanize (1.0.0)
27
+ nokogiri (>= 1.2.1)
28
+ nokogiri (1.4.7)
29
+ rack (1.3.5)
30
+ rack-protection (1.1.4)
31
+ rack
32
+ rack-test (0.6.1)
33
+ rack (>= 1.0)
34
+ rake (0.9.2.2)
35
+ rspec (2.6.0)
36
+ rspec-core (~> 2.6.0)
37
+ rspec-expectations (~> 2.6.0)
38
+ rspec-mocks (~> 2.6.0)
39
+ rspec-core (2.6.4)
40
+ rspec-expectations (2.6.0)
41
+ diff-lcs (~> 1.1.2)
42
+ rspec-mocks (2.6.0)
43
+ sinatra (1.3.1)
44
+ rack (~> 1.3, >= 1.3.4)
45
+ rack-protection (~> 1.1, >= 1.1.2)
46
+ tilt (~> 1.3, >= 1.3.3)
47
+ sinatra-contrib (1.3.1)
48
+ backports (>= 2.0)
49
+ eventmachine
50
+ rack-protection
51
+ rack-test
52
+ sinatra (~> 1.3.0)
53
+ tilt (~> 1.3)
54
+ term-ansicolor (1.0.7)
55
+ tilt (1.3.3)
56
+ waitforit (0.0.1.pre11)
57
+
58
+ PLATFORMS
59
+ ruby
60
+
61
+ DEPENDENCIES
62
+ childprocess (~> 0.1)
63
+ cucumber
64
+ gemcutter
65
+ jeweler (~> 1.5.2)
66
+ mechanize (= 1.0.0)
67
+ nokogiri (= 1.4.7)
68
+ rake
69
+ rspec (= 2.6.0)
70
+ sinatra
71
+ sinatra-contrib
72
+ waitforit
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.4
1
+ 2.0.5
@@ -4,14 +4,13 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{mirage}
8
- s.version = "2.0.4"
7
+ s.name = "mirage"
8
+ s.version = "2.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leon Davis"]
12
- s.date = %q{2011-10-18}
13
- s.default_executable = %q{mirage}
14
- s.description = %q{Mirage aids testing of your applications by hosting mock responses so that your applications do not have to talk to real endpoints. Its accessible via HTTP and has a RESTful interface.}
12
+ s.date = "2011-12-13"
13
+ s.description = "Mirage aids testing of your applications by hosting mock responses so that your applications do not have to talk to real endpoints. Its accessible via HTTP and has a RESTful interface."
15
14
  s.executables = ["mirage"]
16
15
  s.extra_rdoc_files = [
17
16
  "README.md"
@@ -19,6 +18,7 @@ Gem::Specification.new do |s|
19
18
  s.files = [
20
19
  ".rvmrc",
21
20
  "Gemfile",
21
+ "Gemfile.lock",
22
22
  "HISTORY",
23
23
  "README.md",
24
24
  "VERSION",
@@ -57,22 +57,12 @@ Gem::Specification.new do |s|
57
57
  "server/util.rb",
58
58
  "views/index.erb"
59
59
  ]
60
- s.homepage = %q{https://github.com/lashd/mirage}
60
+ s.homepage = "https://github.com/lashd/mirage"
61
61
  s.licenses = ["MIT"]
62
- s.post_install_message = %q{
63
- ===============================================================================
64
- Thanks you for installing mirage.
65
-
66
- Run Mirage with:
67
-
68
- mirage start
69
-
70
- For more information go to: https://github.com/lashd/mirage/wiki
71
- ===============================================================================
72
- }
62
+ s.post_install_message = "\n===============================================================================\nThanks you for installing mirage. \n\nRun Mirage with:\n\nmirage start \n\nFor more information go to: https://github.com/lashd/mirage/wiki\n===============================================================================\n"
73
63
  s.require_paths = ["lib"]
74
- s.rubygems_version = %q{1.6.1}
75
- s.summary = %q{Mirage is a easy mock server for testing your applications}
64
+ s.rubygems_version = "1.8.10"
65
+ s.summary = "Mirage is a easy mock server for testing your applications"
76
66
 
77
67
  if s.respond_to? :specification_version then
78
68
  s.specification_version = 3
@@ -81,39 +71,39 @@ For more information go to: https://github.com/lashd/mirage/wiki
81
71
  s.add_runtime_dependency(%q<sinatra>, [">= 0"])
82
72
  s.add_runtime_dependency(%q<childprocess>, ["~> 0.1"])
83
73
  s.add_development_dependency(%q<rake>, [">= 0"])
84
- s.add_development_dependency(%q<cucumber>, ["= 0.8.7"])
74
+ s.add_development_dependency(%q<cucumber>, [">= 0"])
85
75
  s.add_development_dependency(%q<rspec>, ["= 2.6.0"])
86
76
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
87
- s.add_development_dependency(%q<sinatra-reloader>, [">= 0"])
77
+ s.add_development_dependency(%q<sinatra-contrib>, [">= 0"])
88
78
  s.add_development_dependency(%q<mechanize>, ["= 1.0.0"])
89
79
  s.add_development_dependency(%q<gemcutter>, [">= 0"])
90
80
  s.add_development_dependency(%q<nokogiri>, ["= 1.4.7"])
91
- s.add_development_dependency(%q<waitforit>, ["= 0.0.1.pre8"])
81
+ s.add_development_dependency(%q<waitforit>, [">= 0"])
92
82
  else
93
83
  s.add_dependency(%q<sinatra>, [">= 0"])
94
84
  s.add_dependency(%q<childprocess>, ["~> 0.1"])
95
85
  s.add_dependency(%q<rake>, [">= 0"])
96
- s.add_dependency(%q<cucumber>, ["= 0.8.7"])
86
+ s.add_dependency(%q<cucumber>, [">= 0"])
97
87
  s.add_dependency(%q<rspec>, ["= 2.6.0"])
98
88
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
99
- s.add_dependency(%q<sinatra-reloader>, [">= 0"])
89
+ s.add_dependency(%q<sinatra-contrib>, [">= 0"])
100
90
  s.add_dependency(%q<mechanize>, ["= 1.0.0"])
101
91
  s.add_dependency(%q<gemcutter>, [">= 0"])
102
92
  s.add_dependency(%q<nokogiri>, ["= 1.4.7"])
103
- s.add_dependency(%q<waitforit>, ["= 0.0.1.pre8"])
93
+ s.add_dependency(%q<waitforit>, [">= 0"])
104
94
  end
105
95
  else
106
96
  s.add_dependency(%q<sinatra>, [">= 0"])
107
97
  s.add_dependency(%q<childprocess>, ["~> 0.1"])
108
98
  s.add_dependency(%q<rake>, [">= 0"])
109
- s.add_dependency(%q<cucumber>, ["= 0.8.7"])
99
+ s.add_dependency(%q<cucumber>, [">= 0"])
110
100
  s.add_dependency(%q<rspec>, ["= 2.6.0"])
111
101
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
112
- s.add_dependency(%q<sinatra-reloader>, [">= 0"])
102
+ s.add_dependency(%q<sinatra-contrib>, [">= 0"])
113
103
  s.add_dependency(%q<mechanize>, ["= 1.0.0"])
114
104
  s.add_dependency(%q<gemcutter>, [">= 0"])
115
105
  s.add_dependency(%q<nokogiri>, ["= 1.4.7"])
116
- s.add_dependency(%q<waitforit>, ["= 0.0.1.pre8"])
106
+ s.add_dependency(%q<waitforit>, [">= 0"])
117
107
  end
118
108
  end
119
109
 
@@ -63,14 +63,17 @@ module Mirage
63
63
  delete '/mirage/templates/:id' do
64
64
  MockResponses.delete(response_id)
65
65
  REQUESTS.delete(response_id)
66
+ ""
66
67
  end
67
68
 
68
69
  delete '/mirage/requests' do
69
70
  REQUESTS.clear
71
+ ""
70
72
  end
71
73
 
72
74
  delete '/mirage/requests/:id' do
73
75
  REQUESTS.delete(response_id)
76
+ ""
74
77
  end
75
78
 
76
79
 
@@ -78,6 +81,7 @@ module Mirage
78
81
  [REQUESTS].each { |map| map.clear }
79
82
  MockResponses.clear
80
83
  MockResponse.reset_count
84
+ ""
81
85
  end
82
86
 
83
87
  get '/mirage/templates/:id' do
metadata CHANGED
@@ -1,150 +1,150 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mirage
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.5
4
5
  prerelease:
5
- version: 2.0.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Leon Davis
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-10-18 00:00:00 +01:00
14
- default_executable: mirage
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-13 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: sinatra
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &25416180 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
24
22
  type: :runtime
25
23
  prerelease: false
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *25416180
25
+ - !ruby/object:Gem::Dependency
28
26
  name: childprocess
29
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &25415640 !ruby/object:Gem::Requirement
30
28
  none: false
31
- requirements:
29
+ requirements:
32
30
  - - ~>
33
- - !ruby/object:Gem::Version
34
- version: "0.1"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.1'
35
33
  type: :runtime
36
34
  prerelease: false
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *25415640
36
+ - !ruby/object:Gem::Dependency
39
37
  name: rake
40
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &25415000 !ruby/object:Gem::Requirement
41
39
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
46
44
  type: :development
47
45
  prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *25415000
47
+ - !ruby/object:Gem::Dependency
50
48
  name: cucumber
51
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ requirement: &25414440 !ruby/object:Gem::Requirement
52
50
  none: false
53
- requirements:
54
- - - "="
55
- - !ruby/object:Gem::Version
56
- version: 0.8.7
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
57
55
  type: :development
58
56
  prerelease: false
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *25414440
58
+ - !ruby/object:Gem::Dependency
61
59
  name: rspec
62
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ requirement: &25413760 !ruby/object:Gem::Requirement
63
61
  none: false
64
- requirements:
65
- - - "="
66
- - !ruby/object:Gem::Version
62
+ requirements:
63
+ - - =
64
+ - !ruby/object:Gem::Version
67
65
  version: 2.6.0
68
66
  type: :development
69
67
  prerelease: false
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *25413760
69
+ - !ruby/object:Gem::Dependency
72
70
  name: jeweler
73
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ requirement: &25412940 !ruby/object:Gem::Requirement
74
72
  none: false
75
- requirements:
73
+ requirements:
76
74
  - - ~>
77
- - !ruby/object:Gem::Version
75
+ - !ruby/object:Gem::Version
78
76
  version: 1.5.2
79
77
  type: :development
80
78
  prerelease: false
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
83
- name: sinatra-reloader
84
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *25412940
80
+ - !ruby/object:Gem::Dependency
81
+ name: sinatra-contrib
82
+ requirement: &25412020 !ruby/object:Gem::Requirement
85
83
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
90
88
  type: :development
91
89
  prerelease: false
92
- version_requirements: *id007
93
- - !ruby/object:Gem::Dependency
90
+ version_requirements: *25412020
91
+ - !ruby/object:Gem::Dependency
94
92
  name: mechanize
95
- requirement: &id008 !ruby/object:Gem::Requirement
93
+ requirement: &25411220 !ruby/object:Gem::Requirement
96
94
  none: false
97
- requirements:
98
- - - "="
99
- - !ruby/object:Gem::Version
95
+ requirements:
96
+ - - =
97
+ - !ruby/object:Gem::Version
100
98
  version: 1.0.0
101
99
  type: :development
102
100
  prerelease: false
103
- version_requirements: *id008
104
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *25411220
102
+ - !ruby/object:Gem::Dependency
105
103
  name: gemcutter
106
- requirement: &id009 !ruby/object:Gem::Requirement
104
+ requirement: &25407200 !ruby/object:Gem::Requirement
107
105
  none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
112
110
  type: :development
113
111
  prerelease: false
114
- version_requirements: *id009
115
- - !ruby/object:Gem::Dependency
112
+ version_requirements: *25407200
113
+ - !ruby/object:Gem::Dependency
116
114
  name: nokogiri
117
- requirement: &id010 !ruby/object:Gem::Requirement
115
+ requirement: &25406700 !ruby/object:Gem::Requirement
118
116
  none: false
119
- requirements:
120
- - - "="
121
- - !ruby/object:Gem::Version
117
+ requirements:
118
+ - - =
119
+ - !ruby/object:Gem::Version
122
120
  version: 1.4.7
123
121
  type: :development
124
122
  prerelease: false
125
- version_requirements: *id010
126
- - !ruby/object:Gem::Dependency
123
+ version_requirements: *25406700
124
+ - !ruby/object:Gem::Dependency
127
125
  name: waitforit
128
- requirement: &id011 !ruby/object:Gem::Requirement
126
+ requirement: &25406100 !ruby/object:Gem::Requirement
129
127
  none: false
130
- requirements:
131
- - - "="
132
- - !ruby/object:Gem::Version
133
- version: 0.0.1.pre8
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
134
132
  type: :development
135
133
  prerelease: false
136
- version_requirements: *id011
137
- description: Mirage aids testing of your applications by hosting mock responses so that your applications do not have to talk to real endpoints. Its accessible via HTTP and has a RESTful interface.
134
+ version_requirements: *25406100
135
+ description: Mirage aids testing of your applications by hosting mock responses so
136
+ that your applications do not have to talk to real endpoints. Its accessible via
137
+ HTTP and has a RESTful interface.
138
138
  email:
139
- executables:
139
+ executables:
140
140
  - mirage
141
141
  extensions: []
142
-
143
- extra_rdoc_files:
142
+ extra_rdoc_files:
144
143
  - README.md
145
- files:
144
+ files:
146
145
  - .rvmrc
147
146
  - Gemfile
147
+ - Gemfile.lock
148
148
  - HISTORY
149
149
  - README.md
150
150
  - VERSION
@@ -182,42 +182,34 @@ files:
182
182
  - server/mock_responses.rb
183
183
  - server/util.rb
184
184
  - views/index.erb
185
- has_rdoc: true
186
185
  homepage: https://github.com/lashd/mirage
187
- licenses:
186
+ licenses:
188
187
  - MIT
189
- post_install_message: "\n\
190
- ===============================================================================\n\
191
- Thanks you for installing mirage. \n\n\
192
- Run Mirage with:\n\n\
193
- mirage start \n\n\
194
- For more information go to: https://github.com/lashd/mirage/wiki\n\
195
- ===============================================================================\n"
188
+ post_install_message: ! "\n===============================================================================\nThanks
189
+ you for installing mirage. \n\nRun Mirage with:\n\nmirage start \n\nFor
190
+ more information go to: https://github.com/lashd/mirage/wiki\n===============================================================================\n"
196
191
  rdoc_options: []
197
-
198
- require_paths:
192
+ require_paths:
199
193
  - lib
200
- required_ruby_version: !ruby/object:Gem::Requirement
194
+ required_ruby_version: !ruby/object:Gem::Requirement
201
195
  none: false
202
- requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- hash: 3569981800920525049
206
- segments:
196
+ requirements:
197
+ - - ! '>='
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
200
+ segments:
207
201
  - 0
208
- version: "0"
209
- required_rubygems_version: !ruby/object:Gem::Requirement
202
+ hash: -2154667380006140993
203
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
204
  none: false
211
- requirements:
212
- - - ">="
213
- - !ruby/object:Gem::Version
214
- version: "0"
205
+ requirements:
206
+ - - ! '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
215
209
  requirements: []
216
-
217
210
  rubyforge_project:
218
- rubygems_version: 1.6.1
211
+ rubygems_version: 1.8.10
219
212
  signing_key:
220
213
  specification_version: 3
221
214
  summary: Mirage is a easy mock server for testing your applications
222
215
  test_files: []
223
-