trailblazer-wizard 0.0.3 → 0.0.4

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: 6bf7941b9eef1a866dcd05d9c8a6a86d011e969b3b9d92203efa62e0c8992c80
4
- data.tar.gz: afe91daae22d54bf06350ac2e7fe1b57804de9dd095571872964f03190be2e7a
3
+ metadata.gz: 3cec60a3eb72867c0d816532d0baf359d10dc19d416041214a24ffab2e296eb7
4
+ data.tar.gz: 8b9040dbc0791a70531ae6baef49abbbae1a617b0dfe83aebf91d5328bf34a85
5
5
  SHA512:
6
- metadata.gz: 187f4298b9d8f6a3cc28f2814abcdf2ff96fc2d2b434475cf3894d1985291c474eeb947d6c0b9024fdf8a859e26985a62f5e29b930a1a600cb9ce9de7e449256
7
- data.tar.gz: 3b94513cb1f99400d531bee08c1e0633bdd168ae8a76e3deaeac830003c202482a0a2afa3bf8f16ca2bb16b16640742f9d0c51304c378c8b707c766711cb6c94
6
+ metadata.gz: c25ed731bb86d9e4230b1bfc6007b84a054caf49d534d9e3301d91fae134060a90b6b5db11f0cba46ba2fab6391baab9df8d902e30d41c86d998ca737c376ac6
7
+ data.tar.gz: ab182faac78f38a188f2813ebf3dae05b04f03c6b9c347e1bea1ee89846ce173d19388997f65df230b8ad6d95254a39031e5c4d39f1e000cbecd642832ff977c
data/lib/concept.txt ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module _MODEL_::_CONTEXT_::_CONCEPT_
4
+ class _NAME_ < Application_CONCEPT_
5
+
6
+ end
7
+ end
@@ -28,7 +28,10 @@ module Wizard
28
28
  private
29
29
 
30
30
  def copy(model, name, context)
31
- content = File.read("lib/templates/concept.rb.txt")
31
+ template = File.dirname(__FILE__)
32
+ template["lib/wizard"] = "lib/concept.txt"
33
+
34
+ content = File.read(template)
32
35
 
33
36
  content["_MODEL_"] = model.camelize
34
37
  content["::_CONTEXT_"] = context.nil? ? "" : "::#{context.camelize}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wizard
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-wizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - aredda
@@ -44,6 +44,7 @@ files:
44
44
  - README.md
45
45
  - Rakefile
46
46
  - bin/wizard
47
+ - lib/concept.txt
47
48
  - lib/wizard.rb
48
49
  - lib/wizard/concept_generator.rb
49
50
  - lib/wizard/concept_type.rb