agris 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound-rubocop.yml +319 -0
- data/.hound.yml +7 -0
- data/.rubocop.yml +42 -0
- data/Gemfile +1 -0
- data/README.md +29 -6
- data/Rakefile +4 -3
- data/agris.gemspec +17 -14
- data/lib/agris/process_message_response.rb +1 -1
- data/lib/agris/user_agent.rb +1 -1
- data/lib/agris/version.rb +2 -1
- data/lib/agris/xml_model.rb +1 -1
- metadata +36 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20e4fbd4cf0eeba824e44803db53a7257616bc29
|
4
|
+
data.tar.gz: 4ee76f64b8c6a5b7d6d3ac56d6a31ee2686eb2e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30f1ef8a65c1b59721d0e4ac265ad53adad2c095fdd63ce9a09872e437c0fa688364ccccd915dd06647b517ddfd9f15e5c4ee15782d36f35c150ca7edbae5ccd
|
7
|
+
data.tar.gz: 7a4e1980e79f214ee8b317c1744b187ff84f5262701fb12175b184a9e265ece448d3c4d667e1c3b297a44472f578b0c706b2f14fea91dcfe18a5954ac2394069
|
data/.hound-rubocop.yml
ADDED
@@ -0,0 +1,319 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.2
|
3
|
+
Exclude:
|
4
|
+
- "vendor/**/*"
|
5
|
+
- "db/schema.rb"
|
6
|
+
UseCache: false
|
7
|
+
Layout/DotPosition:
|
8
|
+
Description: Checks the position of the dot in multi-line method calls.
|
9
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
10
|
+
Enabled: true
|
11
|
+
EnforcedStyle: trailing
|
12
|
+
SupportedStyles:
|
13
|
+
- leading
|
14
|
+
- trailing
|
15
|
+
Layout/EmptyLineAfterMagicComment:
|
16
|
+
Description: 'Add an empty line after magic comments to separate them from code.'
|
17
|
+
StyleGuide: '#separate-magic-comments-from-code'
|
18
|
+
Enabled: false
|
19
|
+
Lint/AmbiguousBlockAssociation:
|
20
|
+
Exclude:
|
21
|
+
- "spec/**/*"
|
22
|
+
Style/CollectionMethods:
|
23
|
+
Description: Preferred collection methods.
|
24
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
|
25
|
+
Enabled: true
|
26
|
+
PreferredMethods:
|
27
|
+
collect: map
|
28
|
+
collect!: map!
|
29
|
+
find: detect
|
30
|
+
find_all: select
|
31
|
+
reduce: inject
|
32
|
+
Style/FileName:
|
33
|
+
Description: Use snake_case for source file names.
|
34
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
|
35
|
+
Enabled: false
|
36
|
+
Exclude: []
|
37
|
+
Style/GuardClause:
|
38
|
+
Description: Check for conditionals that can be replaced with guard clauses
|
39
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
|
40
|
+
Enabled: false
|
41
|
+
MinBodyLength: 1
|
42
|
+
Style/IfUnlessModifier:
|
43
|
+
Description: Favor modifier if/unless usage when you have a single-line body.
|
44
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
|
45
|
+
Enabled: false
|
46
|
+
MaxLineLength: 80
|
47
|
+
Style/OptionHash:
|
48
|
+
Description: Don't use option hashes when you can use keyword arguments.
|
49
|
+
Enabled: false
|
50
|
+
Style/PercentLiteralDelimiters:
|
51
|
+
Description: Use `%`-literal delimiters consistently
|
52
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
|
53
|
+
Enabled: false
|
54
|
+
PreferredDelimiters:
|
55
|
+
"%": "()"
|
56
|
+
"%i": "()"
|
57
|
+
"%q": "()"
|
58
|
+
"%Q": "()"
|
59
|
+
"%r": "{}"
|
60
|
+
"%s": "()"
|
61
|
+
"%w": "()"
|
62
|
+
"%W": "()"
|
63
|
+
"%x": "()"
|
64
|
+
Style/PredicateName:
|
65
|
+
Description: Check the names of predicate methods.
|
66
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
|
67
|
+
Enabled: true
|
68
|
+
NamePrefix:
|
69
|
+
- is_
|
70
|
+
- has_
|
71
|
+
- have_
|
72
|
+
NamePrefixBlacklist:
|
73
|
+
- is_
|
74
|
+
Exclude:
|
75
|
+
- spec/**/*
|
76
|
+
Style/RaiseArgs:
|
77
|
+
Description: Checks the arguments passed to raise/fail.
|
78
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
|
79
|
+
Enabled: false
|
80
|
+
EnforcedStyle: exploded
|
81
|
+
SupportedStyles:
|
82
|
+
- compact
|
83
|
+
- exploded
|
84
|
+
Style/SignalException:
|
85
|
+
Description: Checks for proper usage of fail and raise.
|
86
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
|
87
|
+
Enabled: false
|
88
|
+
EnforcedStyle: semantic
|
89
|
+
SupportedStyles:
|
90
|
+
- only_raise
|
91
|
+
- only_fail
|
92
|
+
- semantic
|
93
|
+
Style/SingleLineBlockParams:
|
94
|
+
Description: Enforces the names of some block params.
|
95
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
|
96
|
+
Enabled: false
|
97
|
+
Methods:
|
98
|
+
- reduce:
|
99
|
+
- a
|
100
|
+
- e
|
101
|
+
- inject:
|
102
|
+
- a
|
103
|
+
- e
|
104
|
+
Style/SingleLineMethods:
|
105
|
+
Description: Avoid single-line methods.
|
106
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
|
107
|
+
Enabled: false
|
108
|
+
AllowIfMethodIsEmpty: true
|
109
|
+
Style/StringLiterals:
|
110
|
+
Description: Checks if uses of quotes match the configured preference.
|
111
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
|
112
|
+
Enabled: true
|
113
|
+
EnforcedStyle: double_quotes
|
114
|
+
SupportedStyles:
|
115
|
+
- single_quotes
|
116
|
+
- double_quotes
|
117
|
+
Style/StringLiteralsInInterpolation:
|
118
|
+
Description: Checks if uses of quotes inside expressions in interpolated strings
|
119
|
+
match the configured preference.
|
120
|
+
Enabled: true
|
121
|
+
EnforcedStyle: single_quotes
|
122
|
+
SupportedStyles:
|
123
|
+
- single_quotes
|
124
|
+
- double_quotes
|
125
|
+
Style/TrailingCommaInArguments:
|
126
|
+
Description: 'Checks for trailing comma in argument lists.'
|
127
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
128
|
+
Enabled: false
|
129
|
+
EnforcedStyleForMultiline: no_comma
|
130
|
+
Style/TrailingCommaInLiteral:
|
131
|
+
Description: 'Checks for trailing comma in array and hash literals.'
|
132
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
133
|
+
Enabled: false
|
134
|
+
EnforcedStyleForMultiline: no_comma
|
135
|
+
Metrics/AbcSize:
|
136
|
+
Description: A calculated magnitude based on number of assignments, branches, and
|
137
|
+
conditions.
|
138
|
+
Enabled: false
|
139
|
+
Max: 15
|
140
|
+
Metrics/ClassLength:
|
141
|
+
Description: Avoid classes longer than 100 lines of code.
|
142
|
+
Enabled: false
|
143
|
+
CountComments: false
|
144
|
+
Max: 100
|
145
|
+
Metrics/ModuleLength:
|
146
|
+
CountComments: false
|
147
|
+
Max: 100
|
148
|
+
Description: Avoid modules longer than 100 lines of code.
|
149
|
+
Enabled: false
|
150
|
+
Metrics/CyclomaticComplexity:
|
151
|
+
Description: A complexity metric that is strongly correlated to the number of test
|
152
|
+
cases needed to validate a method.
|
153
|
+
Enabled: false
|
154
|
+
Max: 6
|
155
|
+
Metrics/MethodLength:
|
156
|
+
Description: Avoid methods longer than 10 lines of code.
|
157
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
|
158
|
+
Enabled: false
|
159
|
+
CountComments: false
|
160
|
+
Max: 10
|
161
|
+
Metrics/ParameterLists:
|
162
|
+
Description: Avoid parameter lists longer than three or four parameters.
|
163
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
|
164
|
+
Enabled: false
|
165
|
+
Max: 5
|
166
|
+
CountKeywordArgs: true
|
167
|
+
Metrics/PerceivedComplexity:
|
168
|
+
Description: A complexity metric geared towards measuring complexity for a human
|
169
|
+
reader.
|
170
|
+
Enabled: false
|
171
|
+
Max: 7
|
172
|
+
Lint/AssignmentInCondition:
|
173
|
+
Description: Don't use assignment in conditions.
|
174
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
|
175
|
+
Enabled: false
|
176
|
+
AllowSafeAssignment: true
|
177
|
+
Style/InlineComment:
|
178
|
+
Description: Avoid inline comments.
|
179
|
+
Enabled: false
|
180
|
+
Style/AccessorMethodName:
|
181
|
+
Description: Check the naming of accessor methods for get_/set_.
|
182
|
+
Enabled: false
|
183
|
+
Style/Alias:
|
184
|
+
Description: Use alias_method instead of alias.
|
185
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
|
186
|
+
Enabled: false
|
187
|
+
Style/Documentation:
|
188
|
+
Description: Document classes and non-namespace modules.
|
189
|
+
Enabled: false
|
190
|
+
Style/DoubleNegation:
|
191
|
+
Description: Checks for uses of double negation (!!).
|
192
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
|
193
|
+
Enabled: false
|
194
|
+
Style/EachWithObject:
|
195
|
+
Description: Prefer `each_with_object` over `inject` or `reduce`.
|
196
|
+
Enabled: false
|
197
|
+
Style/EmptyLiteral:
|
198
|
+
Description: Prefer literals to Array.new/Hash.new/String.new.
|
199
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
|
200
|
+
Enabled: false
|
201
|
+
Style/ModuleFunction:
|
202
|
+
Description: Checks for usage of `extend self` in modules.
|
203
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
|
204
|
+
Enabled: false
|
205
|
+
Style/OneLineConditional:
|
206
|
+
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
207
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
|
208
|
+
Enabled: false
|
209
|
+
Style/PerlBackrefs:
|
210
|
+
Description: Avoid Perl-style regex back references.
|
211
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
|
212
|
+
Enabled: false
|
213
|
+
Style/Send:
|
214
|
+
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
|
215
|
+
may overlap with existing methods.
|
216
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
|
217
|
+
Enabled: false
|
218
|
+
Style/SpecialGlobalVars:
|
219
|
+
Description: Avoid Perl-style global variables.
|
220
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
|
221
|
+
Enabled: false
|
222
|
+
Style/VariableInterpolation:
|
223
|
+
Description: Don't interpolate global, instance and class variables directly in
|
224
|
+
strings.
|
225
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
|
226
|
+
Enabled: false
|
227
|
+
Style/WhenThen:
|
228
|
+
Description: Use when x then ... for one-line cases.
|
229
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
|
230
|
+
Enabled: false
|
231
|
+
Lint/EachWithObjectArgument:
|
232
|
+
Description: Check for immutable argument given to each_with_object.
|
233
|
+
Enabled: true
|
234
|
+
Lint/HandleExceptions:
|
235
|
+
Description: Don't suppress exception.
|
236
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
|
237
|
+
Enabled: false
|
238
|
+
Lint/LiteralInCondition:
|
239
|
+
Description: Checks of literals used in conditions.
|
240
|
+
Enabled: false
|
241
|
+
Lint/LiteralInInterpolation:
|
242
|
+
Description: Checks for literals used in interpolation.
|
243
|
+
Enabled: false
|
244
|
+
|
245
|
+
##################### Rails ##################################
|
246
|
+
|
247
|
+
Rails/ActionFilter:
|
248
|
+
Description: 'Enforces consistent use of action filter methods.'
|
249
|
+
Enabled: true
|
250
|
+
Rails/Date:
|
251
|
+
Description: >-
|
252
|
+
Checks the correct usage of date aware methods,
|
253
|
+
such as Date.today, Date.current etc.
|
254
|
+
Enabled: true
|
255
|
+
Rails/Delegate:
|
256
|
+
Description: 'Prefer delegate method for delegations.'
|
257
|
+
Enabled: true
|
258
|
+
Rails/Exit:
|
259
|
+
Description: >-
|
260
|
+
Favor `fail`, `break`, `return`, etc. over `exit` in
|
261
|
+
application or library code outside of Rake files to avoid
|
262
|
+
exits during unit testing or running in production.
|
263
|
+
Enabled: true
|
264
|
+
Rails/FindBy:
|
265
|
+
Description: 'Prefer find_by over where.first.'
|
266
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find_by'
|
267
|
+
Enabled: true
|
268
|
+
Rails/FindEach:
|
269
|
+
Description: 'Prefer all.find_each over all.find.'
|
270
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find-each'
|
271
|
+
Enabled: true
|
272
|
+
Rails/HasAndBelongsToMany:
|
273
|
+
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
|
274
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through'
|
275
|
+
Enabled: true
|
276
|
+
Rails/HttpPositionalArguments:
|
277
|
+
Description: 'Rails 5 only, disabled to keep Hound quiet'
|
278
|
+
Enabled: false
|
279
|
+
Rails/NotNullColumn:
|
280
|
+
Description: 'Do not add a NOT NULL column without a default value'
|
281
|
+
Enabled: false
|
282
|
+
Rails/Output:
|
283
|
+
Description: 'Checks for calls to puts, print, etc.'
|
284
|
+
Enabled: true
|
285
|
+
Rails/OutputSafety:
|
286
|
+
Description: 'The use of `html_safe` or `raw` may be a security risk.'
|
287
|
+
Enabled: true
|
288
|
+
Rails/PluralizationGrammar:
|
289
|
+
Description: 'Checks for incorrect grammar when using methods like `3.day.ago`.'
|
290
|
+
Enabled: true
|
291
|
+
Rails/ReadWriteAttribute:
|
292
|
+
Description: >-
|
293
|
+
Checks for read_attribute(:attr) and
|
294
|
+
write_attribute(:attr, val).
|
295
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#read-attribute'
|
296
|
+
Enabled: true
|
297
|
+
Rails/RequestReferer:
|
298
|
+
Description: 'Use consistent syntax for request.referer.'
|
299
|
+
Enabled: true
|
300
|
+
Rails/SafeNavigation:
|
301
|
+
Description: "Use Ruby's safe navigation operator (`&.`) instead of `try!`"
|
302
|
+
Enabled: true
|
303
|
+
Rails/ScopeArgs:
|
304
|
+
Description: 'Checks the arguments of ActiveRecord scopes.'
|
305
|
+
Enabled: true
|
306
|
+
Rails/TimeZone:
|
307
|
+
Description: 'Checks the correct usage of time zone aware methods.'
|
308
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
|
309
|
+
Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
|
310
|
+
Enabled: true
|
311
|
+
Rails/UniqBeforePluck:
|
312
|
+
Description: 'Prefer the use of uniq or distinct before pluck.'
|
313
|
+
Enabled: true
|
314
|
+
Rails/Validation:
|
315
|
+
Description: 'Use validates :attribute, hash of validations.'
|
316
|
+
Enabled: true
|
317
|
+
Security/JSONLoad:
|
318
|
+
Description : 'Prefer usage of JSON.parse'
|
319
|
+
Enabled: true
|
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
inherit_from: .hound-rubocop.yml
|
2
|
+
|
3
|
+
Rails:
|
4
|
+
Enabled: true
|
5
|
+
AllCops:
|
6
|
+
TargetRubyVersion: 2.3
|
7
|
+
Exclude:
|
8
|
+
- bin/*
|
9
|
+
Layout/DotPosition:
|
10
|
+
Description: Checks the position of the dot in multi-line method calls.
|
11
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
12
|
+
Enabled: true
|
13
|
+
EnforcedStyle: leading
|
14
|
+
SupportedStyles:
|
15
|
+
- leading
|
16
|
+
- trailing
|
17
|
+
Metrics/BlockLength:
|
18
|
+
Enabled: false
|
19
|
+
Style/AndOr:
|
20
|
+
Description: Use &&/|| instead of and/or.
|
21
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
|
22
|
+
Enabled: true
|
23
|
+
EnforcedStyle: conditionals
|
24
|
+
SupportedStyles:
|
25
|
+
- always
|
26
|
+
- conditionals
|
27
|
+
Style/ClassAndModuleChildren:
|
28
|
+
Enabled: true
|
29
|
+
EnforcedStyle: nested
|
30
|
+
SupportedStyles:
|
31
|
+
- compact
|
32
|
+
- nested
|
33
|
+
Style/MultilineIfModifier:
|
34
|
+
Enabled: false
|
35
|
+
Style/StringLiterals:
|
36
|
+
Description: Checks if uses of quotes match the configured preference.
|
37
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
|
38
|
+
Enabled: true
|
39
|
+
EnforcedStyle: single_quotes
|
40
|
+
SupportedStyles:
|
41
|
+
- single_quotes
|
42
|
+
- double_quotes
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
|
1
|
+
[![Code Climate](https://codeclimate.com/github/westernmilling/agris.rb/badges/gpa.svg)](https://codeclimate.com/github/westernmilling/agris.rb)
|
2
|
+
[![Test Coverage](https://codeclimate.com/github/westernmilling/agris.rb/badges/coverage.svg)](https://codeclimate.com/github/westernmilling/agris.rb/coverage)
|
2
3
|
|
3
|
-
|
4
|
+
# Agris
|
4
5
|
|
5
|
-
|
6
|
+
Agris Web Services client library.
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -22,7 +23,30 @@ Or install it yourself as:
|
|
22
23
|
|
23
24
|
## Usage
|
24
25
|
|
25
|
-
|
26
|
+
```ruby
|
27
|
+
Agris.configure do |config|
|
28
|
+
config.credentials = Agris::Credentials::Anonymous.new
|
29
|
+
config.context = Agris::Context.new(
|
30
|
+
'http://localhost:3000',
|
31
|
+
'001',
|
32
|
+
'\\host\apps\Agris\datasets',
|
33
|
+
'AgrisDB',
|
34
|
+
'bob',
|
35
|
+
'fred'
|
36
|
+
)
|
37
|
+
config.request_type = Agris::SavonRequest
|
38
|
+
config.logger = Logger.new(STDOUT)
|
39
|
+
config.user_agent = 'Otis'
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
elsewhere
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
client = Agris::Client.new
|
47
|
+
```
|
48
|
+
|
49
|
+
Enjoy!
|
26
50
|
|
27
51
|
## Development
|
28
52
|
|
@@ -32,5 +56,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
56
|
|
33
57
|
## Contributing
|
34
58
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
36
|
-
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/westernmilling/agris.
|
data/Rakefile
CHANGED
data/agris.gemspec
CHANGED
@@ -1,30 +1,33 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
# frozen_string_literal: true
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'agris/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
8
|
+
spec.name = 'agris'
|
9
|
+
spec.version = Agris::VERSION
|
10
|
+
spec.authors = ['John Gray', 'Joseph Bridgwater-Rowe']
|
11
|
+
spec.email = ['wopr42@gmail.com', 'freakyjoe@gmail.com']
|
11
12
|
|
12
|
-
spec.summary
|
13
|
-
spec.homepage
|
14
|
-
spec.license
|
13
|
+
spec.summary = 'Ruby client library for Agris API'
|
14
|
+
spec.homepage = 'https://github.com/westernmilling/agris.rb'
|
15
|
+
spec.license = 'MIT'
|
15
16
|
|
16
|
-
spec.files
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
18
|
f.match(%r{^(test|spec|features)/})
|
18
19
|
end
|
19
|
-
spec.bindir
|
20
|
-
spec.executables
|
21
|
-
spec.require_paths = [
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
22
23
|
|
23
24
|
spec.add_dependency 'activesupport', '~> 5.0'
|
24
25
|
spec.add_dependency 'savon', '~> 2.11'
|
25
26
|
|
26
|
-
spec.add_development_dependency
|
27
|
-
spec.add_development_dependency
|
28
|
-
spec.add_development_dependency
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
28
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
30
|
+
spec.add_development_dependency 'rubocop', '0.49.0'
|
31
|
+
spec.add_development_dependency 'simplecov'
|
29
32
|
spec.add_development_dependency 'webmock', '~> 2.3'
|
30
33
|
end
|
data/lib/agris/user_agent.rb
CHANGED
data/lib/agris/version.rb
CHANGED
data/lib/agris/xml_model.rb
CHANGED
@@ -24,7 +24,7 @@ module Agris
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def to_xml_hash
|
27
|
-
ignore_attributes = xml_ignore_attributes + [:hash]
|
27
|
+
ignore_attributes = (xml_ignore_attributes + [:hash]).map(&:to_s)
|
28
28
|
attributes
|
29
29
|
.slice(*(attributes.keys - ignore_attributes))
|
30
30
|
.each_with_object({}) do |(name, value), new_hash|
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Gray
|
8
|
+
- Joseph Bridgwater-Rowe
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
12
|
+
date: 2017-07-27 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: activesupport
|
@@ -80,6 +81,34 @@ dependencies:
|
|
80
81
|
- - "~>"
|
81
82
|
- !ruby/object:Gem::Version
|
82
83
|
version: '3.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rubocop
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 0.49.0
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 0.49.0
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: simplecov
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
83
112
|
- !ruby/object:Gem::Dependency
|
84
113
|
name: webmock
|
85
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,12 +126,16 @@ dependencies:
|
|
97
126
|
description:
|
98
127
|
email:
|
99
128
|
- wopr42@gmail.com
|
129
|
+
- freakyjoe@gmail.com
|
100
130
|
executables: []
|
101
131
|
extensions: []
|
102
132
|
extra_rdoc_files: []
|
103
133
|
files:
|
104
134
|
- ".gitignore"
|
135
|
+
- ".hound-rubocop.yml"
|
136
|
+
- ".hound.yml"
|
105
137
|
- ".rspec"
|
138
|
+
- ".rubocop.yml"
|
106
139
|
- Gemfile
|
107
140
|
- LICENSE
|
108
141
|
- README.md
|
@@ -181,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
214
|
version: '0'
|
182
215
|
requirements: []
|
183
216
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
217
|
+
rubygems_version: 2.4.8
|
185
218
|
signing_key:
|
186
219
|
specification_version: 4
|
187
220
|
summary: Ruby client library for Agris API
|