trailblazer-wizard 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb2f5d1784d10551dc3396dd57c706cb72b741a488c7599516c04d2491c9f235
4
- data.tar.gz: e21bd47ddf728bafc2beb708350ef566bea73db5067953b5d0b32065f7e45a6a
3
+ metadata.gz: bac88ad2581ab41d2430c7f82950a5bb29bb63f8fdbcfe8458caf4b940d2b4cd
4
+ data.tar.gz: 76af2c12e68ef5f717b9c3a32b28ae4b2316337a7107eff526cd47b0371a40bd
5
5
  SHA512:
6
- metadata.gz: 258df64dd74eefed819d019206beb55e4165fa3dfb5b4e6893b44a4342fd4253727ceb8a44b398b84c56f5b95ee147a12a1105689bc9cbb5ca754fc0a29161b4
7
- data.tar.gz: bd9a05136c6efb29821fe6f5efe8be83e9852b878c7b27c20a1f7bde37fc3650e942b0fdf134bda9ea15034a6534aadd8694d2636dbbb286ddba9f56a25a18a8
6
+ metadata.gz: c875f975fae7b3a3122f4b3092999dae43d8dce894e782f597198e4f360154846b9782487064deafe4e3f30dd64985d6d40eb8fd5d2f7ba6853311a9208d78d0
7
+ data.tar.gz: 363967cdb7401c2744e6a8761112fd69f297f469141a79b506115b81f9aa7a4af9f464d2b173536a823cdd9b5815c36cf5d7aff235a6cbb6afe335e58eb02083
data/README.md CHANGED
@@ -1,34 +1,26 @@
1
- # Wizard
1
+ # trailblazer-wizard
2
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/wizard`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ A helper to aid you with generating blank Trailblazer concept files including: operations, contracts, finders, and representables.
6
4
 
7
5
  ## Installation
8
6
 
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
7
  Install the gem and add to the application's Gemfile by executing:
12
8
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
9
+ $ bundle add trailblazer-wizard
14
10
 
15
11
  If bundler is not being used to manage dependencies, install the gem by executing:
16
12
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
13
+ $ gem install trailblazer-wizard
18
14
 
19
15
  ## Usage
20
16
 
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.
17
+ To generate files, simply run this command:
26
18
 
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).
19
+ $ wizard [--model] [--actions] [--only] [--except] [--context]
28
20
 
29
21
  ## Contributing
30
22
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/wizard. 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]/wizard/blob/main/CODE_OF_CONDUCT.md).
23
+ Bug reports and pull requests are welcome on GitHub at https://github.com/aredda/trailblazer-wizard. 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]/wizard/blob/main/CODE_OF_CONDUCT.md).
32
24
 
33
25
  ## License
34
26
 
data/bin/wizard ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "optparse"
5
+ require "wizard"
6
+
7
+ options = {}
8
+
9
+ OptionParser.new do |opts|
10
+ opts.banner = "Usage: TODO"
11
+
12
+ opts.on("-m", "--model MODEL", String, "Target model") do |model|
13
+ options[:model] = model
14
+ end
15
+
16
+ opts.on("-a", "--actions ACTIONS", Array, "Actions") do |actions|
17
+ options[:actions] = actions
18
+ end
19
+
20
+ opts.on("-o", "--only CONCEPTS", Array, "Only these concepts") do |concepts|
21
+ options[:only] = concepts
22
+ end
23
+
24
+ opts.on("-x", "--except CONCEPTS", Array, "Except these concepts") do |concepts|
25
+ options[:except] = concepts
26
+ end
27
+
28
+ opts.on("-c", "--context CONTEXT", String, "Only these concepts") do |context|
29
+ options[:context] = context
30
+ end
31
+ end.parse!
32
+
33
+ Wizard.generate options[:model], **options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wizard
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
Binary file
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-wizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - aredda
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2024-05-01 00:00:00.000000000 Z
12
12
  dependencies: []
@@ -14,7 +14,8 @@ description: A gem that will help you generate concept files for Trailblazer mor
14
14
  easily and quickly.
15
15
  email:
16
16
  - aredda.ibrahim@gmail.com
17
- executables: []
17
+ executables:
18
+ - wizard
18
19
  extensions: []
19
20
  extra_rdoc_files: []
20
21
  files:
@@ -28,6 +29,7 @@ files:
28
29
  - LICENSE.txt
29
30
  - README.md
30
31
  - Rakefile
32
+ - bin/wizard
31
33
  - lib/templates/concept.rb.txt
32
34
  - lib/wizard.rb
33
35
  - lib/wizard/concept_generator.rb
@@ -36,6 +38,7 @@ files:
36
38
  - lib/wizard/file_helper.rb
37
39
  - lib/wizard/version.rb
38
40
  - sig/wizard.rbs
41
+ - trailblazer-wizard-0.0.1.gem
39
42
  homepage: https://www.github.com/aredda/trailblazer-wizard
40
43
  licenses:
41
44
  - MIT