commute 0.3.0.pre → 0.3.0.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.todo CHANGED
@@ -1,7 +1,7 @@
1
1
  easy transforms, reactivity? When not to add a transform
2
2
  net/http
3
3
  stubbing
4
- request error handling (timeouts...)
4
+ request error handling (layer errors, timeouts...)
5
5
 
6
6
  layers:
7
7
  OAuth with refreshing (and on_refresh callback)
@@ -11,8 +11,7 @@ Batching
11
11
  Page Crusher
12
12
 
13
13
  api method on context to select context
14
- complete method for quick layer (eg github gist star).
15
- why not use stream, run, request in layers or in complete system.
14
+ complete method for quick layer (eg github gist starred?).
16
15
 
17
16
  HOOKS
18
17
 
@@ -20,12 +19,17 @@ stream flattening [[1,2,3]] => [1,2,3] (flat_map?)
20
19
  stream::lazy; enumerable?
21
20
 
22
21
  New relic instrumentation
23
- Separate Parse/Render
24
22
 
25
- move layer specific config to using istead of with
23
+ move layer specific config to using instead of with
26
24
  using [:render, :parse] => {
27
25
  template: 'person'
28
26
  }
29
27
 
30
28
  param :reload # transform { |r, param| r.query[param] = c[param] }
31
- cache param blocks
29
+ memoize param blocks
30
+
31
+ set content-type in chemicals layer to application/xml
32
+
33
+ connections (api.connection, along with run, stream)
34
+
35
+ Layer testing framework
@@ -1,4 +1,5 @@
1
- require "em-synchrony"
1
+ require 'em-synchrony'
2
+ require 'em-synchrony/em-http'
2
3
 
3
4
  require 'commute/common/eventmachine'
4
5
 
@@ -18,7 +19,7 @@ module Commute
18
19
  body = nil
19
20
  request.on(:data) { |_body| body = _body }
20
21
  # Buffer the request (only streaming response).
21
- request.on(:end) do |body|
22
+ request.on(:end) do
22
23
  response = nil
23
24
  # Create a native em-http request.
24
25
  em_request = to_request request.http, body
@@ -1,3 +1,3 @@
1
1
  module Commute
2
- VERSION = "0.3.0.pre"
2
+ VERSION = "0.3.0.pre.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre
4
+ version: 0.3.0.pre.2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-28 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus