legion-json 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 7fc66ec01a80c1d2f22776515bd09207a5a99141
4
- data.tar.gz: 5dc901b48f5a20303d102367d7d6bb6ba0042355
3
+ metadata.gz: 9fd27e1938e4ce4943fd3ae830beddd4a4b82e8a
4
+ data.tar.gz: 919aba9d5e362b7a937d15c1122a11a7e3807560
5
5
  SHA512:
6
- metadata.gz: 2da309a5d787f236506b51fd122163453d838f5d6a7345faf68840248946b30344e7c7ba12fa12f7de93770eb05637e4623378adb2de5f8cb9d2c2871f537013
7
- data.tar.gz: f2bfaff8d1efafdcdf4fd5845701d96a5b562e49ca6315f33f5bba80aaca32a339efd166884568b1133a92a5fbae50ade0d5b07c0143ba6c9422fb8854626a1a
6
+ metadata.gz: b8c18eddc300cc55e8e0d60a8221003bb86611f1cd2e7057fbc07d848a5ddaf6b88c1599480e6466f78a1a754052e5827254ea4f4111926b46530240696cb8f7
7
+ data.tar.gz: 37d3070b1b639053448d04afd50fc83248d1a27b97a8f619a6380f2656b37af0cf174e94eff607fdb767dfc3f15f3a8bf163dcd28713e7b46d6336d14f569540
data/.gitignore CHANGED
@@ -9,6 +9,8 @@
9
9
  /tmp/
10
10
  /rspec/
11
11
  /test-results/
12
+ *.gem
13
+ *.pem
12
14
 
13
15
  # rspec failure tracking
14
16
  .rspec_status
File without changes
@@ -0,0 +1,9 @@
1
+ comment: false
2
+ coverage:
3
+ status:
4
+ patch:
5
+ default:
6
+ target: '100'
7
+ project:
8
+ default:
9
+ target: '100'
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'legion/json/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = 'legion-json'
6
+ spec.name = (RUBY_ENGINE == 'jruby' ? 'legion-json-java' : 'legion-json')
7
7
  spec.version = Legion::Json::VERSION
8
8
  spec.authors = ['Esity']
9
9
  spec.email = ['matthewdiverson@gmail.com']
@@ -13,9 +13,12 @@ module Legion
13
13
  # @return [Object] parser.
14
14
  def setup!
15
15
  if RUBY_ENGINE == 'jruby'
16
+ require 'jrjackson'
16
17
  require 'legion/json/jrjackson'
17
18
  @parser = Legion::JSON::JrJackson.new
18
19
  else
20
+ require 'oj'
21
+ Oj.default_options = { mode: :compat }
19
22
  require 'legion/json/oj'
20
23
  @parser = Legion::JSON::Oj.new
21
24
  end
@@ -1,5 +1,3 @@
1
- require 'jrjackson'
2
-
3
1
  module Legion
4
2
  module JSON
5
3
  # The Legion JSON parser when running on JRuby.
@@ -1,6 +1,3 @@
1
- require 'oj'
2
- Oj.default_options = { mode: :compat }
3
-
4
1
  module Legion
5
2
  module JSON
6
3
  # The Legion JSON parser when running on MRI.
@@ -1,5 +1,5 @@
1
1
  module Legion
2
2
  module Json
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-29 00:00:00.000000000 Z
11
+ date: 2019-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -131,7 +131,7 @@ extra_rdoc_files: []
131
131
  files:
132
132
  - ".circleci/config.yml"
133
133
  - ".gitignore"
134
- - ".rubocop"
134
+ - ".rubocop.yml"
135
135
  - Gemfile
136
136
  - LICENSE.txt
137
137
  - README.md
@@ -139,6 +139,7 @@ files:
139
139
  - bin/console
140
140
  - bin/setup
141
141
  - bitbucket-pipelines.yml
142
+ - codecov.yml
142
143
  - legion-json.gemspec
143
144
  - lib/legion/json.rb
144
145
  - lib/legion/json/jrjackson.rb
@@ -165,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
166
  version: '0'
166
167
  requirements: []
167
168
  rubyforge_project:
168
- rubygems_version: 2.6.14
169
+ rubygems_version: 2.6.12
169
170
  signing_key:
170
171
  specification_version: 4
171
172
  summary: Legion JSON