siba_api 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 +7 -0
- data/.github/workflows/main.yml +18 -0
- data/.gitignore +18 -0
- data/.irbrc +5 -0
- data/.rspec +3 -0
- data/.rubocop.yml +14 -0
- data/CHANGELOG.md +0 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Dockerfile +11 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +107 -0
- data/LICENSE.txt +21 -0
- data/README.md +61 -0
- data/Rakefile +12 -0
- data/SEFRootCA.zip +0 -0
- data/bin/console +16 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +7 -0
- data/lib/siba_api/api/config/property.rb +25 -0
- data/lib/siba_api/api/config/property_set.rb +119 -0
- data/lib/siba_api/api/config.rb +101 -0
- data/lib/siba_api/api.rb +145 -0
- data/lib/siba_api/api_exceptions.rb +14 -0
- data/lib/siba_api/client.rb +144 -0
- data/lib/siba_api/configuration.rb +48 -0
- data/lib/siba_api/constants.rb +62 -0
- data/lib/siba_api/http_status_codes.rb +13 -0
- data/lib/siba_api/version.rb +5 -0
- data/lib/siba_api.rb +88 -0
- data/lib/xml/bal.xsd +196 -0
- data/lib/xml/countries.xml +1052 -0
- data/siba_api.gemspec +40 -0
- metadata +106 -0
data/siba_api.gemspec
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/siba_api/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'siba_api'
|
7
|
+
spec.version = SIBAApi::VERSION
|
8
|
+
spec.authors = ['Dinis']
|
9
|
+
spec.email = ['dinis@lage.pw']
|
10
|
+
|
11
|
+
spec.summary = 'SEF SIBA API Wrapper for Local Accommodation Bulletin submission.'
|
12
|
+
spec.description = 'A gem that implements functions from the SIBA API.'
|
13
|
+
spec.homepage = 'https://github.com/dlage/siba_api'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
|
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/dlage/siba_api'
|
21
|
+
spec.metadata['changelog_uri'] = 'https://github.com/dlage/siba_api/blob/master/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(File.expand_path(__dir__)) do
|
26
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
27
|
+
end
|
28
|
+
spec.bindir = 'exe'
|
29
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ['lib']
|
31
|
+
|
32
|
+
# Uncomment to register a new dependency of your gem
|
33
|
+
spec.add_dependency 'gyoku', '~> 1.0'
|
34
|
+
spec.add_dependency 'savon', '~> 2.12'
|
35
|
+
|
36
|
+
# spec.add_dependency 'dry-configurable', '~> 0.12.1'
|
37
|
+
|
38
|
+
# For more information and examples about making a new gem, checkout our
|
39
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: siba_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dinis
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-10-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: gyoku
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: savon
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.12'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.12'
|
41
|
+
description: A gem that implements functions from the SIBA API.
|
42
|
+
email:
|
43
|
+
- dinis@lage.pw
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".github/workflows/main.yml"
|
49
|
+
- ".gitignore"
|
50
|
+
- ".irbrc"
|
51
|
+
- ".rspec"
|
52
|
+
- ".rubocop.yml"
|
53
|
+
- CHANGELOG.md
|
54
|
+
- CODE_OF_CONDUCT.md
|
55
|
+
- Dockerfile
|
56
|
+
- Gemfile
|
57
|
+
- Gemfile.lock
|
58
|
+
- LICENSE.txt
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- SEFRootCA.zip
|
62
|
+
- bin/console
|
63
|
+
- bin/setup
|
64
|
+
- docker-compose.yml
|
65
|
+
- lib/siba_api.rb
|
66
|
+
- lib/siba_api/api.rb
|
67
|
+
- lib/siba_api/api/config.rb
|
68
|
+
- lib/siba_api/api/config/property.rb
|
69
|
+
- lib/siba_api/api/config/property_set.rb
|
70
|
+
- lib/siba_api/api_exceptions.rb
|
71
|
+
- lib/siba_api/client.rb
|
72
|
+
- lib/siba_api/configuration.rb
|
73
|
+
- lib/siba_api/constants.rb
|
74
|
+
- lib/siba_api/http_status_codes.rb
|
75
|
+
- lib/siba_api/version.rb
|
76
|
+
- lib/xml/bal.xsd
|
77
|
+
- lib/xml/countries.xml
|
78
|
+
- siba_api.gemspec
|
79
|
+
homepage: https://github.com/dlage/siba_api
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata:
|
83
|
+
allowed_push_host: https://rubygems.org
|
84
|
+
homepage_uri: https://github.com/dlage/siba_api
|
85
|
+
source_code_uri: https://github.com/dlage/siba_api
|
86
|
+
changelog_uri: https://github.com/dlage/siba_api/blob/master/CHANGELOG.md
|
87
|
+
post_install_message:
|
88
|
+
rdoc_options: []
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 2.4.0
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
requirements: []
|
102
|
+
rubygems_version: 3.2.33
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: SEF SIBA API Wrapper for Local Accommodation Bulletin submission.
|
106
|
+
test_files: []
|