namespacer-rb 0.1.2 → 0.1.3

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: f9e088f3da0c2cad086dfb7db0d1f87a0085c7a6ec05cc6c86d27803aae2f369
4
- data.tar.gz: 18dedbee30ad393da78a51b023969c70ba15ef1f0014442f180830164ae5786e
3
+ metadata.gz: a72519123e573f5919a27d3bf9f67d8058518b99d1132a60b98ac3399b8786a3
4
+ data.tar.gz: 1de535bf8f1731015d09305483673012c214d8aff07d1df2e350117ec9437b92
5
5
  SHA512:
6
- metadata.gz: 109892aa660e213db391314c4d751e9cfec65c0ac10eb2f35e66a7d6baef074438e0e86c609be626f01790107c9cb2a2875776d3698bacd321ff2911fe0c960c
7
- data.tar.gz: f71e3f361d1ce1ad9d552b1d4fbcefbdd44609b9bedba272d6ba9befbd6bb749c31fe0ccdeaef01c8e5bed28cb394e2e402e0bb469da6edd85ce059bc7bc47da
6
+ metadata.gz: 64be7577c8da68f66f5dd9d709abad8150e2260f3ac68b7a74b40b117605f396c7437b2498f5d2218e5ecc5ef87967a9eddb31aeeb57bf5282f36951716faca4
7
+ data.tar.gz: 758fd04be5835101752fdb695962e153f7e55ecbe3a3e34a253a6e905c453f2ff00986ecd6b3ccb6dc005bdb36a7c1dbaa3d84e9e9159146dbb0ea40a9388679
data/Readme.adoc ADDED
@@ -0,0 +1,39 @@
1
+ # Namespacer
2
+ :ifdef::env-github[]
3
+ :tip-caption: :bulb:
4
+ :note-caption: :information_source:
5
+ :important-caption: :heavy_exclamation_mark:
6
+ :caution-caption: :fire:
7
+ :warning-caption: :warning:
8
+ endif::[]
9
+
10
+ This gem is a simple library to namespace your classes and modules in Ruby. It is useful when you want to avoid naming conflicts between different libraries or parts of your application.
11
+
12
+ An executable is included to help you namespace your project files.
13
+
14
+ ## Installation
15
+
16
+ [source,sh]
17
+ ----
18
+ gem install namespacer-rb
19
+ ----
20
+
21
+ ## Usage
22
+
23
+ `namespacer --help` will show you the available options.
24
+
25
+ ### Namespacing a file
26
+
27
+ `namespacer MyNamespace my_file.rb` will create a new file `my_file.namespaced.rb` with all top-level classes and modules namespaced under `MyNamespace`.
28
+
29
+ ## Development
30
+
31
+ 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.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version,
34
+ update the version number in `version.rb` (`gem bump` can do this), and then run `bundle exec rake release`.
35
+ This will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to https://rubygems.org[rubygems.org].
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rubyists/namespacer.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Namespacer
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: namespacer-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -63,12 +63,11 @@ extra_rdoc_files: []
63
63
  files:
64
64
  - ".rubocop.yml"
65
65
  - CHANGELOG.md
66
- - README.md
67
66
  - Rakefile
67
+ - Readme.adoc
68
68
  - exe/namespacer
69
69
  - lib/namespacer.rb
70
70
  - lib/namespacer/version.rb
71
- - namespacer.gemspec
72
71
  - sig/namespacer.rbs
73
72
  homepage: https://github.com/rubyists/namespacer
74
73
  licenses: []
data/README.md DELETED
@@ -1,31 +0,0 @@
1
- # Namespacer
2
-
3
- TODO: Delete this and the text below, and describe your gem
4
-
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/namespacer`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_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.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 test` 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/[USERNAME]/namespacer.
data/namespacer.gemspec DELETED
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/namespacer/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'namespacer-rb'
7
- spec.version = Rubyists::Namespacer::VERSION
8
- spec.authors = ['Tj (bougyman) Vanderpoel']
9
- spec.email = ['tj@rubyists.com']
10
-
11
- spec.summary = 'Namespace classes and modules in existing ruby source code.'
12
- spec.description = 'For those times you realize you should have namespaced your class(es) or module(s).'
13
- spec.homepage = 'https://github.com/rubyists/namespacer'
14
- spec.required_ruby_version = '~> 3.3'
15
-
16
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
17
-
18
- spec.metadata['homepage_uri'] = spec.homepage
19
- spec.metadata['source_code_uri'] = spec.homepage
20
- spec.metadata['changelog_uri'] = File.join(spec.homepage, '/blob/main/CHANGELOG.md')
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(__dir__) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (File.expand_path(f) == __FILE__) ||
27
- f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
28
- end
29
- end
30
- spec.bindir = 'exe'
31
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
- spec.require_paths = ['lib']
33
-
34
- # Uncomment to register a new dependency of your gem
35
- spec.add_dependency 'parser', '~> 3'
36
- spec.add_dependency 'tty-command', '~> 0.10'
37
- spec.add_dependency 'unparser', '~> 0.6'
38
- spec.metadata['rubygems_mfa_required'] = 'true'
39
- end