legion-json 1.2.0 → 1.2.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
  SHA256:
3
- metadata.gz: a311ed10affbc674c08cc97946b5085124a18eef12063a2251fc56ba1e0ab1ea
4
- data.tar.gz: 19dec28ecc80573ef9869b78d2a8a51a886e32c1e71c12b82c69e547d59f5593
3
+ metadata.gz: 11ab7448be6e9b13f53af4616d69769eb6fc4dd83f816f5b9d2deb85bc0849a2
4
+ data.tar.gz: 0d27d2aaaa7fd763578f5d1ace8dbf844d4e0d5c85c91ebc6485b64c884406be
5
5
  SHA512:
6
- metadata.gz: 9659cdb65d8c4e0a0ae1538f4719a8a646e4674debacf7b99cbb64afac3223dc69e731e05cdd32d54e3ee33f134bd4c294108080ea46c84d819d13794acfa3a2
7
- data.tar.gz: 24bcb5e6dfe3bc7ed25f6aeaa35577d3ec57fc95eefe024dde6ce72986d6c00ec58181c191727de73321e85fcd7e3dafc04d7f57223ab3a16f8aab9d546721d4
6
+ metadata.gz: a0bd1762d708ec6c4bb7781fbbd77d2ce165b4d0f68e3a64d221d785751b622d8a6f681531d9461d92ca453e13be6d9d0571bad4008d0d4f83bc9d7e3f8e579a
7
+ data.tar.gz: 79a754a90f0fcc39efc1bfccf1d894019ae329d06aeb6ece45220a31498a9f02e3593ed72334817db198a06f932f32f78091716df9d656ea360cb56ab2e53303
@@ -0,0 +1,16 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+
7
+ jobs:
8
+ ci:
9
+ uses: LegionIO/.github/.github/workflows/ci.yml@main
10
+
11
+ release:
12
+ needs: ci
13
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
14
+ uses: LegionIO/.github/.github/workflows/release.yml@main
15
+ secrets:
16
+ rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
data/.rubocop.yml CHANGED
@@ -1,22 +1,51 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.4
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+
1
6
  Layout/LineLength:
2
- Max: 120
3
- Exclude:
4
- - '*.gemspec'
7
+ Max: 160
8
+
9
+ Layout/SpaceAroundEqualsInParameterDefault:
10
+ EnforcedStyle: space
11
+
12
+ Layout/HashAlignment:
13
+ EnforcedHashRocketStyle: table
14
+ EnforcedColonStyle: table
15
+
5
16
  Metrics/MethodLength:
6
- Max: 30
17
+ Max: 50
18
+
7
19
  Metrics/ClassLength:
8
20
  Max: 1500
21
+
22
+ Metrics/ModuleLength:
23
+ Max: 1500
24
+
9
25
  Metrics/BlockLength:
10
- Max: 50
11
- Style/OptionalBooleanParameter:
12
- Enabled: false
26
+ Max: 40
27
+ AllowedPatterns: ['describe', 'context', 'it', 'shared_examples']
28
+ Exclude:
29
+ - 'spec/**/*'
30
+
31
+ Metrics/AbcSize:
32
+ Max: 60
33
+
34
+ Metrics/CyclomaticComplexity:
35
+ Max: 15
36
+
37
+ Metrics/PerceivedComplexity:
38
+ Max: 17
39
+
13
40
  Style/Documentation:
14
41
  Enabled: false
15
- AllCops:
16
- TargetRubyVersion: 2.5
17
- NewCops: enable
18
- SuggestExtensions: false
42
+
43
+ Style/SymbolArray:
44
+ Enabled: true
45
+
19
46
  Style/FrozenStringLiteralComment:
47
+ Enabled: true
48
+ EnforcedStyle: always
49
+
50
+ Naming/FileName:
20
51
  Enabled: false
21
- Gemspec/RequiredRubyVersion:
22
- Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.8
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # Legion::JSON
2
2
 
