rest-builder 0.9.0 → 0.9.1

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: 2ebc038a71c8fa9399ddd41fde21d014c2a47e3a
4
- data.tar.gz: 49ee5262a808a711f8bbcff6ec7f5a011c7832ed
3
+ metadata.gz: b5a80d7a9fd8f641f920acfeace75de0ab11e7e9
4
+ data.tar.gz: 34decd03355b243e14286515bcfa91613d407081
5
5
  SHA512:
6
- metadata.gz: 14a85d6c66f9e61df4fd7d68c8de783641994ef893bc124f384ee1e0696a756d7e2146e2144ddecc0b9de5cc9be36b57609435cdca4020436bc43a32c57b7243
7
- data.tar.gz: 984ad801875e5d21f1dba3d13e91875451987f22b00d9be1e598e030019a4492aaf3c61de541260bf2f16b46be69bc92dca379a534b9df0b4b4062039a22c086
6
+ metadata.gz: 3afab745cc747df73b61bba504f5e95ac1e61bbb32175164b70d430308c3bcb85ec783906c24183cdffa45ce96c9f15c2f646fc4f1e8c6c4966d9b5b1e1c384a
7
+ data.tar.gz: ae7afa259339c3d5376df6f2226f10f773161c33c692316de06130becc0f2c6e5496babac08ef4696a8821cdf343aa933a19164a22b8e5bf23ae1665154fc598
@@ -10,5 +10,5 @@ before_install:
10
10
  - rvm get head
11
11
  - rvm reload
12
12
  - rvm use --install $TRAVIS_RUBY_VERSION --binary --latest
13
- install: 'bundle install --retry=3'
13
+ install: 'gem install bundler; bundle install --retry=3'
14
14
  script: 'ruby -vr bundler/setup -S rake test'
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## rest-builder 0.9.1 -- 2016-03-04
4
+
5
+ * `Promise.set_backtrace` for errors from `event_source`.
6
+
3
7
  ## rest-builder 0.9.0 -- 2016-01-31
4
8
 
5
9
  * Birthday!
data/README.md CHANGED
@@ -23,7 +23,7 @@ middleware and [rest-more][] for pre-built clients.
23
23
 
24
24
  * Modular interface for REST clients similar to WSGI/Rack for servers.
25
25
  * Concurrent requests with synchronous or asynchronous interfaces with
26
- threads.
26
+ threads via [promise_pool][].
27
27
 
28
28
  ## WHY?
29
29
 
@@ -66,6 +66,7 @@ module RestBuilder
66
66
  @onerror = cb
67
67
  else
68
68
  begin
69
+ Promise.set_backtrace(error)
69
70
  @onerror.call(error, sock) if @onerror
70
71
  onreconnect(error, sock)
71
72
  rescue Exception
@@ -1,4 +1,4 @@
1
1
 
2
2
  module RestBuilder
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.1'
4
4
  end
