restify 0.3.2.1.b70 → 0.3.2.1.b71

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjgwZWMxY2Q1ZmQ1MGNlODZmNzI5ZWM2YjkzNDAwZmVjNmUwYWUzNA==
4
+ MzE5Y2RlNjAwNTE5ZjI4YjA5MGY3NWRjNWI4ZjcwMTMxYTNlZGEwNg==
5
5
  data.tar.gz: !binary |-
6
- MjZmMGE3ZGM0YWJjMGNhNzBhZTVlZDIxNmJjMjg5N2RiMmNlNDJjZA==
6
+ NmFmOWJmMGY3YmI2NzI2OGVmM2UxNDZjMThjNTc0NDQ1NmM3YzNkNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTg3ODI5NDM1YzUxMTE1N2EyZWQwNmUwMTJmNWFjOWQ3Zjg5YmRjMTU4Mzgz
10
- NjYxNGRmMjM3N2M5OTAxMzQ3ZTMwYmU5Y2ZhZGFiZjI2ZTMyZWFlNGNlOGNl
11
- ODRhMGIzYWMyNGE4N2Y5OTNhZjVlZTRhMGM3MTM4MmZiOTdmNjk=
9
+ NmU5NmQxYjMwMDBmNWJiNjNlMjhkYzIzM2VmZTkwMDdjMTYzNDAzMTRlMzZi
10
+ NGJiYWYyMWZmY2NmMWE0MzZiZDM3NzJmNWFiOWY3MDZiOTQ2YTBhMTMxOTQ2
11
+ YWU4YTcxODQ2NGEyZjAzZjdmZjdjNTViMDQwNzBjMmY3MTUzNjA=
12
12
  data.tar.gz: !binary |-
13
- ZmRlYTYxNWFlMDdiNGNjOWUwNTEzMTBlOTZjNDkyZGM0ZDIyMDA1NDM3YzJm
14
- ODg4YjRmNjRlZGE5OWZiZmU2YmM3OTVlNmZmMWViOGU2MTY3M2M4MjU4ZGIw
15
- YjFkYjUzYjM1OWY4MTViZThmMjVjZGVhOWQ0MWUxNDkyYTg3Mzk=
13
+ YTI1OTA5MWZkOTU1NmNmNjFhZDU1NmU2ZDMwMTliYjg1ZWViY2E1OTI0MGE1
14
+ ZWFmOWFjOTQwNTJlYjkwY2MzZTViOWYxYzI5ZTE1ZGQwMWFlZTdkNDY4OWVm
15
+ ZjdhYjE3OTYyYzUxZjNlYTU2YmQzOWMzZGE5OGI3ZGUyMGQ5Nzg=
@@ -26,7 +26,7 @@ module Restify
26
26
 
27
27
  class << self
28
28
  def new(uri, opts = {})
29
- Context.new(uri).request(:GET, uri)
29
+ Relation.new Context.new(uri), uri
30
30
  end
31
31
 
32
32
  def adapter
@@ -100,7 +100,7 @@ describe Restify do
100
100
  end
101
101
 
102
102
  let(:c) do
103
- Restify.new('http://localhost/base').value
103
+ Restify.new('http://localhost/base').get.value
104
104
  end
105
105
 
106
106
  context 'within threads' do
@@ -10,7 +10,7 @@ end
10
10
 
11
11
  require 'restify'
12
12
 
13
- case ENV['ADAPTER'].downcase
13
+ case ENV['ADAPTER'].to_s.downcase
14
14
  when 'em-http-request'
15
15
  require 'restify/adapter/em'
16
16
  Restify.adapter = Restify::Adapter::EM.new
@@ -22,9 +22,8 @@ case ENV['ADAPTER'].downcase
22
22
  Restify.adapter = Restify::Adapter::Celluloid.new
23
23
  else
24
24
  raise "Invalid adapter: #{ENV['ADAPTER']}"
25
- end
25
+ end if ENV['ADAPTER']
26
26
 
27
- require 'eventmachine'
28
27
  require 'rspec/collection_matchers'
29
28
 
30
29
  Dir[File.expand_path('spec/support/**/*.rb')].each {|f| require f }
@@ -33,6 +32,6 @@ RSpec.configure do |config|
33
32
  config.order = 'random'
34
33
 
35
34
  config.after(:each) do
36
- EventMachine.stop if EventMachine.reactor_running?
35
+ EventMachine.stop if defined?(EventMachine) && EventMachine.reactor_running?
37
36
  end
38
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2.1.b70
4
+ version: 0.3.2.1.b71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: obligation