3
+ ## [1.2.1] - 2026-03-22
4
+
5
+ ### Added
6
+ - `Legion::JSON::Helper` mixin module with `json_load` and `json_dump` convenience methods for LEX extensions
7
+
3
8
  ## v1.2.0
4
- Moving from BitBucket to GitHub inside the Optum org. All git history is reset from this point on
9
+ Moving from BitBucket to GitHub. All git history is reset from this point on
data/CLAUDE.md ADDED
@@ -0,0 +1,66 @@
1
+ # legion-json: JSON Wrapper for LegionIO
2
+
3
+ **Repository Level 3 Documentation**
4
+ - **Parent**: `/Users/miverso2/rubymine/legion/CLAUDE.md`
5
+
6
+ ## Purpose
7
+
8
+ JSON wrapper module for the LegionIO framework. Wraps `multi_json` and `json_pure` to provide a consistent JSON interface across all Legion gems and extensions. Automatically uses faster C-extension JSON gems (like `oj`) when available.
9
+
10
+ **GitHub**: https://github.com/LegionIO/legion-json
11
+ **Version**: 1.2.0
12
+ **License**: Apache-2.0
13
+
14
+ ## Architecture
15
+
16
+ ```
17
+ Legion::JSON
18
+ ├── .load(string, symbolize_keys: true) # Deserialize JSON -> Hash
19
+ ├── .dump(object, pretty: false) # Serialize Hash -> JSON
20
+ ├── InvalidJson # Custom error class
21
+ └── ParseError # JSON parse error class
22
+ ```
23
+
24
+ ### Key Design Patterns
25
+
26
+ - **Thin Wrapper**: Delegates to `MultiJson.load` / `MultiJson.dump`
27
+ - **Symbolized Keys by Default**: `symbolize_keys: true` is the default (unlike standard JSON)
28
+ - **Auto C-Extension**: If `oj` gem is installed, `multi_json` automatically uses it for performance
29
+
30
+ ## Dependencies
31
+
32
+ | Gem | Purpose |
33
+ |-----|---------|
34
+ | `multi_json` | JSON adapter abstraction |
35
+ | `json_pure` | Pure-Ruby JSON fallback |
36
+
37
+ ## File Map
38
+
39
+ | Path | Purpose |
40
+ |------|---------|
41
+ | `lib/legion/json.rb` | Module entry with `load`/`dump` methods |
42
+ | `lib/legion/json/invalid_json.rb` | InvalidJson error class |
43
+ | `lib/legion/json/parse_error.rb` | ParseError class |
44
+ | `lib/legion/json/version.rb` | VERSION constant |
45
+
46
+ ## Role in LegionIO
47
+
48
+ **Foundation gem** - used by nearly every other Legion gem. `legion-settings` depends on it directly for config file parsing. All message serialization flows through this module.
49
+
50
+ Note: Inside the `Legion::` namespace, `JSON` refers to `Legion::JSON` — callers outside this gem must use `::JSON` to access the stdlib.
51
+
52
+ ```
53
+ legion-json
54
+ ^
55
+ |-- legion-settings
56
+ | ^
57
+ | |-- legion-cache
58
+ | |-- legion-data
59
+ | |-- legion-transport
60
+ | └-- LegionIO
61
+ └-- legion-transport (direct dependency)
62
+ ```
63
+
64
+ ---
65
+
66
+ **Maintained By**: Matthew Iverson (@Esity)
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2021 Optum
189
+ Copyright 2021 Esity
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,43 +1,40 @@
1
- Legion::Json
2
- =====
1
+ # legion-json
3
2
 
4
- Legion::Json is the JSON wrapper that is used by the LegionIO framework. It gives all other gems and extensions a single
5
- json library to use for consistency. It wraps [multi_json](https://rubygems.org/gems/multi_json) and also [json_pure](https://rubygems.org/gems/json_pure)
3
+ JSON wrapper module for the [LegionIO](https://github.com/LegionIO/LegionIO) framework. Wraps `multi_json` and `json_pure` to provide a consistent JSON interface across all Legion gems and extensions. Automatically uses faster C-extension JSON gems (like `oj`) when available.
6
4
 
7
- Additional C extension style json gems can be installed like [oj](https://rubygems.org/gems/oj) and it they should be
8
- used automatically.
5
+ **Version**: 1.2.0
9
6
 
10
- Supported Ruby versions and implementations
11
- ------------------------------------------------
7
+ ## Installation
12
8
 
13
- Legion::Json should work identically on:
9
+ ```bash
10
+ gem install legion-json
11
+ ```
14
12
 
15
- * JRuby 9.2+
16
- * Ruby 2.4+
13
+ Or add to your Gemfile:
17
14
 
15
+ ```ruby
16
+ gem 'legion-json'
17
+ ```
18
18
 
19
- Installation and Usage
20
- ------------------------
19
+ ## Usage
21
20
 
22
- You can verify your installation using this piece of code:
21
+ ```ruby
22
+ require 'legion/json'
23
23
 
24
- ```bash
25
- gem install legion-json
24
+ json_string = '{"foo":"bar","nested":{"hello":"world"}}'
25
+ Legion::JSON.load(json_string) # => {foo: "bar", nested: {hello: "world"}}
26
+ Legion::JSON.load(json_string, symbolize_keys: false) # => {"foo" => "bar", ...}
27
+
28
+ hash = { foo: 'bar', nested: { hello: 'world' } }
29
+ Legion::JSON.dump(hash) # => '{"foo":"bar","nested":{"hello":"world"}}'
26
30
  ```
27
31
 
28
- ```ruby
29
- require 'legion-json'
30
- json_string = '{"foo":"bar","nested":{"hello":"world"}}'
31
- Legion::Json.load(json_string)
32
- Legion::Json.load(json_string, symbolize_keys: false) # symbolize_keys defaults to true
32
+ Keys are symbolized by default, unlike standard Ruby JSON.
33
33
 
34
- hash = {foo: 'bar', nested: {hello: 'world'}}
35
- Legion::Json.dump(hash)
36
- Legion::Json.dump(hash, )
34
+ ## Requirements
37
35
 
38
- ```
36
+ - Ruby >= 3.4
39
37
 
40
- Authors
41
- ----------
38
+ ## License
42
39
 
43
- * [Matthew Iverson](https://github.com/Esity) - current maintainer
40
+ Apache-2.0
data/legion-json.gemspec CHANGED
@@ -6,24 +6,24 @@ Gem::Specification.new do |spec|
6
6
  spec.name = 'legion-json'
7
7
  spec.version = Legion::Json::VERSION
8
8
  spec.authors = ['Esity']
9
- spec.email = %w[matthewdiverson@gmail.com ruby@optum.com]
9
+ spec.email = ['matthewdiverson@gmail.com']
10
10
 
11
11
  spec.summary = 'Wraps multi_json, json_pure and others to allow for interchanging json gems without deploying all new extensions'
12
12
  spec.description = 'A JSON wrapper module for the LegionIO framework'
13
- spec.homepage = 'https://github.com/Optum/legion-json'
13
+ spec.homepage = 'https://github.com/LegionIO/legion-json'
14
14
  spec.license = 'Apache-2.0'
15
15
  spec.require_paths = ['lib']
16
- spec.required_ruby_version = '>= 2.4'
16
+ spec.required_ruby_version = '>= 3.4'
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.test_files = spec.files.select { |p| p =~ %r{^test/.*_test.rb} }
19
- spec.extra_rdoc_files = %w[README.md LICENSE CHANGELOG.md]
18
+ spec.extra_rdoc_files = %w[README.md LICENSE CHANGELOG.md]
20
19
  spec.metadata = {
21
- 'bug_tracker_uri' => 'https://github.com/Optum/legion-json/issues',
22
- 'changelog_uri' => 'https://github.com/Optum/legion-json/src/main/CHANGELOG.md',
23
- 'documentation_uri' => 'https://github.com/Optum/legion-json',
24
- 'homepage_uri' => 'https://github.com/Optum/LegionIO',
25
- 'source_code_uri' => 'https://github.com/Optum/legion-json',
26
- 'wiki_uri' => 'https://github.com/Optum/legion-json/wiki'
20
+ 'bug_tracker_uri' => 'https://github.com/LegionIO/legion-json/issues',
21
+ 'changelog_uri' => 'https://github.com/LegionIO/legion-json/blob/main/CHANGELOG.md',
22
+ 'documentation_uri' => 'https://github.com/LegionIO/legion-json',
23
+ 'homepage_uri' => 'https://github.com/LegionIO/LegionIO',
24
+ 'source_code_uri' => 'https://github.com/LegionIO/legion-json',
25
+ 'wiki_uri' => 'https://github.com/LegionIO/legion-json/wiki',
26
+ 'rubygems_mfa_required' => 'true'
27
27
  }
28
28
 
29
29
  spec.add_dependency 'json_pure'
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module JSON
5
+ module Helper
6
+ def json_load(string, symbolize_keys: true)
7
+ Legion::JSON.load(string, symbolize_keys: symbolize_keys)
8
+ end
9
+
10
+ def json_dump(object, pretty: false)
11
+ Legion::JSON.dump(object, pretty: pretty)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Exception
3
5
  class InvalidJson < StandardError; end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module JSON
3
5
  # The Legion JSON parser error abstraction.
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Json
3
- VERSION = '1.2.0'.freeze
5
+ VERSION = '1.2.1'
4
6
  end
5
7
  end
data/lib/legion/json.rb CHANGED
@@ -1,8 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'legion/json/version'
2
4
  require 'legion/json/parse_error'
3
5
  require 'legion/json/invalid_json'
4
6
  require 'json'
5
7
  require 'multi_json'
8
+ require_relative 'json/helper'
6
9
 
7
10
  module Legion
8
11
  module JSON
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-06-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: json_pure
@@ -41,45 +40,40 @@ dependencies:
41
40
  description: A JSON wrapper module for the LegionIO framework
42
41
  email:
43
42
  - matthewdiverson@gmail.com
44
- - ruby@optum.com
45
43
  executables: []
46
44
  extensions: []
47
45
  extra_rdoc_files:
48
- - README.md
49
- - LICENSE
50
46
  - CHANGELOG.md
47
+ - LICENSE
48
+ - README.md
51
49
  files:
52
- - ".github/workflows/sourcehawk-scan.yml"
50
+ - ".github/workflows/ci.yml"
53
51
  - ".gitignore"
54
52
  - ".rubocop.yml"
53
+ - ".ruby-version"
55
54
  - CHANGELOG.md
56
- - CODE_OF_CONDUCT.md
57
- - CONTRIBUTING.md
55
+ - CLAUDE.md
58
56
  - Gemfile
59
- - INDIVIDUAL_CONTRIBUTOR_LICENSE.md
60
57
  - LICENSE
61
- - NOTICE.txt
62
58
  - README.md
63
- - SECURITY.md
64
- - attribution.txt
65
59
  - legion-json.gemspec
66
60
  - lib/legion/json.rb
61
+ - lib/legion/json/helper.rb
67
62
  - lib/legion/json/invalid_json.rb
68
63
  - lib/legion/json/parse_error.rb
69
64
  - lib/legion/json/version.rb
70
65
  - sonar-project.properties
71
- - sourcehawk.yml
72
- homepage: https://github.com/Optum/legion-json
66
+ homepage: https://github.com/LegionIO/legion-json
73
67
  licenses:
74
68
  - Apache-2.0
75
69
  metadata:
76
- bug_tracker_uri: https://github.com/Optum/legion-json/issues
77
- changelog_uri: https://github.com/Optum/legion-json/src/main/CHANGELOG.md
78
- documentation_uri: https://github.com/Optum/legion-json
79
- homepage_uri: https://github.com/Optum/LegionIO
80
- source_code_uri: https://github.com/Optum/legion-json
81
- wiki_uri: https://github.com/Optum/legion-json/wiki
82
- post_install_message:
70
+ bug_tracker_uri: https://github.com/LegionIO/legion-json/issues
71
+ changelog_uri: https://github.com/LegionIO/legion-json/blob/main/CHANGELOG.md
72
+ documentation_uri: https://github.com/LegionIO/legion-json
73
+ homepage_uri: https://github.com/LegionIO/LegionIO
74
+ source_code_uri: https://github.com/LegionIO/legion-json
75
+ wiki_uri: https://github.com/LegionIO/legion-json/wiki
76
+ rubygems_mfa_required: 'true'
83
77
  rdoc_options: []
84
78
  require_paths:
85
79
  - lib
@@ -87,15 +81,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
81
  requirements:
88
82
  - - ">="
89
83
  - !ruby/object:Gem::Version
90
- version: '2.4'
84
+ version: '3.4'
91
85
  required_rubygems_version: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - ">="
94
88
  - !ruby/object:Gem::Version
95
89
  version: '0'
96
90
  requirements: []
97
- rubygems_version: 3.1.6
98
- signing_key:
91
+ rubygems_version: 3.6.9
99
92
  specification_version: 4
100
93
  summary: Wraps multi_json, json_pure and others to allow for interchanging json gems
101
94
  without deploying all new extensions
@@ -1,20 +0,0 @@
1
- name: Sourcehawk Scan
2
- on:
3
- push:
4
- branches:
5
- - main
6
- - master
7
- pull_request:
8
- branches:
9
- - main
10
- - master
11
- jobs:
12
- build:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - uses: actions/checkout@v2
16
- - name: Sourcehawk Scan
17
- uses: optum/sourcehawk-scan-github-action@main
18
-
19
-
20
-
data/CODE_OF_CONDUCT.md DELETED
@@ -1,75 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project email
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at [opensource@optum.com][email]. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
75
- [email]: mailto:opensource@optum.com
data/CONTRIBUTING.md DELETED
@@ -1,55 +0,0 @@
1
- # Contribution Guidelines
2
-
3
- Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. Please also review our [Contributor License Agreement ("CLA")](INDIVIDUAL_CONTRIBUTOR_LICENSE.md) prior to submitting changes to the project. You will need to attest to this agreement following the instructions in the [Paperwork for Pull Requests](#paperwork-for-pull-requests) section below.
4
-
5
- ---
6
-
7
- # How to Contribute
8
-
9
- Now that we have the disclaimer out of the way, let's get into how you can be a part of our project. There are many different ways to contribute.
10
-
11
- ## Issues
12
-
13
- We track our work using Issues in GitHub. Feel free to open up your own issue to point out areas for improvement or to suggest your own new experiment. If you are comfortable with signing the waiver linked above and contributing code or documentation, grab your own issue and start working.
14
-
15
- ## Coding Standards
16
-
17
- We have some general guidelines towards contributing to this project.
18
- Please run RSpec and Rubocop while developing code for LegionIO
19
-
20
- ### Languages
21
-
22
- *Ruby*
23
-
24
- ## Pull Requests
25
-
26
- If you've gotten as far as reading this section, then thank you for your suggestions.
27
-
28
- ## Paperwork for Pull Requests
29
-
30
- * Please read this guide and make sure you agree with our [Contributor License Agreement ("CLA")](INDIVIDUAL_CONTRIBUTOR_LICENSE.md).
31
- * Make sure git knows your name and email address:
32
- ```
33
- $ git config user.name "J. Random User"
34
- $ git config user.email "j.random.user@example.com"
35
- ```
36
- >The name and email address must be valid as we cannot accept anonymous contributions.
37
- * Write good commit messages.
38
- > Concise commit messages that describe your changes help us better understand your contributions.
39
- * The first time you open a pull request in this repository, you will see a comment on your PR with a link that will allow you to sign our Contributor License Agreement (CLA) if necessary.
40
- > The link will take you to a page that allows you to view our CLA. You will need to click the `Sign in with GitHub to agree button` and authorize the cla-assistant application to access the email addresses associated with your GitHub account. Agreeing to the CLA is also considered to be an attestation that you either wrote or have the rights to contribute the code. All committers to the PR branch will be required to sign the CLA, but you will only need to sign once. This CLA applies to all repositories in the Optum org.
41
-
42
- ## General Guidelines
43
-
44
- Ensure your pull request (PR) adheres to the following guidelines:
45
-
46
- * Try to make the name concise and descriptive.
47
- * Give a good description of the change being made. Since this is very subjective, see the [Updating Your Pull Request (PR)](#updating-your-pull-request-pr) section below for further details.
48
- * Every pull request should be associated with one or more issues. If no issue exists yet, please create your own.
49
- * Make sure that all applicable issues are mentioned somewhere in the PR description. This can be done by typing # to bring up a list of issues.
50
-
51
- ### Updating Your Pull Request (PR)
52
-
53
- A lot of times, making a PR adhere to the standards above can be difficult. If the maintainers notice anything that we'd like changed, we'll ask you to edit your PR before we merge it. This applies to both the content documented in the PR and the changed contained within the branch being merged. There's no need to open a new PR. Just edit the existing one.
54
-
55
- [email]: mailto:opensource@optum.com
@@ -1,30 +0,0 @@
1
- # Individual Contributor License Agreement ("Agreement") V2.0
2
-
3
- Thank you for your interest in this Optum project (the "PROJECT"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the PROJECT must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the PROJECT and its users; it does not change your rights to use your own Contributions for any other purpose.
4
-
5
- You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the PROJECT. In return, the PROJECT shall not use Your Contributions in a way that is inconsistent with stated project goals in effect at the time of the Contribution. Except for the license granted herein to the PROJECT and recipients of software distributed by the PROJECT, You reserve all right, title, and interest in and to Your Contributions.
6
- 1. Definitions.
7
-
8
- "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with the PROJECT. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
9
-
10
- "Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to the PROJECT for inclusion in, or documentation of, any of the products owned or managed by the PROJECT (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the PROJECT or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the PROJECT for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
11
-
12
- 2. Grant of Copyright License.
13
-
14
- Subject to the terms and conditions of this Agreement, You hereby grant to the PROJECT and to recipients of software distributed by the PROJECT a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
15
-
16
- 3. Grant of Patent License.
17
-
18
- Subject to the terms and conditions of this Agreement, You hereby grant to the PROJECT and to recipients of software distributed by the PROJECT a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
19
-
20
- 4. Representations.
21
-
22
- (a) You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to the PROJECT, or that your employer has executed a separate Corporate CLA with the PROJECT.
23
-
24
- (b) You represent that each of Your Contributions is Your original creation (see section 6 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
25
-
26
- 5. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
27
-
28
- 6. Should You wish to submit work that is not Your original creation, You may submit it to the PROJECT separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]".
29
-
30
- 7. You agree to notify the PROJECT of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
data/NOTICE.txt DELETED
@@ -1,9 +0,0 @@
1
- Legion::Json(legion-json)
2
- Copyright 2021 Optum
3
-
4
- Project Description:
5
- ====================
6
- A JSON wrapper module for the LegionIO framework
7
-
8
- Author(s):
9
- Esity
data/SECURITY.md DELETED
@@ -1,9 +0,0 @@
1
- # Security Policy
2
-
3
- ## Supported Versions
4
- | Version | Supported |
5
- | ------- | ------------------ |
6
- | 1.x.x | :white_check_mark: |
7
-
8
- ## Reporting a Vulnerability
9
- To be added
data/attribution.txt DELETED
@@ -1 +0,0 @@
1
- Add attributions here.
data/sourcehawk.yml DELETED
@@ -1,4 +0,0 @@
1
-
2
- config-locations:
3
- - https://raw.githubusercontent.com/optum/.github/main/sourcehawk.yml
4
-