rspayd 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/lib/rspayd/version.rb +2 -1
- data/lib/rspayd.rb +4 -3
- data/rspayd.gemspec +1 -1
- metadata +4 -4
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,7 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
## Contributing
|
33
33
|
|
34
|
-
This gem implements only the basic
|
34
|
+
This gem implements only the basic SPAYD subset needed for simple payment in Czech Republic. Feel free to extend this gem based on your needs and send pull requests.
|
35
35
|
|
36
36
|
1. Fork it
|
37
37
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
data/lib/rspayd/version.rb
CHANGED
data/lib/rspayd.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
require File.expand_path(File.join(File.dirname(__FILE__), 'rspayd/version'))
|
2
3
|
|
3
4
|
module Rspayd
|
4
5
|
class CzechPayment
|
@@ -31,7 +32,7 @@ module Rspayd
|
|
31
32
|
"CZ#{checksum}#{base}"
|
32
33
|
end
|
33
34
|
|
34
|
-
#
|
35
|
+
# SPAYD string for payment
|
35
36
|
def to_s
|
36
37
|
out = []
|
37
38
|
out << "SPD*1.0"
|
@@ -43,7 +44,7 @@ module Rspayd
|
|
43
44
|
out.join
|
44
45
|
end
|
45
46
|
|
46
|
-
# generates
|
47
|
+
# generates SPAYD string for payment
|
47
48
|
def self.generate_string(options)
|
48
49
|
new(options).to_s
|
49
50
|
end
|
data/rspayd.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspayd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- !binary |
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2013-
|
20
|
+
date: 2013-02-06 00:00:00 Z
|
21
21
|
dependencies: []
|
22
22
|
|
23
23
|
description: Gem for generating spayd content
|