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 +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: db191f9872ebfe2e528c51a2fdd1580074ef3d08
|
4
|
+
data.tar.gz: a8df97a9ded5211a4ae07514dfb6b7baf4fc09c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
|
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: java
|
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
|