parse_date 0.4.2 → 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
2
  SHA256:
3
- metadata.gz: 184d14ddbda19e12229fd0b245505ee8a0891593bade0e99ca44d51603b3fa90
4
- data.tar.gz: 293f5d385495c6fca24b94445d22a9680affa2a4cd50cf47b19733a12b612656
3
+ metadata.gz: 60c444ed79ea6842f49bfb44d2adc5bd1a6790d483fe43e0bd4a0880001a6005
4
+ data.tar.gz: a62f906a4c908c4b774ef9fe1dae2a047deee79ee6569688d1c2db9796bb3b2e
5
5
  SHA512:
6
- metadata.gz: d8aca40d9e0ad5ccab88e589120a6009a4116026e6501974eb63bf13e7be018677ba581352b84d72f1ea288fbb8fd120a7717a85ce40770e289b97dbf695940e
7
- data.tar.gz: e7c14cf9101f297982104c4aa5fe23597ee3932134770cd829ca38c67f4118b1c280962719a01f9f30dc917e01f9c076b7a909f157633cce842466218a9dd2b6
6
+ metadata.gz: a949b307fb3259f1a20fa279aa2af395137b514b35b15dbce8c63701047462b06b5b6cb31723f25dbef2c8f1db249cf8e95914d92c113dd4439ed6737267878f
7
+ data.tar.gz: e1e3e154a6bc4851a7aafa199da3ee66e0d4b7d5d27537528cee36d2f0b2f80761fbbffffa1d2a544ca4a204f4fd7816f85a6d0b975824fff06cead4d64cf3f2
@@ -1,4 +1,12 @@
1
1
  ## Why was this change made?
2
2
 
3
3
 
4
- ## Was the documentation (README, API, wiki, ...) updated?
4
+
5
+ ## How was this change tested?
6
+
7
+
8
+
9
+ ## Which documentation and/or configurations were updated?
10
+
11
+
12
+
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
- AllCops:
4
- TargetRubyVersion: 2.6
3
+ Gemspec/RequiredRubyVersion:
4
+ Enabled: false
5
5
 
6
6
  Layout/EmptyLinesAroundClassBody:
7
7
  Enabled: false
@@ -9,23 +9,28 @@ Layout/EmptyLinesAroundClassBody:
9
9
  Layout/EmptyLinesAroundModuleBody:
10
10
  Enabled: false
11
11
 
12
+ Layout/LineLength:
13
+ Exclude:
14
+ - parse_date.gemspec
15
+
16
+ Lint/MixedRegexpCaptureTypes:
17
+ Enabled: false
18
+
12
19
  Metrics/BlockLength:
13
20
  Exclude:
14
21
  - spec/**/*
15
22
 
16
- Metrics/LineLength:
17
- Max: 120
18
-
19
23
  Metrics/MethodLength:
20
24
  Max: 15
21
- ExcludedMethods:
22
- - earliest_year
23
- - latest_year
24
25
 
25
26
  Metrics/ModuleLength:
26
27
  Exclude:
27
28
  - lib/parse_date/int_from_string.rb
28
29
 
30
+ Style/Documentation:
31
+ Exclude:
32
+ - lib/parse_date.rb
33
+
29
34
  Style/NumericLiterals:
30
35
  Enabled: false
31
36
 
@@ -42,3 +47,64 @@ Style/WordArray:
42
47
 
43
48
  Style/YodaCondition:
44
49
  Enabled: false
50
+
51
+ Gemspec/DateAssignment: # (new in 1.10)
52
+ Enabled: true
53
+ Layout/SpaceBeforeBrackets: # (new in 1.7)
54
+ Enabled: true
55
+ Lint/AmbiguousAssignment: # (new in 1.7)
56
+ Enabled: true
57
+ Lint/DeprecatedConstants: # (new in 1.8)
58
+ Enabled: true
59
+ Lint/DuplicateBranch: # (new in 1.3)
60
+ Enabled: true
61
+ Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
62
+ Enabled: true
63
+ Lint/EmptyBlock: # (new in 1.1)
64
+ Enabled: true
65
+ Lint/EmptyClass: # (new in 1.3)
66
+ Enabled: true
67
+ Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
68
+ Enabled: true
69
+ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
70
+ Enabled: true
71
+ Lint/NumberedParameterAssignment: # (new in 1.9)
72
+ Enabled: true
73
+ Lint/OrAssignmentToConstant: # (new in 1.9)
74
+ Enabled: true
75
+ Lint/RedundantDirGlobSort: # (new in 1.8)
76
+ Enabled: true
77
+ Lint/SymbolConversion: # (new in 1.9)
78
+ Enabled: true
79
+ Lint/ToEnumArguments: # (new in 1.1)
80
+ Enabled: true
81
+ Lint/TripleQuotes: # (new in 1.9)
82
+ Enabled: true
83
+ Lint/UnexpectedBlockArity: # (new in 1.5)
84
+ Enabled: true
85
+ Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
86
+ Enabled: true
87
+ Style/ArgumentsForwarding: # (new in 1.1)
88
+ Enabled: true
89
+ Style/CollectionCompact: # (new in 1.2)
90
+ Enabled: true
91
+ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
92
+ Enabled: true
93
+ Style/EndlessMethod: # (new in 1.8)
94
+ Enabled: true
95
+ Style/HashConversion: # (new in 1.10)
96
+ Enabled: true
97
+ Style/HashExcept: # (new in 1.7)
98
+ Enabled: true
99
+ Style/IfWithBooleanLiteralBranches: # (new in 1.9)
100
+ Enabled: true
101
+ Style/NegatedIfElseCondition: # (new in 1.2)
102
+ Enabled: true
103
+ Style/NilLambda: # (new in 1.3)
104
+ Enabled: true
105
+ Style/RedundantArgument: # (new in 1.4)
106
+ Enabled: true
107
+ Style/StringChars: # (new in 1.12)
108
+ Enabled: true
109
+ Style/SwapValues: # (new in 1.1)
110
+ Enabled: true
data/.rubocop_todo.yml CHANGED
@@ -1,42 +1,7 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-11-06 14:49:31 -0800 using RuboCop version 0.74.0.
3
+ # on 2021-03-26 19:20:09 UTC using RuboCop version 1.12.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 5
10
- Metrics/AbcSize:
11
- Max: 45
12
-
13
- # Offense count: 4
14
- Metrics/CyclomaticComplexity:
15
- Max: 12
16
-
17
- # Offense count: 4
18
- Metrics/PerceivedComplexity:
19
- Max: 12
20
-
21
- # Offense count: 2
22
- Style/Documentation:
23
- Exclude:
24
- - 'spec/**/*'
25
- - 'test/**/*'
26
- - 'lib/parse_date.rb'
27
-
28
- # Offense count: 1
29
- # Cop supports --auto-correct.
30
- # Configuration parameters: EnforcedOctalStyle.
31
- # SupportedOctalStyles: zero_with_o, zero_only
32
- Style/NumericLiteralPrefix:
33
- Exclude:
34
- - 'spec/parse_date/int_from_string_spec.rb'
35
-
36
- # Offense count: 1
37
- # Cop supports --auto-correct.
38
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
39
- # SupportedStyles: slashes, percent_r, mixed
40
- Style/RegexpLiteral:
41
- Exclude:
42
- - 'lib/parse_date/int_from_string.rb'
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/parse_date.svg)](https://badge.fury.io/rb/parse_date)
2
- [![Build Status](https://travis-ci.org/sul-dlss/parse_date.svg?branch=master)](https://travis-ci.org/sul-dlss/parse_date)
2
+ [![Build Status](https://travis-ci.com/sul-dlss/parse_date.svg?branch=main)](https://travis-ci.com/sul-dlss/parse_date)
3
3
  [![Maintainability](https://api.codeclimate.com/v1/badges/2d006b4ccb3100434f4a/maintainability)](https://codeclimate.com/github/sul-dlss/parse_date/maintainability)
4
4
  [![Test Coverage](https://api.codeclimate.com/v1/badges/2d006b4ccb3100434f4a/test_coverage)](https://codeclimate.com/github/sul-dlss/parse_date/test_coverage)
5
5
 
data/lib/parse_date.rb CHANGED
@@ -65,6 +65,8 @@ class ParseDate
65
65
  # @param [Integer, String] first_year, expecting integer or parseable string for .to_i
66
66
  # @param [Integer, String] last_year, expecting integer or parseable string for .to_i
67
67
  # @return [Array] array of Integer year values from first to last, inclusive
68
+ # rubocop:disable Metrics/CyclomaticComplexity
69
+ # rubocop:disable Metrics/PerceivedComplexity
68
70
  def self.range_array(first_year, last_year)
69
71
  first_year = first_year.to_i if first_year.is_a?(String) && first_year.match?(/^-?\d+$/)
70
72
  last_year = last_year.to_i if last_year.is_a?(String) && last_year.match?(/^-?\d+$/)
@@ -77,4 +79,6 @@ class ParseDate
77
79
 
78
80
  Range.new(first_year, last_year).to_a
79
81
  end
82
+ # rubocop:enable Metrics/CyclomaticComplexity
83
+ # rubocop:enable Metrics/PerceivedComplexity
80
84
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'date' # so upstream callers don't have to require it
4
-
5
3
  class ParseDate
6
4
 
7
5
  # Parse (Year) Integers from Date Strings
@@ -20,24 +18,15 @@ class ParseDate
20
18
  return if date_str == '0000-00-00' # shpc collection has these useless dates
21
19
 
22
20
  # B.C. first (match longest string first)
23
- return ParseDate.send(:earliest_century_bc, date_str) if date_str.match(YY_YY_CENTURY_BC_REGEX)
24
- return ParseDate.send(:between_bc_earliest_year, date_str) if date_str.match(BETWEEN_Yn_AND_Yn_BC_REGEX)
25
- return ParseDate.send(:year_int_for_bc, date_str) if date_str.match(YEAR_BC_REGEX)
21
+ bc_result = ParseDate.send(:earliest_year_bc_parsing, date_str)
22
+ return bc_result if bc_result
26
23
 
27
- result ||= ParseDate.send(:between_earliest_year, date_str)
28
- result ||= ParseDate.send(:hyphen_4digit_earliest_year, date_str)
29
- result ||= ParseDate.send(:negative_first_four_digits, date_str)
30
- result ||= ParseDate.send(:first_four_digits, date_str)
31
- result ||= ParseDate.send(:year_from_mm_dd_yy, date_str)
32
- result ||= ParseDate.send(:first_year_for_decade, date_str) # 198x or 201x
33
- result ||= ParseDate.send(:first_year_for_century, date_str) # includes BC
34
- result ||= ParseDate.send(:year_for_early_numeric, date_str)
35
- unless result
36
- # try removing brackets between digits in case we have 169[5] or [18]91
37
- no_brackets = ParseDate.send(:remove_brackets, date_str)
38
- return earliest_year(no_brackets) if no_brackets
39
- end
40
- result.to_i if result && year_int_valid?(result.to_i)
24
+ result = ParseDate.send(:earliest_year_parsing, date_str)
25
+ return result if result
26
+
27
+ # try removing brackets between digits in case we have 169[5] or [18]91
28
+ no_brackets = ParseDate.send(:remove_brackets, date_str)
29
+ earliest_year(no_brackets) if no_brackets
41
30
  end
42
31
 
43
32
  # latest year as Integer if we can parse one from date_str
@@ -53,32 +42,15 @@ class ParseDate
53
42
  return if date_str == '0000-00-00' # shpc collection has these useless dates
54
43
 
55
44
  # B.C. first (match longest string first)
56
- return ParseDate.send(:last_year_mult_centuries_bc, date_str) if date_str.match(YY_YY_CENTURY_BC_REGEX)
57
- return ParseDate.send(:between_bc_latest_year, date_str) if date_str.match(BETWEEN_Yn_AND_Yn_BC_REGEX)
58
- return ParseDate.send(:last_year_for_bc_century, date_str) if date_str.match(BC_CENTURY_REGEX)
59
- return ParseDate.send(:year_int_for_bc, date_str) if date_str.match(BC_REGEX)
45
+ bc_result = ParseDate.send(:latest_year_bc_parsing, date_str)
46
+ return bc_result if bc_result
60
47
 
61
- result ||= ParseDate.send(:between_latest_year, date_str)
62
- result ||= ParseDate.send(:hyphen_4digit_latest_year, date_str)
63
- result ||= ParseDate.send(:hyphen_2digit_latest_year, date_str)
64
- result ||= ParseDate.send(:hyphen_1digit_latest_year, date_str)
65
- result ||= ParseDate.send(:yyuu_after_hyphen, date_str)
66
- result ||= ParseDate.send(:year_after_or, date_str)
67
- result ||= ParseDate.send(:negative_4digits_after_hyphen, date_str)
68
- result ||= ParseDate.send(:negative_first_four_digits, date_str)
69
- result ||= ParseDate.send(:last_year_for_0s_decade, date_str)
70
- result ||= ParseDate.send(:first_four_digits, date_str)
71
- result ||= ParseDate.send(:year_from_mm_dd_yy, date_str)
72
- result ||= ParseDate.send(:last_year_for_decade, date_str) # 198x or 201x
73
- result ||= ParseDate.send(:last_year_mult_centuries, date_str) # nth-nth century
74
- result ||= ParseDate.send(:last_year_for_century, date_str)
75
- result ||= ParseDate.send(:last_year_for_early_numeric, date_str)
76
- unless result
77
- # try removing brackets between digits in case we have 169[5] or [18]91
78
- no_brackets = ParseDate.send(:remove_brackets, date_str)
79
- return latest_year(no_brackets) if no_brackets
80
- end
81
- result.to_i if result && year_int_valid?(result.to_i)
48
+ result = ParseDate.send(:latest_year_parsing, date_str)
49
+ return result if result
50
+
51
+ # try removing brackets between digits in case we have 169[5] or [18]91
52
+ no_brackets = ParseDate.send(:remove_brackets, date_str)
53
+ latest_year(no_brackets) if no_brackets
82
54
  end
83
55
 
84
56
  # true if the year is between -9999 and (current year + 1), inclusive
@@ -91,9 +63,68 @@ class ParseDate
91
63
 
92
64
  protected
93
65
 
66
+ def earliest_year_bc_parsing(date_str)
67
+ return ParseDate.send(:earliest_century_bc, date_str) if date_str.match(YY_YY_CENTURY_BC_REGEX)
68
+ return ParseDate.send(:between_bc_earliest_year, date_str) if date_str.match(BETWEEN_Yn_AND_Yn_BC_REGEX)
69
+ return ParseDate.send(:year_int_for_bc, date_str) if date_str.match(YEAR_BC_REGEX)
70
+ end
71
+
72
+ def earliest_year_parsing(date_str)
73
+ [
74
+ # longest string first, more or less
75
+ :between_earliest_year,
76
+ :hyphen_4digit_earliest_year,
77
+ :negative_first_four_digits,
78
+ :first_four_digits,
79
+ :year_from_mm_dd_yy,
80
+ :first_year_for_decade, # 198x or 201x
81
+ :first_year_for_century, # includes some BC
82
+ :year_for_early_numeric
83
+ ].each do |method_name|
84
+ result = ParseDate.send(method_name, date_str)
85
+ return result.to_i if result && year_int_valid?(result.to_i)
86
+ end
87
+ nil
88
+ end
89
+
90
+ def latest_year_bc_parsing(date_str)
91
+ return ParseDate.send(:last_year_mult_centuries_bc, date_str) if date_str.match(YY_YY_CENTURY_BC_REGEX)
92
+ return ParseDate.send(:between_bc_latest_year, date_str) if date_str.match(BETWEEN_Yn_AND_Yn_BC_REGEX)
93
+ return ParseDate.send(:last_year_for_bc_century, date_str) if date_str.match(BC_CENTURY_REGEX)
94
+ return ParseDate.send(:year_int_for_bc, date_str) if date_str.match(BC_REGEX)
95
+ end
96
+
97
+ # rubocop:disable Metrics/MethodLength
98
+ def latest_year_parsing(date_str)
99
+ result = nil
100
+ [
101
+ # longest string first, more or less
102
+ :between_latest_year,
103
+ :hyphen_4digit_latest_year,
104
+ :hyphen_2digit_latest_year,
105
+ :hyphen_1digit_latest_year,
106
+ :yyuu_after_hyphen,
107
+ :year_after_or,
108
+ :negative_4digits_after_hyphen,
109
+ :negative_first_four_digits,
110
+ :last_year_for_0s_decade,
111
+ :first_four_digits,
112
+ :year_from_mm_dd_yy,
113
+ :last_year_for_decade, # 198x or 201x
114
+ :last_year_mult_centuries, # nth-nth century
115
+ :last_year_for_century,
116
+ :last_year_for_early_numeric
117
+ ].each do |method|
118
+ result ||= ParseDate.send(method, date_str)
119
+ return result.to_i if result && year_int_valid?(result.to_i)
120
+ end
121
+ nil
122
+ end
123
+ # rubocop:enable Metrics/MethodLength
124
+
94
125
  REGEX_OPTS = Regexp::IGNORECASE | Regexp::MULTILINE
95
126
  BC_REGEX = Regexp.new(/\s*B\.?\s*C\.?/im)
96
- BRACKETS_BETWEEN_DIGITS_REGEX = Regexp.new('\d[' + Regexp.escape('[]') + ']\d')
127
+ BRACKETS_BETWEEN_DIGITS_REGEX = Regexp.new("\\d[#{Regexp.escape('[]')}]\\d")
97
128
 
98
129
  # removes brackets between digits such as 169[5] or [18]91
99
130
  def remove_brackets(date_str)
@@ -206,13 +237,13 @@ class ParseDate
206
237
  # looks for -yyyy at beginning of date_str and returns if found
207
238
  # @return [String, nil] negative 4 digit year (e.g. -1865) if date_str has -yyyy, nil otherwise
208
239
  def negative_first_four_digits(date_str)
209
- Regexp.last_match(1) if date_str.match(/^(\-\d{4})/)
240
+ Regexp.last_match(1) if date_str.match(/^(-\d{4})/)
210
241
  end
211
242
 
212
243
  # looks for -yyyy after hyphen and returns if found
213
244
  # @return [String, nil] negative 4 digit year (e.g. -1865) if date_str has -yyyy - -yyyy, nil otherwise
214
245
  def negative_4digits_after_hyphen(date_str)
215
- Regexp.last_match(1) if date_str.match(/\-\d{4}\s*(?:-|–|–|or|to)\s*(\-\d{4})/)
246
+ Regexp.last_match(1) if date_str.match(/-\d{4}\s*(?:-|–|–|or|to)\s*(-\d{4})/)
216
247
  end
217
248
 
218
249
  # looks for 4 consecutive digits in date_str and returns first occurrence if found
@@ -228,7 +259,7 @@ class ParseDate
228
259
  # 1/1/27 -> 1927
229
260
  # @return [String, nil] 4 digit year (e.g. 1865, 0950) if date_str matches pattern, nil otherwise
230
261
  def year_from_mm_dd_yy(date_str)
231
- slash_matches = date_str.match(/\d{1,2}\/\d{1,2}\/\d{2}/)
262
+ slash_matches = date_str.match(%r{\d{1,2}/\d{1,2}/\d{2}})
232
263
  if slash_matches
233
264
  date_obj = Date.strptime(date_str, '%m/%d/%y')
234
265
  else
@@ -247,7 +278,7 @@ class ParseDate
247
278
  # @return [String, nil] 4 digit year (e.g. 1869, 1959) if date_str matches pattern, nil otherwise
248
279
  def last_year_for_0s_decade(date_str)
249
280
  decade_matches = date_str.match(DECADE_0S_REGEX)
250
- changed_to_nine = decade_matches.to_s.sub(/0\'?s/, '9') if decade_matches
281
+ changed_to_nine = decade_matches.to_s.sub(/0'?s/, '9') if decade_matches
251
282
  ParseDate.first_four_digits(changed_to_nine) if changed_to_nine
252
283
  end
253
284
 
@@ -277,12 +308,14 @@ class ParseDate
277
308
 
278
309
  # first year of century if we have: yyuu, yy--, yy--? or xxth century pattern; handles B.C.
279
310
  # @return [Integer, nil] yy00 if date_str matches pattern, nil otherwise
311
+ # rubocop:disable Metrics/AbcSize
280
312
  def first_year_for_century(date_str)
281
313
  return Regexp.last_match(1).to_i * -100 - 99 if date_str.match(BC_CENTURY_REGEX)
282
314
  return Regexp.last_match(1).to_i * 100 if date_str.match(CENTURY_4CHAR_REGEX)
283
315
  return (Regexp.last_match(:first).to_i - 1) * 100 if date_str.match(YY_YY_CENTURY_REGEX)
284
316
  return (Regexp.last_match(1).to_i - 1) * 100 if date_str.match(CENTURY_WORD_REGEX)
285
317
  end
318
+ # rubocop:enable Metrics/AbcSize
286
319
 
287
320
  # last year of century if we have: yyuu, yy--, yy--? or xxth century pattern
288
321
  # @return [Integer, nil] yy99 if date_str matches pattern, nil otherwise; also nil if B.C. in pattern
@@ -344,7 +377,7 @@ class ParseDate
344
377
  end
345
378
 
346
379
  FIRST_LAST_EARLY_NUMERIC_REGEX =
347
- Regexp.new(/^(?<first>\-?\d{1,3})\??\s*(-|–|–|or|to)\s*(?<last>\-?\d{1,4})\??([^\du\-\[]|$)/im)
380
+ Regexp.new(/^(?<first>-?\d{1,3})\??\s*(-|–|–|or|to)\s*(?<last>-?\d{1,4})\??([^\du\-\[]|$)/im)
348
381
 
349
382
  # Integer value for latest year if we have early numeric year range or single early numeric year
350
383
  # @return [Integer, nil] year if date_str matches pattern; nil otherwise
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ParseDate
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
5
5
  end
data/parse_date.gemspec CHANGED
@@ -32,8 +32,9 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_development_dependency 'bundler', '~> 2.0'
34
34
  spec.add_development_dependency 'pry-byebug'
35
- spec.add_development_dependency 'rake', '~> 10.0'
35
+ spec.add_development_dependency 'rake', '~> 13.0.3'
36
36
  spec.add_development_dependency 'rspec', '~> 3.0'
37
- spec.add_development_dependency 'rubocop', '~> 0.74.0'
38
- spec.add_development_dependency 'simplecov'
37
+ spec.add_development_dependency 'rubocop', '~> 1.12'
38
+ spec.add_development_dependency 'rubocop-rspec'
39
+ spec.add_development_dependency 'simplecov', '~> 0.17.1' # CodeClimate cannot use SimpleCov >= 0.18.0 for generating test coverage
39
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2021-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: 13.0.3
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: 13.0.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,16 +86,16 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.74.0
89
+ version: '1.12'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.74.0
96
+ version: '1.12'
97
97
  - !ruby/object:Gem::Dependency
98
- name: simplecov
98
+ name: rubocop-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.17.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.17.1
111
125
  description: Get normalized date values for searching, faceting and display (e.g.
112
126
  in Solr search engine)
113
127
  email:
@@ -138,7 +152,7 @@ metadata:
138
152
  allowed_push_host: https://rubygems.org/
139
153
  homepage_uri: https://github.com/sul-dlss/parse_date
140
154
  source_code_uri: https://github.com/sul-dlss/parse_date
141
- post_install_message:
155
+ post_install_message:
142
156
  rdoc_options: []
143
157
  require_paths:
144
158
  - lib
@@ -153,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
167
  - !ruby/object:Gem::Version
154
168
  version: '0'
155
169
  requirements: []
156
- rubygems_version: 3.0.3
157
- signing_key:
170
+ rubygems_version: 3.2.3
171
+ signing_key:
158
172
  specification_version: 4
159
173
  summary: parse date values out of strings and normalize them
160
174
  test_files: []