json_world 0.3.0 → 0.5.0
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/.github/release.yml +23 -0
- data/.github/workflows/actions.lock +37 -0
- data/.github/workflows/bump-request.yml +26 -0
- data/.github/workflows/ci.yml +26 -0
- data/.github/workflows/release.yml +11 -0
- data/README.md +1 -1
- data/json_world.gemspec +7 -0
- data/lib/json_world/property_definition.rb +3 -0
- data/lib/json_world/version.rb +1 -1
- metadata +14 -11
- data/.travis.yml +0 -3
- data/CHANGELOG.md +0 -57
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a82815a145a0851a620df35188a15fea565021cb74000c29a04f350ec435268
|
|
4
|
+
data.tar.gz: 06bb0b93257cea30f84e35e64dc3cce552c17bd7b7a7d19c7d9a008259e803ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c472f04980a2f884ff0bec7cb98c19d2e7d51e93f6c011f45f4388b9d45d00724e00578e6e273ef07fdc86d4c316e3e085ea9977eb6ae7392a8842abc560d05c
|
|
7
|
+
data.tar.gz: 0c6337a34640dfb77f3ad69e8e8206f99bc1a805214afdb381d37094439b194477547cff41b595ff2a969cb7b52630feb05ed53916c0be20b7791de82750b194
|
data/.github/release.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
changelog:
|
|
2
|
+
categories:
|
|
3
|
+
- title: Added
|
|
4
|
+
labels:
|
|
5
|
+
- add
|
|
6
|
+
- title: Changed
|
|
7
|
+
labels:
|
|
8
|
+
- change
|
|
9
|
+
- title: Deprecated
|
|
10
|
+
labels:
|
|
11
|
+
- deprecate
|
|
12
|
+
- title: Fixed
|
|
13
|
+
labels:
|
|
14
|
+
- fix
|
|
15
|
+
- title: Removed
|
|
16
|
+
labels:
|
|
17
|
+
- remove
|
|
18
|
+
- title: Security
|
|
19
|
+
labels:
|
|
20
|
+
- security
|
|
21
|
+
- title: Others
|
|
22
|
+
labels:
|
|
23
|
+
- "*"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This file is machine-generated by `gh actions-lock`.
|
|
2
|
+
# Do not edit by hand; run `gh actions-lock` to update.
|
|
3
|
+
# Docs: https://gh.io/actions-lockfile
|
|
4
|
+
version: 'v0.0.3'
|
|
5
|
+
workflows:
|
|
6
|
+
'.github/workflows/bump-request.yml':
|
|
7
|
+
- 'actions/checkout@v7.0.1'
|
|
8
|
+
- 'r7kamura/bump-request@v0.7.1'
|
|
9
|
+
- 'ruby/setup-ruby@v1.336.0'
|
|
10
|
+
'.github/workflows/ci.yml':
|
|
11
|
+
- 'actions/checkout@v7.0.1'
|
|
12
|
+
- 'ruby/setup-ruby@v1.336.0'
|
|
13
|
+
'.github/workflows/release.yml': []
|
|
14
|
+
dependencies:
|
|
15
|
+
'actions/checkout@v7.0.1':
|
|
16
|
+
ref: 'v7.0.1'
|
|
17
|
+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
|
|
18
|
+
owner_id: 44036562
|
|
19
|
+
repo_id: 197814629
|
|
20
|
+
'actions/setup-node@v7.1.0':
|
|
21
|
+
ref: 'v7.1.0'
|
|
22
|
+
commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
|
|
23
|
+
owner_id: 44036562
|
|
24
|
+
repo_id: 189476904
|
|
25
|
+
'r7kamura/bump-request@v0.7.1':
|
|
26
|
+
ref: 'v0.7.1'
|
|
27
|
+
commit: 'sha1-b27937188d404bc0c2fd442403e6de1d20f9b349'
|
|
28
|
+
owner_id: 111689
|
|
29
|
+
repo_id: 533135195
|
|
30
|
+
uses:
|
|
31
|
+
- 'actions/checkout@v7.0.1'
|
|
32
|
+
- 'actions/setup-node@v7.1.0'
|
|
33
|
+
'ruby/setup-ruby@v1.336.0':
|
|
34
|
+
ref: 'v1.336.0'
|
|
35
|
+
commit: 'sha1-de492cf36cbab201753d720ce4f4e336cd688c94'
|
|
36
|
+
owner_id: 210414
|
|
37
|
+
repo_id: 231208785
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: bump-request
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: Version to change to.
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
run:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v7.0.1
|
|
16
|
+
- name: Set up Ruby
|
|
17
|
+
uses: ruby/setup-ruby@v1.336.0
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: 3.3
|
|
20
|
+
bundler-cache: true
|
|
21
|
+
- uses: r7kamura/bump-request@v0.7.1
|
|
22
|
+
with:
|
|
23
|
+
command: |
|
|
24
|
+
sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/json_world/version.rb
|
|
25
|
+
bundle install
|
|
26
|
+
version: ${{ inputs.version }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
name: Ruby ${{ matrix.ruby }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
ruby:
|
|
17
|
+
- '3.3'
|
|
18
|
+
- '3.4'
|
|
19
|
+
- '4.0'
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7.0.1
|
|
22
|
+
- uses: ruby/setup-ruby@v1.336.0
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
- run: bundle exec rspec
|
data/README.md
CHANGED
|
@@ -67,7 +67,7 @@ User.to_json_schema
|
|
|
67
67
|
# }'
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
See [our tests](https://github.com/r7kamura/json_world/blob/
|
|
70
|
+
See [our tests](https://github.com/r7kamura/json_world/blob/main/spec/json_world/dsl_spec.rb)
|
|
71
71
|
for more examples.
|
|
72
72
|
|
|
73
73
|
## Installation
|
data/json_world.gemspec
CHANGED
|
@@ -11,6 +11,13 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.homepage = "https://github.com/r7kamura/json_world"
|
|
12
12
|
spec.license = "MIT"
|
|
13
13
|
|
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
15
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
16
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
|
|
17
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
18
|
+
|
|
19
|
+
spec.required_ruby_version = ">= 3.3"
|
|
20
|
+
|
|
14
21
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
|
15
22
|
spec.require_paths = ["lib"]
|
|
16
23
|
|
data/lib/json_world/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json_world
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -24,17 +23,19 @@ dependencies:
|
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
27
|
-
description:
|
|
28
26
|
email:
|
|
29
27
|
- r7kamura@gmail.com
|
|
30
28
|
executables: []
|
|
31
29
|
extensions: []
|
|
32
30
|
extra_rdoc_files: []
|
|
33
31
|
files:
|
|
32
|
+
- ".github/release.yml"
|
|
33
|
+
- ".github/workflows/actions.lock"
|
|
34
|
+
- ".github/workflows/bump-request.yml"
|
|
35
|
+
- ".github/workflows/ci.yml"
|
|
36
|
+
- ".github/workflows/release.yml"
|
|
34
37
|
- ".gitignore"
|
|
35
38
|
- ".rspec"
|
|
36
|
-
- ".travis.yml"
|
|
37
|
-
- CHANGELOG.md
|
|
38
39
|
- Gemfile
|
|
39
40
|
- LICENSE.txt
|
|
40
41
|
- README.md
|
|
@@ -49,8 +50,11 @@ files:
|
|
|
49
50
|
homepage: https://github.com/r7kamura/json_world
|
|
50
51
|
licenses:
|
|
51
52
|
- MIT
|
|
52
|
-
metadata:
|
|
53
|
-
|
|
53
|
+
metadata:
|
|
54
|
+
homepage_uri: https://github.com/r7kamura/json_world
|
|
55
|
+
source_code_uri: https://github.com/r7kamura/json_world
|
|
56
|
+
changelog_uri: https://github.com/r7kamura/json_world/releases
|
|
57
|
+
rubygems_mfa_required: 'true'
|
|
54
58
|
rdoc_options: []
|
|
55
59
|
require_paths:
|
|
56
60
|
- lib
|
|
@@ -58,15 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
58
62
|
requirements:
|
|
59
63
|
- - ">="
|
|
60
64
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
65
|
+
version: '3.3'
|
|
62
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
67
|
requirements:
|
|
64
68
|
- - ">="
|
|
65
69
|
- !ruby/object:Gem::Version
|
|
66
70
|
version: '0'
|
|
67
71
|
requirements: []
|
|
68
|
-
rubygems_version:
|
|
69
|
-
signing_key:
|
|
72
|
+
rubygems_version: 4.0.20
|
|
70
73
|
specification_version: 4
|
|
71
74
|
summary: Provides DSL to define JSON Schema representation of your class.
|
|
72
75
|
test_files: []
|
data/.travis.yml
DELETED
data/CHANGELOG.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
## 0.3.0
|
|
2
|
-
|
|
3
|
-
- Fix keyword arguments error for Ruby 3 support.
|
|
4
|
-
|
|
5
|
-
## 0.2.6
|
|
6
|
-
|
|
7
|
-
- Use `#__send__` instead of `#send`
|
|
8
|
-
|
|
9
|
-
## 0.2.5
|
|
10
|
-
|
|
11
|
-
- Remove unnecessary dependency on json
|
|
12
|
-
|
|
13
|
-
## 0.2.4
|
|
14
|
-
|
|
15
|
-
- Support `$schema` property
|
|
16
|
-
|
|
17
|
-
## 0.2.3
|
|
18
|
-
|
|
19
|
-
- Add :target_schema option on link definition
|
|
20
|
-
|
|
21
|
-
## 0.2.2
|
|
22
|
-
|
|
23
|
-
- Support :media_type option on link definition
|
|
24
|
-
|
|
25
|
-
## 0.2.1
|
|
26
|
-
|
|
27
|
-
- Provides raw_options method to reuse args for property definition
|
|
28
|
-
|
|
29
|
-
## 0.2.0
|
|
30
|
-
|
|
31
|
-
- Support :links option on embedding other resource as property
|
|
32
|
-
|
|
33
|
-
## 0.1.4
|
|
34
|
-
|
|
35
|
-
- Rename as_json_schema_without_link with as_json_schema_without_links
|
|
36
|
-
|
|
37
|
-
## 0.1.3
|
|
38
|
-
|
|
39
|
-
- Support boolean type on property definition
|
|
40
|
-
|
|
41
|
-
## 0.1.2
|
|
42
|
-
|
|
43
|
-
- Remove links property from embedded object
|
|
44
|
-
- Fix bug that links are unexpectedly shared by other classes
|
|
45
|
-
|
|
46
|
-
## 0.1.1
|
|
47
|
-
|
|
48
|
-
- Support embedding other JSON-Schema compatible object via type
|
|
49
|
-
- Support rel property on LinkDefinition
|
|
50
|
-
|
|
51
|
-
## 0.1.0
|
|
52
|
-
|
|
53
|
-
- Rename included module name: PropertyDefinable -> DSL
|
|
54
|
-
|
|
55
|
-
## 0.0.1
|
|
56
|
-
|
|
57
|
-
- 1st Release
|