shu 0.0.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8028bf8434702a48795a3c90384bb8737de82eae95b3d131cfe5c72776ca19b6
4
+ data.tar.gz: e0e9f5b25d3df20fa618159b492eac4c775f5bc4817075bacd289a6e7f98aa8c
5
+ SHA512:
6
+ metadata.gz: dab288c95f1a5de823f0ea0bfb1473bbf0f07097c7e070c99d205811c542a66a80b0a634a7e7510ecdf3decdfb07604a060ab186c61fc490e1001b918161c0fc
7
+ data.tar.gz: 7aba5e106fee0993a37d2dab80dcdbb62c82abec6b5b6cf2f3df5bd61117d0885ad7c807078345d3edd0c77d83a4d083cf3106578aac035ffe5ff372ea5ac524
@@ -0,0 +1,22 @@
1
+ # ╔═╗╔╦╗╦╔╦╗╔═╗╦═╗┌─┐┌─┐┌┐┌┌─┐┬┌─┐
2
+ # ║╣ ║║║ ║ ║ ║╠╦╝│ │ ││││├┤ ││ ┬
3
+ # o╚═╝═╩╝╩ ╩ ╚═╝╩╚═└─┘└─┘┘└┘└ ┴└─┘
4
+ #
5
+ # http://editorconfig.org/
6
+ root = true
7
+
8
+ [*]
9
+ charset = utf-8
10
+ end_of_line = lf
11
+ indent_size = 2
12
+ indent_style = space
13
+ insert_final_newline = true
14
+ max_line_length = 255
15
+ trim_trailing_whitespace = true
16
+
17
+ [*.{md,csv,tsv}]
18
+ trim_trailing_whitespace = false
19
+ insert_final_newline = false
20
+
21
+ [*.tsv]
22
+ indent_style = tab
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,217 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5.0
3
+
4
+ Style/SingleLineMethods:
5
+ Exclude:
6
+ - 'test/**/*.rb'
7
+
8
+ # Don't leave calls to pry lying around.
9
+ Lint/Debugger:
10
+ Enabled: true
11
+
12
+ # ==============================================================================
13
+ # Documentation
14
+ # ==============================================================================
15
+
16
+ Style/Documentation:
17
+ Enabled: true
18
+ Exclude:
19
+ - 'test/**/*.rb'
20
+
21
+ Style/DocumentationMethod:
22
+ Enabled: true
23
+ Exclude:
24
+ - 'test/**/*.rb'
25
+
26
+ # ==============================================================================
27
+ # Naming
28
+ # ==============================================================================
29
+
30
+ Naming/MethodName:
31
+ Enabled: true
32
+
33
+ Naming/ClassAndModuleCamelCase:
34
+ Enabled: true
35
+
36
+ # ==============================================================================
37
+ # Layout
38
+ # ==============================================================================
39
+
40
+ Metrics/LineLength:
41
+ Max: 150
42
+
43
+ Layout/EmptyLineAfterGuardClause:
44
+ Enabled: false
45
+
46
+ Layout/EmptyLinesAroundModuleBody:
47
+ Enabled: false
48
+
49
+ Layout/EmptyLinesAroundClassBody:
50
+ Enabled: false
51
+
52
+ Layout/EmptyLinesAroundBlockBody:
53
+ Enabled: false
54
+
55
+ # https://unix.stackexchange.com/a/18789
56
+ Layout/TrailingEmptyLines:
57
+ EnforcedStyle: final_newline
58
+
59
+ # ==============================================================================
60
+ # Strings
61
+ # ==============================================================================
62
+
63
+ Style/StringLiterals:
64
+ EnforcedStyle: double_quotes
65
+
66
+ Style/FrozenStringLiteralComment:
67
+ Enabled: false
68
+
69
+ Naming/HeredocDelimiterNaming:
70
+ Enabled: false
71
+
72
+ Style/FormatString:
73
+ EnforcedStyle: sprintf
74
+
75
+ Style/FormatStringToken:
76
+ # EnforcedStyle: template
77
+ Enabled: false
78
+
79
+ # ==============================================================================
80
+ # Numbers
81
+ # ==============================================================================
82
+
83
+ Style/ZeroLengthPredicate:
84
+ Enabled: false
85
+
86
+ Style/NumericPredicate:
87
+ Enabled: false
88
+
89
+ # preferably `EnforcedStyle: snake_case`, but it varies.
90
+ Naming/VariableNumber:
91
+ Enabled: false
92
+
93
+ # ==============================================================================
94
+ # Braces, Brackets, and Parentheses
95
+ # ==============================================================================
96
+
97
+ Style/DefWithParentheses:
98
+ Enabled: false
99
+
100
+ Style/MethodCallWithoutArgsParentheses:
101
+ Enabled: false
102
+
103
+ Style/WordArray:
104
+ EnforcedStyle: brackets
105
+
106
+ Style/SymbolArray:
107
+ EnforcedStyle: brackets
108
+
109
+ # ==============================================================================
110
+ # Trailing Commas
111
+ # ==============================================================================
112
+
113
+ Style/TrailingCommaInArguments:
114
+ EnforcedStyleForMultiline: comma
115
+
116
+ Style/TrailingCommaInArrayLiteral:
117
+ EnforcedStyleForMultiline: comma
118
+
119
+ Style/TrailingCommaInHashLiteral:
120
+ EnforcedStyleForMultiline: comma
121
+
122
+ # ==============================================================================
123
+ # Fewer lines doesn't mean better code
124
+ # ==============================================================================
125
+
126
+ Metrics/ModuleLength:
127
+ Enabled: false
128
+
129
+ Metrics/ClassLength:
130
+ Enabled: false
131
+
132
+ Metrics/MethodLength:
133
+ Enabled: false
134
+
135
+ Metrics/BlockLength:
136
+ Enabled: false
137
+
138
+ # TODO: Look into adding an `EnforcedStyle` to not use guard clauses.
139
+ Style/GuardClause:
140
+ Enabled: false
141
+
142
+ # TODO: Look into adding an `EnforcedStyle` to not use if/unless modifiers.
143
+ Style/IfUnlessModifier:
144
+ Enabled: false
145
+
146
+ Style/Next:
147
+ Enabled: false
148
+
149
+ # ==============================================================================
150
+ # Explicit, not redundant
151
+ # ==============================================================================
152
+
153
+ Style/RedundantReturn:
154
+ Enabled: false
155
+
156
+ Style/RedundantSelf:
157
+ Enabled: false
158
+
159
+ # ==============================================================================
160
+ # Exceptions
161
+ # ==============================================================================
162
+
163
+ Lint/SuppressedException:
164
+ AllowComments: true
165
+
166
+ Style/RaiseArgs:
167
+ EnforcedStyle: exploded
168
+
169
+ # ==============================================================================
170
+ # Unsorted
171
+ # ==============================================================================
172
+
173
+ # Default value (special_inside_parentheses) is ridiculous.
174
+ # Look for yourself: https://www.rubydoc.info/gems/rubocop/0.69.0/RuboCop/Cop/Layout/IndentFirstHashElement
175
+ Layout/FirstHashElementIndentation:
176
+ EnforcedStyle: consistent
177
+
178
+ # Default value (special_inside_parentheses) is ridiculous.
179
+ # Look for yourself: https://www.rubydoc.info/gems/rubocop/0.69.0/RuboCop/Cop/Layout/IndentFirstArrayElement
180
+ Layout/FirstArrayElementIndentation:
181
+ EnforcedStyle: consistent
182
+
183
+ Layout/HashAlignment:
184
+ Enabled: false
185
+
186
+ # `x&.y&.[](:argument)` isn't what I'd call "readable".
187
+ # https://stackoverflow.com/questions/34794697/using-with-the-safe-navigation-operator-in-ruby
188
+ Style/SafeNavigation:
189
+ Enabled: false
190
+
191
+ Style/NegatedIf:
192
+ EnforcedStyle: postfix
193
+
194
+ # TODO: File issue to ignore enums when using `EnforcedStyle: assign_inside_condition`.
195
+ Style/ConditionalAssignment:
196
+ Enabled: false
197
+
198
+ Style/TernaryParentheses:
199
+ EnforcedStyle: require_parentheses_when_complex
200
+
201
+ Metrics/AbcSize:
202
+ Enabled: false
203
+
204
+ Metrics/CyclomaticComplexity:
205
+ Enabled: false
206
+
207
+ Metrics/PerceivedComplexity:
208
+ Enabled: false
209
+
210
+ Style/CommentedKeyword:
211
+ Enabled: False
212
+
213
+ Style/AsciiComments:
214
+ Enabled: false
215
+
216
+ Lint/EmptyWhen:
217
+ Enabled: false
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.6.5
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ <!-- git log $(git describe --tags --abbrev=0)..HEAD --oneline -->
9
+
10
+ ## 0.1.0 (2020-09-10)
11
+
12
+ - Initial release
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,58 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shu (0.0.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ansi (1.5.0)
10
+ builder (3.2.4)
11
+ coderay (1.1.3)
12
+ coveralls (0.8.23)
13
+ json (>= 1.8, < 3)
14
+ simplecov (~> 0.16.1)
15
+ term-ansicolor (~> 1.3)
16
+ thor (>= 0.19.4, < 2.0)
17
+ tins (~> 1.6)
18
+ docile (1.3.2)
19
+ json (2.3.1)
20
+ method_source (0.9.2)
21
+ minitest (5.14.2)
22
+ minitest-reporters (1.4.2)
23
+ ansi
24
+ builder
25
+ minitest (>= 5.0)
26
+ ruby-progressbar
27
+ pry (0.12.2)
28
+ coderay (~> 1.1.0)
29
+ method_source (~> 0.9.0)
30
+ rake (13.0.1)
31
+ ruby-progressbar (1.10.1)
32
+ simplecov (0.16.1)
33
+ docile (~> 1.1)
34
+ json (>= 1.8, < 3)
35
+ simplecov-html (~> 0.10.0)
36
+ simplecov-html (0.10.2)
37
+ sync (0.5.0)
38
+ term-ansicolor (1.7.1)
39
+ tins (~> 1.0)
40
+ thor (1.0.1)
41
+ tins (1.25.0)
42
+ sync
43
+
44
+ PLATFORMS
45
+ ruby
46
+
47
+ DEPENDENCIES
48
+ bundler (~> 2.0)
49
+ coveralls (~> 0.8.23)
50
+ minitest (~> 5.0)
51
+ minitest-reporters (~> 1.4)
52
+ pry (~> 0.12.2)
53
+ rake (~> 13.0)
54
+ shu!
55
+ simplecov (~> 0.16)
56
+
57
+ BUNDLED WITH
58
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Clay Dunston
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.
@@ -0,0 +1,39 @@
1
+ # `shu`
2
+
3
+ <!-- [![Gem](https://img.shields.io/gem/v/shu)][rubygems] -->
4
+ <!-- [![Build Status](https://travis-ci.org/tcd/shu.rb.svg?branch=master)][travis-ci] -->
5
+ <!-- [![Coverage Status](https://coveralls.io/repos/github/tcd/shu/badge.svg?branch=master)][coveralls] -->
6
+ [![License](https://img.shields.io/github/license/tcd/shu.rb)][license]
7
+ <!-- [![Documentation](http://img.shields.io/badge/docs-rubydoc.info-blue.svg)][docs] -->
8
+
9
+ <!-- [rubygems]: https://rubygems.org/gems/shu -->
10
+ <!-- [travis-ci]: https://travis-ci.org/tcd/shu.rb -->
11
+ <!-- [coveralls]: https://coveralls.io/github/tcd.rb/shu?branch=master -->
12
+ [license]: https://github.com/tcd/shu.rb/blob/master/LICENSE.txt
13
+ <!-- [docs]: https://www.rubydoc.info/gems/shu/0.0.0 -->
14
+
15
+ Track issues on GitHub and GitLab.
16
+
17
+ ## Installation
18
+
19
+ ```sh
20
+ gem install shu
21
+ ```
22
+
23
+ ## Related Projects
24
+
25
+ - [github/hub](https://github.com/github/hub)
26
+ - [google/go-github](https://github.com/google/go-github)
27
+ - [xanzy/go-gitlab](https://github.com/xanzy/go-gitlab)
28
+
29
+ ## Usage
30
+
31
+ TODO: Write usage instructions here
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tcd/shu.rb.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task(default: :test)
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "shu"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ require "shu/version"
2
+
3
+ # Track issues on GitHub and GitLab.
4
+ module Shu
5
+ end
@@ -0,0 +1,4 @@
1
+ module Shu
2
+ # @return [String]
3
+ VERSION = "0.0.0".freeze()
4
+ end
@@ -0,0 +1,37 @@
1
+ require_relative "lib/shu/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "shu"
5
+ spec.version = Shu::VERSION
6
+ spec.authors = ["Clay Dunston"]
7
+ spec.email = ["dunstontc@gmail.com"]
8
+ spec.summary = "Track issues on GitHub and GitLab."
9
+ spec.description = spec.summary
10
+ spec.homepage = "https://github.com/tcd/shu.rb"
11
+ spec.license = "MIT"
12
+
13
+ spec.required_ruby_version = ">= 2.5.0"
14
+
15
+ spec.metadata = {
16
+ "homepage_uri" => spec.homepage,
17
+ "source_code_uri" => spec.homepage,
18
+ "changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md",
19
+ "documentation_uri" => "https://www.rubydoc.info/gems/#{spec.name}/#{spec.version}",
20
+ "yard.run" => "yri", # use "yard" to build full HTML docs.
21
+ }
22
+
23
+ spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 2.0"
31
+ spec.add_development_dependency "coveralls", "~> 0.8.23"
32
+ spec.add_development_dependency "minitest", "~> 5.0"
33
+ spec.add_development_dependency "minitest-reporters", "~> 1.4"
34
+ spec.add_development_dependency "pry", "~> 0.12.2"
35
+ spec.add_development_dependency "rake", "~> 13.0"
36
+ spec.add_development_dependency "simplecov", "~> 0.16"
37
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shu
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Clay Dunston
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-09-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: coveralls
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.23
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.8.23
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-reporters
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.12.2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.12.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '13.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '13.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.16'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.16'
111
+ description: Track issues on GitHub and GitLab.
112
+ email:
113
+ - dunstontc@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".editorconfig"
119
+ - ".gitignore"
120
+ - ".rubocop.yml"
121
+ - ".travis.yml"
122
+ - CHANGELOG.md
123
+ - Gemfile
124
+ - Gemfile.lock
125
+ - LICENSE.txt
126
+ - README.md
127
+ - Rakefile
128
+ - bin/console
129
+ - bin/setup
130
+ - lib/shu.rb
131
+ - lib/shu/version.rb
132
+ - shu.gemspec
133
+ homepage: https://github.com/tcd/shu.rb
134
+ licenses:
135
+ - MIT
136
+ metadata:
137
+ homepage_uri: https://github.com/tcd/shu.rb
138
+ source_code_uri: https://github.com/tcd/shu.rb
139
+ changelog_uri: https://github.com/tcd/shu.rb/blob/master/CHANGELOG.md
140
+ documentation_uri: https://www.rubydoc.info/gems/shu/0.0.0
141
+ yard.run: yri
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 2.5.0
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubygems_version: 3.0.3
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: Track issues on GitHub and GitLab.
161
+ test_files: []