elibri_onix 0.4.1 → 0.4.3

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
- SHA1:
3
- metadata.gz: 4d1ab3e6a1bbef702f224046eb3d62013d683313
4
- data.tar.gz: 212b84f9f6d1714292ff5383863000fc55820a58
2
+ SHA256:
3
+ metadata.gz: 15690739e64d09b968d11eb825e6eabd86eec6aa59d8e9ea0d696df38df13e9f
4
+ data.tar.gz: 875ad6557dc60fb4b191deff0b6639f37d93856abba48cc34d87353862061f61
5
5
  SHA512:
6
- metadata.gz: e16483c3bbe9aee6736f8ee66101ebffbe4f4b7d8120f9b738a684cf7ea12204aca32c679ec40c51ce3fec855774d1646b514456eba8351e804b881954639927
7
- data.tar.gz: 350921ba16cdc78e560c2591306399c447ae897fad633f2735a26dc3dc0c172dab2102f12db0d805d63a7a2889b2470cfe43be269a02b2c7186573dfc8772015
6
+ metadata.gz: 21921add96e1398f23f7edfdd761f7c934e74e223895e069603b0a78326453813db55af712605646a2d0071709a270cd9a629d4203743519e3a806ddba1d9676
7
+ data.tar.gz: 2168d41472819bedc0a9db95ddd2ff537082817a62dfb9d202c3263c8a5df0bde7619668fb647575f659bdacb48e4e3b7d925c458ca10b893aebc8376eed964e
@@ -7,19 +7,19 @@ module Elibri
7
7
  module Release_3_0
8
8
 
9
9
  class Price
10
-
10
+
11
11
  #from ONIX documentation:
12
12
  #A repeatable group of data elements which together specify a unit price.
13
-
13
+
14
14
  include HashId
15
-
15
+
16
16
  ATTRIBUTES = [
17
17
  :type, :minimum_order_quantity, :amount, :currency_code, :printed_on_product,
18
18
  :position_on_product, :tax_type, :tax_rate_percent, :vat
19
19
  ]
20
-
20
+
21
21
  RELATIONS = []
22
-
22
+
23
23
  attr_accessor :type, :minimum_order_quantity, :amount, :currency_code, :printed_on_product,
24
24
  :position_on_product, :tax_type, :tax_rate_percent, :to_xml
25
25
 
@@ -27,13 +27,13 @@ module Elibri
27
27
  @to_xml = data.to_s
28
28
  @type = data.at_xpath('xmlns:PriceType').try(:text).try(:to_i)
29
29
  @minimum_order_quantity = data.at_xpath('xmlns:MinimumOrderQuantity').try(:text).try(:to_i)
30
- @amount = BigDecimal.new(data.at_xpath('xmlns:PriceAmount').try(:text))
30
+ @amount = BigDecimal(data.at_xpath('xmlns:PriceAmount').try(:text))
31
31
  @currency_code = data.at_xpath('xmlns:CurrencyCode').try(:text)
32
32
  @printed_on_product = data.at_xpath('xmlns:PrintedOnProduct').try(:text).try(:to_i)
33
33
  @position_on_product = data.at_xpath('xmlns:PositionOnProduct').try(:text).try(:to_i)
34
34
  if data.at_xpath('xmlns:Tax')
35
35
  @tax_type = data.at_xpath('xmlns:Tax').at_xpath('xmlns:TaxType').try(:text).try(:to_i)
36
- @tax_rate_percent = BigDecimal.new(data.at_xpath('xmlns:Tax').at_xpath('xmlns:TaxRatePercent').try(:text)) if data.at_xpath('xmlns:Tax').at_xpath('xmlns:TaxRatePercent')
36
+ @tax_rate_percent = BigDecimal(data.at_xpath('xmlns:Tax').at_xpath('xmlns:TaxRatePercent').try(:text)) if data.at_xpath('xmlns:Tax').at_xpath('xmlns:TaxRatePercent')
37
37
  end
38
38
  end
39
39
 
@@ -246,7 +246,7 @@ module Elibri
246
246
  @notification_type = data.at_xpath('xmlns:NotificationType').try(:text)
247
247
  @deletion_text = data.at_xpath('xmlns:DeletionText').try(:text)
248
248
  @cover_type = data.at_xpath('elibri:CoverType').try(:text)
249
- @cover_price = BigDecimal.new(data.at_xpath('elibri:CoverPrice').try(:text)) if data.at_xpath('elibri:CoverPrice')
249
+ @cover_price = BigDecimal(data.at_xpath('elibri:CoverPrice').try(:text)) if data.at_xpath('elibri:CoverPrice')
250
250
  @vat = data.at_xpath('elibri:Vat').try(:text).try(:to_i)
251
251
  @pkwiu = data.at_xpath('elibri:PKWiU').try(:text)
252
252
  @hyphenated_isbn = data.at_xpath('elibri:HyphenatedISBN').try(:text)
@@ -2,7 +2,7 @@ module Elibri
2
2
  module ONIX
3
3
  z = $VERBOSE
4
4
  $VERBOSE = nil
5
- VERSION = "0.4.1"
5
+ VERSION = "0.4.3"
6
6
  Version = VERSION
7
7
  $VERBOSE = z
8
8
  end
metadata CHANGED
@@ -1,163 +1,158 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Urbanski
8
8
  - Piotr Szmielew
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-19 00:00:00.000000000 Z
12
+ date: 2019-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ name: activesupport
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
20
  version: 2.3.5
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5'
23
- name: activesupport
24
- prerelease: false
25
21
  type: :runtime
22
+ prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
25
  - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: 2.3.5
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '5'
34
28
  - !ruby/object:Gem::Dependency
29
+ name: nokogiri
35
30
  requirement: !ruby/object:Gem::Requirement
36
31
  requirements:
37
32
  - - "~>"
38
33
  - !ruby/object:Gem::Version
39
34
  version: '1.4'
40
- name: nokogiri
41
- prerelease: false
42
35
  type: :runtime
36
+ prerelease: false
43
37
  version_requirements: !ruby/object:Gem::Requirement
44
38
  requirements:
45
39
  - - "~>"
46
40
  - !ruby/object:Gem::Version
47
41
  version: '1.4'
48
42
  - !ruby/object:Gem::Dependency
43
+ name: i18n
49
44
  requirement: !ruby/object:Gem::Requirement
50
45
  requirements:
51
46
  - - ">="
52
47
  - !ruby/object:Gem::Version
53
48
  version: '0'
54
- name: i18n
55
- prerelease: false
56
49
  type: :runtime
50
+ prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
52
  requirements:
59
53
  - - ">="
60
54
  - !ruby/object:Gem::Version
61
55
  version: '0'
62
56
  - !ruby/object:Gem::Dependency
57
+ name: elibri_onix_dict
63
58
  requirement: !ruby/object:Gem::Requirement
64
59
  requirements:
65
60
  - - ">="
66
61
  - !ruby/object:Gem::Version
67
62
  version: 0.0.5
68
- name: elibri_onix_dict
69
- prerelease: false
70
63
  type: :runtime
64
+ prerelease: false
71
65
  version_requirements: !ruby/object:Gem::Requirement
72
66
  requirements:
73
67
  - - ">="
74
68
  - !ruby/object:Gem::Version
75
69
  version: 0.0.5
76
70
  - !ruby/object:Gem::Dependency
71
+ name: pry
77
72
  requirement: !ruby/object:Gem::Requirement
78
73
  requirements:
79
74
  - - ">="
80
75
  - !ruby/object:Gem::Version
81
76
  version: '0'
82
- name: pry
83
- prerelease: false
84
77
  type: :development
78
+ prerelease: false
85
79
  version_requirements: !ruby/object:Gem::Requirement
86
80
  requirements:
87
81
  - - ">="
88
82
  - !ruby/object:Gem::Version
