sqreen 0.7.01461158029 → 0.7.01461767359
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 +4 -4
- data/README.md +21 -0
- data/lib/sqreen/log.rb +3 -1
- data/lib/sqreen/rules_callbacks/execjs.rb +12 -1
- data/lib/sqreen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6510c20fb38fab92ac2092ff0612464c839dff0e
|
4
|
+
data.tar.gz: a42e7e6ee3d39e99f23d845f6a4b86b9f6f2c890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
|
data/lib/sqreen/log.rb
CHANGED
@@ -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
|
-
|
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'
|
data/lib/sqreen/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|