trailblazer-wizard 0.0.1 → 0.0.3

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: 6bf7941b9eef1a866dcd05d9c8a6a86d011e969b3b9d92203efa62e0c8992c80
4
+ data.tar.gz: afe91daae22d54bf06350ac2e7fe1b57804de9dd095571872964f03190be2e7a
5
5
  SHA512:
6
- metadata.gz: 258df64dd74eefed819d019206beb55e4165fa3dfb5b4e6893b44a4342fd4253727ceb8a44b398b84c56f5b95ee147a12a1105689bc9cbb5ca754fc0a29161b4
7
- data.tar.gz: bd9a05136c6efb29821fe6f5efe8be83e9852b878c7b27c20a1f7bde37fc3650e942b0fdf134bda9ea15034a6534aadd8694d2636dbbb286ddba9f56a25a18a8
6
+ metadata.gz: 187f4298b9d8f6a3cc28f2814abcdf2ff96fc2d2b434475cf3894d1985291c474eeb947d6c0b9024fdf8a859e26985a62f5e29b930a1a600cb9ce9de7e449256
7
+ data.tar.gz: 3b94513cb1f99400d531bee08c1e0633bdd168ae8a76e3deaeac830003c202482a0a2afa3bf8f16ca2bb16b16640742f9d0c51304c378c8b707c766711cb6c94
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.3"
5
5
  end
metadata CHANGED
@@ -1,20 +1,35 @@
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.3
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
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: A gem that will help you generate concept files for Trailblazer more
14
28
  easily and quickly.
15
29
  email:
16
30
  - aredda.ibrahim@gmail.com
17
- executables: []
31
+ executables:
32
+ - wizard
18
33
  extensions: []
19
34
  extra_rdoc_files: []
20
35
  files:
@@ -28,7 +43,7 @@ files:
28
43
  - LICENSE.txt
29
44
  - README.md
30
45
  - Rakefile
31
- - lib/templates/concept.rb.txt
46
+ - bin/wizard
32
47
  - lib/wizard.rb
33
48
  - lib/wizard/concept_generator.rb
34
49
  - lib/wizard/concept_type.rb
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module _MODEL_::_CONTEXT_::_CONCEPT_
4
- class _NAME_ < Application_CONCEPT_
5
-
6
- end
7
- end