ectoplasm 1.2.3 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ectoplasm.rb +239 -246
- metadata +12 -24
- data/.github/workflows/build.yml +0 -27
- data/.github/workflows/gem-push.yml +0 -44
- data/.gitignore +0 -3
- data/.rubocop.yml +0 -4522
- data/CHANGELOG.md +0 -22
- data/Gemfile +0 -9
- data/LICENSE.txt +0 -674
- data/README.md +0 -23
- data/Rakefile +0 -2
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/ectoplasm.gemspec +0 -29
data/README.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# Ectoplasm
|
2
|
-
|
3
|
-
A helper library for prettier console output
|
4
|
-
|
5
|
-
## Added Methods
|
6
|
-
|
7
|
-
| Type | Method | Arguments | Description |
|
8
|
-
| ---- | ------ | --------- | ----------- |
|
9
|
-
| `String` | `colored!` | _none_ | Enables colored string output |
|
10
|
-
| `string` | `white` | _none_ | Prints the text in white |
|
11
|
-
| `string` | `red` | _none_ | Prints the text in red. Alias: `error` |
|
12
|
-
| `string` | `green` | _none_ | Prints the text in green. Alias: `ok` |
|
13
|
-
| `string` | `yellow` | _none_ | Prints the text in yellow. Alias: `warn` |
|
14
|
-
| `string` | `blue` | _none_ | Prints the text in blue. Alias: `info` |
|
15
|
-
| `string` | `magenta` | _none_ | Prints the text in magenta |
|
16
|
-
| `string` | `cyan` | _none_ | Prints the text in cyan |
|
17
|
-
| `string` | `grey` | _none_ | Prints the text in grey. Alias: `dim` |
|
18
|
-
| `string` | `indent` | `amount, char: ' '` | Indents all lines of the string by the given amount with the provided character |
|
19
|
-
| `string` | `frmt` | `prefix_suffix=['<', '>']` | Named string substitution |
|
20
|
-
| `Hash` | `pretty` | `width: 25` | Outputs a `Hash` in a pretty structure |
|
21
|
-
| `Hash` | `obfuscate` | `secure_keys=['password', 'secret', 'token', 'secure']` | Obfuscates the values of a `Hash`, when the key is like the given ones |
|
22
|
-
| `Float` | `duration` | _none_ | Formats the `Float` as a duration string e.g. `1h 42m 2s` |
|
23
|
-
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "ectoplasm"
|
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__)
|
data/bin/setup
DELETED
data/ectoplasm.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
require_relative 'lib/ectoplasm'
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = "ectoplasm"
|
5
|
-
spec.version = Ectoplasm::VERSION
|
6
|
-
spec.authors = ["Christian Neubauer"]
|
7
|
-
spec.email = ["me@christianneubauer.de"]
|
8
|
-
|
9
|
-
spec.summary = "A helper library for console output"
|
10
|
-
spec.description = "Adds some extension methods to build in types to add prettier console output"
|
11
|
-
spec.homepage = "https://bitbucket.org/cneubaur/ectoplasm-ruby"
|
12
|
-
spec.license = "MIT"
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
14
|
-
|
15
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
16
|
-
|
17
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
-
spec.metadata["source_code_uri"] = "https://bitbucket.org/cneubaur/ectoplasm-ruby"
|
19
|
-
spec.metadata["changelog_uri"] = "https://bitbucket.org/cneubaur/ectoplasm-ruby/src/master/CHANGELOG.md"
|
20
|
-
|
21
|
-
# Specify which files should be added to the gem when it is released.
|
22
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
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
|
-
end
|