foobara-type-generator 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/templates/src/type.rb.erb +4 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 126f6261950296f8bc45c48d39ddd459cf88bedc7b2c85fbb2f2ce4b442783a0
|
4
|
+
data.tar.gz: a70e0eacdc4d8842bb1adc3034f4c9e4cda4071da3968f72596e9da86dcf0a8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e47752fb709fa805a794d9fc08d52ce517a1007c3c9967717fcd02e3ab81c86d824cca657be84c05c2f1083d673032f02ed3d38685959d097d2acbaf2767ef
|
7
|
+
data.tar.gz: c38da20f811ba1683f5b2a184767aaf1bd32d7e1ed944e6f509691303fbfff2e54fab3b85f57c1f5d33f896ac5d02bdec104c6fa890a506b1682bc186a8a101a
|
data/CHANGELOG.md
CHANGED
data/templates/src/type.rb.erb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
<% module_path[..-2]
|
1
|
+
<% containing_module_path = module_path[..-2] %>
|
2
|
+
|
3
|
+
<% containing_module_path.each do |part| %>
|
2
4
|
module <%= part %>
|
3
5
|
<% end %>
|
4
6
|
|
5
7
|
foobara_register_type :<%= Util.underscore(module_path.last) %>, :string, :downcase
|
6
8
|
|
7
|
-
<%
|
9
|
+
<% containing_module_path.size.times do %>
|
8
10
|
end
|
9
11
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-type-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- azimux@gmail.com
|
44
44
|
executables: []
|
@@ -67,7 +67,7 @@ metadata:
|
|
67
67
|
source_code_uri: https://github.com/foobara/generators-type-generator
|
68
68
|
changelog_uri: https://github.com/foobara/generators-type-generator/blob/main/CHANGELOG.md
|
69
69
|
rubygems_mfa_required: 'true'
|
70
|
-
post_install_message:
|
70
|
+
post_install_message:
|
71
71
|
rdoc_options: []
|
72
72
|
require_paths:
|
73
73
|
- lib
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubygems_version: 3.4.10
|
86
|
-
signing_key:
|
86
|
+
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Generates Foobara types
|
89
89
|
test_files: []
|