rollbar 0.12.2 → 0.12.3

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: 7607d520d1f8d963e790e8923de6639077d1b249
4
- data.tar.gz: d09eee4f299f4d0a84c3b2458416852bd9f56eb7
3
+ metadata.gz: 44e090d61a9b70d5cbb17870bc0f5e34c95968db
4
+ data.tar.gz: 39ff1049102e01994034bc3d16abc56b51a85a46
5
5
  SHA512:
6
- metadata.gz: 6f84dbc19fa80b6b7df3292913acfc8a02d39092baacd9288a28f9d40e7725e0c72338d720168f3d7d185a599370a42b2c9fb2589cde770eb19064fb4a587c2f
7
- data.tar.gz: 9302c823401d4a4a3545bc51059e4e9070fbb8522a5a9deb0d7d3424a2aa99e77624de12e688cb63e9f532576df648ff7d7cc10d6084caff231caa983aaac031
6
+ metadata.gz: 219ca368775abdeca9960080e684356f29994929f64091e9e1a7b76e620e0fe1e460c4fb9bd51dd900253c7778bae7a71f3a315fc590d7d45ad4fb310cdefa45
7
+ data.tar.gz: 2bc902e4f9a8cfecbb2a37cd2e198ab309c0dcb4a68f8e6c7b14ffe0530eaf01a455c44df58d2755aa6238d1c9e2392c4d70c649e86faac4e8d5bd2247de0ff1
@@ -1,4 +1,8 @@
1
1
  language: ruby
2
+ # Broken bundler on travis CI - https://github.com/bundler/bundler/issues/2784
3
+ before_install:
4
+ - gem update --system 2.1.11
5
+ - gem --version
2
6
  rvm:
3
7
  - 1.8.7
4
8
  - 1.9.2
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ **0.12.3**
4
+ - Change rollbar_request_store middleware to only grab required person data properties by using rollbar_person_data
5
+
3
6
  **0.12.2**
4
7
  - Added ability to specify level for manually reported exceptions
5
8
 
@@ -13,8 +13,8 @@ module Rollbar
13
13
  @app.call(env)
14
14
  rescue
15
15
  controller = env["action_controller.instance"]
16
- if controller and controller.respond_to? Rollbar.configuration.person_method
17
- env['rollbar.person_data'] = controller.send(Rollbar.configuration.person_method)
16
+ if controller
17
+ env['rollbar.person_data'] = controller.rollbar_person_data
18
18
  end
19
19
  raise
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.12.2"
2
+ VERSION = "0.12.3"
3
3
  end
@@ -287,8 +287,9 @@ describe HomeController do
287
287
  get 'cause_exception'
288
288
 
289
289
  user = request.env['rollbar.person_data']
290
- user.id.should == 123
291
- user.name.should == 'test'
290
+ user[:id].should == 123
291
+ user[:username].should == 'test'
292
+ user[:email].should == 'email@test.com'
292
293
  end
293
294
 
294
295
  it 'should not fail if the controller doesnt contain the person method' do
@@ -26,7 +26,8 @@ class HomeController < ApplicationController
26
26
  def custom_current_user
27
27
  user = User.new
28
28
  user.id = 123
29
- user.name = 'test'
29
+ user.username = 'test'
30
+ user.email = 'email@test.com'
30
31
  user
31
32
  end
32
33
  end
@@ -1,4 +1,4 @@
1
1
  class User < ActiveRecord::Base
2
2
  # Setup accessible (or protected) attributes for your model
3
- attr_accessible :name, :email, :password, :password_confirmation, :remember_me
3
+ attr_accessible :username, :email, :password, :password_confirmation, :remember_me
4
4
  end
@@ -26,7 +26,7 @@ ActiveRecord::Schema.define(:version => 20121121184654) do
26
26
  t.string "last_sign_in_ip"
27
27
  t.datetime "created_at", :null => false
28
28
  t.datetime "updated_at", :null => false
29
- t.string "name"
29
+ t.string "username"
30
30
  end
31
31
 
32
32
  add_index "users", ["email"], :name => "index_users_on_email", :unique => true
@@ -6,7 +6,7 @@
6
6
  # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
7
  # Mayor.create(name: 'Emanuel', city: cities.first)
8
8
  puts 'SETTING UP DEFAULT USER LOGIN'
9
- user = User.create! :name => 'First User', :email => 'user@example.com'
10
- puts 'New user created: ' << user.name
11
- user2 = User.create! :name => 'Second User', :email => 'user2@example.com'
12
- puts 'New user created: ' << user2.name
9
+ user = User.create! :username => 'user1', :email => 'user@example.com'
10
+ puts 'New user created: ' << user.username
11
+ user2 = User.create! :username => 'user2', :email => 'user2@example.com'
12
+ puts 'New user created: ' << user2.username
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Rue