sapoci 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11037deb2a5904bc2b8a3103a09776374045fe0f0de830fdf946ed28cc31b166
4
- data.tar.gz: 0426cadb39fc21891c2fd2187b9d3757af0ba571d295191f2203c516908a30fb
3
+ metadata.gz: fac235720f0c8fa34e04082501dc51f07b504193e8f6079150c19fa6c31a2f1e
4
+ data.tar.gz: 104fb6f6bd346140db21fb35804e04e60e554f79e49b31561b33f97881101658
5
5
  SHA512:
6
- metadata.gz: bdaaebfbadd35c9ac7c621869758ead3eb96fec20d1e07678e1b7684af9133c33e5230bbd9b9b1e66f836b47beed595c89aaa1271da449f4cf9c0bd17e43b62e
7
- data.tar.gz: 695433b2ad6a6f3925c52413ec34256c9be1d225dab6662fa549be159da0f177a8b4da2531dfa510600284fdb613ec792ae9913e5e0dc4332ff3042138133799
6
+ metadata.gz: '0239f6df628f3544c3118c8a5762eb183246361a830f647e9bbf050fb6b4ee6aaee7a5cbb5735b6f5c1d3122424904d0c4fa47019d30013ba5592fe7f09f2ad2'
7
+ data.tar.gz: '0939326674073b17994eca597496836d87ecd344e29e18ee7dc5dd96817631bb14024572b8ffc3c4de929e7128099a7f3b54abff2a1df5ded9271f5cb636d27f'
@@ -1,6 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'rubygems' unless RUBY_VERSION >= '1.9'
4
3
  require 'nokogiri'
5
4
  require 'sapoci/core_ext'
6
5
 
@@ -1,6 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'rubygems' unless RUBY_VERSION >= '1.9'
4
3
  require 'nokogiri'
5
4
  require 'sapoci/core_ext'
6
5
  require 'bigdecimal'
@@ -37,6 +36,7 @@ module SAPOCI
37
36
  attr_accessor :tax_code
38
37
  attr_accessor :sold_by
39
38
  attr_accessor :fulfilled_by
39
+ attr_accessor :gtin
40
40
  attr_accessor :cust_field1
41
41
  attr_accessor :cust_field2
42
42
  attr_accessor :cust_field3
@@ -67,6 +67,26 @@ module SAPOCI
67
67
  attr_accessor :cust_field28
68
68
  attr_accessor :cust_field29
69
69
  attr_accessor :cust_field30
70
+ attr_accessor :cust_field31
71
+ attr_accessor :cust_field32
72
+ attr_accessor :cust_field33
73
+ attr_accessor :cust_field34
74
+ attr_accessor :cust_field35
75
+ attr_accessor :cust_field36
76
+ attr_accessor :cust_field37
77
+ attr_accessor :cust_field38
78
+ attr_accessor :cust_field39
79
+ attr_accessor :cust_field40
80
+ attr_accessor :cust_field41
81
+ attr_accessor :cust_field42
82
+ attr_accessor :cust_field43
83
+ attr_accessor :cust_field44
84
+ attr_accessor :cust_field45
85
+ attr_accessor :cust_field46
86
+ attr_accessor :cust_field47
87
+ attr_accessor :cust_field48
88
+ attr_accessor :cust_field49
89
+ attr_accessor :cust_field50
70
90
 
71
91
  # Initializes the item.
72
92
  def initialize(index)
@@ -200,6 +220,7 @@ module SAPOCI
200
220
  html << hidden_field_tag("TAX_CODE", self.tax_code) unless self.tax_code.blank?
201
221
  html << hidden_field_tag("SOLD_BY", self.sold_by) unless self.sold_by.blank?
202
222
  html << hidden_field_tag("FULFILLED_BY", self.fulfilled_by) unless self.fulfilled_by.blank?
223
+ html << hidden_field_tag("GTIN", self.gtin) unless self.gtin.blank?
203
224
  html << hidden_field_tag("CUST_FIELD1", self.cust_field1) unless self.cust_field1.blank?
204
225
  html << hidden_field_tag("CUST_FIELD2", self.cust_field2) unless self.cust_field2.blank?
205
226
  html << hidden_field_tag("CUST_FIELD3", self.cust_field3) unless self.cust_field3.blank?
@@ -230,6 +251,26 @@ module SAPOCI
230
251
  html << hidden_field_tag("CUST_FIELD28", self.cust_field28) unless self.cust_field28.blank?