89
83
  version: '0'
90
84
  - !ruby/object:Gem::Dependency
85
+ name: mocha
91
86
  requirement: !ruby/object:Gem::Requirement
92
87
  requirements:
93
88
  - - ">="
94
89
  - !ruby/object:Gem::Version
95
90
  version: '0'
96
- name: mocha
97
- prerelease: false
98
91
  type: :development
92
+ prerelease: false
99
93
  version_requirements: !ruby/object:Gem::Requirement
100
94
  requirements:
101
95
  - - ">="
102
96
  - !ruby/object:Gem::Version
103
97
  version: '0'
104
98
  - !ruby/object:Gem::Dependency
99
+ name: minitest
105
100
  requirement: !ruby/object:Gem::Requirement
106
101
  requirements:
107
102
  - - ">="
108
103
  - !ruby/object:Gem::Version
109
104
  version: '0'
110
- name: minitest
111
- prerelease: false
112
105
  type: :development
106
+ prerelease: false
113
107
  version_requirements: !ruby/object:Gem::Requirement
114
108
  requirements:
115
109
  - - ">="
116
110
  - !ruby/object:Gem::Version
117
111
  version: '0'
118
112
  - !ruby/object:Gem::Dependency
113
+ name: bundler
119
114
  requirement: !ruby/object:Gem::Requirement
120
115
  requirements:
121
116
  - - "~>"
122
117
  - !ruby/object:Gem::Version
123
118
  version: '1.7'
124
- name: bundler
125
- prerelease: false
126
119
  type: :development
120
+ prerelease: false
127
121
  version_requirements: !ruby/object:Gem::Requirement
128
122
  requirements:
129
123
  - - "~>"
130
124
  - !ruby/object:Gem::Version
131
125
  version: '1.7'
132
126
  - !ruby/object:Gem::Dependency
127
+ name: rake
133
128
  requirement: !ruby/object:Gem::Requirement
134
129
  requirements:
135
130
  - - ">="
136
131
  - !ruby/object:Gem::Version
137
132
  version: '0'
138
- name: rake
139
- prerelease: false
140
133
  type: :development
134
+ prerelease: false
141
135
  version_requirements: !ruby/object:Gem::Requirement
142
136
  requirements:
143
137
  - - ">="
144
138
  - !ruby/object:Gem::Version
145
139
  version: '0'
146
140
  - !ruby/object:Gem::Dependency
141
+ name: rdoc
147
142
  requirement: !ruby/object:Gem::Requirement
148
143
  requirements:
149
144
  - - ">="
150
145
  - !ruby/object:Gem::Version
151
146
  version: '0'
152
- name: rdoc
153
- prerelease: false
154
147
  type: :development
148
+ prerelease: false
155
149
  version_requirements: !ruby/object:Gem::Requirement
156
150
  requirements:
157
151
  - - ">="
158
152
  - !ruby/object:Gem::Version
159
153
  version: '0'
160
- description: EDItEUR ONIX format subset implementation used in Elibri publication system
154
+ description: EDItEUR ONIX format subset implementation used in Elibri publication
155
+ system
161
156
  email:
162
157
  - marcin@urbanski.vdl.pl
163
158
  - p.szmielew@ava.waw.pl
@@ -270,7 +265,7 @@ homepage: http://github.com/elibri/elibri_onix
270
265
  licenses:
271
266
  - MIT
272
267
  metadata: {}
273
- post_install_message:
268
+ post_install_message:
274
269
  rdoc_options: []
275
270
  require_paths:
276
271
  - lib
@@ -285,9 +280,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
280
  - !ruby/object:Gem::Version
286
281
  version: '0'
287
282
  requirements: []
288
- rubyforge_project:
289
- rubygems_version: 2.4.8
290
- signing_key:
283
+ rubygems_version: 3.0.3
284
+ signing_key:
291
285
  specification_version: 4
292
286
  summary: EDItEUR ONIX format subset implementation used in Elibri publication system
293
287
  test_files: []