edtf 3.0.3 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +5 -5
- data/README.md +1 -1
- data/edtf.gemspec +1 -1
- data/features/step_definitions/edtf_steps.rb +4 -4
- data/lib/edtf/epoch.rb +2 -2
- data/lib/edtf/interval.rb +1 -1
- data/lib/edtf/parser.rb +295 -284
- data/lib/edtf/parser.y +6 -0
- data/lib/edtf/set.rb +2 -2
- data/lib/edtf/version.rb +1 -1
- data/spec/edtf/interval_spec.rb +20 -0
- data/spec/edtf/parser_spec.rb +1 -0
- metadata +8 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: b7f7b4973ec4c8f3c5b12db9bfc6076dac982cfab422f700a31b5a0754b19611
|
|
4
|
+
data.tar.gz: af05e5ed8581f9ecf1394e948a89d15fc4786f5c44be26cdae90df0952aacbc5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a3c4ada19ea18a3cf79e39fa504269d76fb8a062f47d8990123eca1e6da5c30ffb9abcb6aea4656258589c23141509aca66a6eb83208add92884e2bb1ce6e78
|
|
7
|
+
data.tar.gz: e3e7ec3482a2eb14319cc5c10eadc60b93b36334cf9a30d333ba132a18edea386ad90723ef43140f855dd6c462f1172f6ae8fcd0838ad9294b9be51ca9339b25
|
data/.travis.yml
CHANGED
|
@@ -2,13 +2,13 @@ language: ruby
|
|
|
2
2
|
bundler_args: --without debug extra
|
|
3
3
|
sudo: false
|
|
4
4
|
cache: bundler
|
|
5
|
-
before_install:
|
|
6
|
-
- gem install bundler
|
|
7
5
|
script: bundle exec rake test_with_coveralls
|
|
8
6
|
rvm:
|
|
9
|
-
- 2.
|
|
10
|
-
- 2.
|
|
11
|
-
-
|
|
7
|
+
- 2.5.0
|
|
8
|
+
- 2.4.3
|
|
9
|
+
- 2.3.6
|
|
10
|
+
- 2.2.9
|
|
11
|
+
- jruby-9.1.16.0
|
|
12
12
|
notifications:
|
|
13
13
|
email:
|
|
14
14
|
- sk@semicolon.at
|
data/README.md
CHANGED
|
@@ -30,7 +30,7 @@ overlaps (version 3.x and 4.x are supported).
|
|
|
30
30
|
|
|
31
31
|
A variation of EDTF will part of the upcoming ISO 8601-2 standard. EDTF-Ruby
|
|
32
32
|
does not support this new version of EDTF yet, but if you are curious,
|
|
33
|
-
[EDTF.js](inukshuk/edtf.js), an ES6 implementation is already available.
|
|
33
|
+
[EDTF.js](https://github.com/inukshuk/edtf.js), an ES6 implementation is already available.
|
|
34
34
|
|
|
35
35
|
Quickstart
|
|
36
36
|
----------
|
data/edtf.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
|
15
15
|
s.description = 'A Ruby implementation of the Extended Date/Time Format (EDTF).'
|
|
16
16
|
s.license = 'BSD-2-Clause-FreeBSD'
|
|
17
17
|
|
|
18
|
-
s.add_runtime_dependency('activesupport', '>= 3.0', '<
|
|
18
|
+
s.add_runtime_dependency('activesupport', '>= 3.0', '< 8.0')
|
|
19
19
|
|
|
20
20
|
s.files = `git ls-files`.split("\n") << 'lib/edtf/parser.rb'
|
|
21
21
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
@@ -31,19 +31,19 @@ Then /^the hours should be "([^"]*)"$/ do |hours|
|
|
|
31
31
|
expect(@date.hour).to eq(hours.to_i)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
Then /^the year should be "([^"]*)"
|
|
34
|
+
Then /^the year should be "([^"]*)" UTC$/ do |year|
|
|
35
35
|
expect(@date.to_time.utc.year).to eq(year.to_i)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
Then /^the month should be "([^"]*)"
|
|
38
|
+
Then /^the month should be "([^"]*)" UTC$/ do |month|
|
|
39
39
|
expect(@date.to_time.utc.month).to eq(month.to_i)
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
Then /^the day should be "([^"]*)"
|
|
42
|
+
Then /^the day should be "([^"]*)" UTC$/ do |day|
|
|
43
43
|
expect(@date.to_time.utc.day).to eq(day.to_i)
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
Then /^the hours should be "([^"]*)"
|
|
46
|
+
Then /^the hours should be "([^"]*)" UTC$/ do |hours|
|
|
47
47
|
expect(@date.to_time.utc.hour).to eq(hours.to_i)
|
|
48
48
|
end
|
|
49
49
|
|
data/lib/edtf/epoch.rb
CHANGED