trailblazer 1.0.2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/trailblazer/endpoint.rb +1 -4
- data/lib/trailblazer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8454dcf811b4b74b99a2413804772578ec4e2d72
|
|
4
|
+
data.tar.gz: d62c716532ac9c2ab09c21b4480a1300429e8fc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd1c1e75a64ebe515d5c1ccd1819eb1199e4ecc522673f23c43ec36450435f531e8891d240e8f193d8e482f25fee4e42138e77844d74dd1fb773f76c9faf2164
|
|
7
|
+
data.tar.gz: e69578a12d51a7e44800c7ec811a614a6432bbab438751dbcd57f7f6ba7cd4b347b54512e238c7ada0c8c1f606234d22668f34294d51a002eaec7f45d7cd8e4a
|
data/CHANGES.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 1.0.3
|
|
2
|
+
|
|
3
|
+
Remove unprofessional `puts`, @smathy.
|
|
4
|
+
|
|
1
5
|
# 1.0.2
|
|
2
6
|
|
|
3
7
|
* Treat all requests as `params` requests unless the operation has a representer mixed in. If you don't want that, you can override using `is_document: false`. This appears to be the smoothest solution for all.
|
data/lib/trailblazer/endpoint.rb
CHANGED
|
@@ -24,12 +24,9 @@ module Trailblazer
|
|
|
24
24
|
# e.g. `run Comment::Create` where the builder will instantiate Create::JSON which has Representer
|
|
25
25
|
# included.
|
|
26
26
|
def document_request_for?(options)
|
|
27
|
-
puts "``#{options.inspect}"
|
|
28
27
|
return options[:is_document] if options.has_key?(:is_document)
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
puts "@@ss@@@ #{result.inspect}"
|
|
32
|
-
result
|
|
29
|
+
operation_class < Operation::Representer # TODO: this doesn't work with polymorphic dispatch.
|
|
33
30
|
end
|
|
34
31
|
|
|
35
32
|
def document_body!
|
data/lib/trailblazer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trailblazer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Sutterer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: uber
|