jrjackson 0.4.16-java → 0.4.17-java
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/Gemfile +2 -0
- data/README.md +13 -3
- data/changelog.md +3 -0
- data/lib/com/fasterxml/jackson/core/jackson-annotations/{2.13.3/jackson-annotations-2.13.3.jar → 2.14.1/jackson-annotations-2.14.1.jar} +0 -0
- data/lib/com/fasterxml/jackson/core/jackson-core/2.14.1/jackson-core-2.14.1.jar +0 -0
- data/lib/com/fasterxml/jackson/core/jackson-databind/{2.13.3/jackson-databind-2.13.3.jar → 2.14.1/jackson-databind-2.14.1.jar} +0 -0
- data/lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.14.1/jackson-module-afterburner-2.14.1.jar +0 -0
- data/lib/jrjackson/build_info.rb +5 -5
- data/lib/jrjackson/jars/{jrjackson-1.2.33.jar → jrjackson-1.2.34.jar} +0 -0
- data/lib/jrjackson_jars.rb +8 -8
- data/pom.xml +7 -7
- data/test/jrjackson_test.rb +1 -1
- metadata +12 -12
- data/lib/com/fasterxml/jackson/core/jackson-core/2.13.3/jackson-core-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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6fe5722b4b20de3c9a0dcfe5d79865151a9ae3033a142dc2fc18e9b03239be
|
4
|
+
data.tar.gz: 4fad72b7fc795974643358327976923708a691c287a96bb30fe2d553f21ad2ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a07a64da703c21c70de222f21f74106426c779693dfc148e131768a721126d85dedfb4e171a1a15ef40a0ad383942d0c51df60f50e4dc5d76ff18b6f6b0eb97
|
7
|
+
data.tar.gz: c4cb5012595a3d3013b821949cee2d83b848a26905f249217fe1a25d7fdd263d3f529bdbb3009885b48d5b95ee50699bd082c10cc95842420b91a691741f4727
|
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.17'
|
5
5
|
end
|
6
6
|
|
7
7
|
def self.release_date
|
8
|
-
'
|
8
|
+
'2023-01-17'
|
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.14.1'
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.jackson_databind_version
|
20
|
-
'2.
|
20
|
+
'2.14.1'
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.jar_version
|
24
|
-
'1.2.
|
24
|
+
'1.2.34'
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
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-
|
6
|
-
require 'com/fasterxml/jackson/core/jackson-databind/2.
|
7
|
-
require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.
|
8
|
-
require 'com/fasterxml/jackson/core/jackson-
|
5
|
+
require 'com/fasterxml/jackson/core/jackson-core/2.14.1/jackson-core-2.14.1.jar'
|
6
|
+
require 'com/fasterxml/jackson/core/jackson-databind/2.14.1/jackson-databind-2.14.1.jar'
|
7
|
+
require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.14.1/jackson-module-afterburner-2.14.1.jar'
|
8
|
+
require 'com/fasterxml/jackson/core/jackson-annotations/2.14.1/jackson-annotations-2.14.1.jar'
|
9
9
|
end
|
10
10
|
|
11
11
|
if defined? Jars
|
12
|
-
require_jar 'com.fasterxml.jackson.core', 'jackson-
|
13
|
-
require_jar 'com.fasterxml.jackson.core', 'jackson-databind', '2.
|
14
|
-
require_jar 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.
|
15
|
-
require_jar 'com.fasterxml.jackson.core', 'jackson-
|
12
|
+
require_jar 'com.fasterxml.jackson.core', 'jackson-core', '2.14.1'
|
13
|
+
require_jar 'com.fasterxml.jackson.core', 'jackson-databind', '2.14.1'
|
14
|
+
require_jar 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.14.1'
|
15
|
+
require_jar 'com.fasterxml.jackson.core', 'jackson-annotations', '2.14.1'
|
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.34</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.14.1</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.14.1</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.14.1</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.14.1</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.34</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.34.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.17
|
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-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.14.1/jackson-annotations-2.14.1.jar
|
64
|
+
- lib/com/fasterxml/jackson/core/jackson-core/2.14.1/jackson-core-2.14.1.jar
|
65
|
+
- lib/com/fasterxml/jackson/core/jackson-databind/2.14.1/jackson-databind-2.14.1.jar
|
66
|
+
- lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.14.1/jackson-module-afterburner-2.14.1.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.34.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.14.1
|
138
|
+
- jar com.fasterxml.jackson.core:jackson-annotations, 2.14.1
|
139
|
+
- jar com.fasterxml.jackson.core:jackson-databind, 2.14.1
|
140
|
+
- jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.14.1
|
141
|
+
rubygems_version: 3.2.29
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: A JRuby wrapper for the java jackson json processor jar
|
Binary file
|