sapoci 0.4.1 → 0.5.1

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: 2d1cc330a07464884e5c00cc6e73cf47b60154eaf3b9f2bdad12d68619b17885
4
- data.tar.gz: 1475ce80de9ec64204a4b1c1c901ecb2f6e4332915d058edab2391535e168870
3
+ metadata.gz: 40ff103d00b49a20433f21ea585c75dc673cf19952a474b39e5f4df5a8a0415c
4
+ data.tar.gz: a9f6fb38690626490d09f81afd4dff89b7ba2dafff1713588b08c2ff44f8cefb
5
5
  SHA512:
6
- metadata.gz: cf694cd8cb10aa1c4431c2781989615ef3485bc40293f304fc3e6f3c30cbbf1b3a684bef47abce1b61c5d9fa6eeeba06e429180ab5d4248d6aad39696a313a92
7
- data.tar.gz: 6bdcc6176debb58d85548a89c302450488cf9988fda4f266acbd8ffa89148ee85692b97f1fbfd152b8c8c2358c6beb3a5cc45b1f7e0e1bfd490cf692893154e9
6
+ metadata.gz: 5ecf3d0fac25ab24b3609f2742bc706d2e415d65d2b2734f8955e7d2f859d756dd787ec2bfe39aa0a1f23085dea09e585e3fb0303464c6740b3807e2321d2890
7
+ data.tar.gz: aff75400df74df88a904749f93d4a8aa0b890705fb7f07ea8ecf6ccd57d044eaf063792801e2fcb0aa2dd6bfbcb4bfb21fc3f5b4e7ca5ab43db8a78f38124be0
data/README.md CHANGED
@@ -1,13 +1,15 @@
1
1
  # SAP-OCI
2
2
 
