foobara-domain-mapper-generator 0.0.1 → 0.0.2
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/domain_mapper.rb.erb +15 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74203b3e2589fcb7edee100315185a8f5e48e8115c762a4ce5f167651c25fc6c
|
4
|
+
data.tar.gz: bf2fd48760777b02d53b7b762c31c3e0f3e2d44f4c5a55d2572290c6c5ddcd40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1279d32e62116527ff00ec749d6267500b161986a90fca1c6b0e0aff145776ab2c2215729dba5ac59e17ed51a232fab59eb4580b732221c39b36f70024893550
|
7
|
+
data.tar.gz: 11f74a0c949c21205cce182592f49265205806524ea1149ed8d7762c34fa9eec13cccc970815989127759e326cfdb566850401c4fc4e40abab28471bf9474e31
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
<% module_path[..-2].each do |part| %>
|
2
|
+
module <%= part %>
|
3
|
+
<% end %>
|
4
|
+
class <%= module_path.last %> < Foobara::DomainMapper
|
5
|
+
from :integer
|
6
|
+
to :string
|
7
|
+
|
8
|
+
def map(from_value)
|
9
|
+
from_value.to_s
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
<% (module_path.size - 1).times do %>
|
14
|
+
end
|
15
|
+
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-domain-mapper-generator
|
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
|
- Miles Georgi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- src/generators/domain_mapper_generator.rb
|
57
57
|
- src/generators/gemfile_generator.rb
|
58
58
|
- src/write_domain_mapper_to_disk.rb
|
59
|
+
- templates/src/domain_mapper.rb.erb
|
59
60
|
homepage: https://github.com/foobara/generators-domain-mapper-generator
|
60
61
|
licenses:
|
61
62
|
- Apache-2.0
|