dtg 4.0.1 → 6.0.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: 053236b96b7b8fa1d2293f15ad07745e73dd7954f6a8eda620f8273058785318
4
- data.tar.gz: c8b3dce94c5c006278f033c3ae2bc2bba4102b1741573ab3b8faf9dab6e5d55b
3
+ metadata.gz: a02c924c77904a119c7a7dd0b45f3a956cb0d61aef50b36f1c0df98c11fabdee
4
+ data.tar.gz: 43bd7373fecc608654943b4b56d49dea4b8b3b3c220ef713b5cd37e335cd549f
5
5
  SHA512:
6
- metadata.gz: 84167bd41ec8ce98d90792d90a920a02e30299099c22909e680716d49ab8244c2fb8fade731487c179a8cecd9beba6c831b4e83abbf6e85f880cfc4249bd196d
7
- data.tar.gz: 50fd1d38fb4736af3a09b0c4f516f7c04d1e1d6a2c24536e56b9bc8533cb7d9b8f3d9262e35a8063f07c384f1049cc4a9d5598cf01fc52ac476103b82961c933
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/.gitignore ADDED
@@ -0,0 +1,39 @@
1
+ # System Generated Files #
2
+ #########################
3
+ .DS_Store
4
+ .icloud
5
+ Desktop.ini
6
+ .git
7
+ .vscode
8
+ *.code-workspace
9
+
10
+ # Temporary Files and Directories #
11
+ ###################################
12
+ temp.*
13
+ temp
14
+ TEMP.*
15
+ TEMP
16
+ TEMP/**/*
17
+ temp/**/*
18
+
19
+ # Gem Things #
20
+ ##############
21
+ /.bundle/
22
+ /.yardoc
23
+ /_yardoc/
24
+ /coverage/
25
+ /doc/
26
+ /pkg/
27
+ /spec/reports/
28
+ /tmp/
29
+ *.gem
30
+
31
+ # RSpec #
32
+ #########
33
+ .rspec_status
34
+
35
+
36
+ # Custom #
37
+ #########
38
+ coverage/**/*
39
+
data/.inch.yml ADDED
@@ -0,0 +1,6 @@
1
+ files:
2
+ included:
3
+ - lib/**/*
4
+ # define files excluded from the analysis (defaults to [])
5
+ excluded:
6
+ - spec/dummy/**/*
data/.prettierignore ADDED
@@ -0,0 +1,49 @@
1
+ # System Files #
2
+ ################
3
+ .DS_Store
4
+ .icloud
5
+ Desktop.ini
6
+ .git
7
+ .vscode
8
+ *.code-workspace
9
+
10
+ # Git Files #
11
+ #############
12
+ .git/**/*
13
+ .gitignore
14
+ CHANGELOG.md
15
+ CODE_OF_CONDUCT.md
16
+ LICENSE
17
+ README.md
18
+ dtg_zones.png
19
+
20
+ # Configuration Files #
21
+ #######################
22
+ .coveralls.yml
23
+ .inch.yml
24
+ .prettierignore
25
+ .rspec
26
+ .rspec_status
27
+ .ruby-version
28
+ .travis.yml
29
+
30
+ # Ruby Files #
31
+ ##############
32
+ Gemfile
33
+ Gemfile.lock
34
+ bin/**/*
35
+ /.bundle/
36
+ /.yardoc
37
+ /_yardoc/
38
+ /coverage/
39
+ /doc/
40
+ /pkg/
41
+ /spec/reports/
42
+ /tmp/
43
+ *.gem
44
+
45
+ # Save my poor comments #
46
+ #########################
47
+ lib/dtg/zones.rb
48
+ lib/dtg/format.rb
49
+
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-3.2.2
data/CHANGELOG.md ADDED
File without changes
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at TODO: Write your email address. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -5,45 +5,3 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
  # Bundler will treat runtime dependencies like base dependencies, and
6
6
  # development dependencies will be added by default to the :development group.
7
7
  gemspec
8
-
9
- # Declare any dependencies that are still in development here instead of in
10
- # your gemspec. These might include edge Rails or gems from your path or
11
- # Git. Remember to move these dependencies to your gemspec before releasing
12
- # your gem to rubygems.org.
13
-
14
- # Used to test this gem for compatability and functionality
15
- group :development, :test do
16
- gem "cadre"
17
-
18
- # Used for test suite reporting
19
- gem 'coveralls', require: false
20
-
21
- # Find places where code can be sped up
22
- gem "fasterer"
23
-
24
- # Code quality
25
- gem "guard"
26
- gem "guard-reek"
27
- gem "guard-rspec"
28
- gem "guard-rubocop"
29
-
30
- # Check code quality extensions on git actions
31
- gem "overcommit"
32
-
33
- # Detect code smells for bad/strage code
34
- gem "reek"
35
-
36
- # RSpec for testing suite
37
- gem "rspec"
38
- gem "rspec-core"
39
- gem "rspec-expectations"
40
- gem "rspec-mocks"
41
- gem "rspec-support"
42
-
43
- # Code quality enforcer
44
- gem "rubocop", "0.65.0"
45
- gem "rubocop-rspec"
46
-
47
- # StandardRB checks for consistent ruby conventions
48
- gem "standard"
49
- end
data/Gemfile.lock ADDED
@@ -0,0 +1,92 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ dtg (6.0.0)
5
+ activesupport (~> 7.0.8)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ abbrev (0.1.1)
11
+ activesupport (7.0.8)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ concurrent-ruby (1.2.2)
17
+ coveralls (0.8.23)
18
+ json (>= 1.8, < 3)
19
+ simplecov (~> 0.16.1)
20
+ term-ansicolor (~> 1.3)
21
+ thor (>= 0.19.4, < 2.0)
22
+ tins (~> 1.6)
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)
30
+ concurrent-ruby (~> 1.0)
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)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.12.0)
50
+ rspec-mocks (3.12.6)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.12.0)
53
+ rspec-support (3.12.1)
54
+ simplecov (0.16.1)
55
+ docile (~> 1.1)
56
+ json (>= 1.8, < 3)
57
+ simplecov-html (~> 0.10.0)
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)
71
+ term-ansicolor (1.7.1)
72
+ tins (~> 1.0)
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)
79
+
80
+ PLATFORMS
81
+ x86_64-darwin-21
82
+
83
+ DEPENDENCIES
84
+ bundler (~> 2.4.22)
85
+ coveralls
86
+ dtg!
87
+ prettier
88
+ rake (~> 13.1.0)
89
+ rspec (~> 3.12.0)
90
+
91
+ BUNDLED WITH
92
+ 2.4.22
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Sean Harding
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.