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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48824676cbd22dd950c5d227ea1941678cbf0567dc732f0b20d9c36a471187e6
4
- data.tar.gz: 3d68ae7823adcbca8e2510164d97ab120117091067afe6836eddf14f0a95f545
3
+ metadata.gz: d76a0c810d30fe799a7daaa1d15ff842ac4cfc5b269ee56b7d6227635e76255b
4
+ data.tar.gz: 510b5953d842f7f1cc31a666c23aac295288cec9460e0853deac6979ab8c5bff
5
5
  SHA512:
6
- metadata.gz: cd5af15c15204af306bc6d368843a34ce25bf70bb479e23ed322a3084926f86f53da0817fb5e44b2faac0af2dc230d4db9f04538a2b6d125f37aca436dfa9c4c
7
- data.tar.gz: 539fbe2d6ca43fcc044bdbd5fcb4180c0af3ed3656a1c490a23a486b952feea4ff6ae295ba9dfe1e09f0270eaaebca5eaca8ec5dbba3282f4089f71dfa077088
6
+ metadata.gz: 74e47e6833ef3981e1349e56fdb7de393726b3ae4a69170671a9b007c9451def3d532772656ab03b170348a2ec1bc0db0aba08a66765b649d503a0f0545dacd3
7
+ data.tar.gz: d31a5a07e2165ce0d5a7734ead1d41dd19abdff66c643e49460df1100461015a65dc3bbe04471596d486c12e8a012da037b15afb14dad64fd97f0897be6342a6
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.standard.yml ADDED
@@ -0,0 +1,2 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/testdouble/standard
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
@@ -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
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
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.1.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
- artii (2.1.2)
12
- ast (2.4.0)
13
- coderay (1.1.2)
14
- diff-lcs (1.3)
15
- jaro_winkler (1.5.2)
16
- lolcat (99.9.20)
17
- manpages (~> 0.6.1)
18
- optimist (~> 3.0.0)
19
- paint (~> 2.0.0)
20
- manpages (0.6.1)
21
- method_source (0.9.2)
22
- optimist (3.0.0)
23
- paint (2.0.3)
24
- parallel (1.12.1)
25
- parser (2.5.3.0)
26
- ast (~> 2.4.0)
27
- powerpack (0.1.2)
28
- pry (0.12.2)
29
- coderay (~> 1.1.0)
30
- method_source (~> 0.9.0)
31
- rainbow (3.0.0)
32
- rake (12.3.2)
33
- rspec (3.8.0)
34
- rspec-core (~> 3.8.0)
35
- rspec-expectations (~> 3.8.0)
36
- rspec-mocks (~> 3.8.0)
37
- rspec-core (3.8.0)
38
- rspec-support (~> 3.8.0)
39
- rspec-expectations (3.8.2)
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.8.0)
42
- rspec-mocks (3.8.0)
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.8.0)
45
- rspec-support (3.8.0)
46
- rubocop (0.61.1)
47
- jaro_winkler (~> 1.5.1)
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 (>= 2.5, != 2.5.1.1)
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 (~> 1.4.0)
54
- ruby-progressbar (1.10.0)
55
- unicode-display_width (1.4.1)
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
- ruby
117
+ x86_64-darwin-22
118
+ x86_64-linux
59
119
 
60
120
  DEPENDENCIES
61
121
  andrewmcodes!
62
- bundler (~> 1.17)
63
- pry
64
- rake
65
- rspec (~> 3.2)
66
- rubocop (~> 0.61.0)
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
- 1.17.2
129
+ 2.4.10
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Andrew Mason
3
+ Copyright (c) 2023 Andrew Mason
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,24 +1,20 @@
1
- # andrewmcodes_gem
1
+ # Andrewmcodes
2
2
 
3
- 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.
3
+ TODO: Delete this and the text below, and describe your gem
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- Add this line to your application's Gemfile:
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
- And then execute:
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
- Or install it yourself as:
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
20
16
 
21
- $ gem install andrewmcodes
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 test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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 "rake/testtask"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
3
7
 
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
8
+ require "standard/rake"
9
9
 
10
- task :default => :test
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
- lib = File.expand_path("../lib", __FILE__)
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 = "andrewmcodes"
8
- spec.version = Andrewmcodes::VERSION
9
- spec.authors = ["Andrew Mason"]
10
- spec.email = ["masonam96@outlook.com"]
11
-
12
- spec.summary = "Create your ruby andrewmcodes"
13
- spec.description = "Generates a gem for your andrewmcodes"
14
- spec.homepage = "https://github.com/andrewmcodes/andrewmcodes"
15
- spec.license = "MIT"
16
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
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 = "exe"
20
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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
- spec.add_development_dependency "bundler", "~> 1.17"
24
- spec.add_development_dependency "pry"
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
- spec.add_dependency "artii"
30
- spec.add_dependency "lolcat"
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
- require "pathname"
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
- if ["-v", "--version"].include? ARGV[0]
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
+ Andrew Mason aka @andrewmcodes
9
+
10
+ Location: Phoenix, AZ
11
+ Work: Senior Product Developer @Podia
12
+ Twitter: https://twitter.com/andrewmcodes
13
+ GitHub: https://github.com/andrewmcodes
14
+ Web: https://andrewm.codes
15
+
16
+ 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
17
+
18
+ ◈────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────◈
19
+
20
+ gem exec andrewmcodes or open https://github.com/andrewmcodes/andrewmcodes_gem
21
+
22
+
23
+ CARD
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Andrewmcodes
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
data/lib/andrewmcodes.rb CHANGED
@@ -1,11 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "andrewmcodes/version"
4
- require "andrewmcodes/center"
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
@@ -0,0 +1,13 @@
1
+ # TypeProf 0.21.7
2
+
3
+ # Classes
4
+ module Andrewmcodes
5
+ VERSION: String
6
+
7
+ class Card
8
+ def self.call: -> String
9
+ end
10
+
11
+ class Error < StandardError
12
+ end
13
+ 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.1.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: 2019-01-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: '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
- - masonam96@outlook.com
15
+ - support@andrewm.codes
114
16
  executables:
115
17
  - andrewmcodes
116
18
  extensions: []
117
19
  extra_rdoc_files: []
118
20
  files:
119
- - ".gitignore"
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
- - bin/console
129
- - bin/setup
35
+ - assets/card.md
130
36
  - exe/andrewmcodes
131
37
  - lib/andrewmcodes.rb
132
- - lib/andrewmcodes/center.rb
133
- - lib/andrewmcodes/info.md
134
- - lib/andrewmcodes/output.rb
38
+ - lib/andrewmcodes/cli.rb
135
39
  - lib/andrewmcodes/version.rb
136
- homepage: https://github.com/andrewmcodes/andrewmcodes
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: '0'
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.0.1
63
+ rubygems_version: 3.4.1
156
64
  signing_key:
157
65
  specification_version: 4
158
- summary: Create your ruby andrewmcodes
66
+ summary: gem exec andrewmcodes
159
67
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/bin/console DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "andrewmcodes"
5
- require "pry"
6
- Pry.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
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
@@ -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
@@ -1,5 +0,0 @@
1
- Work: Ruby on Rails Developer
2
- Twitter: https://twitter.com/andrewmcodes
3
- Github: https://github.com/andrewmcodes
4
- LinkedIn: https://www.linkedin.com/in/andrew-mason
5
- Web: https://andrewmason.me
@@ -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