andrewmcodes 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/.standard.yml +2 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +12 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +10 -2
- data/Gemfile.lock +110 -50
- data/LICENSE.txt +1 -1
- data/README.md +15 -15
- data/Rakefile +7 -7
- data/Steepfile +12 -0
- data/andrewmcodes.gemspec +31 -23
- data/assets/card.md +17 -0
- data/exe/andrewmcodes +2 -9
- data/lib/andrewmcodes/cli.rb +26 -0
- data/lib/andrewmcodes/version.rb +1 -1
- data/lib/andrewmcodes.rb +2 -5
- data/sig/andrewmcodes.rbs +13 -0
- metadata +22 -114
- data/.gitignore +0 -8
- data/bin/console +0 -6
- data/bin/setup +0 -8
- data/lib/andrewmcodes/center.rb +0 -33
- data/lib/andrewmcodes/info.md +0 -5
- data/lib/andrewmcodes/output.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76a0c810d30fe799a7daaa1d15ff842ac4cfc5b269ee56b7d6227635e76255b
|
4
|
+
data.tar.gz: 510b5953d842f7f1cc31a666c23aac295288cec9460e0853deac6979ab8c5bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e47e6833ef3981e1349e56fdb7de393726b3ae4a69170671a9b007c9451def3d532772656ab03b170348a2ec1bc0db0aba08a66765b649d503a0f0545dacd3
|
7
|
+
data.tar.gz: d31a5a07e2165ce0d5a7734ead1d41dd19abdff66c643e49460df1100461015a65dc3bbe04471596d486c12e8a012da037b15afb14dad64fd97f0897be6342a6
|
data/.rspec
ADDED
data/.standard.yml
ADDED
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.2.0
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
## [Unreleased]
|
2
|
+
|
3
|
+
## [0.2.0](https://github.com/andrewmcodes/andrewmcodes_gem/compare/v0.1.0...v0.2.0) (2023-03-30)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* update card contents and remove dependencies ([#42](https://github.com/andrewmcodes/andrewmcodes_gem/issues/42)) ([015f0e0](https://github.com/andrewmcodes/andrewmcodes_gem/commit/015f0e0594c83640268a216f710ed6021a8d5670))
|
9
|
+
|
10
|
+
## [0.1.0] - 2023-03-29
|
11
|
+
|
12
|
+
- Initial release
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at andrewmcodes@protonmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in andrewmcodes.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
gem "rake", "~> 13.0"
|
9
|
+
|
10
|
+
gem "rspec", "~> 3.0"
|
11
|
+
|
12
|
+
gem "standard", "< 2"
|
13
|
+
gem "tty-markdown", "< 1"
|
14
|
+
gem "steep", "~> 1.3"
|
data/Gemfile.lock
CHANGED
@@ -1,69 +1,129 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
andrewmcodes (0.
|
5
|
-
artii
|
6
|
-
lolcat
|
4
|
+
andrewmcodes (0.2.0)
|
7
5
|
|
8
6
|
GEM
|
9
7
|
remote: https://rubygems.org/
|
10
8
|
specs:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
9
|
+
activesupport (7.0.4.3)
|
10
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
11
|
+
i18n (>= 1.6, < 2)
|
12
|
+
minitest (>= 5.1)
|
13
|
+
tzinfo (~> 2.0)
|
14
|
+
ast (2.4.2)
|
15
|
+
concurrent-ruby (1.2.2)
|
16
|
+
csv (3.2.6)
|
17
|
+
diff-lcs (1.5.0)
|
18
|
+
ffi (1.15.5)
|
19
|
+
fileutils (1.7.0)
|
20
|
+
i18n (1.12.0)
|
21
|
+
concurrent-ruby (~> 1.0)
|
22
|
+
json (2.6.3)
|
23
|
+
kramdown (2.4.0)
|
24
|
+
rexml
|
25
|
+
language_server-protocol (3.17.0.3)
|
26
|
+
listen (3.8.0)
|
27
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
28
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
29
|
+
logger (1.5.3)
|
30
|
+
minitest (5.18.0)
|
31
|
+
parallel (1.22.1)
|
32
|
+
parser (3.2.1.1)
|
33
|
+
ast (~> 2.4.1)
|
34
|
+
pastel (0.8.0)
|
35
|
+
tty-color (~> 0.5)
|
36
|
+
rainbow (3.1.1)
|
37
|
+
rake (13.0.6)
|
38
|
+
rb-fsevent (0.11.2)
|
39
|
+
rb-inotify (0.10.1)
|
40
|
+
ffi (~> 1.0)
|
41
|
+
rbs (2.8.4)
|
42
|
+
regexp_parser (2.7.0)
|
43
|
+
rexml (3.2.5)
|
44
|
+
rouge (4.1.0)
|
45
|
+
rspec (3.12.0)
|
46
|
+
rspec-core (~> 3.12.0)
|
47
|
+
rspec-expectations (~> 3.12.0)
|
48
|
+
rspec-mocks (~> 3.12.0)
|
49
|
+
rspec-core (3.12.1)
|
50
|
+
rspec-support (~> 3.12.0)
|
51
|
+
rspec-expectations (3.12.2)
|
40
52
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.
|
42
|
-
rspec-mocks (3.
|
53
|
+
rspec-support (~> 3.12.0)
|
54
|
+
rspec-mocks (3.12.4)
|
43
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-support (3.
|
46
|
-
rubocop (
|
47
|
-
|
56
|
+
rspec-support (~> 3.12.0)
|
57
|
+
rspec-support (3.12.0)
|
58
|
+
rubocop (1.48.1)
|
59
|
+
json (~> 2.3)
|
48
60
|
parallel (~> 1.10)
|
49
|
-
parser (>=
|
50
|
-
powerpack (~> 0.1)
|
61
|
+
parser (>= 3.2.0.0)
|
51
62
|
rainbow (>= 2.2.2, < 4.0)
|
63
|
+
regexp_parser (>= 1.8, < 3.0)
|
64
|
+
rexml (>= 3.2.5, < 4.0)
|
65
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
52
66
|
ruby-progressbar (~> 1.7)
|
53
|
-
unicode-display_width (
|
54
|
-
|
55
|
-
|
67
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
68
|
+
rubocop-ast (1.28.0)
|
69
|
+
parser (>= 3.2.1.0)
|
70
|
+
rubocop-performance (1.16.0)
|
71
|
+
rubocop (>= 1.7.0, < 2.0)
|
72
|
+
rubocop-ast (>= 0.4.0)
|
73
|
+
ruby-progressbar (1.13.0)
|
74
|
+
securerandom (0.2.2)
|
75
|
+
standard (1.25.3)
|
76
|
+
language_server-protocol (~> 3.17.0.2)
|
77
|
+
rubocop (~> 1.48.1)
|
78
|
+
rubocop-performance (~> 1.16.0)
|
79
|
+
steep (1.3.2)
|
80
|
+
activesupport (>= 5.1)
|
81
|
+
csv (>= 3.0.9)
|
82
|
+
fileutils (>= 1.1.0)
|
83
|
+
json (>= 2.1.0)
|
84
|
+
language_server-protocol (>= 3.15, < 4.0)
|
85
|
+
listen (~> 3.0)
|
86
|
+
logger (>= 1.3.0)
|
87
|
+
parallel (>= 1.0.0)
|
88
|
+
parser (>= 3.1)
|
89
|
+
rainbow (>= 2.2.2, < 4.0)
|
90
|
+
rbs (~> 2.8.0)
|
91
|
+
securerandom (>= 0.1)
|
92
|
+
strscan (>= 1.0.0)
|
93
|
+
terminal-table (>= 2, < 4)
|
94
|
+
strings (0.2.1)
|
95
|
+
strings-ansi (~> 0.2)
|
96
|
+
unicode-display_width (>= 1.5, < 3.0)
|
97
|
+
unicode_utils (~> 1.4)
|
98
|
+
strings-ansi (0.2.0)
|
99
|
+
strscan (3.0.6)
|
100
|
+
terminal-table (3.0.2)
|
101
|
+
unicode-display_width (>= 1.1.1, < 3)
|
102
|
+
tty-color (0.6.0)
|
103
|
+
tty-markdown (0.7.2)
|
104
|
+
kramdown (>= 1.16.2, < 3.0)
|
105
|
+
pastel (~> 0.8)
|
106
|
+
rouge (>= 3.14, < 5.0)
|
107
|
+
strings (~> 0.2.0)
|
108
|
+
tty-color (~> 0.5)
|
109
|
+
tty-screen (~> 0.8)
|
110
|
+
tty-screen (0.8.1)
|
111
|
+
tzinfo (2.0.6)
|
112
|
+
concurrent-ruby (~> 1.0)
|
113
|
+
unicode-display_width (2.4.2)
|
114
|
+
unicode_utils (1.4.0)
|
56
115
|
|
57
116
|
PLATFORMS
|
58
|
-
|
117
|
+
x86_64-darwin-22
|
118
|
+
x86_64-linux
|
59
119
|
|
60
120
|
DEPENDENCIES
|
61
121
|
andrewmcodes!
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
122
|
+
rake (~> 13.0)
|
123
|
+
rspec (~> 3.0)
|
124
|
+
standard (< 2)
|
125
|
+
steep (~> 1.3)
|
126
|
+
tty-markdown (< 1)
|
67
127
|
|
68
128
|
BUNDLED WITH
|
69
|
-
|
129
|
+
2.4.10
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,24 +1,20 @@
|
|
1
|
-
#
|
1
|
+
# Andrewmcodes
|
2
2
|
|
3
|
-
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
4
4
|
|
5
|
-
|
5
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/andrewmcodes`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'andrewmcodes'
|
13
|
-
```
|
9
|
+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
14
10
|
|
15
|
-
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
16
12
|
|
17
|
-
$ bundle
|
13
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
18
14
|
|
19
|
-
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
20
16
|
|
21
|
-
$ gem install
|
17
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
22
18
|
|
23
19
|
## Usage
|
24
20
|
|
@@ -26,14 +22,18 @@ TODO: Write usage instructions here
|
|
26
22
|
|
27
23
|
## Development
|
28
24
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake
|
25
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
26
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and
|
27
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
28
|
|
33
29
|
## Contributing
|
34
30
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/andrewmcodes.
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/andrewmcodes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/andrewmcodes/blob/main/CODE_OF_CONDUCT.md).
|
36
32
|
|
37
33
|
## License
|
38
34
|
|
39
35
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
36
|
+
|
37
|
+
## Code of Conduct
|
38
|
+
|
39
|
+
Everyone interacting in the Andrewmcodes project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/andrewmcodes/blob/main/CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "bundler/gem_tasks"
|
2
|
-
require "
|
4
|
+
require "rspec/core/rake_task"
|
5
|
+
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
3
7
|
|
4
|
-
|
5
|
-
t.libs << "test"
|
6
|
-
t.libs << "lib"
|
7
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
8
|
-
end
|
8
|
+
require "standard/rake"
|
9
9
|
|
10
|
-
task :
|
10
|
+
task default: %i[spec standard]
|
data/Steepfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
D = Steep::Diagnostic
|
2
|
+
|
3
|
+
target :lib do
|
4
|
+
signature "sig"
|
5
|
+
check "lib"
|
6
|
+
|
7
|
+
configure_code_diagnostics do |config|
|
8
|
+
config[D::Ruby::MethodDefinitionMissing] = :hint
|
9
|
+
config[D::Ruby::ElseOnExhaustiveCase] = :hint
|
10
|
+
config[D::Ruby::FallbackAny] = :hint
|
11
|
+
end
|
12
|
+
end
|
data/andrewmcodes.gemspec
CHANGED
@@ -1,31 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "andrewmcodes/version"
|
3
|
+
require_relative "lib/andrewmcodes/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
11
|
-
|
12
|
-
spec.summary
|
13
|
-
spec.description
|
14
|
-
spec.homepage
|
15
|
-
spec.license
|
16
|
-
spec.
|
17
|
-
|
6
|
+
spec.name = "andrewmcodes"
|
7
|
+
spec.version = Andrewmcodes::VERSION
|
8
|
+
spec.authors = ["Andrew Mason"]
|
9
|
+
spec.email = ["support@andrewm.codes"]
|
10
|
+
|
11
|
+
spec.summary = "gem exec andrewmcodes"
|
12
|
+
spec.description = "Andrew Mason's business card, the Ruby Way."
|
13
|
+
spec.homepage = "https://github.com/andrewmcodes/andrewmcodes_gem"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 2.6.0"
|
16
|
+
|
17
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
18
|
+
|
19
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
20
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
21
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
22
|
+
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
+
spec.files = Dir.chdir(__dir__) do
|
26
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
|
28
|
+
end
|
18
29
|
end
|
19
|
-
spec.bindir
|
20
|
-
spec.executables
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
21
32
|
spec.require_paths = ["lib"]
|
22
33
|
|
23
|
-
|
24
|
-
spec.
|
25
|
-
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency "rspec", "~> 3.2"
|
27
|
-
spec.add_development_dependency "rubocop", "~> 0.61.0"
|
34
|
+
# Uncomment to register a new dependency of your gem
|
35
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
28
36
|
|
29
|
-
|
30
|
-
|
37
|
+
# For more information and examples about making a new gem, check out our
|
38
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
31
39
|
end
|
data/assets/card.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
<br>
|
2
|
+
|
3
|
+
# Andrew Mason aka @andrewmcodes
|
4
|
+
|
5
|
+
**Location:** Phoenix, AZ
|
6
|
+
**Work:** Senior Product Developer @Podia
|
7
|
+
**Twitter:** https://twitter.com/andrewmcodes
|
8
|
+
**GitHub:** https://github.com/andrewmcodes
|
9
|
+
**Web:** https://andrewm.codes
|
10
|
+
|
11
|
+
Also find me on [Remote Ruby](https://remoteruby.com), [Ruby for All](https://rubyforall.com), [Ruby Radar](https://rubyonrailspodcast.com), and [RSS](https://andrewm.codes/feed.xml)
|
12
|
+
|
13
|
+
---
|
14
|
+
|
15
|
+
`gem exec andrewmcodes` or `open https://github.com/andrewmcodes/andrewmcodes_gem`
|
16
|
+
|
17
|
+
<br>
|
data/exe/andrewmcodes
CHANGED
@@ -1,14 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
source_path = (Pathname.new(__FILE__).dirname + "../lib").expand_path
|
7
|
-
$LOAD_PATH << source_path
|
3
|
+
$LOAD_PATH.unshift("#{__dir__}/../lib")
|
8
4
|
|
9
5
|
require "andrewmcodes"
|
10
6
|
|
11
|
-
|
12
|
-
puts New::VERSION
|
13
|
-
exit 0
|
14
|
-
end
|
7
|
+
puts Andrewmcodes::Card.call
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Andrewmcodes
|
4
|
+
class Card
|
5
|
+
def self.call
|
6
|
+
<<~CARD
|
7
|
+
|
8
|
+
[36;1;4mAndrew Mason aka @andrewmcodes[0m
|
9
|
+
|
10
|
+
[33;1mLocation:[0m Phoenix, AZ
|
11
|
+
[33;1mWork:[0m Senior Product Developer @Podia
|
12
|
+
[33;1mTwitter:[0m https://twitter.com/andrewmcodes
|
13
|
+
[33;1mGitHub:[0m https://github.com/andrewmcodes
|
14
|
+
[33;1mWeb:[0m https://andrewm.codes
|
15
|
+
|
16
|
+
Also find me on Remote Ruby » [33;4mhttps://remoteruby.com[0m, Ruby for All » [33;4mhttps://rubyforall.com[0m, Ruby Radar » [33;4mhttps://rubyonrailspodcast.com[0m, and RSS » [33;4mhttps://andrewm.codes/feed.xml[0m
|
17
|
+
|
18
|
+
[33m◈────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────◈[0m
|
19
|
+
|
20
|
+
[38;5;230mgem exec andrewmcodes[39m or [38;5;230mopen https://github.com/andrewmcodes/andrewmcodes_gem[39m
|
21
|
+
|
22
|
+
|
23
|
+
CARD
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/andrewmcodes/version.rb
CHANGED
data/lib/andrewmcodes.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
require "andrewmcodes/output"
|
3
|
+
require_relative "andrewmcodes/version"
|
4
|
+
require_relative "andrewmcodes/cli"
|
6
5
|
|
7
6
|
module Andrewmcodes
|
8
7
|
class Error < StandardError; end
|
9
|
-
|
10
|
-
Output.new.log_to_console
|
11
8
|
end
|
metadata
CHANGED
@@ -1,142 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: andrewmcodes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Mason
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.17'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.17'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: pry
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.2'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.2'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.61.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.61.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: artii
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: lolcat
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
description: Generates a gem for your andrewmcodes
|
11
|
+
date: 2023-03-30 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Andrew Mason's business card, the Ruby Way.
|
112
14
|
email:
|
113
|
-
-
|
15
|
+
- support@andrewm.codes
|
114
16
|
executables:
|
115
17
|
- andrewmcodes
|
116
18
|
extensions: []
|
117
19
|
extra_rdoc_files: []
|
118
20
|
files:
|
119
|
-
- ".
|
21
|
+
- ".rspec"
|
120
22
|
- ".rubocop.yml"
|
23
|
+
- ".standard.yml"
|
24
|
+
- ".tool-versions"
|
121
25
|
- ".travis.yml"
|
26
|
+
- CHANGELOG.md
|
27
|
+
- CODE_OF_CONDUCT.md
|
122
28
|
- Gemfile
|
123
29
|
- Gemfile.lock
|
124
30
|
- LICENSE.txt
|
125
31
|
- README.md
|
126
32
|
- Rakefile
|
33
|
+
- Steepfile
|
127
34
|
- andrewmcodes.gemspec
|
128
|
-
-
|
129
|
-
- bin/setup
|
35
|
+
- assets/card.md
|
130
36
|
- exe/andrewmcodes
|
131
37
|
- lib/andrewmcodes.rb
|
132
|
-
- lib/andrewmcodes/
|
133
|
-
- lib/andrewmcodes/info.md
|
134
|
-
- lib/andrewmcodes/output.rb
|
38
|
+
- lib/andrewmcodes/cli.rb
|
135
39
|
- lib/andrewmcodes/version.rb
|
136
|
-
|
40
|
+
- sig/andrewmcodes.rbs
|
41
|
+
homepage: https://github.com/andrewmcodes/andrewmcodes_gem
|
137
42
|
licenses:
|
138
43
|
- MIT
|
139
|
-
metadata:
|
44
|
+
metadata:
|
45
|
+
homepage_uri: https://github.com/andrewmcodes/andrewmcodes_gem
|
46
|
+
source_code_uri: https://github.com/andrewmcodes/andrewmcodes_gem
|
47
|
+
changelog_uri: https://github.com/andrewmcodes/andrewmcodes_gem/blob/main/CHANGELOG.md
|
140
48
|
post_install_message:
|
141
49
|
rdoc_options: []
|
142
50
|
require_paths:
|
@@ -145,15 +53,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
53
|
requirements:
|
146
54
|
- - ">="
|
147
55
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
56
|
+
version: 2.6.0
|
149
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
58
|
requirements:
|
151
59
|
- - ">="
|
152
60
|
- !ruby/object:Gem::Version
|
153
61
|
version: '0'
|
154
62
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
63
|
+
rubygems_version: 3.4.1
|
156
64
|
signing_key:
|
157
65
|
specification_version: 4
|
158
|
-
summary:
|
66
|
+
summary: gem exec andrewmcodes
|
159
67
|
test_files: []
|
data/.gitignore
DELETED
data/bin/console
DELETED
data/bin/setup
DELETED
data/lib/andrewmcodes/center.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Andrewmcodes
|
4
|
-
class Center
|
5
|
-
attr_accessor :output, :columns
|
6
|
-
|
7
|
-
def initialize(output:, columns:)
|
8
|
-
@output = output
|
9
|
-
@columns = columns
|
10
|
-
end
|
11
|
-
|
12
|
-
def centering_spaces
|
13
|
-
if output.is_a? String
|
14
|
-
spaces(output.strip.length.to_i)
|
15
|
-
elsif output.is_a? Integer
|
16
|
-
spaces(output)
|
17
|
-
else
|
18
|
-
p "ERROR"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
def spaces(length)
|
23
|
-
spaces_needed = ((columns - length) / 2) - 1
|
24
|
-
spaces_string = Array.new(spaces_needed, " ").join("")
|
25
|
-
spaces_string
|
26
|
-
end
|
27
|
-
|
28
|
-
def centered_content
|
29
|
-
spaces = centering_spaces
|
30
|
-
"#{spaces}#{output}#{spaces}"
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
data/lib/andrewmcodes/info.md
DELETED
data/lib/andrewmcodes/output.rb
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "artii"
|
4
|
-
require "lolcat"
|
5
|
-
require "logger"
|
6
|
-
require "fileutils"
|
7
|
-
module Andrewmcodes
|
8
|
-
class Output
|
9
|
-
# delegate :centered_message, to: :center
|
10
|
-
def log_to_console
|
11
|
-
if terminal_width >= 83
|
12
|
-
# content = Center.new(terminal_width-83, terminal_width)
|
13
|
-
spces = Center.new(output: 83, columns: terminal_width)
|
14
|
-
move_over = spces.spaces(100)
|
15
|
-
ascii("#{move_over}andrewmcodes")
|
16
|
-
|
17
|
-
p
|
18
|
-
else
|
19
|
-
echo("\nAndrew Mason \/ andrewmcodes\n")
|
20
|
-
end
|
21
|
-
|
22
|
-
log_info
|
23
|
-
end
|
24
|
-
|
25
|
-
def terminal_width
|
26
|
-
@terminal_width ||= `tput cols`.strip.to_i
|
27
|
-
end
|
28
|
-
|
29
|
-
def ascii(a_string)
|
30
|
-
a = Artii::Base.new font: "slant"
|
31
|
-
out = a.asciify(a_string)
|
32
|
-
system("echo '#{out}' | lolcat")
|
33
|
-
end
|
34
|
-
|
35
|
-
def log_info
|
36
|
-
templates_root = File.expand_path(File.join(".", "."), File.dirname(__FILE__))
|
37
|
-
content = File.readlines "#{templates_root}/info.md"
|
38
|
-
|
39
|
-
File.open("./../../temp.md", "w") do |_file|
|
40
|
-
content.each do |line|
|
41
|
-
system("echo '#{centered_message(line)}' | lolcat")
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
FileUtils.rm("./../../temp.md")
|
46
|
-
end
|
47
|
-
|
48
|
-
def echo(message)
|
49
|
-
system("echo '#{centered_message(message)}'")
|
50
|
-
end
|
51
|
-
|
52
|
-
def centered_message(message)
|
53
|
-
content = Center.new(output: message, columns: terminal_width)
|
54
|
-
content.centered_content
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|