dtg 5.0.0 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/coveralls.yml +27 -0
- data/.github/workflows/gem-push.yml +49 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +59 -37
- data/README.md +46 -19
- data/dtg.gemspec +10 -10
- data/lib/dtg/active_support/time_with_zone_ext.rb +1 -0
- data/lib/dtg/date_time_ext.rb +1 -0
- data/lib/dtg/date_time_group.rb +2 -2
- data/lib/dtg/time_ext.rb +1 -0
- data/lib/dtg/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +26 -28
- data/.coveralls.yml +0 -2
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a02c924c77904a119c7a7dd0b45f3a956cb0d61aef50b36f1c0df98c11fabdee
|
4
|
+
data.tar.gz: 43bd7373fecc608654943b4b56d49dea4b8b3b3c220ef713b5cd37e335cd549f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29a742cb4b26fa84fe4aa13f2e52e633874e209f55b73e9264456a4a0760c1c7d488a69ed1b1a4c0f10367a378348a4a0b5de074b59c4d73a28e44f506933589
|
7
|
+
data.tar.gz: e55e421350827e73a84fdba0543a9122677e4d843a97bd9e16e7e7cd231e07a541fdb00277bb11d9a2d732d6a1910744947676a1fb3dccf21cfa90a18da508c0
|
@@ -0,0 +1,27 @@
|
|
1
|
+
on: ["push", "pull_request"]
|
2
|
+
|
3
|
+
name: Test Coveralls
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
|
7
|
+
build:
|
8
|
+
name: Build
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
|
12
|
+
- uses: actions/checkout@v4
|
13
|
+
|
14
|
+
- name: Use Ruby
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
# Not required with .ruby-version file
|
17
|
+
# with:
|
18
|
+
# ruby-version: '3.2.2'
|
19
|
+
|
20
|
+
- name: bundle install and rspec test
|
21
|
+
run: |
|
22
|
+
export COVERALLS_REPORT=true
|
23
|
+
bundle install
|
24
|
+
bundle exec rspec spec
|
25
|
+
|
26
|
+
- name: Coveralls
|
27
|
+
uses: coverallsapp/github-action@v2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ "master" ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ "master" ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Publish
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
permissions:
|
14
|
+
contents: read
|
15
|
+
packages: write
|
16
|
+
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v3
|
19
|
+
- name: Set up Ruby 2.6
|
20
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
21
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
22
|
+
# uses: ruby/setup-ruby@v1
|
23
|
+
# uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: head
|
27
|
+
|
28
|
+
- name: Publish to GPR
|
29
|
+
run: |
|
30
|
+
mkdir -p $HOME/.gem
|
31
|
+
touch $HOME/.gem/credentials
|
32
|
+
chmod 0600 $HOME/.gem/credentials
|
33
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
34
|
+
gem build *.gemspec
|
35
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
36
|
+
env:
|
37
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
38
|
+
OWNER: ${{ github.repository_owner }}
|
39
|
+
|
40
|
+
- name: Publish to RubyGems
|
41
|
+
run: |
|
42
|
+
mkdir -p $HOME/.gem
|
43
|
+
touch $HOME/.gem/credentials
|
44
|
+
chmod 0600 $HOME/.gem/credentials
|
45
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
46
|
+
gem build *.gemspec
|
47
|
+
gem push *.gem
|
48
|
+
env:
|
49
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-3.2.2
|
data/Gemfile.lock
CHANGED
@@ -1,70 +1,92 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dtg (
|
5
|
-
activesupport
|
4
|
+
dtg (6.0.0)
|
5
|
+
activesupport (~> 7.0.8)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
10
|
+
abbrev (0.1.1)
|
11
|
+
activesupport (7.0.8)
|
11
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
-
i18n (>=
|
13
|
-
minitest (
|
14
|
-
tzinfo (~>
|
15
|
-
|
16
|
-
concurrent-ruby (1.1.5)
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
concurrent-ruby (1.2.2)
|
17
17
|
coveralls (0.8.23)
|
18
18
|
json (>= 1.8, < 3)
|
19
19
|
simplecov (~> 0.16.1)
|
20
20
|
term-ansicolor (~> 1.3)
|
21
21
|
thor (>= 0.19.4, < 2.0)
|
22
22
|
tins (~> 1.6)
|
23
|
-
diff-lcs (1.
|
24
|
-
docile (1.
|
25
|
-
|
23
|
+
diff-lcs (1.5.0)
|
24
|
+
docile (1.4.0)
|
25
|
+
haml (6.2.3)
|
26
|
+
temple (>= 0.8.2)
|
27
|
+
thor
|
28
|
+
tilt
|
29
|
+
i18n (1.14.1)
|
26
30
|
concurrent-ruby (~> 1.0)
|
27
|
-
json (2.
|
28
|
-
minitest (5.
|
29
|
-
prettier (0.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
rspec
|
31
|
+
json (2.6.3)
|
32
|
+
minitest (5.20.0)
|
33
|
+
prettier (4.0.2)
|
34
|
+
syntax_tree (>= 4.0.1)
|
35
|
+
syntax_tree-haml (>= 2.0.0)
|
36
|
+
syntax_tree-rbs (>= 0.2.0)
|
37
|
+
prettier_print (1.2.1)
|
38
|
+
rake (13.1.0)
|
39
|
+
rbs (3.3.2)
|
40
|
+
abbrev
|
41
|
+
rspec (3.12.0)
|
42
|
+
rspec-core (~> 3.12.0)
|
43
|
+
rspec-expectations (~> 3.12.0)
|
44
|
+
rspec-mocks (~> 3.12.0)
|
45
|
+
rspec-core (3.12.2)
|
46
|
+
rspec-support (~> 3.12.0)
|
47
|
+
rspec-expectations (3.12.3)
|
38
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
-
rspec-support (~> 3.
|
40
|
-
rspec-mocks (3.
|
49
|
+
rspec-support (~> 3.12.0)
|
50
|
+
rspec-mocks (3.12.6)
|
41
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-support (3.
|
52
|
+
rspec-support (~> 3.12.0)
|
53
|
+
rspec-support (3.12.1)
|
44
54
|
simplecov (0.16.1)
|
45
55
|
docile (~> 1.1)
|
46
56
|
json (>= 1.8, < 3)
|
47
57
|
simplecov-html (~> 0.10.0)
|
48
58
|
simplecov-html (0.10.2)
|
59
|
+
sync (0.5.0)
|
60
|
+
syntax_tree (6.2.0)
|
61
|
+
prettier_print (>= 1.2.0)
|
62
|
+
syntax_tree-haml (4.0.3)
|
63
|
+
haml (>= 5.2)
|
64
|
+
prettier_print (>= 1.2.1)
|
65
|
+
syntax_tree (>= 6.0.0)
|
66
|
+
syntax_tree-rbs (1.0.0)
|
67
|
+
prettier_print
|
68
|
+
rbs
|
69
|
+
syntax_tree (>= 2.0.1)
|
70
|
+
temple (0.10.3)
|
49
71
|
term-ansicolor (1.7.1)
|
50
72
|
tins (~> 1.0)
|
51
|
-
thor (
|
52
|
-
|
53
|
-
tins (1.
|
54
|
-
|
55
|
-
|
56
|
-
|
73
|
+
thor (1.3.0)
|
74
|
+
tilt (2.3.0)
|
75
|
+
tins (1.32.1)
|
76
|
+
sync
|
77
|
+
tzinfo (2.0.6)
|
78
|
+
concurrent-ruby (~> 1.0)
|
57
79
|
|
58
80
|
PLATFORMS
|
59
|
-
|
81
|
+
x86_64-darwin-21
|
60
82
|
|
61
83
|
DEPENDENCIES
|
62
|
-
bundler (~>
|
84
|
+
bundler (~> 2.4.22)
|
63
85
|
coveralls
|
64
86
|
dtg!
|
65
87
|
prettier
|
66
|
-
rake (~>
|
67
|
-
rspec (~> 3.0)
|
88
|
+
rake (~> 13.1.0)
|
89
|
+
rspec (~> 3.12.0)
|
68
90
|
|
69
91
|
BUNDLED WITH
|
70
|
-
|
92
|
+
2.4.22
|
data/README.md
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
[![Build Status](https://travis-ci.org/
|
2
|
-
[![Coverage Status](https://coveralls.io/repos/github/
|
3
|
-
[![Maintainability](https://api.codeclimate.com/v1/badges/c0d2545fedb195f5d647/maintainability)](https://codeclimate.com/github/
|
4
|
-
[![Test Coverage](https://api.codeclimate.com/v1/badges/c0d2545fedb195f5d647/test_coverage)](https://codeclimate.com/github/
|
5
|
-
[![Inline docs](http://inch-ci.org/github/
|
1
|
+
[![Build Status](https://travis-ci.org/optimizasean/dtg.svg?branch=master)](https://travis-ci.org/optimizasean/dtg)
|
2
|
+
[![Coverage Status](https://coveralls.io/repos/github/optimizasean/dtg/badge.svg)](https://coveralls.io/github/optimizasean/dtg)
|
3
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/c0d2545fedb195f5d647/maintainability)](https://codeclimate.com/github/optimizasean/dtg/maintainability)
|
4
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/c0d2545fedb195f5d647/test_coverage)](https://codeclimate.com/github/optimizasean/dtg/test_coverage)
|
5
|
+
[![Inline docs](http://inch-ci.org/github/optimizasean/dtg.svg?branch=master)](http://inch-ci.org/github/optimizasean/dtg)
|
6
6
|
|
7
7
|
[![Gem Version](https://badge.fury.io/rb/dtg.svg)](https://badge.fury.io/rb/dtg)
|
8
8
|
[![Downloads](https://img.shields.io/gem/dt/dtg.svg)](https://rubygems.org/gems/dtg)
|
9
9
|
[![Download Rank](https://img.shields.io/gem/rt/dtg.svg)](https://rubygems.org/gems/dtg)
|
10
10
|
[![Daily Download Rank](https://img.shields.io/gem/rd/dtg.svg)](https://rubygems.org/dtg)
|
11
|
-
[![Yard Documentation](https://img.shields.io/badge/YARD%20Documentation-Auto-blue.svg)](https://rubydoc.info/github/
|
11
|
+
[![Yard Documentation](https://img.shields.io/badge/YARD%20Documentation-Auto-blue.svg)](https://rubydoc.info/github/optimizasean/dtg/)
|
12
12
|
|
13
|
-
[![License](https://img.shields.io/github/license/
|
14
|
-
[![GitHub version](https://badge.fury.io/gh/
|
15
|
-
[![Open Github Issues](https://img.shields.io/github/issues-raw/
|
16
|
-
[![Closed Github Issues](https://img.shields.io/github/issues-closed-raw/
|
13
|
+
[![License](https://img.shields.io/github/license/optimizasean/dtg.svg)](https://raw.githubusercontent.com/optimizasean/dtg/master/LICENSE)
|
14
|
+
[![GitHub version](https://badge.fury.io/gh/optimizasean%2Fdtg.svg)](https://badge.fury.io/gh/optimizasean%2Fdtg)
|
15
|
+
[![Open Github Issues](https://img.shields.io/github/issues-raw/optimizasean/dtg.svg)](https://github.com/optimizasean/dtg/issues)
|
16
|
+
[![Closed Github Issues](https://img.shields.io/github/issues-closed-raw/optimizasean/dtg.svg)](https://github.com/optimizasean/dtg/issues)
|
17
17
|
|
18
|
-
![Star Project](https://img.shields.io/github/stars/
|
19
|
-
![Watch Project](https://img.shields.io/github/watchers/
|
20
|
-
![Follow Me](https://img.shields.io/github/followers/
|
18
|
+
![Star Project](https://img.shields.io/github/stars/optimizasean/dtg.svg?style=social)
|
19
|
+
![Watch Project](https://img.shields.io/github/watchers/optimizasean/dtg.svg?style=social)
|
20
|
+
![Follow Me](https://img.shields.io/github/followers/optimizasean.svg?style=social)
|
21
21
|
|
22
22
|
# Dtg
|
23
23
|
|
@@ -40,8 +40,11 @@ DTG is the military acronym referring to what is also called nautical or maritim
|
|
40
40
|
5. [Testing](#testing)
|
41
41
|
6. [Compatability](#compatability)
|
42
42
|
7. [Problems](#problems)
|
43
|
-
8. [
|
44
|
-
9. [
|
43
|
+
8. [Development](#development)
|
44
|
+
9. [Contributing](#contributing)
|
45
|
+
10. [License](#license)
|
46
|
+
11. [Code of Conduct](#code-of-conduct)
|
47
|
+
12. [Links and Files](#links-and-files)
|
45
48
|
|
46
49
|
## Usage
|
47
50
|
|
@@ -125,7 +128,7 @@ If you would like to test this gem before adding it to your project to see it's
|
|
125
128
|
1. Clone the repository
|
126
129
|
|
127
130
|
```sh
|
128
|
-
git clone https://github.com/
|
131
|
+
git clone https://github.com/optimizasean/dtg
|
129
132
|
```
|
130
133
|
|
131
134
|
2. cd into the project
|
@@ -211,7 +214,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
211
214
|
|
212
215
|
## Contributing
|
213
216
|
|
214
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
217
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/optimizasean/dtg. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
215
218
|
|
216
219
|
If you want to contribute please let me know though either an email or you can just submit a pull request to add anything or open an issue and I can look through it with you!
|
217
220
|
|
@@ -221,5 +224,29 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
221
224
|
|
222
225
|
## Code of Conduct
|
223
226
|
|
224
|
-
Everyone interacting in the Dtg project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
225
|
-
|
227
|
+
Everyone interacting in the Dtg project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/optimizasean/dtg/blob/master/CODE_OF_CONDUCT.md).
|
228
|
+
|
229
|
+
## Links and Files
|
230
|
+
|
231
|
+
- [RubyGems](https://rubygems.org/dtg)
|
232
|
+
- [Code](https://github.com/optimizasean/dtg)
|
233
|
+
- [Wiki](https://github.com/optimizasean/dtg/wiki)
|
234
|
+
- [Projects](https://github.com/optimizasean/dtg/projects)
|
235
|
+
- [Issues](https://github.com/optimizasean/dtg/issues)
|
236
|
+
- [Readme](https://github.com/optimizasean/dtg/blob/master/README.md)
|
237
|
+
- [Changelog](https://github.com/optimizasean/dtg/blob/master/CHANGELOG.md)
|
238
|
+
- [License](https://github.com/optimizasean/dtg/blob/master/LICENSE)
|
239
|
+
- [Code of Conduct](https://github.com/optimizasean/dtg/blob/master/CODE_OF_CONDUCT.md)
|
240
|
+
- [Contributor Covenant](http://contributor-covenant.org)
|
241
|
+
- [Pull Requests](https://github.com/optimizasean/dtg/pulls)
|
242
|
+
- Security
|
243
|
+
- [Advisories](https://github.com/optimizasean/dtg/security/advisories)
|
244
|
+
- [Policy](https://github.com/optimizasean/dtg/security/policy)
|
245
|
+
- Insights
|
246
|
+
- [Pulse](https://github.com/optimizasean/dtg/pulse)
|
247
|
+
- [Contributors](https://github.com/optimizasean/dtg/graphs/contributors)
|
248
|
+
- [Commits](https://github.com/optimizasean/dtg/graphs/commit-activity)
|
249
|
+
- [Code Frequency](https://github.com/optimizasean/dtg/graphs/code-frequency)
|
250
|
+
- [Dependency Graph](https://github.com/optimizasean/dtg/network/dependencies)
|
251
|
+
- [Network](https://github.com/optimizasean/dtg/network)
|
252
|
+
- [Forks](https://github.com/optimizasean/dtg/network/members)
|
data/dtg.gemspec
CHANGED
@@ -8,9 +8,9 @@ require 'dtg/version'
|
|
8
8
|
Gem::Specification.new do |spec|
|
9
9
|
spec.name = 'dtg'
|
10
10
|
spec.version = Dtg::VERSION
|
11
|
-
spec.authors = %w[
|
12
|
-
spec.email = %w[
|
13
|
-
spec.homepage = 'https://github.com/
|
11
|
+
spec.authors = %w[optimizasean]
|
12
|
+
spec.email = %w[optimizasean@gmail.com]
|
13
|
+
spec.homepage = 'https://github.com/optimizasean/dtg/README.md'
|
14
14
|
spec.summary = 'DTG converts from a DateTime to a DTG'
|
15
15
|
spec.description =
|
16
16
|
'A DTG is a DateTimeGroup which is used in the military to save time. DTG
|
@@ -25,11 +25,11 @@ Gem::Specification.new do |spec|
|
|
25
25
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
26
26
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
27
27
|
if spec.respond_to?(:metadata)
|
28
|
-
spec.metadata['allowed_push_host'] = 'NOSERVER'
|
28
|
+
# spec.metadata['allowed_push_host'] = 'NOSERVER' # - NOSERVER prevents push, delete pushes anywhere, can specify single host to lock pushes to specific location
|
29
29
|
spec.metadata['homepage_uri'] = spec.homepage
|
30
|
-
spec.metadata['source_code_uri'] = 'https://github.com/
|
30
|
+
spec.metadata['source_code_uri'] = 'https://github.com/optimizasean/dtg'
|
31
31
|
spec.metadata['changelog_uri'] =
|
32
|
-
'https://github.com/
|
32
|
+
'https://github.com/optimizasean/dtg/CHANGELOG.md'
|
33
33
|
else
|
34
34
|
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
35
35
|
'public gem pushes.'
|
@@ -51,14 +51,14 @@ Gem::Specification.new do |spec|
|
|
51
51
|
spec.require_paths = %w[lib]
|
52
52
|
|
53
53
|
# Active support is necessary for ActiveSupport::TimeWithZone integration
|
54
|
-
spec.add_dependency 'activesupport'
|
54
|
+
spec.add_dependency 'activesupport', '~> 7.0.8'
|
55
55
|
|
56
56
|
# Bundler to manage gems ad versions
|
57
|
-
spec.add_development_dependency 'bundler', '~>
|
57
|
+
spec.add_development_dependency 'bundler', '~> 2.4.22'
|
58
58
|
# Rake to run tasks
|
59
|
-
spec.add_development_dependency 'rake', '~>
|
59
|
+
spec.add_development_dependency 'rake', '~> 13.1.0'
|
60
60
|
# RSpec for testing suite
|
61
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
61
|
+
spec.add_development_dependency 'rspec', '~> 3.12.0'
|
62
62
|
# Prettier for better formatting
|
63
63
|
spec.add_development_dependency 'prettier'
|
64
64
|
# Coveralls for test suite reporting
|
data/lib/dtg/date_time_ext.rb
CHANGED
data/lib/dtg/date_time_group.rb
CHANGED
@@ -54,7 +54,7 @@ module DateTimeGroup
|
|
54
54
|
year += year_temp - year_temp % 100
|
55
55
|
end
|
56
56
|
zone = UTC_ZONES[dtg_hash[:zone].downcase.to_sym].to_s
|
57
|
-
if zone.
|
57
|
+
if zone.nil? | zone.strip.empty?
|
58
58
|
zone = '+00:00'
|
59
59
|
elsif zone == 'UTC'
|
60
60
|
zone = '+00:00'
|
@@ -76,7 +76,7 @@ module DateTimeGroup
|
|
76
76
|
end
|
77
77
|
|
78
78
|
# Change will convert a DTG into a different zone with respect to its zone code
|
79
|
-
def self.convert(dtg, zone = :
|
79
|
+
def self.convert(dtg, zone = :z)
|
80
80
|
old = from_dtg(dtg)
|
81
81
|
old.to_dtg(zone)
|
82
82
|
end
|
data/lib/dtg/time_ext.rb
CHANGED
data/lib/dtg/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Coveralls Configuration
|
2
|
-
if ENV['
|
3
|
-
# When running in
|
2
|
+
if ENV['GITHUB_ACTIONS'] and ENV['COVERALLS_REPORT']
|
3
|
+
# When running in GitHub Actions, report coverage stats to Coveralls.
|
4
4
|
require 'coveralls'
|
5
5
|
Coveralls.wear!
|
6
6
|
end
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- optimizasean
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 7.0.8
|
20
20
|
type: :runtime
|
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:
|
26
|
+
version: 7.0.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.4.22
|
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:
|
40
|
+
version: 2.4.22
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 13.1.0
|
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:
|
54
|
+
version: 13.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 3.12.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:
|
68
|
+
version: 3.12.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: prettier
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,18 +103,18 @@ description: "A DTG is a DateTimeGroup which is used in the military to save tim
|
|
103
103
|
is the zone code such as W for whiskey which is HST, Z for zulu which \n is
|
104
104
|
GMT, A-Z are the zones used."
|
105
105
|
email:
|
106
|
-
-
|
106
|
+
- optimizasean@gmail.com
|
107
107
|
executables: []
|
108
108
|
extensions: []
|
109
109
|
extra_rdoc_files: []
|
110
110
|
files:
|
111
|
-
- ".coveralls.yml"
|
111
|
+
- ".github/workflows/coveralls.yml"
|
112
|
+
- ".github/workflows/gem-push.yml"
|
112
113
|
- ".gitignore"
|
113
114
|
- ".inch.yml"
|
114
115
|
- ".prettierignore"
|
115
116
|
- ".rspec"
|
116
117
|
- ".ruby-version"
|
117
|
-
- ".travis.yml"
|
118
118
|
- CHANGELOG.md
|
119
119
|
- CODE_OF_CONDUCT.md
|
120
120
|
- Gemfile
|
@@ -142,14 +142,13 @@ files:
|
|
142
142
|
- spec/dtg/zones_spec.rb
|
143
143
|
- spec/dtg_spec.rb
|
144
144
|
- spec/spec_helper.rb
|
145
|
-
homepage: https://github.com/
|
145
|
+
homepage: https://github.com/optimizasean/dtg/README.md
|
146
146
|
licenses:
|
147
147
|
- MIT
|
148
148
|
metadata:
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
changelog_uri: https://github.com/SolarisFlare/dtg/CHANGELOG.md
|
149
|
+
homepage_uri: https://github.com/optimizasean/dtg/README.md
|
150
|
+
source_code_uri: https://github.com/optimizasean/dtg
|
151
|
+
changelog_uri: https://github.com/optimizasean/dtg/CHANGELOG.md
|
153
152
|
post_install_message:
|
154
153
|
rdoc_options: []
|
155
154
|
require_paths:
|
@@ -165,17 +164,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
164
|
- !ruby/object:Gem::Version
|
166
165
|
version: '0'
|
167
166
|
requirements: []
|
168
|
-
|
169
|
-
rubygems_version: 2.7.7
|
167
|
+
rubygems_version: 3.5.0.dev
|
170
168
|
signing_key:
|
171
169
|
specification_version: 4
|
172
170
|
summary: DTG converts from a DateTime to a DTG
|
173
171
|
test_files:
|
174
|
-
- spec/
|
175
|
-
- spec/dtg/
|
172
|
+
- spec/dtg/active_support/time_with_zone_ext_spec.rb
|
173
|
+
- spec/dtg/date_time_ext_spec.rb
|
174
|
+
- spec/dtg/date_time_group_spec.rb
|
176
175
|
- spec/dtg/format_spec.rb
|
177
176
|
- spec/dtg/time_ext_spec.rb
|
178
|
-
- spec/dtg/
|
179
|
-
- spec/dtg/date_time_ext_spec.rb
|
180
|
-
- spec/dtg/active_support/time_with_zone_ext_spec.rb
|
177
|
+
- spec/dtg/zones_spec.rb
|
181
178
|
- spec/dtg_spec.rb
|
179
|
+
- spec/spec_helper.rb
|
data/.coveralls.yml
DELETED
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
env:
|
2
|
-
global:
|
3
|
-
- CC_TEST_REPORTER_ID=e2777b300b5f2a88d223315832d34e3dd3e7ddaebb957c381105186be793540b
|
4
|
-
language: ruby
|
5
|
-
rvm:
|
6
|
-
- 2.5.5
|
7
|
-
deploy:
|
8
|
-
provider: rubygems
|
9
|
-
api_key:
|
10
|
-
secure: lt+CEA1/wbR6g2HxcUniU6bQAC3j14dhdyzI8xYPHQ6IosZTcxmrd/WMHFUXCt0aZFCNzk1LiG4bnxXKB+YAE43vdh5sb4s6gaOInd92ax8NPHjp86M7ctTkSgZN6e2tSR78hucC3scsXU3tXtzLCNI3eUOKHIlAMe1lsuZ8r7KRLUmvAJjVt8Nx+WMPj0qli9h1nywe1SKpJZqoLmu4TgRCWXHkzmyR6MEzFtkjVJgIZCrAFE2OdV7jb97wZHIRVfN4HOY4s78M/vrvXObNdiXUYB81TJLCxyV4nYm8BbJmKMprsFek3iw5VSrpJ66uOCsIB5XpRFC9xRBli09hTNCwNdBRw3lfMG1lFixH4E1PTK0aTjwJ0bqMCBsqVL6QisX8+Hwroft7Stdob+WGBiCLdkHbjLCUBqaw8AvaPnxBPW2soYboruzLhU1gwBpqoAuJlHsbdUGVVufHFFErp1Ev92U/MggvWNTJZ/+admnRTEgoHPmRcfpPc9dZw0FpI/nE8PwKULY6dg9ngAMXedtX0W63SIOAaTE9NPcp7/BWoMtBaD28Pgh7Y70O5vAUeh2aJYj6lQKvvaLM6OEhixOjQY7Py124lo6f50iznzHT5OK4Q4zKOqA3kly4m7Elr6faSGQ8xCEvTHLp20L5hMAwRQnmMHDWbe2FrAaG9Bk=
|
11
|
-
on:
|
12
|
-
tags: true
|
13
|
-
before_script:
|
14
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
15
|
-
- chmod +x ./cc-test-reporter
|
16
|
-
- ./cc-test-reporter before-build
|
17
|
-
script:
|
18
|
-
- bundle exec rspec
|
19
|
-
after_script:
|
20
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|