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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad87f7659590c4159187db82559ccde60f5405549b5848621801054dc9b598f5
4
- data.tar.gz: d21c48d31b7ac1bfcda91d65e42f13ebd45254dbd83959690091c4bea15faa00
3
+ metadata.gz: 74203b3e2589fcb7edee100315185a8f5e48e8115c762a4ce5f167651c25fc6c
4
+ data.tar.gz: bf2fd48760777b02d53b7b762c31c3e0f3e2d44f4c5a55d2572290c6c5ddcd40
5
5
  SHA512:
6
- metadata.gz: 5efaea382b23fb7dc2886a98ddf87a276dfa5970a555860b8427eab9d7c742db52a5cc45c0c7a44da8da24d4483afea4b30da4a231353072734a4726823d5443
7
- data.tar.gz: d8bd62c3a15ed87c29e4aded229859e422e6db4b6783c130302008da043ad46ef50f75cfb933a1e5d35b8d43ccca05455ec6f87b67a3f4558707d121404656c1
6
+ metadata.gz: 1279d32e62116527ff00ec749d6267500b161986a90fca1c6b0e0aff145776ab2c2215729dba5ac59e17ed51a232fab59eb4580b732221c39b36f70024893550
7
+ data.tar.gz: 11f74a0c949c21205cce182592f49265205806524ea1149ed8d7762c34fa9eec13cccc970815989127759e326cfdb566850401c4fc4e40abab28471bf9474e31
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.2] - 2024-06-22
2
+
3
+ - Include templates in gem
4
+
1
5
  ## [0.0.1] - 2024-06-17
2
6
 
3
7
  - Add Apache-2.0 license
@@ -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.1
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-17 00:00:00.000000000 Z
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