ci_power 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ci_power/record.rb +14 -9
- data/lib/ci_power/version.rb +1 -1
- metadata +35 -49
data/lib/ci_power/record.rb
CHANGED
@@ -6,22 +6,27 @@ module CiPower
|
|
6
6
|
:address_identification_debtor
|
7
7
|
|
8
8
|
def cip_default_data
|
9
|
-
|
9
|
+
_fill_up(record_type => 2, group_no => 7, address_identification_debtee => 25, address_identification_debtor => 25)
|
10
10
|
end
|
11
11
|
|
12
12
|
def fill_up(data)
|
13
|
-
|
14
|
-
if data.is_a? Hash
|
15
|
-
data.each do |field, length|
|
16
|
-
field = field.to_s unless field.is_a? String
|
17
|
-
line << field.ljust(length)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
line + line_terminator
|
13
|
+
_fill_up(data) + line_terminator
|
21
14
|
end
|
22
15
|
|
23
16
|
def line_terminator
|
24
17
|
"\n"
|
25
18
|
end
|
19
|
+
|
20
|
+
private
|
21
|
+
def _fill_up(data)
|
22
|
+
line = ""
|
23
|
+
if data.is_a? Hash
|
24
|
+
data.each do |field, length|
|
25
|
+
field = field.to_s unless field.is_a? String
|
26
|
+
line << field.ljust(length)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
line
|
30
|
+
end
|
26
31
|
end
|
27
32
|
end
|
data/lib/ci_power/version.rb
CHANGED
metadata
CHANGED
@@ -1,40 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci_power
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 0.0.4
|
5
|
+
version: 0.0.5
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
|
-
- Maik Duff
|
8
|
+
- Maik Duff
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-16 00:00:00 +01:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
version: "0"
|
33
|
-
type: :development
|
34
|
-
version_requirements: *id001
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rspec
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
type: :development
|
26
|
+
version_requirements: *id001
|
35
27
|
description: Creates input files for CI-Power interface
|
36
28
|
email:
|
37
|
-
- md@impac.ch
|
29
|
+
- md@impac.ch
|
38
30
|
executables: []
|
39
31
|
|
40
32
|
extensions: []
|
@@ -42,18 +34,18 @@ extensions: []
|
|
42
34
|
extra_rdoc_files: []
|
43
35
|
|
44
36
|
files:
|
45
|
-
- lib/ci_power
|
46
|
-
- lib/ci_power/
|
47
|
-
- lib/ci_power/
|
48
|
-
- lib/ci_power/
|
49
|
-
- lib/ci_power/
|
50
|
-
- lib/ci_power/
|
51
|
-
- lib/ci_power/
|
52
|
-
- lib/ci_power/
|
53
|
-
- lib/ci_power.rb
|
54
|
-
- lib/generators/ci_power/ci_power_generator.rb
|
55
|
-
- lib/generators/ci_power/templates/cip_export.rb
|
56
|
-
- lib/tasks/ci_power.rake
|
37
|
+
- lib/ci_power.rb
|
38
|
+
- lib/ci_power/action.rb
|
39
|
+
- lib/ci_power/address.rb
|
40
|
+
- lib/ci_power/communication.rb
|
41
|
+
- lib/ci_power/debt_claim.rb
|
42
|
+
- lib/ci_power/dossier_data.rb
|
43
|
+
- lib/ci_power/export.rb
|
44
|
+
- lib/ci_power/record.rb
|
45
|
+
- lib/ci_power/version.rb
|
46
|
+
- lib/generators/ci_power/ci_power_generator.rb
|
47
|
+
- lib/generators/ci_power/templates/cip_export.rb
|
48
|
+
- lib/tasks/ci_power.rake
|
57
49
|
has_rdoc: true
|
58
50
|
homepage: ""
|
59
51
|
licenses: []
|
@@ -62,29 +54,23 @@ post_install_message:
|
|
62
54
|
rdoc_options: []
|
63
55
|
|
64
56
|
require_paths:
|
65
|
-
- lib
|
57
|
+
- lib
|
66
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
59
|
none: false
|
68
60
|
requirements:
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: "0"
|
75
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
65
|
none: false
|
77
66
|
requirements:
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
segments:
|
82
|
-
- 0
|
83
|
-
version: "0"
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: "0"
|
84
70
|
requirements: []
|
85
71
|
|
86
72
|
rubyforge_project: ci_power
|
87
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.5.1
|
88
74
|
signing_key:
|
89
75
|
specification_version: 3
|
90
76
|
summary: CI-Power Interface
|