eet 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/send_test.rb +23 -0
- data/bin/setup +8 -0
- data/eet.gemspec +31 -0
- data/lib/eet.rb +8 -0
- data/lib/eet/message.rb +62 -0
- data/lib/eet/sender.rb +13 -0
- data/lib/eet/signer_x.rb +21 -0
- data/lib/eet/utils.rb +32 -0
- data/lib/eet/version.rb +3 -0
- data/signed_message.xml +2 -0
- metadata +175 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e3876f03141adccbb892b99f4fe51fb203b02651
|
4
|
+
data.tar.gz: 1a0809ddd6b61e46400eac450f8222772675a4fd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 282e6c875b6222f7845101b8d7ec878507c2f9526463c9c57a0bb35acdf26db4291dd7687c6df6c68736de88bdb27fb756b0293fa142002029815efa474482ea
|
7
|
+
data.tar.gz: 4f407c76cf3ed8d994784f91281d893ebc123154fe703284675fe722ea86f9439ed544c8c36839050c26548c8a597a3f2bd7914cdf403a7bda530c50bcc645c9
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Premysl Donat
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Eet
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/eet_simple_sender`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'eet_simple_sender'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install eet_simple_sender
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/eet_simple_sender.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'eet'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/send_test.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'eet'
|
5
|
+
|
6
|
+
certificate = OpenSSL::PKCS12.new(File.open('spec/fixtures/EET_CA1_Playground-CZ00000019.p12'), 'eet')
|
7
|
+
|
8
|
+
data_to_register = { celk_trzba: '0.00', dat_trzby: "2017-02-04T13:09:55+00:00", dic_popl: "CZ00000019", id_pokl: "p1_czk", id_provoz: '11', porad_cis: '158', rezim: '0' }
|
9
|
+
|
10
|
+
pkp = Eet::Utils.create_pkp(data_to_register, certificate)
|
11
|
+
bkp = Eet::Utils.create_bkp(pkp)
|
12
|
+
|
13
|
+
data = { timestamp: Time.now.strftime('%FT%T%:z'), pkp: pkp, bkp: bkp, data: data_to_register }
|
14
|
+
|
15
|
+
message = Eet::Message.new(data)
|
16
|
+
|
17
|
+
signer = Eet::SignerX.new
|
18
|
+
signed_message = signer.sign(message.to_xml, certificate)
|
19
|
+
|
20
|
+
sender = Eet::Sender.new
|
21
|
+
response = sender.call(signed_message)
|
22
|
+
|
23
|
+
puts response.body
|
data/bin/setup
ADDED
data/eet.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'eet/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "eet"
|
8
|
+
spec.version = Eet::VERSION
|
9
|
+
spec.authors = ["Premysl Donat"]
|
10
|
+
spec.email = ["pdonat@seznam.cz"]
|
11
|
+
|
12
|
+
spec.summary = "Simple eet sender"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
+
f.match(%r{^(test|spec|features)/})
|
17
|
+
end
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency "savon"
|
23
|
+
spec.add_dependency "signer"
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
+
spec.add_development_dependency "pry"
|
29
|
+
spec.add_development_dependency "vcr"
|
30
|
+
spec.add_development_dependency "webmock"
|
31
|
+
end
|
data/lib/eet.rb
ADDED
data/lib/eet/message.rb
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'nokogiri'
|
2
|
+
require 'base64'
|
3
|
+
require 'digest'
|
4
|
+
require 'securerandom'
|
5
|
+
|
6
|
+
module Eet
|
7
|
+
class Message
|
8
|
+
SOAP_ENV_SCHEMA = "http://schemas.xmlsoap.org/soap/envelope/"
|
9
|
+
WSSE_SCHEMA = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
10
|
+
WSU_SCHEMA = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
|
11
|
+
WSU_ID = 'artificial_id'
|
12
|
+
|
13
|
+
attr_accessor :data, :options
|
14
|
+
|
15
|
+
def initialize(data, options = { already_issued: false, first_send: true })
|
16
|
+
@data = data
|
17
|
+
@options = options
|
18
|
+
end
|
19
|
+
|
20
|
+
def body
|
21
|
+
Nokogiri::XML::Builder.new('encoding' => 'UTF-8') do |xml|
|
22
|
+
xml.Trzba(xmlns: 'http://fs.mfcr.cz/eet/schema/v3') do
|
23
|
+
xml.Hlavicka(dat_odesl: data[:timestamp], prvni_zaslani: @options[:first_send], uuid_zpravy: SecureRandom.uuid)
|
24
|
+
|
25
|
+
xml.Data(data[:data])
|
26
|
+
|
27
|
+
xml.KontrolniKody do
|
28
|
+
xml.pkp(cipher: 'RSA2048', digest: 'SHA256', encoding: 'base64') do
|
29
|
+
xml.text(data[:pkp])
|
30
|
+
end
|
31
|
+
|
32
|
+
xml.bkp(digest: 'SHA1', encoding: 'base16') do
|
33
|
+
xml.text(data[:bkp])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end.doc
|
38
|
+
end
|
39
|
+
|
40
|
+
def envelope
|
41
|
+
Nokogiri::XML::Builder.new('encoding' => 'UTF-8') do |xml|
|
42
|
+
xml['soap'].Envelope('xmlns:soap' => "http://schemas.xmlsoap.org/soap/envelope/") do
|
43
|
+
xml['SOAP-ENV'].Header('xmlns:SOAP-ENV' => SOAP_ENV_SCHEMA) do
|
44
|
+
xml['wsse'].Security('xmlns:wsse' => WSSE_SCHEMA, 'xmlns:wsu' => WSU_SCHEMA, 'soap:mustUnderstand' => '1')
|
45
|
+
end
|
46
|
+
|
47
|
+
xml['soap'].Body('xmlns:wsu' => WSU_SCHEMA, 'wsu:Id' => WSU_ID) do
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end.doc
|
51
|
+
end
|
52
|
+
|
53
|
+
def to_xml
|
54
|
+
msg = envelope.dup
|
55
|
+
body = msg.at_xpath('//soap:Body')
|
56
|
+
body.add_child(self.body.root)
|
57
|
+
|
58
|
+
msg
|
59
|
+
end
|
60
|
+
end
|
61
|
+
# <Data celk_trzba="34113.00" cerp_zuct="679.00" cest_sluz="5460.00" dan1="-172.39" dan2="-530.73" dan3="975.65" dat_trzby="2016-08-05T00:30:12+02:00" dic_popl="CZ00000019" dic_poverujiciho="CZ683555118" id_pokl="/5546/RO24" id_provoz="273" porad_cis="0/6460/ZQ42" pouzit_zboz1="784.00" pouzit_zboz2="967.00" pouzit_zboz3="189.00" rezim="0" urceno_cerp_zuct="324.00" zakl_dan1="-820.92" zakl_dan2="-3538.20" zakl_dan3="9756.46" zakl_nepodl_dph="3036.00"/>
|
62
|
+
end
|
data/lib/eet/sender.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'savon'
|
2
|
+
|
3
|
+
module Eet
|
4
|
+
class Sender
|
5
|
+
attr_reader :message
|
6
|
+
|
7
|
+
def call(xml)
|
8
|
+
client = Savon.client(wsdl: 'https://pg.eet.cz:443/eet/services/EETServiceSOAP/v3?wsdl', open_timeout: 2)
|
9
|
+
response = client.call(:odeslani_trzby, xml: xml)
|
10
|
+
response
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/eet/signer_x.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'signer'
|
2
|
+
|
3
|
+
module Eet
|
4
|
+
class SignerX
|
5
|
+
def sign(xml, certificate)
|
6
|
+
signer = Signer.new(xml)
|
7
|
+
signer.cert = OpenSSL::X509::Certificate.new(certificate.certificate)
|
8
|
+
signer.private_key = OpenSSL::PKey::RSA.new(certificate.key, 'eet')
|
9
|
+
|
10
|
+
signer.security_node = signer.document.children.first.children.first.children.first
|
11
|
+
signer.digest_algorithm = :sha256
|
12
|
+
signer.signature_digest_algorithm = :sha256
|
13
|
+
signer.ds_namespace_prefix = 'ds'
|
14
|
+
signer.security_token_id = 'A79845F15C5549CA0514761283545705'
|
15
|
+
signer.digest!(signer.document.at_xpath('//soap:Body'), inclusive_namespaces: [''])
|
16
|
+
signer.sign!(security_token: true, inclusive_namespaces: ['soap'])
|
17
|
+
|
18
|
+
signer.to_xml
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/eet/utils.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
module Eet
|
2
|
+
module Utils
|
3
|
+
def self.create_pkp(data, certificate)
|
4
|
+
digest = OpenSSL::Digest::SHA256.new
|
5
|
+
signature = certificate.key.sign(digest, serialize_pkp_data(data))
|
6
|
+
Base64.encode64(signature).delete("\n")
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.create_bkp(pkp_value)
|
10
|
+
decoded = Base64.decode64(pkp_value)
|
11
|
+
digest = Digest::SHA1.digest(decoded)
|
12
|
+
|
13
|
+
ret = ''
|
14
|
+
encoded =
|
15
|
+
digest.each_char do |c|
|
16
|
+
ch = c.ord.to_s(16)
|
17
|
+
ch = '0' + ch if ch.size == 1
|
18
|
+
ret += ch
|
19
|
+
end
|
20
|
+
|
21
|
+
# '9356D566-A3E48838-FB403790-D201244E-95DCBD92'
|
22
|
+
ret.upcase.chars.each_slice(8).map(&:join).join('-')
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def self.serialize_pkp_data(data)
|
28
|
+
# "CZ72080043|181|00/2535/CN58|0/2482/IE25|2016-12-07T22:01:00+01:00|87988.00"
|
29
|
+
[data[:dic_popl], data[:id_provoz], data[:id_pokl], data[:porad_cis], data[:dat_trzby], data[:celk_trzba]].join('|')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/eet/version.rb
ADDED
data/signed_message.xml
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="1"><wsse:BinarySecurityToken ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" wsu:Id="A79845F15C5549CA0514761283545705">MIIEmDCCA4CgAwIBAgIEdHOXJzANBgkqhkiG9w0BAQsFADB3MRIwEAYKCZImiZPyLGQBGRYCQ1oxQzBBBgNVBAoMOsSMZXNrw6EgUmVwdWJsaWthIOKAkyBHZW5lcsOhbG7DrSBmaW5hbsSNbsOtIMWZZWRpdGVsc3R2w60xHDAaBgNVBAMTE0VFVCBDQSAxIFBsYXlncm91bmQwHhcNMTYwOTMwMDkwMzU5WhcNMTkwOTMwMDkwMzU5WjBDMRIwEAYKCZImiZPyLGQBGRYCQ1oxEzARBgNVBAMTCkNaMDAwMDAwMTkxGDAWBgNVBA0TD3ByYXZuaWNrYSBvc29iYTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnNUPW8rAlLi2KAwu12W1vqLj02mWIifq/Jp0/tUjf9B8RpkDAD3GOqDdVuHSfxej92WiEouDy7X8uXzIDdZu4pXA3t3KntxM8rAlu2U6SqtF3kTR+AJCdwfkM53U3z4/qoyKqdQ8lGuMxJKs7X5uIjcY/UDSXMK9OTmXRhndjYcX1oILr5F2ONf1Z0kWyl/S9wI0cl0gQ1F91mzqgnlH80u2inMmmBp42ndR4TGS1nvjer5D73bkLg07TdeqnUg609WwjUJN96OKZMsKXzBMzt09NbhQcABWnAWbRTSVhsAdDO8vfmWx2C+gXUlkIvtO+9fbj81GS1xdNoAkpARUcCAwEAAaOCAV4wggFaMAkGA1UdEwQCMAAwHQYDVR0OBBYEFL/0b0Iw6FY33UT8iJEy1V7nZVR6MB8GA1UdIwQYMBaAFHwwdqzM1ofR7Mkf4nAILONf3gwHMA4GA1UdDwEB/wQEAwIGwDBjBgNVHSAEXDBaMFgGCmCGSAFlAwIBMAEwSjBIBggrBgEFBQcCAjA8DDpUZW50byBjZXJ0aWZpa8OhdCBieWwgdnlkw6FuIHBvdXplIHBybyB0ZXN0b3ZhY8OtIMO6xI1lbHkuMIGXBgNVHR8EgY8wgYwwgYmggYaggYOGKWh0dHA6Ly9jcmwuY2ExLXBnLmVldC5jei9lZXRjYTFwZy9hbGwuY3JshipodHRwOi8vY3JsMi5jYTEtcGcuZWV0LmN6L2VldGNhMXBnL2FsbC5jcmyGKmh0dHA6Ly9jcmwzLmNhMS1wZy5lZXQuY3ovZWV0Y2ExcGcvYWxsLmNybDANBgkqhkiG9w0BAQsFAAOCAQEAvXdWsU+Ibd1VysKnjoy6RCYVcI9+oRUSSTvQQDJLFjwn5Sm6Hebhci8ERGwAzd2R6uqPdzl1KCjmHOitypZ66e+/e9wj3BaDqgBKRZYvxZykaVUdtQgG0819JZmiXTbGgOCKiUPIXO80cnP7U1ZPkVNV7WZwh0I2k/fg1VLTI5HA/x4BeD77wiEOExa7eqePJET0jpTVK3LxSW59LLIJROh4/kfKQbTvDL5Ypw8WagAMVCPvWnGJIcUru+ApLU4pZD9bdHSa1Ib4LpFhtWrkHYM/XqKbj2bNKKjTo5T3sU0Bf2QD3QzkmcjlNVG0V+qAgimwTdPueU/mtExw+7z1/A==</wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-A79845F15C5549CA0514761283545705"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="soap"/></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference URI="#id-A79845F15C5549CA0514761283545594"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList=""/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>oS2z6lczmYZH/h43TyGdNym/D0luvr+EcrdhBKAvJdk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>kJfGdND8bjLgz/9PzmU1yPODpwY1itokVCcKOp7egFGQ4Klfu0aNMYTu6Og3KHOHO/776jzuvdoL91FExIKRzgg3KRl+qtiRNFkc/4Wtq7vqsDUJAiEEBSRnb2ndsZsRqOvGtnTxSxFCX9UkzTz10kqEaReWKpsqW9E1YsyX7MBzMIgH2jVyvr7+f/s0Ec7SYgNzPhRffYZqwgVtf/Elqib6pfPw3Wa+zUvJjS4712rmxKcgaMfh0NK8vORFQ4UkcJq3T4ZXvI5LRJnP0KoHA0cx0nHkZ34MCGfhKfsOVgFi3KU9PiLME3v3NF5YRKBerdJgwH6GfaeJ20xnAqgKQg==</ds:SignatureValue><ds:KeyInfo><wsse:SecurityTokenReference><wsse:Reference ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" URI="#A79845F15C5549CA0514761283545705"/></wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature></wsse:Security></SOAP-ENV:Header><soap:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-A79845F15C5549CA0514761283545594"><Trzba xmlns="http://fs.mfcr.cz/eet/schema/v3"><Hlavicka dat_odesl="2017-02-19T13:02:18+01:00" prvni_zaslani="true" uuid_zpravy="5de35318-409b-441d-a5ae-ae1bcbc521fe"/><Data celk_trzba="0.00" dat_trzby="2017-02-04T13:09:55+00:00" dic_popl="CZ00000019" id_pokl="p1_czk" id_provoz="11" porad_cis="158" rezim="0"/><KontrolniKody><pkp cipher="RSA2048" digest="SHA256" encoding="base64">K/Jdtya/dZnZezhdI695kuQrS5WplQ78pJ+mpUuDXLZ4T6efyjCmYOYntG7GJ4nIW1m9K7cWuZQqmHnzPJsilgrX9hmHyAHHEztKdxnUUNFzg7jXsk/pP1RnNe8bfzLXIRc7OBDu9XlcbdltDqMcl7hTGZHzPN/s2/V/OAnzpT7rjzgGid9KTcwqEL2LEbTTxGbPmFsEKAgAsSrmhsQhgjwuyVmWTI17sWkvBaSE7y5pvTs81trszSrgwTRZ3PFg7MulpSA86fvZeuuqRjOrQGBMEGQJ3ade4kPV/f8edDCVb5B3mE9ZoDSsQpS0pZ8smHHcmrzkE5ZG6WxgBBsp9Q==</pkp><bkp digest="SHA1" encoding="base16">490A3B21-40AB90CC-43A91EA7-AE96C145-358FC380</bkp></KontrolniKody></Trzba></soap:Body></soap:Envelope>
|
metadata
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: eet
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Premysl Donat
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: savon
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: signer
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.13'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.13'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: vcr
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webmock
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
- pdonat@seznam.cz
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".rspec"
|
134
|
+
- ".travis.yml"
|
135
|
+
- Gemfile
|
136
|
+
- LICENSE.txt
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
139
|
+
- bin/console
|
140
|
+
- bin/send_test.rb
|
141
|
+
- bin/setup
|
142
|
+
- eet.gemspec
|
143
|
+
- lib/eet.rb
|
144
|
+
- lib/eet/message.rb
|
145
|
+
- lib/eet/sender.rb
|
146
|
+
- lib/eet/signer_x.rb
|
147
|
+
- lib/eet/utils.rb
|
148
|
+
- lib/eet/version.rb
|
149
|
+
- signed_message.xml
|
150
|
+
homepage:
|
151
|
+
licenses:
|
152
|
+
- MIT
|
153
|
+
metadata: {}
|
154
|
+
post_install_message:
|
155
|
+
rdoc_options: []
|
156
|
+
require_paths:
|
157
|
+
- lib
|
158
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
requirements: []
|
169
|
+
rubyforge_project:
|
170
|
+
rubygems_version: 2.6.8
|
171
|
+
signing_key:
|
172
|
+
specification_version: 4
|
173
|
+
summary: Simple eet sender
|
174
|
+
test_files: []
|
175
|
+
has_rdoc:
|