schmurfy-bacon 1.4.8 → 1.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11bb373cbed67b1ddd48902fc80772a22bbbabd5
4
- data.tar.gz: 8fcf2e01ed3794eda7ff3813bc6fdd3536216d1e
3
+ metadata.gz: e4abce2d3e72e41bd4bde3847cea09d657bcc92b
4
+ data.tar.gz: 7b4fc2919a6a24dc7fa908956a618bc22d1ec739
5
5
  SHA512:
6
- metadata.gz: 69a4b51531153ccaf106d6fec6bcf91a02871a2fcbab20925ef5ab6432bc2f16d59e032e44c5fea79bfd347aa18e380e7a38f96d8a6b7f5008272ba1fb70f9e6
7
- data.tar.gz: 1f295ed4bcfad4cf567047a52399a911487c42ded04bb7a07ea90ecf90ec2a6130e82fcb6d846322bf353367797cfd02902c7e3bb61f581e3d257c05c6fd7b68
6
+ metadata.gz: 32f5e4950ddbff9d36d71526464f3c90a10cde13924c211d365b298836ee3ccb7e7e41a10baa27cc10d7d153f0ad062f9aac530b740448cc6700454c0314335f
7
+ data.tar.gz: e9f6d1149cebd13fbdadf09be1e944a3b47b1356e186606ca46875baca4d8b653b3c3ad97c61ee49d92e1355e232b19d364c3b131bff2cbbd7addf6f67de5909
@@ -10,8 +10,8 @@ require 'em-synchrony/em-http'
10
10
  module Bacon
11
11
  module HTTPHelpers
12
12
  def start_server(rack_app = nil, &block)
13
- @http_port ||= 11000
14
- @http_port+= 1
13
+ $bacon_http_port ||= 11000
14
+ $bacon_http_port+= 1
15
15
 
16
16
  if rack_app && rack_app.respond_to?(:call)
17
17
  block = proc{
@@ -20,7 +20,7 @@ module Bacon
20
20
  end
21
21
 
22
22
  Thin::Logging.silent = true
23
- Thin::Server.start('127.0.0.1', @http_port, &block)
23
+ Thin::Server.start('127.0.0.1', $bacon_http_port, &block)
24
24
  end
25
25
 
26
26
  def http_request(method, path, args = {}, &block)
@@ -30,7 +30,7 @@ module Bacon
30
30
 
31
31
  request_data = {:path => path, :query => params, :head => headers, :body => body}
32
32
 
33
- req = EM::HttpRequest.new("http://127.0.0.1:#{@http_port}#{path}").send(method, request_data)
33
+ req = EM::HttpRequest.new("http://127.0.0.1:#{$bacon_http_port}#{path}").send(method, request_data)
34
34
  req.callback(&block)
35
35
  req
36
36
  end
data/lib/bacon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bacon
2
- VERSION = "1.4.8"
2
+ VERSION = "1.4.9"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schmurfy-bacon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
4
+ version: 1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Neukirchen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2014-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: |
@@ -35,7 +35,7 @@ executables:
35
35
  extensions: []
36
36
  extra_rdoc_files: []
37
37
  files:
38
- - .gitignore
38
+ - ".gitignore"
39
39
  - COPYING
40
40
  - Gemfile
41
41
  - README.md
@@ -74,17 +74,17 @@ require_paths:
74
74
  - lib
75
75
  required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - '>='
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.0.6
87
+ rubygems_version: 2.2.2
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: a small RSpec clone