agris 0.17.0 → 0.19.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: d90b85df2aa9db7f797906c969eb9f8cf29ad6f055ca1033901adb987630469f
4
- data.tar.gz: fdca4cb1f00c48df046d762205e0f877852b6ee9cacbef5cb018f5c45ef205aa
3
+ metadata.gz: b61a0b40c45aaff03f25e7ef19d063979ec0bb08e19973c7081be371418554f4
4
+ data.tar.gz: 333a6cccdc205df5ae9b5d956bf86a7f2edf9a4e226f180b98183428536e8499
5
5
  SHA512:
6
- metadata.gz: 1634c086628ad1582958357fbe9d9dc3601a6ea2e05c8fb289ac3a1b424acb004e97c838da715cd360eda83de71ac697783695e0a99cd66a0127d2e0ae290441
7
- data.tar.gz: 1cb770f96bdfaa49d6a62d78cff576e5abe4a9ad8fd30207b047adaafa9dc20f4900a0894eb8d4ae9d42f3a3c3c0056ebb0cef45f2d97281e4b7a7d67c885aaa
6
+ metadata.gz: a55a684aa828d789081b17db29e4e0546a364feafddada71ee2c4a945b8dc257e35a51f638a4eeece378adb5c1c61ca764d939f5b3694167eb20303897cac178
7
+ data.tar.gz: 6bed667e26ef109e530688ce1c14385f50ea69db6eeac1122e64e94d1d1221cc642059ec215e3a58a09e55d3bc34f0d2c1acaf3d1ca25e567b14b26ecf2852b9
@@ -3,7 +3,7 @@
3
3
  module Agris
4
4
  module Api
5
5
  module Name
6
- class FarmFields
6
+ module FarmFields
7
7
  def create_farm_field(farm_field)
8
8
  import(farm_field)
9
9
  end
@@ -16,6 +16,7 @@ module Agris
16
16
  field_description
17
17
  ).freeze
18
18
 
19
+ attr_reader :record_type
19
20
  attr_accessor(*ATTRIBUTE_NAMES)
20
21
 
21
22
  def initialize(hash = {})
@@ -23,6 +24,10 @@ module Agris
23
24
 
24
25
  @record_type = 'NAMF0'
25
26
  end
27
+
28
+ def records
29
+ [self]
30
+ end
26
31
  end
27
32
  end
28
33
  end
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.17.0'
4
+ VERSION = '0.19.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.17.0
4
+ version: 0.19.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-12-17 00:00:00.000000000 Z
12
+ date: 2024-12-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon