json_world 0.0.1 → 0.1.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/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/lib/json_world/{property_definable.rb → dsl.rb} +1 -1
- data/lib/json_world/version.rb +1 -1
- data/lib/json_world.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14f5a47f6065b24fc674da4eb191fbafe96cdffa
|
|
4
|
+
data.tar.gz: 8289494f76a30d5e6413884d31628eb0485f4a08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b39323039ca55a2604e7c3338557a7dfe5decd983f98b9fab78b4246740120b6438b2f57e628bb846269083af848e9a28ee3ac4d1ffd33ba0102f7726191afe
|
|
7
|
+
data.tar.gz: 6c687f1136ab40740b48b45d53fa92c20f463e2f4b309779a43ee2b2f17165121182d6421c473fb957be3843e3d5f499363b6ecba971691f3306cf7dea7f74ce
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Provides DSL to define JSON Schema representation of your class.
|
|
|
5
5
|
### `.property` and `.link`
|
|
6
6
|
```rb
|
|
7
7
|
class User
|
|
8
|
-
include JsonWorld::
|
|
8
|
+
include JsonWorld::DSL
|
|
9
9
|
|
|
10
10
|
property(
|
|
11
11
|
:id,
|
|
@@ -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/master/spec/json_world/
|
|
70
|
+
See [our tests](https://github.com/r7kamura/json_world/blob/master/spec/json_world/dsl_spec.rb)
|
|
71
71
|
for more examples.
|
|
72
72
|
|
|
73
73
|
## Installation
|
data/lib/json_world/version.rb
CHANGED
data/lib/json_world.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require "json_world/
|
|
1
|
+
require "json_world/dsl"
|
|
2
2
|
require "json_world/version"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json_world
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
@@ -90,15 +90,16 @@ files:
|
|
|
90
90
|
- ".gitignore"
|
|
91
91
|
- ".rspec"
|
|
92
92
|
- ".travis.yml"
|
|
93
|
+
- CHANGELOG.md
|
|
93
94
|
- Gemfile
|
|
94
95
|
- LICENSE.txt
|
|
95
96
|
- README.md
|
|
96
97
|
- Rakefile
|
|
97
98
|
- json_world.gemspec
|
|
98
99
|
- lib/json_world.rb
|
|
100
|
+
- lib/json_world/dsl.rb
|
|
99
101
|
- lib/json_world/json_encodable.rb
|
|
100
102
|
- lib/json_world/link_definition.rb
|
|
101
|
-
- lib/json_world/property_definable.rb
|
|
102
103
|
- lib/json_world/property_definition.rb
|
|
103
104
|
- lib/json_world/version.rb
|
|
104
105
|
homepage: https://github.com/r7kamura/json_world
|