easy_talk_two 1.1.2 → 1.1.3
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/easy_talk.gemspec +47 -0
- data/lib/easy_talk/builders/number_builder.rb +8 -8
- data/lib/easy_talk/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7242aee04d9a8f09f19b83023ff69019653229b88ab0b4d2c8307d7f4346bf6a
|
|
4
|
+
data.tar.gz: f99d59504e6666a8a754134847a557c6a69675594f32ad6407fdabc01208ac5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6413848a81727e185cc68175e5113f3121cb1ab38b80647ebe53afe5051a27a8ded7e71537552db2c9e62afc274e6860a5e9c9baca7ac54ababdb758219fbd77
|
|
7
|
+
data.tar.gz: 0ca190c676296d4c0d562a95a4f2920e5872ea3b033bc074368b11168c27c37987d9580f413bb3dea61f4d577d649c24ede168ab4d0559990284748bb29ec94a
|
data/easy_talk.gemspec
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'lib/easy_talk/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = 'easy_talk_two'
|
|
7
|
+
spec.version = EasyTalk::VERSION
|
|
8
|
+
spec.authors = ['a-chacon']
|
|
9
|
+
spec.email = ['andres.ch@protonmail.com']
|
|
10
|
+
|
|
11
|
+
spec.summary = 'Generate json-schema from Ruby classes.'
|
|
12
|
+
spec.description = 'Generate json-schema from plain Ruby classes.'
|
|
13
|
+
spec.homepage = 'https://github.com/a-chacon/easy_talk'
|
|
14
|
+
spec.license = 'MIT'
|
|
15
|
+
spec.required_ruby_version = '>= 3.2'
|
|
16
|
+
|
|
17
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
|
18
|
+
|
|
19
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
|
20
|
+
spec.metadata['source_code_uri'] = 'https://github.com/a-chacon/easy_talk'
|
|
21
|
+
spec.metadata['changelog_uri'] = 'https://github.com/a-chacon/easy_talk/blob/main/CHANGELOG.md'
|
|
22
|
+
|
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
25
|
+
spec.files = Dir.chdir(__dir__) do
|
|
26
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
27
|
+
(File.expand_path(f) == __FILE__) ||
|
|
28
|
+
f.start_with?(*%w[bin/ spec/ .git .github Gemfile])
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
spec.require_paths = ['lib']
|
|
33
|
+
|
|
34
|
+
spec.add_dependency 'activemodel', '>= 7.0'
|
|
35
|
+
spec.add_dependency 'activesupport', '>= 7.0'
|
|
36
|
+
spec.add_dependency 'sorbet-runtime', '>= 0.5'
|
|
37
|
+
spec.add_development_dependency 'activerecord', '~> 7.0'
|
|
38
|
+
spec.add_development_dependency 'pry-byebug', '~> 3.10'
|
|
39
|
+
spec.add_development_dependency 'rake', '~> 13.1'
|
|
40
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
41
|
+
spec.add_development_dependency 'rspec-json_expectations', '~> 2.0'
|
|
42
|
+
spec.add_development_dependency 'rspec-mocks', '~> 3.13'
|
|
43
|
+
spec.add_development_dependency 'rubocop', '~> 1.21'
|
|
44
|
+
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
|
|
45
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.29'
|
|
46
|
+
spec.add_development_dependency 'sqlite3', '~> 2'
|
|
47
|
+
end
|
|
@@ -7,14 +7,14 @@ module EasyTalk
|
|
|
7
7
|
# Builder class for number properties.
|
|
8
8
|
class NumberBuilder < BaseBuilder
|
|
9
9
|
VALID_OPTIONS = {
|
|
10
|
-
multiple_of: { type: T.any(Integer, Float), key: :multipleOf },
|
|
11
|
-
minimum: { type: T.any(Integer, Float), key: :minimum },
|
|
12
|
-
maximum: { type: T.any(Integer, Float), key: :maximum },
|
|
13
|
-
exclusive_minimum: { type: T.any(Integer, Float), key: :exclusiveMinimum },
|
|
14
|
-
exclusive_maximum: { type: T.any(Integer, Float), key: :exclusiveMaximum },
|
|
15
|
-
enum: { type: T::Array[T.any(Integer, Float)], key: :enum },
|
|
16
|
-
const: { type: T.any(Integer, Float), key: :const },
|
|
17
|
-
default: { type: T.any(Integer, Float), key: :default }
|
|
10
|
+
multiple_of: { type: T.any(Integer, Float, BigDecimal), key: :multipleOf },
|
|
11
|
+
minimum: { type: T.any(Integer, Float, BigDecimal), key: :minimum },
|
|
12
|
+
maximum: { type: T.any(Integer, Float, BigDecimal), key: :maximum },
|
|
13
|
+
exclusive_minimum: { type: T.any(Integer, Float, BigDecimal), key: :exclusiveMinimum },
|
|
14
|
+
exclusive_maximum: { type: T.any(Integer, Float, BigDecimal), key: :exclusiveMaximum },
|
|
15
|
+
enum: { type: T::Array[T.any(Integer, Float, BigDecimal)], key: :enum },
|
|
16
|
+
const: { type: T.any(Integer, Float, BigDecimal), key: :const },
|
|
17
|
+
default: { type: T.any(Integer, Float, BigDecimal), key: :default }
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
20
|
# Initializes a new instance of the NumberBuilder class.
|
data/lib/easy_talk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easy_talk_two
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- a-chacon
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: activemodel
|
|
@@ -211,6 +211,7 @@ files:
|
|
|
211
211
|
- docs/_posts/2024-05-07-welcome-to-jekyll.markdown
|
|
212
212
|
- docs/about.markdown
|
|
213
213
|
- docs/index.markdown
|
|
214
|
+
- easy_talk.gemspec
|
|
214
215
|
- lib/easy_talk.rb
|
|
215
216
|
- lib/easy_talk/active_record_schema_builder.rb
|
|
216
217
|
- lib/easy_talk/builders/base_builder.rb
|
|
@@ -259,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
259
260
|
- !ruby/object:Gem::Version
|
|
260
261
|
version: '0'
|
|
261
262
|
requirements: []
|
|
262
|
-
rubygems_version:
|
|
263
|
+
rubygems_version: 4.0.3
|
|
263
264
|
specification_version: 4
|
|
264
265
|
summary: Generate json-schema from Ruby classes.
|
|
265
266
|
test_files: []
|