captivus 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/captivus.gemspec CHANGED
@@ -19,5 +19,5 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_dependency "faraday", '~> 0.8.4'
21
21
  gem.add_dependency "multi_json", "~> 1.3.6"
22
- gem.add_dependency "captivus-auth_hmac", "0.0.1"
22
+ gem.add_dependency "captivus-auth_hmac", "0.0.2"
23
23
  end
@@ -1,3 +1,5 @@
1
+ require 'captivus/backtrace'
2
+
1
3
  module Captivus
2
4
  class Payload
3
5
  def initialize(exception)
@@ -1,3 +1,4 @@
1
+ require 'captivus'
1
2
  require 'faraday'
2
3
  require 'multi_json'
3
4
 
@@ -1,3 +1,3 @@
1
1
  module Captivus
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'captivus/backtrace/line'
2
3
 
3
4
  describe Captivus::Backtrace::Line do
4
5
  def new_line(*args)
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'captivus/backtrace'
2
3
 
3
4
  describe Captivus::Backtrace do
4
5
  def new_backtrace(*args)
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'captivus/configuration'
2
3
 
3
4
  describe Captivus::Configuration do
4
5
  [
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'captivus/payload'
2
3
 
3
4
  describe Captivus::Payload do
4
5
  describe ".new" do
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'captivus/rack_capturer'
2
3
 
3
4
  describe Captivus::RackCapturer do
4
5
  describe "call" do
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'captivus'
2
3
 
3
4
  describe Captivus do
4
5
  describe ".configuration" do
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'captivus'
2
3
 
3
4
  describe 'Reporting from a rack app' do
4
5
  include Rack::Test::Methods
@@ -62,15 +63,15 @@ describe 'Reporting from a rack app' do
62
63
  expect(payload['backtrace'].size > 10).to be_true
63
64
  expect(payload['backtrace'][0..2]).to eq [{
64
65
  "file" => "/Users/austin/projects/captivus/gem/spec/integration/events_from_rack_spec.rb",
65
- "number"=> 17,
66
+ "number"=> 18,
66
67
  "method" => "block (2 levels) in app"
67
68
  }, {
68
69
  "file" => "/Users/austin/projects/captivus/gem/lib/captivus/rack_capturer.rb",
69
- "number"=> 12,
70
+ "number"=> 13,
70
71
  "method" => "call"
71
72
  }, {
72
73
  "file" => "/Users/austin/projects/captivus/gem/lib/captivus/rack_capturer.rb",
73
- "number"=> 12,
74
+ "number"=> 13,
74
75
  "method" => "call"
75
76
  }]
76
77
  end
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,6 @@ require 'sham_rack'
3
3
  require 'rack/test'
4
4
  require 'timecop'
5
5
  require "delorean"
6
- require_relative '../lib/captivus'
7
6
 
8
7
  class CaptivusAPI
9
8
  def call(env)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: captivus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: 0.0.1
53
+ version: 0.0.2
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.0.1
61
+ version: 0.0.2
62
62
  description: Captivus client gem
63
63
  email:
64
64
  - austinthecoder@gmail.com