-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjsonstructure.gemspec
More file actions
49 lines (40 loc) · 1.83 KB
/
jsonstructure.gemspec
File metadata and controls
49 lines (40 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# frozen_string_literal: true
require_relative 'lib/jsonstructure/version'
Gem::Specification.new do |spec|
spec.name = 'jsonstructure'
spec.version = JsonStructure::VERSION
spec.authors = ['JSON Structure Contributors']
spec.email = ['']
spec.summary = 'Ruby FFI bindings for JSON Structure schema validator'
spec.description = 'JSON Structure SDK for Ruby using FFI bindings to the C library. ' \
'Provides schema validation and instance validation for JSON Structure schemas. ' \
'Pre-built binaries are automatically downloaded from GitHub releases.'
spec.homepage = 'https://github.com/json-structure/sdk'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.2.0'
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/json-structure/sdk'
spec.metadata['changelog_uri'] = 'https://github.com/json-structure/sdk/blob/main/CHANGELOG.md'
# Post-install message
spec.post_install_message = <<~MSG
Thank you for installing jsonstructure!
This gem uses pre-built C library binaries downloaded from GitHub releases.
If you encounter issues, please ensure you have an internet connection during installation,
or manually download the appropriate binary for your platform from:
https://github.com/json-structure/sdk/releases
MSG
# Specify which files should be added to the gem when it is released.
spec.files = Dir.glob('{lib,spec}/**/*') + %w[
Gemfile
Rakefile
README.md
]
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
# Runtime dependencies
spec.add_dependency 'ffi', '~> 1.15'
# Development dependencies
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.0'
end