hot-glue 0.7.6.2 → 0.7.7

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: e4c20dc09274de33eb753d4cc6ee11132fb952b13bb028954fac6e9242566a42
4
- data.tar.gz: ada32642bb79c780fcb8df770e1930810ad57cea7e2f3128794a7639ab529eb9
3
+ metadata.gz: 19812e0ed05939741ec5f22550345a5d94a07ad32f3925540bd6bb2ec76e0f6f
4
+ data.tar.gz: d2fba980427bd8c8961a6fb475b063305956d8a99ac428ffc28317291b961209
5
5
  SHA512:
6
- metadata.gz: 7532d4d34d7663f9a9f8dd533ed2c25a5a9fab65585e9a9e12712ad15a41758988c5e48ca28984de5e37e40b4d5b8fa7dd3bb28c6a200a14b0b818edcb1bf5f2
7
- data.tar.gz: b181c632a79f67c15192f89668668e8036bf212f2463fcf4a9596fd84dad3bdd05c0245a60c2694d884d0777d4bc91777c0212f6090ed04f669ceb49dcd9a8ab
6
+ metadata.gz: 2a6c67fe502cce091097b4e72f1806a23b9126eea7c1498a8ba5f38aec5a581ddb59fd54543e4ba00257f70bfaa987aaf9ae07c9f80de093cccd0a3584dd9133
7
+ data.tar.gz: 3143a9b97b4338421c2bc4b910afd2f18cddb96178e8e27e6beaf4189d705d54222aa6335c425b7beb2ea2910557979135d84919c410ad63d3c357d3c5e06885
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hot-glue (0.7.6.1)
4
+ hot-glue (0.7.6.2)
5
5
  ffaker (~> 2.16)
6
6
  rails (> 5.1)
7
7
 
@@ -129,7 +129,7 @@ GEM
129
129
  mini_mime (1.1.2)
130
130
  mini_portile2 (2.8.4)
131
131
  minitest (5.16.3)
132
- net-imap (0.6.3)
132
+ net-imap (0.6.4)
133
133
  date
134
134
  net-protocol
135
135
  net-pop (0.1.2)
@@ -12,7 +12,8 @@ module HotGlue
12
12
  :search, :search_fields, :search_query_fields, :search_position,
13
13
  :form_path, :layout_object, :search_clear_button, :search_autosearch,
14
14
  :stimmify, :stimmify_camel, :hidden_create, :hidden_update, :invisible_create,
15
- :invisible_update, :plural, :phantom_search, :pagination_style
15
+ :invisible_update, :plural, :phantom_search, :pagination_style,
16
+ :namespace, :controller_build_folder
16
17
 
17
18
 
18
19
  def initialize(singular:, singular_class: ,
@@ -26,7 +27,7 @@ module HotGlue
26
27
  search_clear_button:, search_autosearch:, layout_object:,
27
28
  form_path: , stimmify: , stimmify_camel:, hidden_create:, hidden_update: ,
28
29
  invisible_create:, invisible_update: , plural: , phantom_search:,
29
- pagination_style: )
30
+ pagination_style:, namespace: nil, controller_build_folder: nil )
30
31
 
31
32
 
32
33
  @form_path = form_path
@@ -68,6 +69,12 @@ module HotGlue
68
69
  @related_sets = related_sets
69
70
  @phantom_search = phantom_search
70
71
  @pagination_style = pagination_style
72
+ @namespace = namespace
73
+ @controller_build_folder = controller_build_folder
74
+ end
75
+
76
+ def pickup_partial_path(partial_name)
77
+ "#{@namespace + "/" if @namespace}#{@controller_build_folder}/#{partial_name}"
71
78
  end
72
79
 
73
80
  def add_spaces_each_line(text, num_spaces)
@@ -204,7 +211,7 @@ module HotGlue
204
211
  col = full_col.to_s.gsub("=", "").gsub("-", "").to_sym
205
212
 
206
213
  if col.to_s.starts_with?("**") && layout_object[:columns][:fields][col][:form]
207
- the_output = "<%= render partial: '#{col.to_s.gsub!("**","")}', locals: {#{singular}: #{singular} } %>"
214
+ the_output = "<%= render partial: '#{pickup_partial_path(col.to_s.gsub!("**",""))}', locals: {#{singular}: #{singular} } %>"
208
215
  elsif ! layout_object[:columns][:fields][col][:form]
209
216
  # omit from show action
210
217
  else
@@ -327,7 +334,7 @@ module HotGlue
327
334
  raise "column #{col} not found on the layout data"
328
335
  end
329
336
  if col.starts_with?("**") && layout_object[:columns][:fields][col][:show]
330
- the_output = "<%= render partial: '#{col.to_s.gsub!("**","")}', locals: {#{singular}: #{singular} } %>"
337
+ the_output = "<%= render partial: '#{pickup_partial_path(col.to_s.gsub!("**",""))}', locals: {#{singular}: #{singular} } %>"
331
338
  elsif ! layout_object[:columns][:fields][col][:show]
332
339
  the_output = ""
333
340
  elsif eval("#{singular_class}.columns_hash['#{col}']").nil? && !attachments.keys.include?(col) && !related_sets.include?(col)
@@ -926,7 +926,9 @@ class HotGlue::ScaffoldGenerator < Erb::Generators::ScaffoldGenerator
926
926
  invisible_create: @invisible_create,
927
927
  invisible_update: @invisible_update,
928
928
  phantom_search: @phantom_search,
929
- pagination_style: @pagination_style
929
+ pagination_style: @pagination_style,
930
+ namespace: @namespace,
931
+ controller_build_folder: @controller_build_folder
930
932
  )
931
933
  elsif @markup == "slim"
932
934
  raise(HotGlue::Error, "SLIM IS NOT IMPLEMENTED")
@@ -1,5 +1,5 @@
1
1
  module HotGlue
2
2
  class Version
3
- CURRENT = '0.7.6.2'
3
+ CURRENT = '0.7.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hot-glue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6.2
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Fleetwood-Boldt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-08 00:00:00.000000000 Z
11
+ date: 2026-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails