agris 0.13.0 → 0.15.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: b01b1c2bdbf5778087a2ce5a47c9acf25b98e537a78c613115c3d71ecd5b8c16
4
- data.tar.gz: 65f4af5eda9e2bec401b21f83023fb499db85e5b335364a8b6ac5b4fefccc7e0
3
+ metadata.gz: 4472906c25dd44557ab18447b211b0da1d161a4688d6e4a2f886890cd86b7600
4
+ data.tar.gz: 66e386a396d0f99f7816fddf95fce5d5e6fd47f97a01795cef002b2589ad85b7
5
5
  SHA512:
6
- metadata.gz: d736ba6fa4a6292e45074cbfb46f3b46baeba254f5d3d69b003d7c9171c7292b5ea09c70ac9bab03c16eec489f489b897080bf0afc51acdb2673c21f0fc915cd
7
- data.tar.gz: 33348d956029a0d6fcccef8399c15be25d250b9257eb5b3ec01c59e5aa58d0ad297576ffdfeb4748c76fdd93b42b23db8ae8620819055e6dc707fb523271879c
6
+ metadata.gz: 015b7b4775404a52142a0934b7e7ef1efd492ad6fd457fa8c046b14290acb587559b4be6f4f38e89693babedbdbe915a4bb0e524d635b0110d2b408d86118ce9
7
+ data.tar.gz: 732391c997f66bf2b6397fd24e55fc1489ca812ecd6c03a9b02408535d2709f5f697e5e6684f99eb091949d2a9311c6012b05ef3520d7cf6323fc922b580edc5
@@ -6,11 +6,13 @@ module Agris
6
6
  autoload :Commodity, 'agris/api/grain/commodity'
7
7
  autoload :CommodityCodes, 'agris/api/grain/commodity_codes'
8
8
  autoload :Contract, 'agris/api/grain/contract'
9
+ autoload :FarmFields, 'agris/api/name/farm_fields'
9
10
  autoload :GradeFactors, 'agris/api/grain/grade_factors'
10
11
  autoload :GrainModule, 'agris/api/grain/grain_module'
11
12
  autoload :PurchaseContracts, 'agris/api/grain/purchase_contracts'
12
13
  autoload :NewContract, 'agris/api/grain/new_contract'
13
14
  autoload :NewContractSchedule, 'agris/api/grain/new_contract_schedule'
15
+ autoload :NewFarmField, 'agris/api/name/new_farm_field'
14
16
  autoload :NewTicket, 'agris/api/grain/new_ticket'
15
17
  autoload :NewTicketApplication, 'agris/api/grain/new_ticket_application'
16
18
  autoload :NewTicketRemark, 'agris/api/grain/new_ticket_remark'
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Agris
4
+ module Api
5
+ module Name
6
+ class FarmFields
7
+ def create_farm_field(farm_field)
8
+ import(farm_field)
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Agris
4
+ module Api
5
+ module Name
6
+ class NewFarmField
7
+ include XmlModel
8
+
9
+ ATTRIBUTE_NAMES = %w(
10
+ name_id
11
+ farm_abbreviation
12
+ farm_status
13
+ farm_description
14
+ field_abbreviation
15
+ field_status
16
+ field_description
17
+ ).freeze
18
+
19
+ attr_accessor(*ATTRIBUTE_NAMES)
20
+
21
+ def initialize(hash = {})
22
+ super
23
+
24
+ @record_type = 'NAMF0'
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
data/lib/agris/client.rb CHANGED
@@ -10,6 +10,7 @@ module Agris
10
10
  include Api::Grain::Tickets
11
11
  include Api::Inventory::DeliveryTickets
12
12
  include Api::Inventory::Orders
13
+ include Api::Name::FarmFields
13
14
  include Api::Support
14
15
 
15
16
  ##
data/lib/agris/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Agris
4
- VERSION = '0.13.0'
4
+ VERSION = '0.15.0'
5
5
  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.13.0
4
+ version: 0.15.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-08-09 00:00:00.000000000 Z
12
+ date: 2024-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -207,6 +207,8 @@ files:
207
207
  - lib/agris/api/messages/query_order_documents.rb
208
208
  - lib/agris/api/messages/query_purchase_contract_documents.rb
209
209
  - lib/agris/api/messages/query_sales_contract_documents.rb
210
+ - lib/agris/api/name/farm_fields.rb
211
+ - lib/agris/api/name/new_farm_field.rb
210
212
  - lib/agris/api/new_order.rb
211
213
  - lib/agris/api/new_order_remark.rb
212
214
  - lib/agris/api/new_voucher.rb