iso8601 0.12.1 → 0.12.2

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: b275dd85921d3d5a18dd4cbecaeb2f7a7c5c76e2527030087e00d971c2fb2ba8
4
- data.tar.gz: 2ad804505434c8fd15e52298915cf191b1a6d5529c069a65cb418bb3f92b9719
3
+ metadata.gz: 63fc30058203b81b163c0e43e6752493988e104a76b2fcd6c52eba5905cd5ec3
4
+ data.tar.gz: 990d117c3c06599abf7306da203fa23efadc1215d40eebf0f9a54da8dd30cf97
5
5
  SHA512:
6
- metadata.gz: 88d158b64e8e9958b69263593a7606000d50dc254fb1ef929a0544ed4d2881ebea16b37aa5638082a866a148d2aab28c7ab2680703e05f8a480deb44590e9f8b
7
- data.tar.gz: 15591902cd2de0debe9b4b1c2f8c2a4568ff9fdaf35372d88183d5f8a81a3f245c6ac3b871e5dda621b0b75674f6f8b494e55581f93fa476f5e2cd8a7adb3abd
6
+ metadata.gz: b84622859b9da1598fe29879aff66aeed4aaa560af9ecade7d48fbf4ae6e40a0668dadd528690f0c1039317f726925f3656414a6a4ac38658509edfbf8c793b3
7
+ data.tar.gz: 9719addba3e3536ecec660b791f65203332610eed991db6ca97cabf25ae186569ee82bb5ca63fc52ee76de15cd2e76c27bc403af0a1844978c377194b06c3907
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2018 Arnau Siches
1
+ Copyright (c) 2012-2020 Arnau Siches
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # ISO8601
2
2
 
3
+ **[New maintainer wanted](https://github.com/arnau/ISO8601/issues/50)**
4
+
3
5
  Version 0.9.0 is **not compatible** with previous versions. Atoms and Durations
4
6
  changed their interface when treating base dates so it is only applied when
5
7
  computing the Atom length (e.g. `#to_seconds`). As a consequence, it is no
@@ -23,7 +25,6 @@ times) standard.
23
25
  ## Supported versions
24
26
 
25
27
  * MRI 2.x
26
- * JRuby 9
27
28
 
28
29
  ## Documentation
29
30
 
@@ -37,26 +38,18 @@ take a look to the implementation notes:
37
38
 
38
39
  ## Testing
39
40
 
41
+ Install a Ruby version. E.g. you can install Ruby 2.7 with:
40
42
 
41
- ### Docker
42
-
43
- # Install Docker
44
- $ make install
45
- $ make test
46
-
47
- You can alse target specific runtimes:
48
-
49
- $ make mri-test
50
- $ make jruby-test
43
+ ```
44
+ $ nix-shell
45
+ ```
51
46
 
52
- ### Raw
53
-
54
- The old fashion way:
55
-
56
- # Install a Ruby flavour
57
- $ bundle install
58
- $ bundle exec rspec
47
+ Then
59
48
 
49
+ ```
50
+ $ bundle install
51
+ $ bundle exec rspec
52
+ ```
60
53
 
61
54
  ## Contributing
62
55
 
@@ -64,6 +57,7 @@ The old fashion way:
64
57
 
65
58
  Please see [CONTRIBUTING.md](./CONTRIBUTING.md)
66
59
 
60
+
67
61
  ## License
68
62
 
69
63
  Arnau Siches under the [MIT License](https://github.com/arnau/ISO8601/blob/master/LICENSE)
@@ -16,15 +16,14 @@ Gem::Specification.new do |s|
16
16
  and times) standard.
17
17
  DESC
18
18
  s.license = 'MIT'
19
- s.rubyforge_project = 'iso8601'
20
19
  s.files = %w{LICENSE README.md CONTRIBUTING.md} + `git ls-files`.split("\n").select { |f| f =~ %r{^(?:lib/)}i }
21
- s.test_files = %w{Rakefile iso8601.gemspec Gemfile} + `git ls-files`.split("\n").select { |f| f =~ %r{^(?:specs/)}i }
20
+ s.test_files = %w{iso8601.gemspec Gemfile} + `git ls-files`.split("\n").select { |f| f =~ %r{^(?:specs/)}i }
22
21
  s.require_paths = ['lib']
23
22
 
24
23
  s.metadata["yard.run"] = "yri"
25
24
  s.required_ruby_version = '>= 2.0.0'
26
- s.add_development_dependency 'rspec', '~> 3.6'
27
- s.add_development_dependency 'rubocop', '~> 0.50'
28
- s.add_development_dependency 'pry', '~> 0.11.0'
29
- s.add_development_dependency 'pry-doc', '~> 0.13.4'
25
+ s.add_development_dependency 'rspec', '~> 3.9'
26
+ s.add_development_dependency 'rubocop', '~> 0.85'
27
+ s.add_development_dependency 'pry', '~> 0.13.1'
28
+ s.add_development_dependency 'pry-doc', '~> 1.1.0'
30
29
  end
@@ -47,9 +47,9 @@ module ISO8601
47
47
  ##
48
48
  # Converts DateTime to a formated string
49
49
  def to_s
50
- second_format = format((second % 1).zero? ? '%02d' : '%04.1f', second)
50
+ second_format = (second % 1).zero? ? '%02d' : '%04.1f'
51
51
 
52
- format("%04d-%02d-%02dT%02d:%02d:#{second_format}#{zone}", *atoms)
52
+ format("%04d-%02d-%02dT%02d:%02d:#{second_format}%s", *atoms)
53
53
  end
54
54
 
55
55
  ##
@@ -1,5 +1,5 @@
1
1
  module ISO8601
2
2
  ##
3
3
  # The gem version
4
- VERSION = '0.12.1'.freeze
4
+ VERSION = '0.12.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso8601
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnau Siches
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2020-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.6'
19
+ version: '3.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.6'
26
+ version: '3.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.50'
33
+ version: '0.85'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.50'
40
+ version: '0.85'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.11.0
47
+ version: 0.13.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.11.0
54
+ version: 0.13.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry-doc
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.13.4
61
+ version: 1.1.0
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: 0.13.4
68
+ version: 1.1.0
69
69
  description: |2
70
70
  ISO8601 is a simple implementation in Ruby of the ISO 8601 (Data elements and
71
71
  interchange formats - Information interchange - Representation of dates
@@ -79,7 +79,6 @@ files:
79
79
  - Gemfile
80
80
  - LICENSE
81
81
  - README.md
82
- - Rakefile
83
82
  - iso8601.gemspec
84
83
  - lib/iso8601.rb
85
84
  - lib/iso8601/atomic.rb
@@ -117,12 +116,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
116
  - !ruby/object:Gem::Version
118
117
  version: '0'
119
118
  requirements: []
120
- rubyforge_project: iso8601
121
- rubygems_version: 2.7.7
119
+ rubygems_version: 3.1.2
122
120
  signing_key:
123
121
  specification_version: 4
124
122
  summary: Ruby parser to work with ISO 8601 dateTimes and durations - http://en.wikipedia.org/wiki/ISO_8601
125
123
  test_files:
126
- - Rakefile
127
124
  - iso8601.gemspec
128
125
  - Gemfile
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require 'bundler/gem_tasks'