card 1.16.9 → 1.16.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb +3 -1
  4. data/db/seed/new/card_actions.yml +389 -557
  5. data/db/seed/new/card_acts.yml +595 -1
  6. data/db/seed/new/card_changes.yml +22595 -7526
  7. data/db/seed/new/card_references.yml +379 -407
  8. data/db/seed/new/cards.yml +1694 -2072
  9. data/db/seed/test/fixtures/card_actions.yml +966 -1102
  10. data/db/seed/test/fixtures/card_acts.yml +1017 -399
  11. data/db/seed/test/fixtures/card_changes.yml +24750 -9681
  12. data/db/seed/test/fixtures/card_references.yml +603 -631
  13. data/db/seed/test/fixtures/cards.yml +2293 -2671
  14. data/lib/card/set.rb +1 -1
  15. data/mod/01_core/set/all/content.rb +14 -12
  16. data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +1 -1
  17. data/mod/05_standard/set/abstract/attachment.rb +9 -9
  18. data/mod/05_standard/set/all/rich_html/content.rb +115 -103
  19. data/mod/05_standard/set/type/file.rb +1 -1
  20. data/tmpsets/set/mod001-01_core/all/active_card.rb +2 -1
  21. data/tmpsets/set/mod001-01_core/all/collection.rb +3 -3
  22. data/tmpsets/set/mod001-01_core/all/content.rb +2 -1
  23. data/tmpsets/set/mod001-01_core/all/erb.rb +2 -1
  24. data/tmpsets/set/mod001-01_core/all/fetch.rb +169 -93
  25. data/tmpsets/set/mod001-01_core/all/haml.rb +2 -1
  26. data/tmpsets/set/mod001-01_core/all/initialize.rb +11 -23
  27. data/tmpsets/set/mod001-01_core/all/name.rb +130 -80
  28. data/tmpsets/set/mod001-01_core/all/pattern.rb +2 -1
  29. data/tmpsets/set/mod001-01_core/all/permissions.rb +2 -1
  30. data/tmpsets/set/mod001-01_core/all/phases.rb +95 -96
  31. data/tmpsets/set/mod001-01_core/all/references.rb +2 -1
  32. data/tmpsets/set/mod001-01_core/all/rules.rb +2 -1
  33. data/tmpsets/set/mod001-01_core/all/states.rb +2 -1
  34. data/tmpsets/set/mod001-01_core/all/templating.rb +2 -1
  35. data/tmpsets/set/mod001-01_core/all/tracked_attributes.rb +85 -60
  36. data/tmpsets/set/mod001-01_core/all/trash.rb +16 -13
  37. data/tmpsets/set/mod001-01_core/all/type.rb +5 -25
  38. data/tmpsets/set/mod001-01_core/all/utils.rb +2 -1
  39. data/tmpsets/set/mod001-01_core/all/view_cache.rb +2 -1
  40. data/tmpsets/set/mod002-01_history/all/actions.rb +2 -1
  41. data/tmpsets/set/mod002-01_history/all/content_history.rb +7 -4
  42. data/tmpsets/set/mod002-01_history/all/history.rb +119 -83
  43. data/tmpsets/set/mod003-02_basic_types/all/all_css.rb +2 -1
  44. data/tmpsets/set/mod003-02_basic_types/all/all_csv.rb +2 -1
  45. data/tmpsets/set/mod003-02_basic_types/all/all_js.rb +2 -1
  46. data/tmpsets/set/mod003-02_basic_types/all/base.rb +52 -50
  47. data/tmpsets/set/mod003-02_basic_types/all/file.rb +2 -1
  48. data/tmpsets/set/mod003-02_basic_types/all/json.rb +2 -1
  49. data/tmpsets/set/mod003-02_basic_types/all/rss.rb +2 -1
  50. data/tmpsets/set/mod003-02_basic_types/all/text.rb +2 -1
  51. data/tmpsets/set/mod003-02_basic_types/type/html.rb +2 -1
  52. data/tmpsets/set/mod003-02_basic_types/type/plain_text.rb +2 -1
  53. data/tmpsets/set/mod003-02_basic_types/type/pointer.rb +10 -1
  54. data/tmpsets/set/mod004-03_machines/right/machine_input.rb +2 -1
  55. data/tmpsets/set/mod004-03_machines/right/machine_output.rb +2 -1
  56. data/tmpsets/set/mod004-03_machines/self/script_ace.rb +2 -1
  57. data/tmpsets/set/mod004-03_machines/self/script_card_menu.rb +2 -1
  58. data/tmpsets/set/mod004-03_machines/self/script_html5shiv_printshiv.rb +2 -1
  59. data/tmpsets/set/mod004-03_machines/self/script_jquery.rb +2 -1
  60. data/tmpsets/set/mod004-03_machines/self/script_jquery_helper.rb +2 -1
  61. data/tmpsets/set/mod004-03_machines/self/script_slot.rb +2 -1
  62. data/tmpsets/set/mod004-03_machines/self/script_tinymce.rb +2 -1
  63. data/tmpsets/set/mod004-03_machines/self/style_bootstrap_compatible.rb +2 -1
  64. data/tmpsets/set/mod004-03_machines/self/style_cards.rb +2 -1
  65. data/tmpsets/set/mod004-03_machines/self/style_jquery_ui_smoothness.rb +2 -1
  66. data/tmpsets/set/mod004-03_machines/type/coffee_script.rb +2 -1
  67. data/tmpsets/set/mod004-03_machines/type/css.rb +2 -1
  68. data/tmpsets/set/mod004-03_machines/type/java_script.rb +2 -1
  69. data/tmpsets/set/mod004-03_machines/type/scss.rb +2 -1
  70. data/tmpsets/set/mod004-03_machines/type/skin.rb +2 -1
  71. data/tmpsets/set/mod005-04_settings/abstract/permission.rb +2 -1
  72. data/tmpsets/set/mod005-04_settings/right/add_help.rb +2 -1
  73. data/tmpsets/set/mod005-04_settings/right/comment.rb +2 -1
  74. data/tmpsets/set/mod005-04_settings/right/create.rb +2 -1
  75. data/tmpsets/set/mod005-04_settings/right/default.rb +2 -1
  76. data/tmpsets/set/mod005-04_settings/right/delete.rb +2 -1
  77. data/tmpsets/set/mod005-04_settings/right/help.rb +2 -1
  78. data/tmpsets/set/mod005-04_settings/right/read.rb +2 -1
  79. data/tmpsets/set/mod005-04_settings/right/script.rb +2 -1
  80. data/tmpsets/set/mod005-04_settings/right/structure.rb +2 -1
  81. data/tmpsets/set/mod005-04_settings/right/style.rb +2 -1
  82. data/tmpsets/set/mod005-04_settings/right/update.rb +2 -1
  83. data/tmpsets/set/mod005-04_settings/self/accountable.rb +2 -1
  84. data/tmpsets/set/mod005-04_settings/self/add_help.rb +2 -1
  85. data/tmpsets/set/mod005-04_settings/self/autoname.rb +2 -1
  86. data/tmpsets/set/mod005-04_settings/self/captcha.rb +2 -1
  87. data/tmpsets/set/mod005-04_settings/self/create.rb +2 -1
  88. data/tmpsets/set/mod005-04_settings/self/default.rb +2 -1
  89. data/tmpsets/set/mod005-04_settings/self/delete.rb +2 -1
  90. data/tmpsets/set/mod005-04_settings/self/help.rb +2 -1
  91. data/tmpsets/set/mod005-04_settings/self/input.rb +2 -1
  92. data/tmpsets/set/mod005-04_settings/self/layout.rb +2 -1
  93. data/tmpsets/set/mod005-04_settings/self/on_create.rb +2 -1
  94. data/tmpsets/set/mod005-04_settings/self/on_delete.rb +2 -1
  95. data/tmpsets/set/mod005-04_settings/self/on_update.rb +2 -1
  96. data/tmpsets/set/mod005-04_settings/self/options.rb +2 -1
  97. data/tmpsets/set/mod005-04_settings/self/options_label.rb +2 -1
  98. data/tmpsets/set/mod005-04_settings/self/read.rb +2 -1
  99. data/tmpsets/set/mod005-04_settings/self/recent_settings.rb +2 -1
  100. data/tmpsets/set/mod005-04_settings/self/script.rb +2 -1
  101. data/tmpsets/set/mod005-04_settings/self/structure.rb +2 -1
  102. data/tmpsets/set/mod005-04_settings/self/style.rb +2 -1
  103. data/tmpsets/set/mod005-04_settings/self/table_of_contents.rb +2 -1
  104. data/tmpsets/set/mod005-04_settings/self/thanks.rb +2 -1
  105. data/tmpsets/set/mod005-04_settings/self/update.rb +2 -1
  106. data/tmpsets/set/mod005-04_settings/type/setting.rb +2 -1
  107. data/tmpsets/set/mod006-05_email/all/email_html.rb +2 -1
  108. data/tmpsets/set/mod006-05_email/all/email_text.rb +2 -1
  109. data/tmpsets/set/mod006-05_email/all/follow.rb +2 -1
  110. data/tmpsets/set/mod006-05_email/all/notify.rb +2 -1
  111. data/tmpsets/set/mod006-05_email/all/observer.rb +2 -1
  112. data/tmpsets/set/mod006-05_email/right/bcc.rb +2 -1
  113. data/tmpsets/set/mod006-05_email/right/cc.rb +2 -1
  114. data/tmpsets/set/mod006-05_email/right/follow.rb +2 -1
  115. data/tmpsets/set/mod006-05_email/right/follow_fields.rb +2 -1
  116. data/tmpsets/set/mod006-05_email/right/followers.rb +7 -6
  117. data/tmpsets/set/mod006-05_email/right/following.rb +3 -2
  118. data/tmpsets/set/mod006-05_email/right/from.rb +2 -1
  119. data/tmpsets/set/mod006-05_email/right/html_message.rb +2 -1
  120. data/tmpsets/set/mod006-05_email/right/to.rb +2 -1
  121. data/tmpsets/set/mod006-05_email/self/always.rb +2 -1
  122. data/tmpsets/set/mod006-05_email/self/created.rb +2 -1
  123. data/tmpsets/set/mod006-05_email/self/edited.rb +2 -1
  124. data/tmpsets/set/mod006-05_email/self/follow.rb +2 -1
  125. data/tmpsets/set/mod006-05_email/self/follow_defaults.rb +2 -1
  126. data/tmpsets/set/mod006-05_email/self/never.rb +2 -1
  127. data/tmpsets/set/mod006-05_email/type/email_template.rb +2 -1
  128. data/tmpsets/set/mod006-05_email/type_plus_right/user/follow.rb +3 -2
  129. data/tmpsets/set/mod007-05_standard/abstract/attachment.rb +22 -9
  130. data/tmpsets/set/mod007-05_standard/all/account.rb +2 -1
  131. data/tmpsets/set/mod007-05_standard/all/comment.rb +2 -1
  132. data/tmpsets/set/mod007-05_standard/all/error.rb +2 -1
  133. data/tmpsets/set/mod007-05_standard/all/event_viz.rb +2 -1
  134. data/tmpsets/set/mod007-05_standard/all/links.rb +2 -1
  135. data/tmpsets/set/mod007-05_standard/all/rich_html/content.rb +3 -2
  136. data/tmpsets/set/mod007-05_standard/all/rich_html/editing.rb +2 -1
  137. data/tmpsets/set/mod007-05_standard/all/rich_html/form.rb +23 -12
  138. data/tmpsets/set/mod007-05_standard/all/rich_html/header.rb +2 -1
  139. data/tmpsets/set/mod007-05_standard/all/rich_html/menu.rb +3 -2
  140. data/tmpsets/set/mod007-05_standard/all/rich_html/modal.rb +2 -1
  141. data/tmpsets/set/mod007-05_standard/all/rich_html/toolbar.rb +2 -1
  142. data/tmpsets/set/mod007-05_standard/all/rich_html/wrapper.rb +2 -1
  143. data/tmpsets/set/mod007-05_standard/right/account.rb +7 -6
  144. data/tmpsets/set/mod007-05_standard/right/discussion.rb +2 -1
  145. data/tmpsets/set/mod007-05_standard/right/email.rb +2 -1
  146. data/tmpsets/set/mod007-05_standard/right/password.rb +2 -1
  147. data/tmpsets/set/mod007-05_standard/right/salt.rb +2 -1
  148. data/tmpsets/set/mod007-05_standard/right/stats.rb +2 -1
  149. data/tmpsets/set/mod007-05_standard/right/status.rb +2 -1
  150. data/tmpsets/set/mod007-05_standard/right/token.rb +2 -1
  151. data/tmpsets/set/mod007-05_standard/right/when_created.rb +2 -1
  152. data/tmpsets/set/mod007-05_standard/right/when_last_edited.rb +2 -1
  153. data/tmpsets/set/mod007-05_standard/rstar/rules.rb +2 -1
  154. data/tmpsets/set/mod007-05_standard/self/account_links.rb +2 -1
  155. data/tmpsets/set/mod007-05_standard/self/alerts.rb +2 -1
  156. data/tmpsets/set/mod007-05_standard/self/all.rb +2 -1
  157. data/tmpsets/set/mod007-05_standard/self/foot.rb +2 -1
  158. data/tmpsets/set/mod007-05_standard/self/head.rb +2 -2
  159. data/tmpsets/set/mod007-05_standard/self/navbox.rb +2 -1
  160. data/tmpsets/set/mod007-05_standard/self/now.rb +2 -1
  161. data/tmpsets/set/mod007-05_standard/self/recent.rb +2 -1
  162. data/tmpsets/set/mod007-05_standard/self/search.rb +2 -1
  163. data/tmpsets/set/mod007-05_standard/self/signin.rb +45 -36
  164. data/tmpsets/set/mod007-05_standard/self/stats.rb +2 -1
  165. data/tmpsets/set/mod007-05_standard/self/version.rb +2 -1
  166. data/tmpsets/set/mod007-05_standard/type/basic.rb +2 -1
  167. data/tmpsets/set/mod007-05_standard/type/cardtype.rb +2 -1
  168. data/tmpsets/set/mod007-05_standard/type/date.rb +2 -1
  169. data/tmpsets/set/mod007-05_standard/type/file.rb +11 -3
  170. data/tmpsets/set/mod007-05_standard/type/image.rb +2 -1
  171. data/tmpsets/set/mod007-05_standard/type/layout_type.rb +2 -1
  172. data/tmpsets/set/mod007-05_standard/type/number.rb +2 -1
  173. data/tmpsets/set/mod007-05_standard/type/phrase.rb +2 -1
  174. data/tmpsets/set/mod007-05_standard/type/search_type.rb +70 -64
  175. data/tmpsets/set/mod007-05_standard/type/session.rb +2 -1
  176. data/tmpsets/set/mod007-05_standard/type/set.rb +2 -1
  177. data/tmpsets/set/mod007-05_standard/type/signup.rb +96 -64
  178. data/tmpsets/set/mod007-05_standard/type/toggle.rb +2 -1
  179. data/tmpsets/set/mod007-05_standard/type/uri.rb +2 -1
  180. data/tmpsets/set/mod007-05_standard/type/user.rb +50 -40
  181. data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/form.rb +2 -1
  182. data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/helper.rb +2 -1
  183. data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/wrapper.rb +2 -1
  184. data/tmpsets/set/mod008-06_bootstrap/all/rich_bootstrap.rb +2 -1
  185. data/tmpsets/set/mod008-06_bootstrap/self/bootstrap_cards.rb +2 -1
  186. data/tmpsets/set/mod008-06_bootstrap/self/bootstrap_js.rb +2 -1
  187. data/tmpsets/set/mod008-06_bootstrap/self/bootswatch_shared.rb +2 -1
  188. data/tmpsets/set/mod008-06_bootstrap/self/smartmenu_css.rb +2 -1
  189. data/tmpsets/set/mod008-06_bootstrap/self/smartmenu_js.rb +2 -1
  190. metadata +2 -2
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module AllCss; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_css.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module AllCss; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_css.rb ~~~~~~~~~~~
3
4
 
