json_world 0.2.6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a56b906bd5b8a0d975b5ca5dbbfb8be7fe10de3b
4
- data.tar.gz: 5235d41752994d3a542b13ec8f813d09479ace9a
2
+ SHA256:
3
+ metadata.gz: 0a28523d5ccf2728d79bb13a96808779bede5a2eeb14e08e78b96fe415038bbb
4
+ data.tar.gz: 64ad54f93cf882046b2be75fac166ca3420e5a9a5496d244271fb71121b152a2
5
5
  SHA512:
6
- metadata.gz: d4a7ebd1976210b96f8d2ec1011ace3146a7c2d529c3931ac0959916c0eb4b47fdc96060b54b44cc8590f9e9331a5ac04ce5682d3ece0137bbcda4dd6e980e10
7
- data.tar.gz: 0c7251abfca1e122d65c418a2ac44355199987bfb231c76f3171fc5589e5bae77d2757a1d778431a7877fe64c47e13ad6753f7709c4c244e7598cb047763d6cc
6
+ metadata.gz: f81fb14efaab68969d537a7e9bff76451aed0429c89af71167d8cf4111bcb33075025b57f0272e38da89dfdbfb40dcbba3d3c41c58f83b372991ddd7923699a6
7
+ data.tar.gz: d426d0e68637755b0827f10e5dfde3c676dce9bc60dce82c5514a14ca9f413e9423df836c2d7f41f91ba014460d3e1dcfea87a491e72b6156f9ce312fe268c01
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.0
2
+
3
+ - Fix keyword arguments error for Ruby 3 support.
4
+
1
5
  ## 0.2.6
2
6
 
3
7
  - Use `#__send__` instead of `#send`
data/Gemfile CHANGED
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in json_world.gemspec
4
4
  gemspec
5
+
6
+ gem "rake"
7
+ gem "rspec"
data/json_world.gemspec CHANGED
@@ -15,7 +15,4 @@ Gem::Specification.new do |spec|
15
15
  spec.require_paths = ["lib"]
16
16
 
17
17
  spec.add_dependency "activesupport"
18
- spec.add_development_dependency "bundler", "~> 1.9"
19
- spec.add_development_dependency "rake", "~> 10.0"
20
- spec.add_development_dependency "rspec", "3.2.0"
21
18
  end
@@ -52,9 +52,9 @@ module JsonWorld
52
52
  # @param [Hash{Symbol => Object}] options
53
53
  def link(link_name, options = {})
54
54
  link_definitions << JsonWorld::LinkDefinition.new(
55
- options.merge(
55
+ link_name: link_name,
56
+ **options.merge(
56
57
  parent: self,
57
- link_name: link_name,
58
58
  ),
59
59
  )
60
60
  end
@@ -68,9 +68,9 @@ module JsonWorld
68
68
  # @param [Hash{Symbol => Object}] options
69
69
  def property(property_name, options = {})
70
70
  property_definitions << JsonWorld::PropertyDefinition.new(
71
- options.merge(
71
+ property_name: property_name,
72
+ **options.merge(
72
73
  parent: self,
73
- property_name: property_name,
74
74
  )
75
75
  )
76
76
  end
@@ -83,7 +83,7 @@ module JsonWorld
83
83
  # @return [Array<Hash>, nil]
84
84
  def items_as_json_schema
85
85
  if @options[:items]
86
- JsonWorld::PropertyDefinition.new(@options[:items]).as_json_schema
86
+ JsonWorld::PropertyDefinition.new(**@options[:items]).as_json_schema
87
87
  end
88
88
  end
89
89
 
@@ -112,9 +112,8 @@ module JsonWorld
112
112
  if @options[:properties]
113
113
  @options[:properties].map do |property_name, options|
114
114
  JsonWorld::PropertyDefinition.new(
115
- options.merge(
116
- property_name: property_name,
117
- )
115
+ property_name: property_name,
116
+ **options
118
117
  )
119
118
  end
120
119
  end
@@ -1,3 +1,3 @@
1
1
  module JsonWorld
2
- VERSION = "0.2.6"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-22 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,49 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.9'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.9'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '10.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '10.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 3.2.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '='
67
- - !ruby/object:Gem::Version
68
- version: 3.2.0
69
- description:
27
+ description:
70
28
  email:
71
29
  - r7kamura@gmail.com
72
30
  executables: []
@@ -92,7 +50,7 @@ homepage: https://github.com/r7kamura/json_world
92
50
  licenses:
93
51
  - MIT
94
52
  metadata: {}
95
- post_install_message:
53
+ post_install_message:
96
54
  rdoc_options: []
97
55
  require_paths:
98
56
  - lib
@@ -107,9 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
65
  - !ruby/object:Gem::Version
108
66
  version: '0'
109
67
  requirements: []
110
- rubyforge_project:
111
- rubygems_version: 2.6.11
112
- signing_key:
68
+ rubygems_version: 3.3.7
69
+ signing_key:
113
70
  specification_version: 4
114
71
  summary: Provides DSL to define JSON Schema representation of your class.
115
72
  test_files: []