rollbar 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edd3328a4f2609cd9fe7a75916ef566e36fa4a03
4
- data.tar.gz: 971ed93611878985514906f336a290bb74cdb120
3
+ metadata.gz: 87940d1312d7031a35a8fffa52ce5c8a3a85028a
4
+ data.tar.gz: d8cdb363a959a1da8b1262e56ca30b93894dd117
5
5
  SHA512:
6
- metadata.gz: 6b9ccd2085f183dd0d3074a8c42201daeb21eae07a06981f65aca8e18afdf9ab357525805921095fea71a07cb7c89ad292539f1873aabaadbec0741d7e546b75
7
- data.tar.gz: 0176e82ff4510507d448b9db337a1b93e7623ca4c53e805bd4c8faaa30fd2c1cc9a43c88034342c6d14fc93bdac6482c6bc5666173929b6de7caad0d4fdb5e51
6
+ metadata.gz: a73fb54fe0586c55901fb2164afdc144419a643fb7d8ba05d3f0ec63cb6ac522da1c62ac86d55e223a07d9b4c2f9d89900a8eb62068371544bb92e6a0c5eb621
7
+ data.tar.gz: a07997b90331f77dbd91c26d81004dcf66231879c433af9aba912a41f5dced783d53c3c3b1910d70e2d5271b909c7938d69be6b91c23417f5577fe3bd456bf56
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ **0.13.1**
4
+ - Silence warning when using project_gems= with regexp [#120](https://github.com/rollbar/rollbar-gem/pull/120)
5
+
3
6
  **0.13.0**
4
7
  - Hook for delayed_job no longer a plugin, will now only ever be initialized once
5
8
  - New configuration option `delayed_job_enabled` that defaults to true
data/THANKS.md CHANGED
@@ -14,6 +14,7 @@ Huge thanks to the following contributors (by github username). For the most up-
14
14
  - [fab](https://github.com/fab)
15
15
  - [firstbanco](https://github.com/firstbanco)
16
16
  - [Florent2](https://github.com/Florent2)
17
+ - [grosser](https://github.com/grosser)
17
18
  - [ixti](https://github.com/ixti)
18
19
  - [jeremyvdw](https://github.com/jeremyvdw)
19
20
  - [johnknott](https://github.com/johnknott)
@@ -103,15 +103,13 @@ module Rollbar
103
103
  end
104
104
 
105
105
  def project_gems=(gems)
106
- @project_gem_paths = []
107
-
108
- gems.each { |name|
109
- Gem::Specification.find_all_by_name(name).tap{ |results|
110
- puts "[Rollbar] No gems found matching #{name.inspect}" if results.empty?
111
- }.each{ |gem|
112
- @project_gem_paths.push gem.gem_dir
113
- }
114
- }
106
+ @project_gem_paths = gems.map do |name|
107
+ found = Gem::Specification.each.select { |spec| name === spec.name }
108
+ if found.empty?
109
+ puts "[Rollbar] No gems found matching #{name.inspect}"
110
+ end
111
+ found
112
+ end.flatten.uniq.map(&:gem_dir)
115
113
  end
116
114
 
117
115
  # allow params to be read like a hash
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.13.0"
2
+ VERSION = "0.13.1"
3
3
  end
data/spec/rollbar_spec.rb CHANGED
@@ -815,7 +815,7 @@ describe Rollbar do
815
815
  end
816
816
 
817
817
  it "should handle regex gem patterns" do
818
- gems = ["rack", /rspec/]
818
+ gems = ["rack", /rspec/, /roll/]
819
819
  gem_paths = []
820
820
 
821
821
  Rollbar.configure do |config|
@@ -824,6 +824,9 @@ describe Rollbar do
824
824
 
825
825
  gem_paths = gems.map{|gem| Gem::Specification.find_all_by_name(gem).map(&:gem_dir) }.flatten.compact.uniq
826
826
  gem_paths.length.should > 1
827
+
828
+ gem_paths.any?{|path| path.include? 'rollbar-gem'}.should == true
829
+ gem_paths.any?{|path| path.include? 'rspec-rails'}.should == true
827
830
 
828
831
  data = Rollbar.send(:message_data, 'test', 'info', {})
829
832
  data[:project_package_paths].kind_of?(Array).should == true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Rue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-27 00:00:00.000000000 Z
11
+ date: 2014-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json