jrjackson 0.4.15-java → 0.4.17-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Mavenfile +1 -7
- data/README.md +13 -3
- data/Rakefile +7 -1
- data/changelog.md +9 -0
- data/jrjackson.gemspec +1 -1
- 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.32.jar → jrjackson-1.2.34.jar} +0 -0
- data/lib/jrjackson_jars.rb +8 -8
- data/pom.xml +9 -26
- data/test/jrjackson_test.rb +1 -1
- metadata +15 -15
- 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/Mavenfile
CHANGED
@@ -14,7 +14,7 @@ properties 'project.build.sourceEncoding' => 'UTF-8',
|
|
14
14
|
|
15
15
|
jar 'junit:junit', '4.11', :scope => :test
|
16
16
|
|
17
|
-
jar 'org.jruby:jruby', '9.2.
|
17
|
+
jar 'org.jruby:jruby', '9.2.13.0', :scope => :provided
|
18
18
|
|
19
19
|
plugin :compiler, '3.1', :source => '1.8', :target => '1.8',
|
20
20
|
:showDeprecation => false,
|
@@ -23,9 +23,3 @@ plugin :compiler, '3.1', :source => '1.8', :target => '1.8',
|
|
23
23
|
:fork => true
|
24
24
|
|
25
25
|
plugin :surefire, '2.17', :skipTests => true
|
26
|
-
|
27
|
-
# since bundle install does not vendor our jars we need to it manually
|
28
|
-
plugin 'org.torquebox.mojo:jruby9-exec-maven-plugin', '0.3.1' do
|
29
|
-
execute_goal :exec, :id => 'vendor-jars', :phase => 'prepare-package',
|
30
|
-
:script => "require 'jars/installer';Jars::Installer.vendor_jars!"
|
31
|
-
end
|
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
|
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/Rakefile
CHANGED
@@ -16,6 +16,13 @@ end
|
|
16
16
|
desc "Pack jar after compiling classes, use this to rebuild the pom.xml"
|
17
17
|
task :compile do
|
18
18
|
RubyMaven.exec('prepare-package')
|
19
|
+
# after packaging the jrjackson-x.y.z.jar vendor jar dependencies
|
20
|
+
Rake::Task['vendor_jars'].invoke
|
21
|
+
end
|
22
|
+
|
23
|
+
task :vendor_jars do
|
24
|
+
require 'jars/installer'
|
25
|
+
Jars::Installer.vendor_jars!
|
19
26
|
end
|
20
27
|
|
21
28
|
desc "Clean build"
|
@@ -30,4 +37,3 @@ Gem::PackageTask.new( eval File.read( 'jrjackson.gemspec' ) ) do
|
|
30
37
|
desc 'Pack gem'
|
31
38
|
task :package => [:compile]
|
32
39
|
end
|
33
|
-
|
data/changelog.md
CHANGED
data/jrjackson.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.license = 'Apache License 2.0'
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_development_dependency 'bundler'
|
21
|
+
s.add_development_dependency 'bundler'
|
22
22
|
s.add_development_dependency 'jar-dependencies', '< 2.0', '>= 0.3.2'
|
23
23
|
|
24
24
|
jackson_version = JrJackson::BuildInfo.jackson_version
|
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>
|
@@ -40,7 +40,7 @@ DO NOT MODIFY - GENERATED CODE
|
|
40
40
|
<dependency>
|
41
41
|
<groupId>rubygems</groupId>
|
42
42
|
<artifactId>bundler</artifactId>
|
43
|
-
<version>[
|
43
|
+
<version>[0,)</version>
|
44
44
|
<type>gem</type>
|
45
45
|
<scope>test</scope>
|
46
46
|
</dependency>
|
@@ -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>
|
@@ -80,7 +80,7 @@ DO NOT MODIFY - GENERATED CODE
|
|
80
80
|
<dependency>
|
81
81
|
<groupId>org.jruby</groupId>
|
82
82
|
<artifactId>jruby</artifactId>
|
83
|
-
<version>9.2.
|
83
|
+
<version>9.2.13.0</version>
|
84
84
|
<scope>provided</scope>
|
85
85
|
</dependency>
|
86
86
|
</dependencies>
|
@@ -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>
|
@@ -163,23 +163,6 @@ DO NOT MODIFY - GENERATED CODE
|
|
163
163
|
<skipTests>true</skipTests>
|
164
164
|
</configuration>
|
165
165
|
</plugin>
|
166
|
-
<plugin>
|
167
|
-
<groupId>org.torquebox.mojo</groupId>
|
168
|
-
<artifactId>jruby9-exec-maven-plugin</artifactId>
|
169
|
-
<version>0.3.1</version>
|
170
|
-
<executions>
|
171
|
-
<execution>
|
172
|
-
<id>vendor-jars</id>
|
173
|
-
<phase>prepare-package</phase>
|
174
|
-
<goals>
|
175
|
-
<goal>exec</goal>
|
176
|
-
</goals>
|
177
|
-
<configuration>
|
178
|
-
<script>require 'jars/installer';Jars::Installer.vendor_jars!</script>
|
179
|
-
</configuration>
|
180
|
-
</execution>
|
181
|
-
</executions>
|
182
|
-
</plugin>
|
183
166
|
</plugins>
|
184
167
|
</build>
|
185
168
|
</project>
|
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,29 +1,29 @@
|
|
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
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
18
|
+
version: '0'
|
19
19
|
name: bundler
|
20
20
|
prerelease: false
|
21
21
|
type: :development
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
@@ -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,10 +134,10 @@ 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.
|
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
141
|
rubygems_version: 3.2.29
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
Binary file
|