3
+ [![Test](https://github.com/meplato/sapoci/actions/workflows/test.yml/badge.svg)](https://github.com/meplato/sapoci/actions/workflows/test.yml)
4
+
3
5
  ## Description
4
6
 
5
7
  Ruby library and Rails plugin for punchout via SAP OCI protocol.
6
8
 
7
9
  ## Installation
8
10
 
9
- ```
10
- $ gem install sapoci
11
+ ```sh
12
+ gem install sapoci
11
13
  ```
12
14
 
13
15
  ## License
@@ -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
 
data/lib/sapoci/item.rb CHANGED
@@ -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'
@@ -34,6 +33,7 @@ module SAPOCI
34
33
  attr_accessor :sld_sys_name
35
34
  attr_accessor :mps_sage_number
36
35
  attr_accessor :mps_sage_contract
36
+ attr_accessor :tax_rate
37
37
  attr_accessor :tax_code
38
38
  attr_accessor :sold_by
39
39
  attr_accessor :fulfilled_by
@@ -68,6 +68,26 @@ module SAPOCI
68
68
  attr_accessor :cust_field28
69
69
  attr_accessor :cust_field29
70
70
  attr_accessor :cust_field30
71
+ attr_accessor :cust_field31
72
+ attr_accessor :cust_field32
73
+ attr_accessor :cust_field33
74
+ attr_accessor :cust_field34
75
+ attr_accessor :cust_field35
76
+ attr_accessor :cust_field36
77
+ attr_accessor :cust_field37
78
+ attr_accessor :cust_field38
79
+ attr_accessor :cust_field39
80
+ attr_accessor :cust_field40
81
+ attr_accessor :cust_field41
82
+ attr_accessor :cust_field42
83
+ attr_accessor :cust_field43
84
+ attr_accessor :cust_field44
85
+ attr_accessor :cust_field45
86
+ attr_accessor :cust_field46
87
+ attr_accessor :cust_field47
88
+ attr_accessor :cust_field48
89
+ attr_accessor :cust_field49
90
+ attr_accessor :cust_field50
71
91
 
72
92
  # Initializes the item.
73
93
  def initialize(index)
@@ -232,6 +252,26 @@ module SAPOCI
232
252
  html << hidden_field_tag("CUST_FIELD28", self.cust_field28) unless self.cust_field28.blank?
233
253
  html << hidden_field_tag("CUST_FIELD29", self.cust_field29) unless self.cust_field29.blank?
234
254
  html << hidden_field_tag("CUST_FIELD30", self.cust_field30) unless self.cust_field30.blank?
255
+ html << hidden_field_tag("CUST_FIELD31", self.cust_field31) unless self.cust_field31.blank?
256
+ html << hidden_field_tag("CUST_FIELD32", self.cust_field32) unless self.cust_field32.blank?
257
+ html << hidden_field_tag("CUST_FIELD33", self.cust_field33) unless self.cust_field33.blank?
258
+ html << hidden_field_tag("CUST_FIELD34", self.cust_field34) unless self.cust_field34.blank?
259
+ html << hidden_field_tag("CUST_FIELD35", self.cust_field35) unless self.cust_field35.blank?
260
+ html << hidden_field_tag("CUST_FIELD36", self.cust_field36) unless self.cust_field36.blank?
261
+ html << hidden_field_tag("CUST_FIELD37", self.cust_field37) unless self.cust_field37.blank?
262
+ html << hidden_field_tag("CUST_FIELD38", self.cust_field38) unless self.cust_field38.blank?
263
+ html << hidden_field_tag("CUST_FIELD39", self.cust_field39) unless self.cust_field39.blank?
264
+ html << hidden_field_tag("CUST_FIELD40", self.cust_field40) unless self.cust_field40.blank?
265
+ html << hidden_field_tag("CUST_FIELD41", self.cust_field41) unless self.cust_field41.blank?
266
+ html << hidden_field_tag("CUST_FIELD42", self.cust_field42) unless self.cust_field42.blank?
267
+ html << hidden_field_tag("CUST_FIELD43", self.cust_field43) unless self.cust_field43.blank?
268
+ html << hidden_field_tag("CUST_FIELD44", self.cust_field44) unless self.cust_field44.blank?
269
+ html << hidden_field_tag("CUST_FIELD45", self.cust_field45) unless self.cust_field45.blank?
270
+ html << hidden_field_tag("CUST_FIELD46", self.cust_field46) unless self.cust_field46.blank?
271
+ html << hidden_field_tag("CUST_FIELD47", self.cust_field47) unless self.cust_field47.blank?
272
+ html << hidden_field_tag("CUST_FIELD48", self.cust_field48) unless self.cust_field48.blank?
273
+ html << hidden_field_tag("CUST_FIELD49", self.cust_field49) unless self.cust_field49.blank?
274
+ html << hidden_field_tag("CUST_FIELD50", self.cust_field50) unless self.cust_field50.blank?
235
275
  html << "<input type=\"hidden\" name=\"NEW_ITEM-LONGTEXT_#{index + 1}:132[]\" value=\"#{escape_html(self.longtext)}\" />" unless self.longtext.blank?
236
276
  html.join
237
277
  end
metadata CHANGED
@@ -1,63 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapoci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.1
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-10-09 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.11.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.11.4
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: 2.0.1
33
+ version: 2.2.17
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: 2.0.1
40
+ version: 2.2.17
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rdoc
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '3.12'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 3.12.1
47
+ version: 6.3.1
37
48
  type: :development
38
49
  prerelease: false
39
50
  version_requirements: !ruby/object:Gem::Requirement
40
51
  requirements:
41
52
  - - "~>"
42
53
  - !ruby/object:Gem::Version
43
- version: '3.12'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 3.12.1
54
+ version: 6.3.1
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: rake
49
57
  requirement: !ruby/object:Gem::Requirement
50
58
  requirements:
51
59
  - - "~>"
52
60
  - !ruby/object:Gem::Version
53
- version: '10.4'
61
+ version: 13.0.3
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
65
  requirements:
58
66
  - - "~>"
59
67
  - !ruby/object:Gem::Version
60
- version: '10.4'
68
+ version: 13.0.3
61
69
  description: Ruby library and Rails plugin for punchout via SAP OCI protocol.
62
70
  email:
63
71
  - oliver.eilhard@gmail.com
@@ -81,24 +89,24 @@ homepage: http://github.com/meplato/sapoci
81
89
  licenses:
82
90
  - MIT
83
91
  metadata: {}
84
- post_install_message:
92
+ post_install_message:
85
93
  rdoc_options:
86
94
  - "--charset=UTF-8"
87
95
  require_paths:
88
96
  - lib
89
97
  required_ruby_version: !ruby/object:Gem::Requirement
90
98
  requirements:
91
- - - "~>"
99
+ - - ">="
92
100
  - !ruby/object:Gem::Version
93
- version: '2.2'
101
+ version: '2.6'
94
102
  required_rubygems_version: !ruby/object:Gem::Requirement
95
103
  requirements:
96
104
  - - ">="
97
105
  - !ruby/object:Gem::Version
98
- version: 1.3.6
106
+ version: '0'
99
107
  requirements: []
100
- rubygems_version: 3.0.3
101
- signing_key:
108
+ rubygems_version: 3.2.3
109
+ signing_key:
102
110
  specification_version: 4
103
111
  summary: SAP OCI enables users to parse SAP OCI compliant data from online shops.
104
112
  test_files: []