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 +4 -4
- data/README.md +7 -15
- data/bin/wizard +33 -0
- data/lib/wizard/version.rb +1 -1
- data/trailblazer-wizard-0.0.1.gem +0 -0
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bac88ad2581ab41d2430c7f82950a5bb29bb63f8fdbcfe8458caf4b940d2b4cd
|
|
4
|
+
data.tar.gz: 76af2c12e68ef5f717b9c3a32b28ae4b2316337a7107eff526cd47b0371a40bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c875f975fae7b3a3122f4b3092999dae43d8dce894e782f597198e4f360154846b9782487064deafe4e3f30dd64985d6d40eb8fd5d2f7ba6853311a9208d78d0
|
|
7
|
+
data.tar.gz: 363967cdb7401c2744e6a8761112fd69f297f469141a79b506115b81f9aa7a4af9f464d2b173536a823cdd9b5815c36cf5d7aff235a6cbb6afe335e58eb02083
|
data/README.md
CHANGED
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# trailblazer-wizard
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
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
|
|
13
|
+
$ gem install trailblazer-wizard
|
|
18
14
|
|
|
19
15
|
## Usage
|
|
20
16
|
|
|
21
|
-
|
|
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
|
-
|
|
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/
|
|
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
|
data/lib/wizard/version.rb
CHANGED
|
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.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- aredda
|
|
8
8
|
autorequire:
|
|
9
|
-
bindir:
|
|
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
|