rs.ge 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RS
4
- VERSION = '0.0.12'
4
+ VERSION = '0.0.13'
5
5
  end
@@ -316,15 +316,23 @@ module RS
316
316
  def validate_remote(opts)
317
317
  # driver validation
318
318
  if self.transport_type_id == RS::TransportType::VEHICLE and self.check_driver_tin
319
- driver_name = RS.get_name_from_tin('su' => opts['su'], 'sp' => opts['sp'], 'tin' => self.driver_tin)
320
- RS.append_validation_error(@validation_errors, :driver_tin, "საიდ. ნომერი ვერ მოიძებნა: #{self.driver_tin}") if driver_name.nil?
321
- RS.append_validation_error(@validation_errors, :driver_name, "მძღოლის სახელია: #{driver_name}") if driver_name and driver_name != self.driver_name
319
+ unless self.driver_tin.nil? or self.driver_tin.strip.empty?
320
+ driver_name = RS.get_name_from_tin('su' => opts['su'], 'sp' => opts['sp'], 'tin' => self.driver_tin)
321
+ RS.append_validation_error(@validation_errors, :driver_tin, "საიდ. ნომერი ვერ მოიძებნა: #{self.driver_tin}") if driver_name.nil?
322
+ RS.append_validation_error(@validation_errors, :driver_name, "მძღოლის სახელია: #{driver_name}") if driver_name and driver_name != self.driver_name
323
+ else
324
+ RS.append_validation_error(@validation_errors, :driver_tin, "მძღოლის პირადი ნომერი არაა მითითებული.")
325
+ end
322
326
  end
323
327
  # buyer validation
324
328
  if self.check_buyer_tin
325
- buyer_name = RS.get_name_from_tin('su' => opts['su'], 'sp' => opts['sp'], 'tin' => self.buyer_tin)
326
- RS.append_validation_error(@validation_errors, :buyer_tin, "საიდ. ნომერი ვერ მოიძებნა: #{self.buyer_tin}") if buyer_name.nil?
327
- RS.append_validation_error(@validation_errors, :buyer_name, "მყიდველის სახელია: #{buyer_name}") if buyer_name != self.buyer_name
329
+ unless self.buyer_tin.nil? or self.buyer_tin.strip.empty?
330
+ buyer_name = RS.get_name_from_tin('su' => opts['su'], 'sp' => opts['sp'], 'tin' => self.buyer_tin)
331
+ RS.append_validation_error(@validation_errors, :buyer_tin, "საიდ. ნომერი ვერ მოიძებნა: #{self.buyer_tin}") if buyer_name.nil?
332
+ RS.append_validation_error(@validation_errors, :buyer_name, "მყიდველის სახელია: #{buyer_name}") if buyer_name != self.buyer_name
333
+ else
334
+ RS.append_validation_error(@validation_errors, :buyer_tin, "მყიდველის პირადი ნომერი არაა მითითებული.")
335
+ end
328
336
  end
329
337
  end
330
338
 
@@ -243,7 +243,7 @@ S
243
243
  BT
244
244
  367.06 787.246 Td
245
245
  /F1.0 7 Tf
246
- <32303a3534> Tj
246
+ <30303a3234> Tj
247
247
  ET
248
248
 
249
249
  0.000 0.000 0.000 scn
@@ -6064,7 +6064,7 @@ S
6064
6064
  BT
6065
6065
  439.56 112.88399999999965 Td
6066
6066
  /F1.0 7 Tf
6067
- <32303a3534> Tj
6067
+ <30303a3234> Tj
6068
6068
  ET
6069
6069
 
6070
6070
  0.000 0.000 0.000 scn
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rs.ge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-17 00:00:00.000000000 Z
12
+ date: 2012-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70227644777100 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '2'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70227644777100
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: simplecov
27
- requirement: &70227644776700 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70227644776700
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: savon
38
- requirement: &70227644776240 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70227644776240
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: httpi
49
- requirement: &70227644738620 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70227644738620
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: prawn
60
- requirement: &70227644737980 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0.12'
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *70227644737980
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '0.12'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: c12-commons
71
- requirement: &70227644737200 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,7 +101,12 @@ dependencies:
76
101
  version: '0'
77
102
  type: :runtime
78
103
  prerelease: false
79
- version_requirements: *70227644737200
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  description: ruby client for rs.ge web services
81
111
  email:
82
112
  - dimitri@c12.ge
@@ -129,18 +159,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
159
  version: '0'
130
160
  requirements: []
131
161
  rubyforge_project: rs
132
- rubygems_version: 1.8.15
162
+ rubygems_version: 1.8.19
133
163
  signing_key:
134
164
  specification_version: 3
135
165
  summary: rs.ge web services
136
- test_files:
137
- - spec/rs/dict_spec.rb
138
- - spec/rs/open_user.rb
139
- - spec/rs/pdf_spec.rb
140
- - spec/rs/sys_spec.rb
141
- - spec/rs/waybill_delete_spec.rb
142
- - spec/rs/waybill_invoice_spec.rb
143
- - spec/rs/waybill_spec.rb
144
- - spec/rs/waybill_validation_spec.rb
145
- - spec/spec_helper.rb
166
+ test_files: []
146
167
  has_rdoc: