ci_power 0.0.4 → 0.0.5

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.
@@ -6,22 +6,27 @@ module CiPower
6
6
  :address_identification_debtor
7
7
 
8
8
  def cip_default_data
9
- fill_up(record_type => 2, group_no => 7, address_identification_debtee => 25, address_identification_debtor => 25)
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
- line = ""
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
@@ -1,3 +1,3 @@
1
1
  module CiPower
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
- segments:
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 00:00:00 +01:00
13
+ date: 2012-01-16 00:00:00 +01:00
19
14
  default_executable:
20
15
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rspec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
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/action.rb
46
- - lib/ci_power/address.rb
47
- - lib/ci_power/communication.rb
48
- - lib/ci_power/debt_claim.rb
49
- - lib/ci_power/dossier_data.rb
50
- - lib/ci_power/export.rb
51
- - lib/ci_power/record.rb
52
- - lib/ci_power/version.rb
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
- - !ruby/object:Gem::Version
71
- hash: 3
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
- - !ruby/object:Gem::Version
80
- hash: 3
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.6.2
73
+ rubygems_version: 1.5.1
88
74
  signing_key:
89
75
  specification_version: 3
90
76
  summary: CI-Power Interface