legion-json 0.1.2 → 0.1.6
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 +5 -5
- data/.circleci/config.yml +35 -143
- data/.rubocop.yml +3 -5
- data/bitbucket-pipelines.yml +12 -11
- data/legion-json.gemspec +13 -5
- data/lib/legion/json/version.rb +1 -1
- metadata +23 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 236669914165ef4e3fa7edc658a131d8f14631918bedc253fba65a67e19ed461
|
|
4
|
+
data.tar.gz: 48c3deff9ec21b3d84b50469b5301f40c0a4d17229455207c0f7c559573010ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 318bdc474652693e9a86bf85c76bbe2581b1bee680f3ccf65683f7639c756979fc4c909b536fb5bcc625d013fd247416a822cdb05eb1b19dd88d24bd4db933a6
|
|
7
|
+
data.tar.gz: e8a8ff464ac97be89a585402d4dd16f5e377b3767958554394d44d7cd44564636b13e4f9492cb53949a06c4bd1dc831154cb69ef50e1a67cc40d9d8ef5db381f
|
data/.circleci/config.yml
CHANGED
|
@@ -1,169 +1,61 @@
|
|
|
1
|
-
version: 2
|
|
1
|
+
version: 2.1
|
|
2
2
|
orbs:
|
|
3
|
-
|
|
3
|
+
ruby: circleci/ruby@0.2.1
|
|
4
|
+
|
|
4
5
|
jobs:
|
|
5
6
|
"rubocop":
|
|
6
7
|
docker:
|
|
7
|
-
- image: circleci/ruby:2.
|
|
8
|
+
- image: circleci/ruby:2.5-node
|
|
8
9
|
steps:
|
|
9
10
|
- checkout
|
|
10
|
-
-
|
|
11
|
+
- ruby/load-cache
|
|
12
|
+
- ruby/install-deps
|
|
11
13
|
- run:
|
|
12
14
|
name: Run Rubocop
|
|
13
|
-
command: rubocop
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
"ruby-2.0":
|
|
17
|
-
docker:
|
|
18
|
-
- image: circleci/ruby:2.0
|
|
19
|
-
steps:
|
|
20
|
-
- checkout
|
|
21
|
-
- run:
|
|
22
|
-
name: Bundle Install
|
|
23
|
-
command: bundle install
|
|
24
|
-
- run:
|
|
25
|
-
name: Run RSpec
|
|
26
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
27
|
-
when: always
|
|
28
|
-
- store_test_results:
|
|
29
|
-
path: test-results
|
|
30
|
-
"ruby-2.1":
|
|
15
|
+
command: bundle exec rubocop
|
|
16
|
+
- ruby/save-cache
|
|
17
|
+
"ruby-two-five":
|
|
31
18
|
docker:
|
|
32
|
-
- image: circleci/ruby:2.
|
|
19
|
+
- image: circleci/ruby:2.5
|
|
20
|
+
- image: memcached:1.5-alpine
|
|
33
21
|
steps:
|
|
34
22
|
- checkout
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
41
|
-
when: always
|
|
42
|
-
- store_test_results:
|
|
43
|
-
path: test-results
|
|
44
|
-
"ruby-2.2":
|
|
23
|
+
- ruby/load-cache
|
|
24
|
+
- ruby/install-deps
|
|
25
|
+
- ruby/run-tests
|
|
26
|
+
- ruby/save-cache
|
|
27
|
+
"ruby-two-six":
|
|
45
28
|
docker:
|
|
46
|
-
- image: circleci/ruby:2.
|
|
29
|
+
- image: circleci/ruby:2.6
|
|
30
|
+
- image: memcached:1.5-alpine
|
|
47
31
|
steps:
|
|
48
32
|
- checkout
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
55
|
-
when: always
|
|
56
|
-
- store_test_results:
|
|
57
|
-
path: test-results
|
|
58
|
-
|
|
59
|
-
"ruby-2.3":
|
|
33
|
+
- ruby/load-cache
|
|
34
|
+
- ruby/install-deps
|
|
35
|
+
- ruby/run-tests
|
|
36
|
+
- ruby/save-cache
|
|
37
|
+
"ruby-two-seven":
|
|
60
38
|
docker:
|
|
61
|
-
- image: circleci/ruby:2.
|
|
39
|
+
- image: circleci/ruby:2.7
|
|
40
|
+
- image: memcached:1.5-alpine
|
|
62
41
|
steps:
|
|
63
42
|
- checkout
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
name: Run RSpec
|
|
69
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
70
|
-
when: always
|
|
71
|
-
- store_test_results:
|
|
72
|
-
path: test-results
|
|
73
|
-
|
|
74
|
-
"ruby-2.4":
|
|
75
|
-
docker:
|
|
76
|
-
- image: circleci/ruby:2.4-node
|
|
77
|
-
steps:
|
|
78
|
-
- checkout
|
|
79
|
-
- run:
|
|
80
|
-
name: Bundle Install
|
|
81
|
-
command: bundle install
|
|
82
|
-
- run:
|
|
83
|
-
name: Run RSpec
|
|
84
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
85
|
-
when: always
|
|
86
|
-
- store_test_results:
|
|
87
|
-
path: test-results
|
|
88
|
-
"ruby-2.5":
|
|
89
|
-
docker:
|
|
90
|
-
- image: circleci/ruby:2.5-node
|
|
91
|
-
steps:
|
|
92
|
-
- checkout
|
|
93
|
-
- run:
|
|
94
|
-
name: Bundle Install
|
|
95
|
-
command: bundle install
|
|
96
|
-
- run:
|
|
97
|
-
name: Run RSpec
|
|
98
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
99
|
-
when: always
|
|
100
|
-
- store_test_results:
|
|
101
|
-
path: test-results
|
|
102
|
-
"ruby-2.6":
|
|
103
|
-
docker:
|
|
104
|
-
- image: circleci/ruby:2.6-node
|
|
105
|
-
steps:
|
|
106
|
-
- checkout
|
|
107
|
-
- run:
|
|
108
|
-
name: Bundle Install
|
|
109
|
-
command: bundle install
|
|
110
|
-
- run:
|
|
111
|
-
name: Run RSpec
|
|
112
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
113
|
-
when: always
|
|
114
|
-
- store_test_results:
|
|
115
|
-
path: test-results
|
|
116
|
-
"jruby-9.2":
|
|
117
|
-
docker:
|
|
118
|
-
- image: circleci/jruby:9.2
|
|
119
|
-
steps:
|
|
120
|
-
- checkout
|
|
121
|
-
- run:
|
|
122
|
-
name: Bundle Install
|
|
123
|
-
command: bundle install
|
|
124
|
-
- run:
|
|
125
|
-
name: Run RSpec
|
|
126
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
127
|
-
when: always
|
|
128
|
-
- store_test_results:
|
|
129
|
-
path: test-results
|
|
43
|
+
- ruby/load-cache
|
|
44
|
+
- ruby/install-deps
|
|
45
|
+
- ruby/run-tests
|
|
46
|
+
- ruby/save-cache
|
|
130
47
|
|
|
131
48
|
workflows:
|
|
132
49
|
version: 2
|
|
133
|
-
|
|
50
|
+
rubocop-rspec:
|
|
134
51
|
jobs:
|
|
135
52
|
- rubocop
|
|
136
|
-
- ruby-
|
|
137
|
-
requires:
|
|
138
|
-
- ruby-2.4
|
|
139
|
-
filters:
|
|
140
|
-
branches:
|
|
141
|
-
only: /\bdevelop\b|\bmaster\b/
|
|
142
|
-
- ruby-2.3:
|
|
143
|
-
requires:
|
|
144
|
-
- ruby-2.4
|
|
145
|
-
filters:
|
|
146
|
-
branches:
|
|
147
|
-
only: /\bdevelop\b|\bmaster\b/
|
|
148
|
-
- ruby-2.4:
|
|
53
|
+
- ruby-two-five:
|
|
149
54
|
requires:
|
|
150
55
|
- rubocop
|
|
151
|
-
- ruby-
|
|
152
|
-
requires:
|
|
153
|
-
- ruby-2.4
|
|
154
|
-
filters:
|
|
155
|
-
branches:
|
|
156
|
-
only: /\bdevelop\b|\bmaster\b/
|
|
157
|
-
- ruby-2.6:
|
|
56
|
+
- ruby-two-six:
|
|
158
57
|
requires:
|
|
159
|
-
- ruby-
|
|
160
|
-
|
|
161
|
-
branches:
|
|
162
|
-
only: /\bdevelop\b|\bmaster\b/
|
|
163
|
-
- jruby-9.2:
|
|
58
|
+
- ruby-two-five
|
|
59
|
+
- ruby-two-seven:
|
|
164
60
|
requires:
|
|
165
|
-
- ruby-
|
|
166
|
-
- ruby-2.3
|
|
167
|
-
- ruby-2.4
|
|
168
|
-
- ruby-2.5
|
|
169
|
-
- ruby-2.6
|
|
61
|
+
- ruby-two-five
|
data/.rubocop.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require: rubocop-performance
|
|
2
|
-
|
|
2
|
+
Layout/LineLength:
|
|
3
3
|
Max: 120
|
|
4
4
|
Metrics/MethodLength:
|
|
5
5
|
Max: 30
|
|
@@ -11,15 +11,13 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
|
11
11
|
EnforcedStyle: space
|
|
12
12
|
Style/SymbolArray:
|
|
13
13
|
Enabled: true
|
|
14
|
-
Layout/
|
|
14
|
+
Layout/HashAlignment:
|
|
15
15
|
EnforcedHashRocketStyle: table
|
|
16
16
|
EnforcedColonStyle: table
|
|
17
|
-
Style/HashSyntax:
|
|
18
|
-
EnforcedStyle: ruby19_no_mixed_keys
|
|
19
17
|
Style/Documentation:
|
|
20
18
|
Enabled: false
|
|
21
19
|
AllCops:
|
|
22
|
-
TargetRubyVersion: 2.
|
|
20
|
+
TargetRubyVersion: 2.5
|
|
23
21
|
Style/FrozenStringLiteralComment:
|
|
24
22
|
Enabled: false
|
|
25
23
|
Naming/FileName:
|
data/bitbucket-pipelines.yml
CHANGED
|
@@ -4,22 +4,23 @@ pipelines:
|
|
|
4
4
|
tags:
|
|
5
5
|
'*':
|
|
6
6
|
- step:
|
|
7
|
-
name: Deploy to Rubygems
|
|
7
|
+
name: Deploy to Rubygems JRuby
|
|
8
|
+
image: jruby:9.2
|
|
9
|
+
deployment: staging
|
|
10
|
+
script:
|
|
11
|
+
- bash .circleci/setup-rubygems.sh
|
|
12
|
+
- jruby -S gem install bundler bundle git
|
|
13
|
+
- jruby -S bundle update
|
|
14
|
+
- jruby -S gem build legion-json.gemspec
|
|
15
|
+
- jruby -S gem push "legion-json-java-$(git describe --tags).gem"
|
|
16
|
+
- step:
|
|
17
|
+
name: Deploy to Rubygems MRI
|
|
18
|
+
image: ruby:2.4.0
|
|
8
19
|
deployment: production
|
|
9
20
|
script:
|
|
10
21
|
- bash .circleci/setup-rubygems.sh
|
|
11
22
|
- gem build legion-json.gemspec
|
|
12
23
|
- gem push "legion-json-$(git describe --tags).gem"
|
|
13
|
-
branches:
|
|
14
|
-
master:
|
|
15
|
-
- step:
|
|
16
|
-
caches:
|
|
17
|
-
- bundler
|
|
18
|
-
script:
|
|
19
|
-
- gem install bundle rubocop
|
|
20
|
-
- bundle install
|
|
21
|
-
- rubocop
|
|
22
|
-
- rake
|
|
23
24
|
definitions:
|
|
24
25
|
caches:
|
|
25
26
|
bundler: vendor/bundle
|
data/legion-json.gemspec
CHANGED
|
@@ -12,7 +12,15 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = 'A gem used to load and use JSON objects inside the Legion framework'
|
|
13
13
|
spec.homepage = 'https://bitbucket.org/legion-io/legion-json'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
|
-
spec.required_ruby_version = '~> 2.
|
|
15
|
+
spec.required_ruby_version = '~> 2.5'
|
|
16
|
+
spec.metadata = {
|
|
17
|
+
'bug_tracker_uri' => 'https://legionio.atlassian.net/projects/JSON/issues',
|
|
18
|
+
'changelog_uri' => 'https://legionio.atlassian.net/wiki/spaces/LEGION/pages/24674324/JSON',
|
|
19
|
+
'documentation_uri' => 'https://legionio.atlassian.net/wiki/spaces/LEGION/pages/24674324/JSON',
|
|
20
|
+
'homepage_uri' => 'https://legionio.atlassian.net/wiki/spaces/LEGION',
|
|
21
|
+
'source_code_uri' => 'https://bitbucket.org/legion-io/legion-json',
|
|
22
|
+
'wiki_uri' => 'https://legionio.atlassian.net/wiki/spaces/LEGION/pages/24674324/JSON'
|
|
23
|
+
}
|
|
16
24
|
|
|
17
25
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
18
26
|
f.match(%r{^(test|spec|features)/})
|
|
@@ -23,10 +31,10 @@ Gem::Specification.new do |spec|
|
|
|
23
31
|
|
|
24
32
|
spec.add_development_dependency 'bundler'
|
|
25
33
|
spec.add_development_dependency 'codecov', '~> 0'
|
|
26
|
-
spec.add_development_dependency 'rake'
|
|
27
|
-
spec.add_development_dependency 'rspec'
|
|
28
|
-
spec.add_development_dependency 'rspec_junit_formatter'
|
|
29
|
-
spec.add_development_dependency 'rubocop'
|
|
34
|
+
spec.add_development_dependency 'rake'
|
|
35
|
+
spec.add_development_dependency 'rspec'
|
|
36
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
|
37
|
+
spec.add_development_dependency 'rubocop'
|
|
30
38
|
spec.add_development_dependency 'rubocop-performance'
|
|
31
39
|
spec.add_dependency 'json', '~> 2.1'
|
|
32
40
|
if RUBY_ENGINE == 'jruby'
|
data/lib/legion/json/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esity
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -42,56 +42,56 @@ dependencies:
|
|
|
42
42
|
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - "
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
54
|
+
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rspec
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rspec_junit_formatter
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - "
|
|
73
|
+
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- - "
|
|
80
|
+
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: rubocop
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- - "
|
|
87
|
+
- - ">="
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '0'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- - "
|
|
94
|
+
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
@@ -164,7 +164,13 @@ files:
|
|
|
164
164
|
homepage: https://bitbucket.org/legion-io/legion-json
|
|
165
165
|
licenses:
|
|
166
166
|
- MIT
|
|
167
|
-
metadata:
|
|
167
|
+
metadata:
|
|
168
|
+
bug_tracker_uri: https://legionio.atlassian.net/projects/JSON/issues
|
|
169
|
+
changelog_uri: https://legionio.atlassian.net/wiki/spaces/LEGION/pages/24674324/JSON
|
|
170
|
+
documentation_uri: https://legionio.atlassian.net/wiki/spaces/LEGION/pages/24674324/JSON
|
|
171
|
+
homepage_uri: https://legionio.atlassian.net/wiki/spaces/LEGION
|
|
172
|
+
source_code_uri: https://bitbucket.org/legion-io/legion-json
|
|
173
|
+
wiki_uri: https://legionio.atlassian.net/wiki/spaces/LEGION/pages/24674324/JSON
|
|
168
174
|
post_install_message:
|
|
169
175
|
rdoc_options: []
|
|
170
176
|
require_paths:
|
|
@@ -173,15 +179,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
173
179
|
requirements:
|
|
174
180
|
- - "~>"
|
|
175
181
|
- !ruby/object:Gem::Version
|
|
176
|
-
version: '2.
|
|
182
|
+
version: '2.5'
|
|
177
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
184
|
requirements:
|
|
179
185
|
- - ">="
|
|
180
186
|
- !ruby/object:Gem::Version
|
|
181
187
|
version: '0'
|
|
182
188
|
requirements: []
|
|
183
|
-
|
|
184
|
-
rubygems_version: 2.6.11
|
|
189
|
+
rubygems_version: 3.0.3
|
|
185
190
|
signing_key:
|
|
186
191
|
specification_version: 4
|
|
187
192
|
summary: Legion JSON
|