sqreen 0.7.01461158029 → 0.7.01461767359

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: 41eb1593f1c0f104fd9dac3323979b08c926d6b5
4
- data.tar.gz: 0c8824d5cc42fa088e3ef2245eebbc407aba6d7f
3
+ metadata.gz: 6510c20fb38fab92ac2092ff0612464c839dff0e
4
+ data.tar.gz: a42e7e6ee3d39e99f23d845f6a4b86b9f6f2c890
5
5
  SHA512:
6
- metadata.gz: 76d5df1af7328773782bd01e4e0fab909e6097551fb7595c915c16e5bd326fa349c41a7c4bb5a5ed1d2817f61bcf4519fd6bbdcb57cf2e059b1f6e880a6a9099
7
- data.tar.gz: d6eeb65b51bd7c0f1913420ced42f29e73ba3daf09381da2524f7c53ff0a44d7f82417b83bc188668cf28aaa3f9110f91c1209df58a0d489126dc0094a362898
6
+ metadata.gz: f2a9ff5090470dce3477956c7f947f14c50b267875f2d1b1e382b810f9298ff3bcbbe2602da1927eacc00edbedb2158a4328571e7c31c4f55000996cec4522a1
7
+ data.tar.gz: 0e9016587f30cb7c02ba3375a73670b56f387b131f86c1c23aaf019555ccec772b0bb61454b9b4dd9a3abb1829941ff6eda705a706918cf527d97f073498b8bf
data/README.md CHANGED
@@ -75,3 +75,24 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
75
75
  ## Contributing
76
76
 
77
77
  Bug reports and pull requests are welcome on GitHub at https://github.com/sqreen/RubyAgent. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
78
+
79
+ ## Releasing
80
+
81
+ Linux builds are handled by Jenkins.
82
+
83
+ For OSX builds, you need to first release the gem with Jenkins, which will
84
+ generate a gem name wuch as `sqreen-0.7.01461158029-java.gem`. The
85
+ `BUILD_SUFFIX` is in this case `1461158029`.
86
+
87
+ ```shell
88
+ $ git checkout gem-0.7.01461158029 # use the same source code version
89
+ $ rbenv shell <ruby_version> # may be darwin specific
90
+ $ export BUILD_SUFFIX=1461158029
91
+ $ rbenv exec rake build
92
+ ```
93
+
94
+ The binary gem should be released in:
95
+ ```
96
+ pkg/sqreen-0.7.01461158029-x86_64-darwin-15.gem
97
+ ```
98
+
@@ -10,9 +10,11 @@ module Sqreen
10
10
  def self::log
11
11
  return @logger unless @logger.nil?
12
12
  @logger = Logger.new(
13
- Sqreen.config_get(:log_level),
13
+ Sqreen.config_get(:log_level).to_s.upcase,
14
14
  Sqreen.config_get(:log_location)
15
15
  )
16
+ rescue => e
17
+ warn "Sqreen logger exception: #{e}"
16
18
  end
17
19
 
18
20
  # Ruby default formatter modified to display current thread_id
@@ -4,7 +4,18 @@
4
4
  if defined?(::JRUBY_VERSION)
5
5
  require 'rhino'
6
6
  else
7
- require 'therubyracer'
7
+ begin
8
+ require 'therubyracer'
9
+ rescue LoadError => e
10
+ if RUBY_PLATFORM['darwin']
11
+ if defined?(ExecJS::Runtimes::JavaScriptCore) &&
12
+ ExecJS::Runtimes::JavaScriptCore.available?
13
+ ExecJS.runtime = ExecJS::Runtimes::JavaScriptCore
14
+ else
15
+ raise e
16
+ end
17
+ end
18
+ end
8
19
  end
9
20
 
10
21
  require 'execjs'
@@ -2,5 +2,5 @@
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  # Warning This file is auto generated! DO NOT edit.
4
4
  module Sqreen
5
- VERSION = "0.7.01461158029".freeze
5
+ VERSION = "0.7.01461767359".freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.01461158029
4
+ version: 0.7.01461767359
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sqreen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs