jrjackson 0.4.16-java → 0.4.18-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/README.md +13 -3
- data/changelog.md +3 -0
- data/lib/com/fasterxml/jackson/core/jackson-annotations/2.15.2/jackson-annotations-2.15.2.jar +0 -0
- data/lib/com/fasterxml/jackson/core/jackson-core/2.15.2/jackson-core-2.15.2.jar +0 -0
- data/lib/com/fasterxml/jackson/core/jackson-databind/2.15.2/jackson-databind-2.15.2.jar +0 -0
- data/lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.15.2/jackson-module-afterburner-2.15.2.jar +0 -0
- data/lib/jrjackson/build_info.rb +6 -6
- data/lib/jrjackson/jars/jrjackson-1.2.35.jar +0 -0
- data/lib/jrjackson_jars.rb +8 -8
- data/pom.xml +7 -7
- data/test/jrjackson_test.rb +1 -1
- metadata +14 -14
- data/lib/com/fasterxml/jackson/core/jackson-annotations/2.13.3/jackson-annotations-2.13.3.jar +0 -0
- data/lib/com/fasterxml/jackson/core/jackson-core/2.13.3/jackson-core-2.13.3.jar +0 -0
- data/lib/com/fasterxml/jackson/core/jackson-databind/2.13.3/jackson-databind-2.13.3.jar +0 -0
- data/lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.13.3/jackson-module-afterburner-2.13.3.jar +0 -0
- data/lib/jrjackson/jars/jrjackson-1.2.33.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 259168e178ea14530501989086d6f4a613990a45098535caed743def7198698f
|
4
|
+
data.tar.gz: bc935049f6b0b4b987d3b46f19123fc4ad741abfb2478f0bfd65c3a032b0ef1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c931ed9df1a52a96ce530c17098bdb30a178a06397409b4c04b5c3608405037c0728f02ff015fe258c4d6ad75e2cb3b440f1dce8886f44f1f30388b69758fbf
|
7
|
+
data.tar.gz: c5cb296bdc00f4561238e51eb4fb479b3393945ca147051cd212f49e3e05fac2f76be564b5ba0476f4bdb149af073c698bd008dbce348bcb6a1fee0607143daf
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -29,10 +29,10 @@ represents your custom object.
|
|
29
29
|
|
30
30
|
11th May 2014 - Added to_time method call for Ruby object serialization
|
31
31
|
|
32
|
-
26th October 2013 - Added support to serialize arbitrary (non JSON
|
32
|
+
26th October 2013 - Added support to serialize arbitrary (non JSON data types)
|
33
33
|
ruby objects. Normally the toJava internal method is called, but additionally
|
34
34
|
to_h, to_hash, to_a and finally to_json are tried. Be aware that the to_json
|
35
|
-
method might invoke a new
|
35
|
+
method might invoke a new serialization session (i.e. it may use the JSON gem)
|
36
36
|
and impact performance.
|
37
37
|
|
38
38
|
***
|
@@ -43,7 +43,7 @@ and impact performance.
|
|
43
43
|
JrJackson::Json.load(string, options) -> hash like object
|
44
44
|
aliased as parse
|
45
45
|
```
|
46
|
-
By default the load method will return Ruby objects (Hashes have string keys).
|
46
|
+
By default, the load method will return Ruby objects (Hashes have string keys).
|
47
47
|
The options hash respects three symbol keys
|
48
48
|
|
49
49
|
+ :symbolize_keys
|
@@ -90,6 +90,16 @@ There are four Ruby sub modules of the JrJackson module
|
|
90
90
|
|
91
91
|
***
|
92
92
|
|
93
|
+
#### How to build the `jrjackson`?
|
94
|
+
|
95
|
+
The library requires maven and [ruby-maven]((https://github.com/jruby/ruby-maven)) libraries.
|
96
|
+
Make sure to install the maven depending on your system (ex.: `brew install maven` on macOS) and also install ruby-maven with `gem install ruby-maven`.
|
97
|
+
Note that, recent builds showed old maven versions failed and succeeded with `3.8.7` version.
|
98
|
+
|
99
|
+
Run `rake && rake test` to build and test the `jrjackson`.
|
100
|
+
|
101
|
+
To build the local gem to test against your platform, use `gem build jrjackson.gemspec` command.
|
102
|
+
|
93
103
|
#### Benchmarks
|
94
104
|
|
95
105
|
Credit to Chuck Remes for the benchmark and initial
|
data/changelog.md
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/jrjackson/build_info.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
module JrJackson
|
2
2
|
module BuildInfo
|
3
3
|
def self.version
|
4
|
-
'0.4.
|
4
|
+
'0.4.18'
|
5
5
|
end
|
6
6
|
|
7
7
|
def self.release_date
|
8
|
-
'
|
8
|
+
'2023-06-28'
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.files
|
@@ -13,15 +13,15 @@ module JrJackson
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.jackson_version
|
16
|
-
'2.
|
16
|
+
'2.15.2'
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.jackson_databind_version
|
20
|
-
'2.
|
20
|
+
'2.15.2'
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.jar_version
|
24
|
-
'1.2.
|
24
|
+
'1.2.35'
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
@@ -31,7 +31,7 @@ module JrJackson
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.git_files
|
34
|
-
|
34
|
+
`/usr/bin/git ls-files`.split($/).reject{|s| s.start_with?("benchmarking")}
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.generated_jar_files
|
Binary file
|
data/lib/jrjackson_jars.rb
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
begin
|
3
3
|
require 'jar_dependencies'
|
4
4
|
rescue LoadError
|
5
|
-
require 'com/fasterxml/jackson/core/jackson-annotations/2.
|
6
|
-
require 'com/fasterxml/jackson/core/jackson-
|
7
|
-
require 'com/fasterxml/jackson/
|
8
|
-
require 'com/fasterxml/jackson/
|
5
|
+
require 'com/fasterxml/jackson/core/jackson-annotations/2.15.2/jackson-annotations-2.15.2.jar'
|
6
|
+
require 'com/fasterxml/jackson/core/jackson-core/2.15.2/jackson-core-2.15.2.jar'
|
7
|
+
require 'com/fasterxml/jackson/core/jackson-databind/2.15.2/jackson-databind-2.15.2.jar'
|
8
|
+
require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.15.2/jackson-module-afterburner-2.15.2.jar'
|
9
9
|
end
|
10
10
|
|
11
11
|
if defined? Jars
|
12
|
-
require_jar 'com.fasterxml.jackson.core', 'jackson-annotations', '2.
|
13
|
-
require_jar 'com.fasterxml.jackson.core', 'jackson-
|
14
|
-
require_jar 'com.fasterxml.jackson.
|
15
|
-
require_jar 'com.fasterxml.jackson.
|
12
|
+
require_jar 'com.fasterxml.jackson.core', 'jackson-annotations', '2.15.2'
|
13
|
+
require_jar 'com.fasterxml.jackson.core', 'jackson-core', '2.15.2'
|
14
|
+
require_jar 'com.fasterxml.jackson.core', 'jackson-databind', '2.15.2'
|
15
|
+
require_jar 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.15.2'
|
16
16
|
end
|
data/pom.xml
CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFY - GENERATED CODE
|
|
11
11
|
<modelVersion>4.0.0</modelVersion>
|
12
12
|
<groupId>com.jrjackson.jruby</groupId>
|
13
13
|
<artifactId>jrjackson</artifactId>
|
14
|
-
<version>1.2.
|
14
|
+
<version>1.2.35</version>
|
15
15
|
<name>A JRuby wrapper for the java jackson json processor jar</name>
|
16
16
|
<description>A mostly native JRuby wrapper for the java jackson json processor jar</description>
|
17
17
|
<url>http://github.com/guyboertje/jrjackson</url>
|
@@ -54,22 +54,22 @@ DO NOT MODIFY - GENERATED CODE
|
|
54
54
|
<dependency>
|
55
55
|
<groupId>com.fasterxml.jackson.core</groupId>
|
56
56
|
<artifactId>jackson-core</artifactId>
|
57
|
-
<version>2.
|
57
|
+
<version>2.15.2</version>
|
58
58
|
</dependency>
|
59
59
|
<dependency>
|
60
60
|
<groupId>com.fasterxml.jackson.core</groupId>
|
61
61
|
<artifactId>jackson-annotations</artifactId>
|
62
|
-
<version>2.
|
62
|
+
<version>2.15.2</version>
|
63
63
|
</dependency>
|
64
64
|
<dependency>
|
65
65
|
<groupId>com.fasterxml.jackson.core</groupId>
|
66
66
|
<artifactId>jackson-databind</artifactId>
|
67
|
-
<version>2.
|
67
|
+
<version>2.15.2</version>
|
68
68
|
</dependency>
|
69
69
|
<dependency>
|
70
70
|
<groupId>com.fasterxml.jackson.module</groupId>
|
71
71
|
<artifactId>jackson-module-afterburner</artifactId>
|
72
|
-
<version>2.
|
72
|
+
<version>2.15.2</version>
|
73
73
|
</dependency>
|
74
74
|
<dependency>
|
75
75
|
<groupId>junit</groupId>
|
@@ -118,7 +118,7 @@ DO NOT MODIFY - GENERATED CODE
|
|
118
118
|
</executions>
|
119
119
|
<configuration>
|
120
120
|
<outputDirectory>lib/jrjackson/jars</outputDirectory>
|
121
|
-
<finalName>jrjackson-1.2.
|
121
|
+
<finalName>jrjackson-1.2.35</finalName>
|
122
122
|
</configuration>
|
123
123
|
</plugin>
|
124
124
|
<plugin>
|
@@ -129,7 +129,7 @@ DO NOT MODIFY - GENERATED CODE
|
|
129
129
|
<fileset>
|
130
130
|
<directory>lib/jrjackson/jars</directory>
|
131
131
|
<includes>
|
132
|
-
<include>jrjackson-1.2.
|
132
|
+
<include>jrjackson-1.2.35.jar</include>
|
133
133
|
<include>*/**/*.jar</include>
|
134
134
|
</includes>
|
135
135
|
</fileset>
|
data/test/jrjackson_test.rb
CHANGED
@@ -339,7 +339,7 @@ class JrJacksonTest < Test::Unit::TestCase
|
|
339
339
|
|
340
340
|
time = Time.new(2014,6,10,18,18,40, "-04:00")
|
341
341
|
# using date_format option
|
342
|
-
assert_equal "{\"time\":\"2014-06-10\"}", JrJackson::Json.dump({"time" => time}, :date_format => "yyyy-MM-dd")
|
342
|
+
assert_equal "{\"time\":\"2014-06-10\"}", JrJackson::Json.dump({"time" => time}, :date_format => "yyyy-MM-dd", :timezone => "UTC")
|
343
343
|
assert_match(/\{"time"\:"\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d{3}[+-]\d{4}"\}/, JrJackson::Json.dump({"time" => time}, :date_format => "yyyy-MM-dd'T'HH:mm:ss.SSSZ"))
|
344
344
|
end
|
345
345
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jrjackson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.18
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Guy Boertje
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -17,8 +17,8 @@ dependencies:
|
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: '0'
|
19
19
|
name: bundler
|
20
|
-
prerelease: false
|
21
20
|
type: :development
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
@@ -34,8 +34,8 @@ dependencies:
|
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 0.3.2
|
36
36
|
name: jar-dependencies
|
37
|
-
prerelease: false
|
38
37
|
type: :development
|
38
|
+
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - "<"
|
@@ -60,13 +60,13 @@ files:
|
|
60
60
|
- alt_bench.rb
|
61
61
|
- changelog.md
|
62
62
|
- jrjackson.gemspec
|
63
|
-
- lib/com/fasterxml/jackson/core/jackson-annotations/2.
|
64
|
-
- lib/com/fasterxml/jackson/core/jackson-core/2.
|
65
|
-
- lib/com/fasterxml/jackson/core/jackson-databind/2.
|
66
|
-
- lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.
|
63
|
+
- lib/com/fasterxml/jackson/core/jackson-annotations/2.15.2/jackson-annotations-2.15.2.jar
|
64
|
+
- lib/com/fasterxml/jackson/core/jackson-core/2.15.2/jackson-core-2.15.2.jar
|
65
|
+
- lib/com/fasterxml/jackson/core/jackson-databind/2.15.2/jackson-databind-2.15.2.jar
|
66
|
+
- lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.15.2/jackson-module-afterburner-2.15.2.jar
|
67
67
|
- lib/jrjackson.rb
|
68
68
|
- lib/jrjackson/build_info.rb
|
69
|
-
- lib/jrjackson/jars/jrjackson-1.2.
|
69
|
+
- lib/jrjackson/jars/jrjackson-1.2.35.jar
|
70
70
|
- lib/jrjackson/jrjackson.rb
|
71
71
|
- lib/jrjackson_jars.rb
|
72
72
|
- lib/require_relative_patch.rb
|
@@ -134,11 +134,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
requirements:
|
137
|
-
- jar com.fasterxml.jackson.core:jackson-core, 2.
|
138
|
-
- jar com.fasterxml.jackson.core:jackson-annotations, 2.
|
139
|
-
- jar com.fasterxml.jackson.core:jackson-databind, 2.
|
140
|
-
- jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.
|
141
|
-
rubygems_version: 3.2.
|
137
|
+
- jar com.fasterxml.jackson.core:jackson-core, 2.15.2
|
138
|
+
- jar com.fasterxml.jackson.core:jackson-annotations, 2.15.2
|
139
|
+
- jar com.fasterxml.jackson.core:jackson-databind, 2.15.2
|
140
|
+
- jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.15.2
|
141
|
+
rubygems_version: 3.2.33
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: A JRuby wrapper for the java jackson json processor jar
|
data/lib/com/fasterxml/jackson/core/jackson-annotations/2.13.3/jackson-annotations-2.13.3.jar
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|