jrjackson 0.2.1 → 0.2.2
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/README.md +9 -5
- data/dependency-reduced-pom.xml +6 -2
- data/lib/jrjackson/jars/jrjackson-1.2.3.jar +0 -0
- data/lib/jrjackson/version.rb +1 -1
- data/pom.xml +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d1c4ad52124b5b10d5b17ba157f5d7f51cd4f19
|
|
4
|
+
data.tar.gz: 21381583fde4460338bf62312ddc5ae3d2bb484b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05c0daa5a1719b270c8f26269558fafb82002844be119a603970532f88246a104278c268975efcba9ac9afbddf61a235bb0e956ce6feb77695f8bdcee25781f1
|
|
7
|
+
data.tar.gz: e2ffaa73398f0a08b4ca39ca50ee5e0dc9ffad2cd9ab9a1d052aa3b48e8cd2f1692e7225591968b7cf7699fc7a722953000f2ba670fa996598a0d4fcdc2e0494
|
data/README.md
CHANGED
|
@@ -6,15 +6,15 @@ Apache License 2.0 see http://www.apache.org/licenses/LICENSE-2.0
|
|
|
6
6
|
|
|
7
7
|
a jruby library wrapping the JAVA Jackson jars`
|
|
8
8
|
|
|
9
|
-
Version: 0.2.1
|
|
10
|
-
|
|
11
9
|
__NOTE:__ Smile support has been temporarily dropped
|
|
12
10
|
|
|
13
11
|
The code has been refactored to use almost all Java.
|
|
14
12
|
|
|
15
13
|
There is now a MultiJson adapter added for JrJackson
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
#### API
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
JrJackson::Json.load(string, options) -> hash like object
|
|
@@ -49,6 +49,8 @@ serialization. See the wiki for more on this.
|
|
|
49
49
|
|
|
50
50
|
***
|
|
51
51
|
|
|
52
|
+
#### Internals
|
|
53
|
+
|
|
52
54
|
There are two Ruby sub modules of the JrJackson module
|
|
53
55
|
|
|
54
56
|
```JrJackson::Json```, this is the general external facade used by MultiJson, and is pure Ruby.
|
|
@@ -56,12 +58,14 @@ There are two Ruby sub modules of the JrJackson module
|
|
|
56
58
|
```JrJackson::Raw```, this is used by the Json module, it is defined in Java with annotations
|
|
57
59
|
exposing it as a Ruby module with module methods.
|
|
58
60
|
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
#### Benchmarks
|
|
64
|
+
|
|
59
65
|
Credit to Chuck Remes for the benchmark and initial
|
|
60
66
|
investigation when the jruby, json gem and the jackson
|
|
61
67
|
libraries were young.
|
|
62
68
|
|
|
63
|
-
***
|
|
64
|
-
|
|
65
69
|
I compared Json (java) 1.8, Gson 0.6.1 and jackson 2.2.3 on jruby 1.7.4 and OpenJDK 64-Bit Server VM 1.7.0_21-b02
|
|
66
70
|
All the benchmarks were run separately. A 727.9KB string of random json data is read from a file and handled 250 times, thereby attempting to balance invocation and parsing benchmarking.
|
|
67
71
|
|
data/dependency-reduced-pom.xml
CHANGED
|
@@ -12,8 +12,12 @@
|
|
|
12
12
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
13
13
|
<version>3.1</version>
|
|
14
14
|
<configuration>
|
|
15
|
-
<source>1.
|
|
16
|
-
<target>1.
|
|
15
|
+
<source>1.6</source>
|
|
16
|
+
<target>1.6</target>
|
|
17
|
+
<showDeprecation>false</showDeprecation>
|
|
18
|
+
<showWarnings>false</showWarnings>
|
|
19
|
+
<executable>${JAVA_HOME_6}/bin/javac</executable>
|
|
20
|
+
<fork>true</fork>
|
|
17
21
|
</configuration>
|
|
18
22
|
</plugin>
|
|
19
23
|
<plugin>
|
|
Binary file
|
data/lib/jrjackson/version.rb
CHANGED
data/pom.xml
CHANGED
|
@@ -53,8 +53,12 @@
|
|
|
53
53
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
54
54
|
<version>3.1</version>
|
|
55
55
|
<configuration>
|
|
56
|
-
<source>1.
|
|
57
|
-
<target>1.
|
|
56
|
+
<source>1.6</source>
|
|
57
|
+
<target>1.6</target>
|
|
58
|
+
<showDeprecation>false</showDeprecation>
|
|
59
|
+
<showWarnings>false</showWarnings>
|
|
60
|
+
<executable>${JAVA_HOME_6}/bin/javac</executable>
|
|
61
|
+
<fork>true</fork>
|
|
58
62
|
</configuration>
|
|
59
63
|
</plugin>
|
|
60
64
|
<plugin>
|