231
252
  html << hidden_field_tag("CUST_FIELD29", self.cust_field29) unless self.cust_field29.blank?
232
253
  html << hidden_field_tag("CUST_FIELD30", self.cust_field30) unless self.cust_field30.blank?
254
+ html << hidden_field_tag("CUST_FIELD31", self.cust_field31) unless self.cust_field31.blank?
255
+ html << hidden_field_tag("CUST_FIELD32", self.cust_field32) unless self.cust_field32.blank?
256
+ html << hidden_field_tag("CUST_FIELD33", self.cust_field33) unless self.cust_field33.blank?
257
+ html << hidden_field_tag("CUST_FIELD34", self.cust_field34) unless self.cust_field34.blank?
258
+ html << hidden_field_tag("CUST_FIELD35", self.cust_field35) unless self.cust_field35.blank?
259
+ html << hidden_field_tag("CUST_FIELD36", self.cust_field36) unless self.cust_field36.blank?
260
+ html << hidden_field_tag("CUST_FIELD37", self.cust_field37) unless self.cust_field37.blank?
261
+ html << hidden_field_tag("CUST_FIELD38", self.cust_field38) unless self.cust_field38.blank?
262
+ html << hidden_field_tag("CUST_FIELD39", self.cust_field39) unless self.cust_field39.blank?
263
+ html << hidden_field_tag("CUST_FIELD40", self.cust_field40) unless self.cust_field40.blank?
264
+ html << hidden_field_tag("CUST_FIELD41", self.cust_field41) unless self.cust_field41.blank?
265
+ html << hidden_field_tag("CUST_FIELD42", self.cust_field42) unless self.cust_field42.blank?
266
+ html << hidden_field_tag("CUST_FIELD43", self.cust_field43) unless self.cust_field43.blank?
267
+ html << hidden_field_tag("CUST_FIELD44", self.cust_field44) unless self.cust_field44.blank?
268
+ html << hidden_field_tag("CUST_FIELD45", self.cust_field45) unless self.cust_field45.blank?
269
+ html << hidden_field_tag("CUST_FIELD46", self.cust_field46) unless self.cust_field46.blank?
270
+ html << hidden_field_tag("CUST_FIELD47", self.cust_field47) unless self.cust_field47.blank?
271
+ html << hidden_field_tag("CUST_FIELD48", self.cust_field48) unless self.cust_field48.blank?
272
+ html << hidden_field_tag("CUST_FIELD49", self.cust_field49) unless self.cust_field49.blank?
273
+ html << hidden_field_tag("CUST_FIELD50", self.cust_field50) unless self.cust_field50.blank?
233
274
  html << "<input type=\"hidden\" name=\"NEW_ITEM-LONGTEXT_#{index + 1}:132[]\" value=\"#{escape_html(self.longtext)}\" />" unless self.longtext.blank?
234
275
  html.join
235
276
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapoci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Eilhard
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-30 00:00:00.000000000 Z
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,48 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.1
19
+ version: 2.1.4
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.1
26
+ version: 2.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.12'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 3.12.1
33
+ version: 6.2.1
37
34
  type: :development
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '3.12'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 3.12.1
40
+ version: 6.2.1
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: rake
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '10.4'
47
+ version: 13.0.1
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '10.4'
54
+ version: 13.0.1
61
55
  description: Ruby library and Rails plugin for punchout via SAP OCI protocol.
62
56
  email:
63
57
  - oliver.eilhard@gmail.com
@@ -81,7 +75,7 @@ homepage: http://github.com/meplato/sapoci
81
75
  licenses:
82
76
  - MIT
83
77
  metadata: {}
84
- post_install_message:
78
+ post_install_message:
85
79
  rdoc_options:
86
80
  - "--charset=UTF-8"
87
81
  require_paths:
@@ -90,15 +84,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
84
  requirements:
91
85
  - - "~>"
92
86
  - !ruby/object:Gem::Version
93
- version: '2.2'
87
+ version: '2.4'
94
88
  required_rubygems_version: !ruby/object:Gem::Requirement
95
89
  requirements:
96
90
  - - ">="
97
91
  - !ruby/object:Gem::Version
98
- version: 1.3.6
92
+ version: '0'
99
93
  requirements: []
100
94
  rubygems_version: 3.0.3
101
- signing_key:
95
+ signing_key:
102
96
  specification_version: 4
103
97
  summary: SAP OCI enables users to parse SAP OCI compliant data from online shops.
104
98
  test_files: []