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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eae4719f06114b2907a119beee5c4b9ec7b04d15
4
- data.tar.gz: c5685b9c6d82161d9ec95efad514d87b655062d6
3
+ metadata.gz: 14f5a47f6065b24fc674da4eb191fbafe96cdffa
4
+ data.tar.gz: 8289494f76a30d5e6413884d31628eb0485f4a08
5
5
  SHA512:
6
- metadata.gz: 76eabf0ae91aacb188238c878843c57c6c85b765ede90c26dc6d57372382f1cf87c9292a0fedff7f4b851dcb374b97f432c50d65f4ca8943e2fb96d3ed8e96f1
7
- data.tar.gz: a31d598b74b08ef2785c732685c9f140d85de5dfb4edb730a5098e97ceea4f7d08f4a69724582427bca86b2764f0f94b3b26171b2a571b953c6a460cef38695c
6
+ metadata.gz: 5b39323039ca55a2604e7c3338557a7dfe5decd983f98b9fab78b4246740120b6438b2f57e628bb846269083af848e9a28ee3ac4d1ffd33ba0102f7726191afe
7
+ data.tar.gz: 6c687f1136ab40740b48b45d53fa92c20f463e2f4b309779a43ee2b2f17165121182d6421c473fb957be3843e3d5f499363b6ecba971691f3306cf7dea7f74ce
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## 0.1.0
2
+ - Rename included module name: PropertyDefinable -> DSL
3
+
4
+ ## 0.0.1
5
+ - 1st Release
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::PropertyDefinable
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/property_definable_spec.rb)
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
@@ -7,7 +7,7 @@ require "json_world/link_definition"
7
7
  require "json_world/property_definition"
8
8
 
9
9
  module JsonWorld
10
- module PropertyDefinable
10
+ module DSL
11
11
  extend ActiveSupport::Concern
12
12
 
13
13
  included do
@@ -1,3 +1,3 @@
1
1
  module JsonWorld
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/json_world.rb CHANGED
@@ -1,2 +1,2 @@
1
- require "json_world/property_definable"
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.1
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