4
5
  format :css do
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module AllCsv; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_csv.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module AllCsv; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_csv.rb ~~~~~~~~~~~
3
4
  require 'csv'
4
5
 
5
6
  format :csv do
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module AllJs; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_js.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module AllJs; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_js.rb ~~~~~~~~~~~
3
4
 
4
5
  format :js do
5
6
  view :include_tag do |args|
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module Base; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/base.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module Base; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/base.rb ~~~~~~~~~~~
3
4
 
4
5
  format do
5
6
  def show view, args
@@ -9,38 +10,37 @@ format do
9
10
 
10
11
  # NAME VIEWS
11
12
 
12
- view :name, closed: true, perms: :none do |args| card.name end
13
- view :key, closed: true, perms: :none do |args| card.key end
14
- view :title, closed: true, perms: :none do |args| args[:title] || card.name end
15
-
16
- view :linkname, closed: true, perms: :none do |args| card.cardname.url_key end
17
- view :url, closed: true, perms: :none do |args| card_url _render_linkname end
18
- view :url_link, closed: true, perms: :none do |args| web_link card_url(_render_linkname) end
13
+ simple_args = { closed: true, perms: :none }
14
+ view(:name, simple_args) { card.name }
15
+ view(:key, simple_args) { card.key }
16
+ view(:title, simple_args) { |args| args[:title] || card.name }
17
+ view(:linkname, simple_args) { card.cardname.url_key }
18
+ view(:url, simple_args) { card_url _render_linkname }
19
+ view(:url_link, simple_args) { web_link card_url(_render_linkname) }
19
20
 
