unmagic 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a48856916f34af1a764d7572ed980987be0ced5034051250541e642f6a33d880
4
+ data.tar.gz: 7b1f834ce8623f25a46f50e39429cc583e55155b2cb0e28f45f84729f2471d28
5
+ SHA512:
6
+ metadata.gz: 60bc493df7d626749c10d0da00d56c1c156b3cb4d0853478bc2a8882bc7b2531a52dcaed82853e54d7a8415c5a2d67732484a85afd5fb61ec2f3c753bdbd0609
7
+ data.tar.gz: d9fa472715c6c57cc10d1ceffa48466e2dc12ef8709dfa7584053dc1bd8cdddf17e18a9ecd019fc5baf6faaf835e7bdb8f1e7bf0f6986a284c20fe310a4d8240
data/.rubocop.yml ADDED
@@ -0,0 +1,55 @@
1
+ # Omakase Ruby styling for Rails
2
+ inherit_gem: { rubocop-rails-omakase: rubocop.yml }
3
+
4
+ # Set Ruby version to 3.0+ to support endless methods
5
+ AllCops:
6
+ TargetRubyVersion: 3.0
7
+
8
+ # Overwrite or add rules to create your own house style
9
+ #
10
+ # # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
11
+ # Layout/SpaceInsideArrayLiteralBrackets:
12
+ # Enabled: false
13
+
14
+ # Automatically add frozen_string_literal magic comments
15
+ Style/FrozenStringLiteralComment:
16
+ Enabled: true
17
+ EnforcedStyle: always
18
+ SafeAutoCorrect: true
19
+
20
+ # Enforce double quotes for strings
21
+ Style/StringLiterals:
22
+ Enabled: true
23
+ EnforcedStyle: double_quotes
24
+ ConsistentQuotesInMultiline: true
25
+
26
+ # Also enforce double quotes in string interpolation
27
+ Style/StringLiteralsInInterpolation:
28
+ Enabled: true
29
+ EnforcedStyle: double_quotes
30
+
31
+ # Enforce exactly one blank line between method definitions
32
+ Layout/EmptyLineBetweenDefs:
33
+ Enabled: true
34
+ NumberOfEmptyLines: 1
35
+
36
+ # Enforce no more than one consecutive blank line
37
+ Layout/EmptyLines:
38
+ Enabled: true
39
+
40
+ # Catch unused variables and method arguments
41
+ Lint/UselessAssignment:
42
+ Enabled: true
43
+
44
+ # Catch unused method arguments (except those prefixed with _)
45
+ Lint/UnusedMethodArgument:
46
+ Enabled: true
47
+ AllowUnusedKeywordArguments: false
48
+ IgnoreEmptyMethods: true
49
+ IgnoreNotImplementedMethods: true
50
+
51
+ # Catch unused block arguments
52
+ Lint/UnusedBlockArgument:
53
+ Enabled: true
54
+ AllowUnusedKeywordArguments: false
55
+ IgnoreEmptyBlocks: true
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Unmagic
2
+
3
+ TODO: Write intro
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ ```bash
10
+ bundle add unmagic
11
+ ```
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ ```bash
16
+ gem install unmagic
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
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.
26
+
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).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/keithpitt/unmagic.
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Unmagic
4
+ VERSION = "0.1.0"
5
+ end
data/lib/unmagic.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "unmagic/version"
4
+
5
+ module Unmagic
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
data/sig/unmagic.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Unmagic
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: unmagic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Keith Pitt
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Unmagic provides utilities and helpers for Ruby applications
13
+ email:
14
+ - me@keithpitt.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ".rubocop.yml"
20
+ - README.md
21
+ - Rakefile
22
+ - lib/unmagic.rb
23
+ - lib/unmagic/version.rb
24
+ - sig/unmagic.rbs
25
+ homepage: https://github.com/unreasonable-magic/unmagic
26
+ licenses: []
27
+ metadata:
28
+ allowed_push_host: https://rubygems.org
29
+ changelog_uri: https://github.com/unreasonable-magic/unmagic/blob/main/CHANGELOG.md
30
+ source_code_uri: https://github.com/unreasonable-magic/unmagic
31
+ bug_tracker_uri: https://github.com/unreasonable-magic/unmagic/issues
32
+ rubygems_mfa_required: 'true'
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.0
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubygems_version: 3.7.1
48
+ specification_version: 4
49
+ summary: A Ruby gem for unmagic functionality
50
+ test_files: []