sqreen 0.7.01461158029-java → 0.7.01461767359-java

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: e8c011305549e3109c30c68516bf0edc45c940ee
4
- data.tar.gz: 6040794b8b829c4a161fb0420ea1a9d7681b3365
3
+ metadata.gz: db191f9872ebfe2e528c51a2fdd1580074ef3d08
4
+ data.tar.gz: a8df97a9ded5211a4ae07514dfb6b7baf4fc09c4
5
5
  SHA512:
6
- metadata.gz: 7aeaee9638c3aa975d4cc1ef111fe20c4daf0f9e755ccc9d8f0e236e34d7cfe7ff0c6b24b5d5eb1587f5bbcb62a090c4427303aaf7cc0085b81218e5e81bc763
7
- data.tar.gz: 90cf3ebcf08647027e2b70c057334c832701b48fc384fec4c8006c9febfc31fc1107d21069d935fb7a727a76f7788a30c3f60ae046edb1caf11181c09fe54442
6
+ metadata.gz: 26a1d61e251cce9263b8e646bd6aed4d2707ba42a3a83ee966e34e07a0e3a17e88995cac1ee0bd623305029fa6bb34702aae01787e1ab863071c71f98b9b5cae
7
+ data.tar.gz: 8c356d0f0f643b35b14b3d6679fafc34c7e266b73e9e5b6e9ac8ccc0a276f6a4cb45fb562b78b4fcf667f403d806ec8260cdc9a05337f1185414e3abe2381f9c
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: java
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