Skip to content

Commit

Permalink
Merge branch 'master' into mongoid-3
Browse files Browse the repository at this point in the history
  • Loading branch information
shingara committed Sep 25, 2013
2 parents ef3e49b + 7fa30d6 commit e83a6e5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -12,17 +12,24 @@
### Improvements

- [#552][] Limite size of asset on errbit ([@tscolari][])
- [#562][] See the version number of errbit on footer ([@nashby][])
- [#555][] Avoid same group by same error if other line of backtrace
instead of first change ([@shingara][])

### Bug Fixes

- [#558][] Avoid failure if you remote bitbucket_rest_api gem
([@shingara][])
- [#559][] Fix some issue on the migration with old database
([@shingara][])

[@nashby]: https://github.com/nashby
[@shingara]: https://github.com/shingara
[@tscolari]: https://github.com/tscolari

[#552]: https://github.com/errbit/errbit/issues/552
[#558]: https://github.com/errbit/errbit/issues/558
[#562]: https://github.com/errbit/errbit/issues/562

## 0.2.0 - 2013-09-11

Expand Down
4 changes: 4 additions & 0 deletions CONTRIBUTORS.md
Expand Up @@ -8,9 +8,13 @@

## 0.2.1 - Not released yet

- [@anicet][]
- [@nashby][]
- [@shingara][]
- [@tscolari][]

[@anicet]: https://github.com/anicet
[@nashby]: https://github.com/nashby
[@shingara]: https://github.com/shingara
[@tscolari]: https://github.com/tscolari

Expand Down
Expand Up @@ -21,6 +21,13 @@ def self.up
e.app.update_attribute(:notify_on_errs, old_notify)
errs_coll.find({ "_id" => err['_id']}).update({ "$unset" => { "notices" => 1}})
end
(
Problem.where(:environment => '') |
Problem.where(:environment => nil) |
Problem.where(:environment => {})
).each {|pr|
pr.update_attributes(:environment => 'old')
}
Rake::Task["errbit:db:update_notices_count"].invoke
Rake::Task["errbit:db:update_problem_attrs"].invoke
end
Expand Down
6 changes: 4 additions & 2 deletions db/migrate/20121005142110_regenerate_err_fingerprints.rb
Expand Up @@ -10,8 +10,10 @@ def self.up
:environment => err.environment,
:api_key => err.app.api_key
}
fingerprint = Digest::SHA1.hexdigest(fingerprint_source.to_s)
err.update_attribute(:fingerprint, fingerprint)
err.update_attribute(
:fingerprint,
Fingerprint.generate(err.notices.first, err.app.api_key)
)
end
end
end
Expand Down

0 comments on commit e83a6e5

Please sign in to comment.