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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba3a6575a97381358dd1545cab46cd67180bdd1a7ce482bdf4fb449f5ff05b05
4
- data.tar.gz: 4457a9ddeb2bf3dadceccc2e487c845b3b9d5f03461979236568b638e62eafd2
3
+ metadata.gz: ac6fe5722b4b20de3c9a0dcfe5d79865151a9ae3033a142dc2fc18e9b03239be
4
+ data.tar.gz: 4fad72b7fc795974643358327976923708a691c287a96bb30fe2d553f21ad2ce
5
5
  SHA512:
6
- metadata.gz: 4bb9543ea871c12404f0c43198028b7e82d102b79be9046e7f2078796e47620519a1762c37facf15b8ce292983847fb7c9e9cb187c58a7b115ef00863bd385d8
7
- data.tar.gz: 8c2d0aa72ba4074137ee4d715b755f6a0406dd4b2ea47b4e9ddc96c1e8be8d420db47df1be0dfc21e99fe19c927cfa5b87d0d229dfb14cdb6994e6051bc7d1a1
6
+ metadata.gz: 8a07a64da703c21c70de222f21f74106426c779693dfc148e131768a721126d85dedfb4e171a1a15ef40a0ad383942d0c51df60f50e4dc5d76ff18b6f6b0eb97
7
+ data.tar.gz: c4cb5012595a3d3013b821949cee2d83b848a26905f249217fe1a25d7fdd263d3f529bdbb3009885b48d5b95ee50699bd082c10cc95842420b91a691741f4727
data/Gemfile CHANGED
@@ -5,6 +5,8 @@ group :development do
5
5
  gem 'gson', '>= 0.6'
6
6
  gem 'json', '~> 1.8'
7
7
  gem 'benchmark-ips'
8
+ gem 'rake'
9
+ gem 'ruby-maven'
8
10
  end
9
11
 
10
12
  gemspec
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 datatypes)
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 selialization session (i.e. it may use the JSON gem)
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
@@ -1,3 +1,6 @@
1
+ v0.4.17
2
+ Bump jackson and jackson-databind to v2.14.1
3
+
1
4
  v0.4.16
2
5
  Publish v0.4.15 again without world writable files
3
6
 
@@ -1,11 +1,11 @@
1
1
  module JrJackson
2
2
  module BuildInfo
3
3
  def self.version
4
- '0.4.16'
4
+ '0.4.17'
5
5
  end
6
6
 
7
7
  def self.release_date
8
- '2022-07-08'
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.13.3'
16
+ '2.14.1'
17
17
  end
18
18
 
19
19
  def self.jackson_databind_version
20
- '2.13.3'
20
+ '2.14.1'
21
21
  end
22
22
 
23
23
  def self.jar_version
24
- '1.2.33'
24
+ '1.2.34'
25
25
  end
26
26
 
27
27
  private
@@ -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.13.3/jackson-annotations-2.13.3.jar'
6
- require 'com/fasterxml/jackson/core/jackson-databind/2.13.3/jackson-databind-2.13.3.jar'
7
- require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.13.3/jackson-module-afterburner-2.13.3.jar'
8
- require 'com/fasterxml/jackson/core/jackson-core/2.13.3/jackson-core-2.13.3.jar'
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-annotations', '2.13.3'
13
- require_jar 'com.fasterxml.jackson.core', 'jackson-databind', '2.13.3'
14
- require_jar 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.13.3'
15
- require_jar 'com.fasterxml.jackson.core', 'jackson-core', '2.13.3'
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.33</version>
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.13.3</version>
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.13.3</version>
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.13.3</version>
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.13.3</version>
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.33</finalName>
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.33.jar</include>
132
+ <include>jrjackson-1.2.34.jar</include>
133
133
  <include>*/**/*.jar</include>
134
134
  </includes>
135
135
  </fileset>
@@ -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.16
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: 2022-07-08 00:00:00.000000000 Z
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.13.3/jackson-annotations-2.13.3.jar
64
- - lib/com/fasterxml/jackson/core/jackson-core/2.13.3/jackson-core-2.13.3.jar
65
- - lib/com/fasterxml/jackson/core/jackson-databind/2.13.3/jackson-databind-2.13.3.jar
66
- - lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.13.3/jackson-module-afterburner-2.13.3.jar
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.33.jar
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.13.3
138
- - jar com.fasterxml.jackson.core:jackson-annotations, 2.13.3
139
- - jar com.fasterxml.jackson.core:jackson-databind, 2.13.3
140
- - jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.13.3
141
- rubygems_version: 3.2.3
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