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 +4 -4
- data/.travis.yml +4 -0
- data/CHANGELOG.md +3 -0
- data/lib/rollbar/middleware/rails/rollbar_request_store.rb +2 -2
- data/lib/rollbar/version.rb +1 -1
- data/spec/controllers/home_controller_spec.rb +3 -2
- data/spec/dummyapp/app/controllers/home_controller.rb +2 -1
- data/spec/dummyapp/app/models/user.rb +1 -1
- data/spec/dummyapp/db/schema.rb +1 -1
- data/spec/dummyapp/db/seeds.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44e090d61a9b70d5cbb17870bc0f5e34c95968db
|
4
|
+
data.tar.gz: 39ff1049102e01994034bc3d16abc56b51a85a46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 219ca368775abdeca9960080e684356f29994929f64091e9e1a7b76e620e0fe1e460c4fb9bd51dd900253c7778bae7a71f3a315fc590d7d45ad4fb310cdefa45
|
7
|
+
data.tar.gz: 2bc902e4f9a8cfecbb2a37cd2e198ab309c0dcb4a68f8e6c7b14ffe0530eaf01a455c44df58d2755aa6238d1c9e2392c4d70c649e86faac4e8d5bd2247de0ff1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -13,8 +13,8 @@ module Rollbar
|
|
13
13
|
@app.call(env)
|
14
14
|
rescue
|
15
15
|
controller = env["action_controller.instance"]
|
16
|
-
if controller
|
17
|
-
env['rollbar.person_data'] = controller.
|
16
|
+
if controller
|
17
|
+
env['rollbar.person_data'] = controller.rollbar_person_data
|
18
18
|
end
|
19
19
|
raise
|
20
20
|
end
|
data/lib/rollbar/version.rb
CHANGED
@@ -287,8 +287,9 @@ describe HomeController do
|
|
287
287
|
get 'cause_exception'
|
288
288
|
|
289
289
|
user = request.env['rollbar.person_data']
|
290
|
-
user
|
291
|
-
user.
|
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
|
data/spec/dummyapp/db/schema.rb
CHANGED
@@ -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 "
|
29
|
+
t.string "username"
|
30
30
|
end
|
31
31
|
|
32
32
|
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
data/spec/dummyapp/db/seeds.rb
CHANGED
@@ -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! :
|
10
|
-
puts 'New user created: ' << user.
|
11
|
-
user2 = User.create! :
|
12
|
-
puts 'New user created: ' << user2.
|
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
|