agris 0.10.0 → 0.11.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: f685c848393fcf756e8b1de2b1bc4ee1b1b1811c1e53acb0a7c50761acb26ada
4
- data.tar.gz: 5ff24d955f352c328cae3c1d8e5b614eecf373ba8d5d96f2d1ba750ad5a59853
3
+ metadata.gz: 4ca59aa46ef40059a98f12291e6433e2dd81e310c552f45816c4f5f0b64f15d1
4
+ data.tar.gz: adc82e55c4d84649bf5a3758900d3076c1b4521fe5396a1be4d73dda21149787
5
5
  SHA512:
6
- metadata.gz: 94ee3b6fa696446b431b968560885072ff19b113c536d6a22c9f8cdaae8e510eb7d428034be1f785c7b6ce47b9de4bd07ffb234cf3587f6f28ad6b04b74d5c46
7
- data.tar.gz: 8596be46f4a51f27329995331e576474d20a246e411b537ead9138e07dc38e100f6337881aa6be3a5f69517f4bff7d025dbecea9e6c6bcba602051e22dbe3d81
6
+ metadata.gz: a3fb735daf4a387d809a32ed37e466b38ba32575f4649ad86d2c231b609c00fb185b641f1b8471299877f77a712cf4dd0ca52574d634d60cc87aa0dddcdf2f83
7
+ data.tar.gz: 9aa2ed7a02355c603b57ebcc9d7bdf75aa537f20e7062bd7bec85e86a13ab621da82fcf4de3feb1113057371a1d8bcc13db7d046421e4bfdf34e28468088134d
@@ -82,6 +82,11 @@ module Agris
82
82
  freight_exchange_rate_date
83
83
  primary_schedule
84
84
  option_quantity
85
+ tran_code_1
86
+ tran_code_2
87
+ tran_code_3
88
+ tran_code_4
89
+ tran_code_5
85
90
  ).freeze
86
91
 
87
92
  attr_accessor(*ATTRIBUTE_NAMES)
@@ -92,23 +97,8 @@ module Agris
92
97
  @record_type = 'GRNC1'
93
98
  end
94
99
 
95
- def add_trans_code(trans_code)
96
- @trans_codes ||= []
97
- @trans_codes << trans_code
98
-
99
- self
100
- end
101
-
102
- def trans_codes
103
- @trans_codes || []
104
- end
105
-
106
100
  def records
107
- [self] + trans_codes
108
- end
109
-
110
- def xml_ignore_attributes
111
- %i(trans_codes)
101
+ [self]
112
102
  end
113
103
  end
114
104
  end
data/lib/agris/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Agris
3
- VERSION = '0.10.0'
3
+ VERSION = '0.11.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Gray
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-02-28 00:00:00.000000000 Z
12
+ date: 2024-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -174,7 +174,6 @@ files:
174
174
  - lib/agris/api/grain/grain_module.rb
175
175
  - lib/agris/api/grain/new_contract.rb
176
176
  - lib/agris/api/grain/new_contract_schedule.rb
177
- - lib/agris/api/grain/new_contract_schedule_transcode.rb
178
177
  - lib/agris/api/grain/new_ticket.rb
179
178
  - lib/agris/api/grain/new_ticket_application.rb
180
179
  - lib/agris/api/grain/new_ticket_remark.rb
@@ -215,7 +214,6 @@ files:
215
214
  - lib/agris/api/post_result.rb
216
215
  - lib/agris/api/remark.rb
217
216
  - lib/agris/api/support.rb
218
- - lib/agris/api/tran_code.rb
219
217
  - lib/agris/client.rb
220
218
  - lib/agris/context.rb
221
219
  - lib/agris/credentials.rb
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
- module Agris
3
- module Api
4
- module Grain
5
- class NewContractScheduleTranscode
6
- include XmlModel
7
-
8
- ATTRIBUTE_NAMES = %w(
9
- number
10
- code
11
- description
12
- ).freeze
13
-
14
- attr_reader :record_type
15
-
16
- def initialize(hash = {})
17
- super
18
-
19
- @record_type = 'GRNC2'
20
- end
21
- end
22
- end
23
- end
24
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
- module Agris
3
- module Api
4
- class TranCode
5
- include XmlModel
6
-
7
- ATTRIBUTE_NAMES = %w(
8
- num
9
- label
10
- code
11
- description
12
- ).freeze
13
-
14
- attr_reader(*ATTRIBUTE_NAMES)
15
- end
16
- end
17
- end