@@ -1,73 +1,73 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: rest-builder 0.9.0 ruby lib
2
+ # stub: rest-builder 0.9.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "rest-builder"
6
- s.version = "0.9.0"
5
+ s.name = "rest-builder".freeze
6
+ s.version = "0.9.1"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib"]
10
- s.authors = ["Lin Jen-Shin (godfat)"]
11
- s.date = "2016-01-31"
12
- s.description = "Modular Ruby clients interface for REST APIs.\n\nBuild your own API clients for less dependencies, less codes, less memory,\nless conflicts, and run faster. Checkout [rest-core][] for pre-built\nmiddleware and [rest-more][] for pre-built clients.\n\n[rest-core]: https://github.com/godfat/rest-core\n[rest-more]: https://github.com/godfat/rest-more"
13
- s.email = ["godfat (XD) godfat.org"]
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.require_paths = ["lib".freeze]
10
+ s.authors = ["Lin Jen-Shin (godfat)".freeze]
11
+ s.date = "2016-03-04"
12
+ s.description = "Modular Ruby clients interface for REST APIs.\n\nBuild your own API clients for less dependencies, less codes, less memory,\nless conflicts, and run faster. Checkout [rest-core][] for pre-built\nmiddleware and [rest-more][] for pre-built clients.\n\n[rest-core]: https://github.com/godfat/rest-core\n[rest-more]: https://github.com/godfat/rest-more".freeze
13
+ s.email = ["godfat (XD) godfat.org".freeze]
14
14
  s.files = [
15
- ".gitignore",
16
- ".gitmodules",
17
- ".travis.yml",
18
- "CHANGES.md",
19
- "Gemfile",
20
- "README.md",
21
- "Rakefile",
22
- "lib/rest-builder.rb",
23
- "lib/rest-builder/builder.rb",
24
- "lib/rest-builder/client.rb",
25
- "lib/rest-builder/engine.rb",
26
- "lib/rest-builder/engine/dry.rb",
27
- "lib/rest-builder/engine/http-client.rb",
28
- "lib/rest-builder/error.rb",
29
- "lib/rest-builder/event_source.rb",
30
- "lib/rest-builder/middleware.rb",
31
- "lib/rest-builder/payload.rb",
32
- "lib/rest-builder/promise.rb",
33
- "lib/rest-builder/test.rb",
34
- "lib/rest-builder/version.rb",
35
- "rest-builder.gemspec",
36
- "task/README.md",
37
- "task/gemgem.rb",
38
- "test/test_builder.rb",
39
- "test/test_client.rb",
40
- "test/test_event_source.rb",
41
- "test/test_future.rb",
42
- "test/test_httpclient.rb",
43
- "test/test_payload.rb"]
44
- s.homepage = "https://github.com/godfat/rest-builder"
45
- s.licenses = ["Apache License 2.0"]
46
- s.rubygems_version = "2.5.1"
47
- s.summary = "Modular Ruby clients interface for REST APIs."
15
+ ".gitignore".freeze,
16
+ ".gitmodules".freeze,
17
+ ".travis.yml".freeze,
18
+ "CHANGES.md".freeze,
19
+ "Gemfile".freeze,
20
+ "README.md".freeze,
21
+ "Rakefile".freeze,
22
+ "lib/rest-builder.rb".freeze,
23
+ "lib/rest-builder/builder.rb".freeze,
24
+ "lib/rest-builder/client.rb".freeze,
25
+ "lib/rest-builder/engine.rb".freeze,
26
+ "lib/rest-builder/engine/dry.rb".freeze,
27
+ "lib/rest-builder/engine/http-client.rb".freeze,
28
+ "lib/rest-builder/error.rb".freeze,
29
+ "lib/rest-builder/event_source.rb".freeze,
30
+ "lib/rest-builder/middleware.rb".freeze,
31
+ "lib/rest-builder/payload.rb".freeze,
32
+ "lib/rest-builder/promise.rb".freeze,
33
+ "lib/rest-builder/test.rb".freeze,
34
+ "lib/rest-builder/version.rb".freeze,
35
+ "rest-builder.gemspec".freeze,
36
+ "task/README.md".freeze,
37
+ "task/gemgem.rb".freeze,
38
+ "test/test_builder.rb".freeze,
39
+ "test/test_client.rb".freeze,
40
+ "test/test_event_source.rb".freeze,
41
+ "test/test_future.rb".freeze,
42
+ "test/test_httpclient.rb".freeze,
43
+ "test/test_payload.rb".freeze]
44
+ s.homepage = "https://github.com/godfat/rest-builder".freeze
45
+ s.licenses = ["Apache License 2.0".freeze]
46
+ s.rubygems_version = "2.6.1".freeze
47
+ s.summary = "Modular Ruby clients interface for REST APIs.".freeze
48
48
  s.test_files = [
49
- "test/test_builder.rb",
50
- "test/test_client.rb",
51
- "test/test_event_source.rb",
52
- "test/test_future.rb",
53
- "test/test_httpclient.rb",
54
- "test/test_payload.rb"]
49
+ "test/test_builder.rb".freeze,
50
+ "test/test_client.rb".freeze,
51
+ "test/test_event_source.rb".freeze,
52
+ "test/test_future.rb".freeze,
53
+ "test/test_httpclient.rb".freeze,
54
+ "test/test_payload.rb".freeze]
55
55
 
56
56
  if s.respond_to? :specification_version then
57
57
  s.specification_version = 4
58
58
 
59
59
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
- s.add_runtime_dependency(%q<promise_pool>, [">= 0"])
61
- s.add_runtime_dependency(%q<httpclient>, [">= 0"])
62
- s.add_runtime_dependency(%q<mime-types>, [">= 0"])
60
+ s.add_runtime_dependency(%q<promise_pool>.freeze, [">= 0"])
61
+ s.add_runtime_dependency(%q<httpclient>.freeze, [">= 0"])
62
+ s.add_runtime_dependency(%q<mime-types>.freeze, [">= 0"])
63
63
  else
64
- s.add_dependency(%q<promise_pool>, [">= 0"])
65
- s.add_dependency(%q<httpclient>, [">= 0"])
66
- s.add_dependency(%q<mime-types>, [">= 0"])
64
+ s.add_dependency(%q<promise_pool>.freeze, [">= 0"])
65
+ s.add_dependency(%q<httpclient>.freeze, [">= 0"])
66
+ s.add_dependency(%q<mime-types>.freeze, [">= 0"])
67
67
  end
68
68
  else
69
- s.add_dependency(%q<promise_pool>, [">= 0"])
70
- s.add_dependency(%q<httpclient>, [">= 0"])
71
- s.add_dependency(%q<mime-types>, [">= 0"])
69
+ s.add_dependency(%q<promise_pool>.freeze, [">= 0"])
70
+ s.add_dependency(%q<httpclient>.freeze, [">= 0"])
71
+ s.add_dependency(%q<mime-types>.freeze, [">= 0"])
72
72
  end
73
73
  end
@@ -128,6 +128,7 @@ SSE
128
128
 
129
129
  end.onreconnect do |error, sock|
130
130
  error.should.kind_of? EOFError
131
+ error.backtrace.should.grep(/#{__FILE__}/).should.not.empty?
131
132
  sock.should.respond_to? :read
132
133
  !m.empty? # not empty to reconnect
133
134
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin Jen-Shin (godfat)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-31 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: promise_pool
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.5.1
119
+ rubygems_version: 2.6.1
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Modular Ruby clients interface for REST APIs.