20
21
  view :link, closed: true, perms: :none do |args|
21
- card_link( card.name,
22
- text: showname( args[:title] ),
22
+ card_link(
23
+ card.name,
24
+ text: showname(args[:title]),
23
25
  known: card.known?,
24
26
  path_opts: { type: args[:type] }
25
27
  )
26
28
  end
27
29
 
28
- view :codename, closed: true do |args| card.codename.to_s end
29
- view :id, closed: true do |args| card.id end
30
- view :type, closed: true do |args| card.type_name end
31
-
30
+ view(:codename, closed: true) { card.codename.to_s }
31
+ view(:id, closed: true) { card.id }
32
+ view(:type, closed: true) { card.type_name }
32
33
 
33
34
  # DATE VIEWS
34
35
 
35
- view :created_at, closed: true do |args| time_ago_in_words card.created_at end
36
- view :updated_at, closed: true do |args| time_ago_in_words card.updated_at end
37
- view :acted_at, closed: true do |args| time_ago_in_words card.acted_at end
38
-
36
+ view(:created_at, closed: true) { time_ago_in_words card.created_at }
37
+ view(:updated_at, closed: true) { time_ago_in_words card.updated_at }
38
+ view(:acted_at, closed: true) { time_ago_in_words card.acted_at }
39
39
 
40
40
  # CONTENT VIEWS
41
41
 
42
42
  view :raw do |args|
43
- scard = args[:structure] ? Card[ args[:structure] ] : card
43
+ scard = args[:structure] ? Card[args[:structure]] : card
44
44
  scard ? scard.raw_content : _render_blank
45
45
  end
46
46
 
@@ -57,32 +57,30 @@ format do
57
57
  end
58
58
 
59
59
  view :closed_content, closed: true do |args|
60
- Card::Content.truncatewords_with_closing_tags _render_core(args) #{ yield }
60
+ Card::Content.truncatewords_with_closing_tags _render_core(args)
61
61
  end
62
62
 
63
- view :blank, closed: true, perms: :none do |args|
63
+ view :blank, closed: true, perms: :none do
64
64
  ''
65
65
  end
66
66
 
67
-
68
- # note: content and open_content may look like they should be aliased to core, but it's important that they render
69
- # core explicitly so that core view overrides work. the titled and labeled views below, however, are not intended
70
- # for frequent override, so this shortcut is fine.
71
-
67
+ # note: content and open_content may look like they should be aliased to
68
+ # core, but it's important that they render core explicitly so that core view
69
+ # overrides work. the titled and labeled views below, however, are not
70
+ # intended for frequent override, so this shortcut is fine.
72
71
 
73
72
  # NAME + CONTENT VIEWS
74
73
 
75
74
  view :titled do |args|
76
- "#{ card.name }\n\n#{ _render_core args }"
75
+ "#{card.name}\n\n#{_render_core args}"
77
76
  end
78
77
  view :open, :titled
79
78
 
80
79
  view :labeled do |args|
81
- "#{ card.name }: #{ _render_closed_content args }"
80
+ "#{card.name}: #{_render_closed_content args}"
82
81
  end
83
82
  view :closed, :labeled
84
83
 
85
-
86
84
  # SPECIAL VIEWS
87
85
 
88
86
  view :array do |args|
@@ -91,36 +89,40 @@ format do
91
89
  end.inspect
92
90
  end
93
91
 
94
-
95
-
96
- #none of the below belongs here!!
97
-
92
+ # none of the below belongs here!!
98
93
 
99
94
  view :template_rule, tags: :unknown_ok do |args|
100
- #FIXME - relativity should be handled in smartname
95
+ # FIXME: - relativity should be handled in smartname
96
+ return '' unless args[:inc_name]
97
+ name = args[:inc_name].to_name
98
+ stripped_name = name.stripped.to_name
101
99
 
102
- name = args[:inc_name] or return ''
103
- regexp = /\b_(left|right|whole|self|user|main|\d+|L*R?)\b/
104
- absolute = name !~ regexp && name !~ /^\+/
105
-
106
- tname = name.gsub regexp, ''
107
- if tname !~ /^\+/ and !absolute
100
+ if name.relative? && !stripped_name.starts_with_joint?
101
+ # not a simple relative name; just return the original syntax
108
102
  "{{#{args[:inc_syntax]}}}"
109
103
  else
110
- set_name = if absolute # find the most appropriate set to use as prototype for inclusion
111
- "#{name}+#{Card[:self].name}"
112
- else
113
- tmpl_set_name = parent.card.cardname.trunk_name
114
- if tmpl_set_class_name = tmpl_set_name.tag_name and Card[tmpl_set_class_name].codename == 'type'
115
- "#{tmpl_set_name.left_name}#{name}+#{Card[:type_plus_right].name}" # *type plus right
104
+ set_name =
105
+ case
106
+ when name.absolute?
107
+ "#{name}+#{Card[:self].name}" # *self set
108
+ when type = on_type_set
109
+ "#{type}#{name}+#{Card[:type_plus_right].name}" # *type plus right
116
110
  else
117
- "#{tname.gsub /^\+/,''}+#{Card[:right].name}" # *right
111
+ "#{stripped_name.gsub(/^\+/, '')}+#{Card[:right].name}" # *right
118
112
  end
119
- end
120
-
121
- subformat( Card.fetch(set_name) ).render_template_link args
113
+ subformat(Card.fetch set_name).render_template_link args
122
114
  end
123
115
  end
116
+
117
+ def on_type_set
118
+ return unless
119
+ (tmpl_set_name = parent.card.cardname.trunk_name) &&
120
+ (tmpl_set_class_name = tmpl_set_name.tag_name) &&
121
+ (tmpl_set_class_card = Card[tmpl_set_class_name]) &&
122
+ (tmpl_set_class_card.codename == 'type')
123
+
124
+ tmpl_set_name.left_name
125
+ end
124
126
  end
125
127
 
126
128
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module File; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/file.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module File; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/file.rb ~~~~~~~~~~~
3
4
  format :file do
4
5
 
5
6
  view :core do |args|
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module Json; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/json.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module Json; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/json.rb ~~~~~~~~~~~
3
4
 
4
5
  format :json do
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module Rss; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/rss.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module Rss; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/rss.rb ~~~~~~~~~~~
3
4
 
4
5
 
5
6
  format :rss do
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module All; module Text; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/text.rb ~~~~~~~~~~~
2
+ class Card; module Set; module All; module Text; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/text.rb ~~~~~~~~~~~
3
4
 
4
5
  format :text do
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module Html; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/html.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module Html; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/html.rb ~~~~~~~~~~~
3
4
  def clean_html?
4
5
  false
5
6
  end
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module PlainText; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/plain_text.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module PlainText; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/plain_text.rb ~~~~~~~~~~~
3
4
  format :html do
4
5
 
5
6
  view :editor do |args|
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module Pointer; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/pointer.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module Pointer; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/pointer.rb ~~~~~~~~~~~
3
4
 
4
5
  event :add_and_drop_items, before: :approve, on: :save do
5
6
  self.add_item Env.params['add_item'] if Env.params['add_item']
@@ -220,6 +221,14 @@ format :data do
220
221
  end
221
222
  end
222
223
 
224
+ format :rss do
225
+ def raw_feed_items args
226
+ @raw_feed_items ||= begin
227
+ card.item_cards
228
+ end
229
+ end
230
+ end
231
+
223
232
  # while a card's card type and content are updated in the same request,
224
233
  # the new module will override the old module's events and functions.
225
234
  # this event is only on pointer card. Other type cards do not have this event,
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Right; module MachineInput; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_input.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Right; module MachineInput; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_input.rb ~~~~~~~~~~~
3
4
  def followable?
4
5
  false
5
6
  end
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Right; module MachineOutput; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_output.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Right; module MachineOutput; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_output.rb ~~~~~~~~~~~
3
4
  def followable?
4
5
  false
5
6
  end
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module ScriptAce; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_ace.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module ScriptAce; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_ace.rb ~~~~~~~~~~~
3
4
 
4
5
  view :raw do |args|
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module ScriptCardMenu; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_card_menu.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module ScriptCardMenu; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_card_menu.rb ~~~~~~~~~~~
3
4
  view :raw do |args|
4
5
 
5
6
  Rails.logger.info "reading file: #{Cardio.gem_root}/mod/03_machines/lib/javascript/#{card.codename}.js.coffee"
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module ScriptHtml5shivPrintshiv; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_html5shiv_printshiv.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module ScriptHtml5shivPrintshiv; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_html5shiv_printshiv.rb ~~~~~~~~~~~
3
4
  format { include ScriptAce::Format }
4
5
  format(:html) { include ScriptAce::HtmlFormat }
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module ScriptJquery; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_jquery.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module ScriptJquery; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_jquery.rb ~~~~~~~~~~~
3
4
  format { include ScriptAce::Format }
4
5
  format(:html) { include ScriptAce::HtmlFormat }
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module ScriptJqueryHelper; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_jquery_helper.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module ScriptJqueryHelper; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_jquery_helper.rb ~~~~~~~~~~~
3
4
 
4
5
  view :raw do |args|
5
6
  # jquery.ui.all must be after jquery.mobile to override dialog weirdness *
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module ScriptSlot; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_slot.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module ScriptSlot; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_slot.rb ~~~~~~~~~~~
3
4
  view :raw do |args|
4
5
  [ "wagn_mod.js.coffee", "wagn.js.coffee" ].map do |name|
5
6
  File.read "#{Cardio.gem_root}/mod/03_machines/lib/javascript/#{name}"
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module ScriptTinymce; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_tinymce.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module ScriptTinymce; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_tinymce.rb ~~~~~~~~~~~
3
4
  format { include ScriptAce::Format }
4
5
  format(:html) { include ScriptAce::HtmlFormat }
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module StyleBootstrapCompatible; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_bootstrap_compatible.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module StyleBootstrapCompatible; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_bootstrap_compatible.rb ~~~~~~~~~~~
3
4
  view :raw do |args|
4
5
  File.read "#{Cardio.gem_root}/mod/03_machines/lib/stylesheets/#{card.codename}.css"
5
6
  end
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module StyleCards; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_cards.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module StyleCards; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_cards.rb ~~~~~~~~~~~
3
4
 
4
5
  view :raw do |args|
5
6
  File.read "#{Cardio.gem_root}/mod/03_machines/lib/stylesheets/style_cards.scss"
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Self; module StyleJqueryUiSmoothness; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_jquery_ui_smoothness.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Self; module StyleJqueryUiSmoothness; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_jquery_ui_smoothness.rb ~~~~~~~~~~~
3
4
  format { include StyleBootstrapCompatible::Format }
4
5
  format(:html) { include ScriptAce::HtmlFormat }
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module CoffeeScript; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/coffee_script.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module CoffeeScript; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/coffee_script.rb ~~~~~~~~~~~
3
4
  # -*- encoding : utf-8 -*-
4
5
  require 'coffee-script'
5
6
  require 'uglifier'
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module Css; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/css.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module Css; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/css.rb ~~~~~~~~~~~
3
4
  # -*- encoding : utf-8 -*-
4
5
  require 'sass'
5
6
  include Machine
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module JavaScript; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/java_script.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module JavaScript; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/java_script.rb ~~~~~~~~~~~
3
4
  # -*- encoding : utf-8 -*-
4
5
  require 'uglifier'
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module Scss; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/scss.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module Scss; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/scss.rb ~~~~~~~~~~~
3
4
  include Type::Css
4
5
 
5
6
  def diff_args
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Type; module Skin; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/skin.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Type; module Skin; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/skin.rb ~~~~~~~~~~~
3
4
  include Machine
4
5
  include MachineInput
5
6
 
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Abstract; module Permission; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/abstract/permission.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Abstract; module Permission; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/abstract/permission.rb ~~~~~~~~~~~
3
4
  def standardize_items
4
5
  # noop to override default behavior, which wouldn't let '_left' through and would therefore break
5
6
  end
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Right; module AddHelp; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/add_help.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Right; module AddHelp; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/add_help.rb ~~~~~~~~~~~
3
4
  format :html do
4
5
  view :core do |args|
5
6
  with_inclusion_mode :template do
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Right; module Comment; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/comment.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Right; module Comment; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/comment.rb ~~~~~~~~~~~
3
4
  include Abstract::Permission
4
5
 
5
6
  format :html do include Abstract::Permission::HtmlFormat end
@@ -1,5 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
- class Card; module Set; module Right; module Create; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/create.rb ~~~~~~~~~~~
2
+ class Card; module Set; module Right; module Create; extend Card::Set
3
+ # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/create.rb ~~~~~~~~~~~
3
4
  include Abstract::Permission
4
5
 
5
6
  format :html do include Abstract::Permission::HtmlFormat end