graphiti 1.0.beta.7 → 1.0.beta.8

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: dddde0dd800c551176e88a386aa35c6935660f45
4
- data.tar.gz: 900db0d21517ffc1236c6cf157db3d0a23e6b682
3
+ metadata.gz: 4b175cdd3201d457052bcdbabc8352bb6efdd0dc
4
+ data.tar.gz: 8baef1493952ee4949b0640831c6d6d35631812f
5
5
  SHA512:
6
- metadata.gz: 72f31910ca77a63a6da0f942d2ddfdd1bd1ae5047ecefa58aa1ee6de39ef40ced8039004852cf8c9cc79b9f470f5d2fffe258725629b8112e598f4f5c2f06b9b
7
- data.tar.gz: 3c6eb6e1ee9da7a109983f173aed69874884272b5c3b8ad0f0bcc2efe35390fd966afbe2b51f17904d49c22d76fde257f882b6faba640b5f6d80327790d2664d
6
+ metadata.gz: 3d65ddbeb161917a2dc1c495eaa8b83397ed0c706b48163e1dd3de97c15483ece83d1fde164cfb0a347fe84df6a0a2583c8d7987c2043674303053fd6f9cd77e
7
+ data.tar.gz: 9dd17ad77f9910fdef2a5b43043e2cc52583ca4085236a7ab4358a92d60331d93827ed09a72bce9cae41911c85cf044212e67961ca1d6652c8c6e9942363aa24
@@ -1,10 +1,4 @@
1
1
  namespace :graphiti do
2
- include GraphitiSpecHelpers::Helpers
3
-
4
- def response
5
- session.response
6
- end
7
-
8
2
  def session
9
3
  @session ||= ActionDispatch::Integration::Session.new(Rails.application)
10
4
  end
@@ -26,6 +20,7 @@ namespace :graphiti do
26
20
  end
27
21
  path = "#{path}&debug=true" if debug
28
22
  session.get("#{path}")
23
+ JSON.parse(session.response.body)
29
24
  end
30
25
 
31
26
  desc "Execute request without web server."
@@ -36,7 +31,7 @@ namespace :graphiti do
36
31
  require 'pp'
37
32
  path, debug = args[:path], args[:debug]
38
33
  puts "Graphiti Request: #{path}"
39
- make_request(path, debug)
34
+ json = make_request(path, debug)
40
35
  pp json
41
36
  Graphiti::Debugger.flush if debug
42
37
  end
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.0.beta.7"
2
+ VERSION = "1.0.beta.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.beta.7
4
+ version: 1.0.beta.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond