card 1.103.1 → 1.104.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/config/environments/development.rb +4 -2
  4. data/config/environments/production.rb +9 -9
  5. data/config/environments/test.rb +1 -1
  6. data/config/initializers/01_core_extensions/array.rb +4 -1
  7. data/config/initializers/01_core_extensions/object.rb +1 -1
  8. data/config/initializers/02_patches/active_record.rb +16 -17
  9. data/config/locales/de.yml +8 -564
  10. data/config/locales/es.yml +2 -3
  11. data/db/migrate/20110511221913_require_earlier_migrations.rb +1 -1
  12. data/db/migrate/20120105203350_require_1_8_migrations.rb +1 -1
  13. data/db/migrate/20121111025347_require_1_10_migrations.rb +1 -1
  14. data/db/migrate/20211128040849_virtuals_updated_at.rb +11 -0
  15. data/db/migrate_core_cards/20130411191151_renaming_for_menu.rb +0 -1
  16. data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +0 -2
  17. data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +0 -2
  18. data/db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb +1 -3
  19. data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +1 -2
  20. data/db/migrate_core_cards/20190710090209_homepage_tweaks.rb +3 -7
  21. data/db/migrate_core_cards/20190823220018_cleanup_for_decko_1_0.rb +2 -4
  22. data/db/migrate_core_cards/20190902193208_input_type.rb +3 -8
  23. data/db/migrate_core_cards/20190904174403_token_upgrade.rb +1 -1
  24. data/db/migrate_core_cards/data/1.12_stylesheets/traditional.scss +1 -2
  25. data/db/schema.rb +19 -16
  26. data/db/seed/new/card_actions.yml +2615 -3383
  27. data/db/seed/new/card_acts.yml +3 -3
  28. data/db/seed/new/card_references.yml +1588 -1707
  29. data/db/seed/new/cards.yml +5450 -8416
  30. data/db/seed/new/schema_migrations.yml +2 -0
  31. data/db/seed/new/schema_migrations_core_cards.yml +8 -0
  32. data/db/seed/test/fixtures/card_actions.yml +4304 -5144
  33. data/db/seed/test/fixtures/card_acts.yml +780 -840
  34. data/db/seed/test/fixtures/card_changes.yml +110 -110
  35. data/db/seed/test/fixtures/card_references.yml +2908 -2992
  36. data/db/seed/test/fixtures/cards.yml +8775 -11955
  37. data/db/seed/test/fixtures/schema_migrations.yml +2 -0
  38. data/db/seed/test/fixtures/schema_migrations_core_cards.yml +8 -0
  39. data/db/test_seed.rb +2 -5
  40. data/db/version.txt +1 -1
  41. data/db/version_core_cards.txt +1 -1
  42. data/lib/card/auth/current.rb +1 -1
  43. data/lib/card/auth/permissions.rb +37 -35
  44. data/lib/card/content/all.rb +3 -3
  45. data/lib/card/content/chunk.rb +1 -1
  46. data/lib/card/content/diff/summary.rb +14 -18
  47. data/lib/card/content.rb +9 -1
  48. data/lib/card/director/act_direction.rb +6 -6
  49. data/lib/card/director/card_methods.rb +0 -1
  50. data/lib/card/director/phases.rb +1 -0
  51. data/lib/card/director/stages.rb +2 -0
  52. data/lib/card/director.rb +1 -0
  53. data/lib/card/fetch/all.rb +3 -3
  54. data/lib/card/fetch/card_class.rb +5 -11
  55. data/lib/card/fetch/results.rb +8 -8
  56. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card/migration_file.rb +0 -0
  57. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card/ruby_file.rb +0 -0
  58. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card/source_file.rb +0 -0
  59. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card.rb +0 -5
  60. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/haml_card.rb +0 -0
  61. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/output_helper.rb +0 -0
  62. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/script_card.rb +0 -0
  63. data/lib/card/{tasks/card/file_card_creator → file_card_creator}/style_card.rb +0 -0
  64. data/lib/card/{tasks/card/file_card_creator.rb → file_card_creator.rb} +0 -5
  65. data/lib/card/format/content.rb +5 -7
  66. data/lib/card/format/render.rb +10 -10
  67. data/lib/card/format.rb +3 -8
  68. data/lib/card/lexicon.rb +30 -7
  69. data/lib/card/model/save_helper.rb +3 -3
  70. data/lib/card/name/all/descendants.rb +9 -7
  71. data/lib/card/name/all/parts.rb +1 -1
  72. data/lib/card/name/all.rb +4 -3
  73. data/lib/card/name/card_class.rb +2 -1
  74. data/lib/card/name/fields_and_traits.rb +6 -30
  75. data/lib/card/name/name_variants.rb +5 -1
  76. data/lib/card/name.rb +6 -14
  77. data/lib/card/query/abstract_query/tie.rb +2 -3
  78. data/lib/card/query/card_query/normalization.rb +1 -1
  79. data/lib/card/query/sql_statement/order.rb +5 -6
  80. data/lib/card/query/value.rb +10 -7
  81. data/lib/card/reference/all.rb +9 -7
  82. data/lib/card/reference.rb +36 -41
  83. data/lib/card/rule/all.rb +3 -3
  84. data/lib/card/set/advanced_api.rb +5 -0
  85. data/lib/card/set/card_methods.rb +13 -0
  86. data/lib/card/set/event/delayed_event.rb +8 -1
  87. data/lib/card/set/event/skip_and_trigger.rb +8 -0
  88. data/lib/card/set/event.rb +1 -0
  89. data/lib/card/set/format/abstract_format/wrapper.rb +1 -1
  90. data/lib/card/set/format/abstract_format.rb +2 -1
  91. data/lib/card/set/format.rb +2 -3
  92. data/lib/card/set/helpers.rb +68 -0
  93. data/lib/card/set/inheritance.rb +1 -1
  94. data/lib/card/set/pattern/all.rb +20 -10
  95. data/lib/card/set/pattern/base.rb +12 -18
  96. data/lib/card/set/pattern/class_methods.rb +13 -13
  97. data/lib/card/set/pattern.rb +46 -24
  98. data/lib/card/set/registrar.rb +8 -2
  99. data/lib/card/set/trait.rb +16 -1
  100. data/lib/card/set/type.rb +3 -0
  101. data/lib/card/set.rb +14 -7
  102. data/lib/card/subcards/add.rb +1 -3
  103. data/lib/card/subcards/all.rb +30 -56
  104. data/lib/card/view/classy.rb +15 -27
  105. data/lib/card/view/options/voo_api.rb +3 -1
  106. data/lib/card/view/options.rb +7 -5
  107. data/lib/card/view.rb +1 -0
  108. data/lib/card.rb +9 -11
  109. data/lib/cardio/cli.rb +1 -0
  110. data/lib/cardio/commands/custom.rb +60 -0
  111. data/lib/cardio/commands/rake_command/parser.rb +49 -48
  112. data/lib/cardio/commands/rake_command.rb +17 -15
  113. data/lib/cardio/commands/rspec_command.rb +2 -0
  114. data/lib/cardio/commands.rb +69 -69
  115. data/lib/cardio/generators/deck_helper.rb +0 -4
  116. data/lib/cardio/generators.rb +56 -3
  117. data/lib/cardio/migration/deck.rb +0 -0
  118. data/lib/cardio/migration/deck_structure.rb +2 -0
  119. data/lib/cardio/migration/import/import_data/card_content.rb +1 -1
  120. data/lib/cardio/migration/import.rb +2 -2
  121. data/lib/cardio/migration.rb +26 -2
  122. data/lib/cardio/mod/class_methods.rb +112 -0
  123. data/lib/cardio/mod/dirs.rb +15 -11
  124. data/lib/cardio/mod/eat/edibles.rb +92 -0
  125. data/lib/cardio/mod/eat.rb +81 -0
  126. data/lib/cardio/mod/load_strategy/set_tmp_files.rb +10 -4
  127. data/lib/cardio/mod/load_strategy/tmp_files.rb +1 -1
  128. data/lib/cardio/mod/load_strategy.rb +3 -4
  129. data/lib/cardio/mod/loader/set_loader.rb +13 -13
  130. data/lib/cardio/mod/loader.rb +1 -1
  131. data/lib/cardio/mod/modfile_api.rb +5 -0
  132. data/lib/cardio/mod/poop.rb +135 -0
  133. data/lib/cardio/mod.rb +20 -80
  134. data/lib/cardio/railtie.rb +21 -5
  135. data/lib/cardio/schema.rb +11 -10
  136. data/lib/cardio/version.rb +35 -0
  137. data/lib/cardio.rb +4 -0
  138. data/lib/generators/deck/templates/Gemfile.erb +1 -5
  139. data/lib/generators/deck/templates/Rakefile.erb +6 -2
  140. data/lib/generators/deck/templates/rspec.erb +1 -1
  141. data/lib/generators/deck/templates/simplecov.rb.erb +7 -11
  142. data/lib/generators/deck/templates/spec/javascripts/support/decko_jasmine.yml.erb +0 -1
  143. data/lib/generators/mod/USAGE +1 -0
  144. data/lib/{card/tasks → tasks}/card/create.rake +0 -0
  145. data/lib/{card/tasks → tasks}/card/migrate.rake +41 -1
  146. data/lib/{card/tasks → tasks}/card/mod.rake +15 -8
  147. data/lib/tasks/card.rake +65 -0
  148. data/mod/admin/locales/de.yml +4 -0
  149. data/mod/admin/set/all/admin.rb +16 -0
  150. data/mod/admin/set/self/admin.rb +12 -14
  151. data/mod/admin/set/self/admin_info.rb +2 -5
  152. data/mod/core/data/production.yml +7 -0
  153. data/mod/core/data/test.yml +30 -0
  154. data/mod/core/locales/de.yml +28 -0
  155. data/mod/core/locales/en.yml +4 -5
  156. data/mod/core/set/all/assign_attributes.rb +1 -33
  157. data/mod/core/set/all/content.rb +3 -1
  158. data/mod/core/set/all/initialize.rb +1 -4
  159. data/mod/core/set/all/name_events.rb +3 -18
  160. data/mod/core/set/all/reference_events.rb +32 -36
  161. data/mod/core/set/all/subcards.rb +6 -2
  162. data/mod/core/set/all/trash.rb +4 -6
  163. data/mod/core/set/all/type.rb +67 -18
  164. data/mod/core/set/self/version.rb +1 -1
  165. data/mod/core/spec/set/all/name_events_spec.rb +10 -10
  166. data/mod/core/spec/set/all/trash_spec.rb +1 -1
  167. data/mod/core/spec/set/self/trash_spec.rb +1 -1
  168. data/mod/standard/{file → data/files}/favicon/image-icon.png +0 -0
  169. data/mod/standard/{file → data/files}/favicon/image-large.png +0 -0
  170. data/mod/standard/{file → data/files}/favicon/image-medium.png +0 -0
  171. data/mod/standard/{file → data/files}/favicon/image-original.png +0 -0
  172. data/mod/standard/{file → data/files}/favicon/image-small.png +0 -0
  173. data/mod/standard/{file → data/files}/logo/image-original.svg +0 -0
  174. metadata +66 -56
  175. data/db/migrate_core_cards/20150605115802_add_performance_log_card.rb +0 -7
  176. data/lib/card/set/basket.rb +0 -59
  177. data/lib/card/set/code_nest.rb +0 -15
  178. data/lib/card/tasks/card/asset.rake +0 -22
  179. data/lib/card/tasks/card.rake +0 -105
  180. data/lib/card/version.rb +0 -11
  181. data/lib/cardio/commands/USAGE +0 -28
  182. data/lib/cardio/generators/class_methods.rb +0 -35
  183. data/mod/core/spec/set/all/clean_me_spec.rb +0 -258
  184. data/mod/core/spec/set/all/export_spec.rb +0 -71
  185. data/tmpsets/set_pattern/100-all.rb +0 -22
  186. data/tmpsets/set_pattern/101-all_plus.rb +0 -24
  187. data/tmpsets/set_pattern/102-type.rb +0 -40
  188. data/tmpsets/set_pattern/103-star.rb +0 -26
  189. data/tmpsets/set_pattern/104-rstar.rb +0 -28
  190. data/tmpsets/set_pattern/105-rule.rb +0 -28
  191. data/tmpsets/set_pattern/106-right.rb +0 -35
  192. data/tmpsets/set_pattern/107-type_plus_right.rb +0 -43
  193. data/tmpsets/set_pattern/108-self.rb +0 -34
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.103.1
4
+ version: 1.104.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2021-12-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cardname
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.13.1
21
+ version: 0.14.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.13.1
28
+ version: 0.14.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -222,104 +222,118 @@ dependencies:
222
222
  - - "~>"
223
223
  - !ruby/object:Gem::Version
224
224
  version: '1.1'
225
+ - !ruby/object:Gem::Dependency
226
+ name: zeitwerk
227
+ requirement: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - "!="
230
+ - !ruby/object:Gem::Version
231
+ version: 2.5.0
232
+ type: :runtime
233
+ prerelease: false
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ requirements:
236
+ - - "!="
237
+ - !ruby/object:Gem::Version
238
+ version: 2.5.0
225
239
  - !ruby/object:Gem::Dependency
226
240
  name: activerecord
227
241
  requirement: !ruby/object:Gem::Requirement
228
242
  requirements:
229
243
  - - "~>"
230
244
  - !ruby/object:Gem::Version
231
- version: 6.1.3.1
245
+ version: 6.1.4
232
246
  type: :runtime
233
247
  prerelease: false
234
248
  version_requirements: !ruby/object:Gem::Requirement
235
249
  requirements:
236
250
  - - "~>"
237
251
  - !ruby/object:Gem::Version
238
- version: 6.1.3.1
252
+ version: 6.1.4
239
253
  - !ruby/object:Gem::Dependency
240
254
  name: activestorage
241
255
  requirement: !ruby/object:Gem::Requirement
242
256
  requirements:
243
257
  - - "~>"
244
258
  - !ruby/object:Gem::Version
245
- version: 6.1.3.1
259
+ version: 6.1.4
246
260
  type: :runtime
247
261
  prerelease: false
248
262
  version_requirements: !ruby/object:Gem::Requirement
249
263
  requirements:
250
264
  - - "~>"
251
265
  - !ruby/object:Gem::Version
252
- version: 6.1.3.1
266
+ version: 6.1.4
253
267
  - !ruby/object:Gem::Dependency
254
268
  name: actionview
255
269
  requirement: !ruby/object:Gem::Requirement
256
270
  requirements:
257
271
  - - "~>"
258
272
  - !ruby/object:Gem::Version
259
- version: 6.1.3.1
273
+ version: 6.1.4
260
274
  type: :runtime
261
275
  prerelease: false
262
276
  version_requirements: !ruby/object:Gem::Requirement
263
277
  requirements:
264
278
  - - "~>"
265
279
  - !ruby/object:Gem::Version
266
- version: 6.1.3.1
280
+ version: 6.1.4
267
281
  - !ruby/object:Gem::Dependency
268
282
  name: actionmailer
269
283
  requirement: !ruby/object:Gem::Requirement
270
284
  requirements:
271
285
  - - "~>"
272
286
  - !ruby/object:Gem::Version
273
- version: 6.1.3.1
287
+ version: 6.1.4
274
288
  type: :runtime
275
289
  prerelease: false
276
290
  version_requirements: !ruby/object:Gem::Requirement
277
291
  requirements:
278
292
  - - "~>"
279
293
  - !ruby/object:Gem::Version
280
- version: 6.1.3.1
294
+ version: 6.1.4
281
295
  - !ruby/object:Gem::Dependency
282
296
  name: activejob
283
297
  requirement: !ruby/object:Gem::Requirement
284
298
  requirements:
285
299
  - - "~>"
286
300
  - !ruby/object:Gem::Version
287
- version: 6.1.3.1
301
+ version: 6.1.4
288
302
  type: :runtime
289
303
  prerelease: false
290
304
  version_requirements: !ruby/object:Gem::Requirement
291
305
  requirements:
292
306
  - - "~>"
293
307
  - !ruby/object:Gem::Version
294
- version: 6.1.3.1
308
+ version: 6.1.4
295
309
  - !ruby/object:Gem::Dependency
296
310
  name: actionmailbox
297
311
  requirement: !ruby/object:Gem::Requirement
298
312
  requirements:
299
313
  - - "~>"
300
314
  - !ruby/object:Gem::Version
301
- version: 6.1.3.1
315
+ version: 6.1.4
302
316
  type: :runtime
303
317
  prerelease: false
304
318
  version_requirements: !ruby/object:Gem::Requirement
305
319
  requirements:
306
320
  - - "~>"
307
321
  - !ruby/object:Gem::Version
308
- version: 6.1.3.1
322
+ version: 6.1.4
309
323
  - !ruby/object:Gem::Dependency
310
324
  name: railties
311
325
  requirement: !ruby/object:Gem::Requirement
312
326
  requirements:
313
327
  - - "~>"
314
328
  - !ruby/object:Gem::Version
315
- version: 6.1.3.1
329
+ version: 6.1.4
316
330
  type: :runtime
317
331
  prerelease: false
318
332
  version_requirements: !ruby/object:Gem::Requirement
319
333
  requirements:
320
334
  - - "~>"
321
335
  - !ruby/object:Gem::Version
322
- version: 6.1.3.1
336
+ version: 6.1.4
323
337
  description: Cards are wiki-inspired data atoms.Card "Sharks" use links, nests, types,
324
338
  patterned names, queries, views, events, and rules to create rich structures.
325
339
  email:
@@ -387,6 +401,7 @@ files:
387
401
  - db/migrate/20190929202325_rename_present_in_reference_table.rb
388
402
  - db/migrate/20200718051236_compound_names_do_not_store_name_and_key.rb
389
403
  - db/migrate/20200805200729_add_unique_pair_indeces.rb
404
+ - db/migrate/20211128040849_virtuals_updated_at.rb
390
405
  - db/migrate_core_cards/20120611203506_rails_inflection_updates.rb
391
406
  - db/migrate_core_cards/20130411191151_renaming_for_menu.rb
392
407
  - db/migrate_core_cards/20130411211600_delete_old_related_tab_cards.rb
@@ -422,7 +437,6 @@ files:
422
437
  - db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
423
438
  - db/migrate_core_cards/20150528084659_add_session_cardtype.rb
424
439
  - db/migrate_core_cards/20150601133433_add_recent_setting_session_card.rb
425
- - db/migrate_core_cards/20150605115802_add_performance_log_card.rb
426
440
  - db/migrate_core_cards/20150610171702_add_debugger_session_card.rb
427
441
  - db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb
428
442
  - db/migrate_core_cards/20150627205133_fix_script_bootstrap_card_type.rb
@@ -660,6 +674,15 @@ files:
660
674
  - lib/card/fetch/results.rb
661
675
  - lib/card/fetch/retrieve.rb
662
676
  - lib/card/fetch/store.rb
677
+ - lib/card/file_card_creator.rb
678
+ - lib/card/file_card_creator/abstract_file_card.rb
679
+ - lib/card/file_card_creator/abstract_file_card/migration_file.rb
680
+ - lib/card/file_card_creator/abstract_file_card/ruby_file.rb
681
+ - lib/card/file_card_creator/abstract_file_card/source_file.rb
682
+ - lib/card/file_card_creator/haml_card.rb
683
+ - lib/card/file_card_creator/output_helper.rb
684
+ - lib/card/file_card_creator/script_card.rb
685
+ - lib/card/file_card_creator/style_card.rb
663
686
  - lib/card/format.rb
664
687
  - lib/card/format/card_action_view.rb
665
688
  - lib/card/format/content.rb
@@ -723,8 +746,7 @@ files:
723
746
  - lib/card/set.rb
724
747
  - lib/card/set/abstract.rb
725
748
  - lib/card/set/advanced_api.rb
726
- - lib/card/set/basket.rb
727
- - lib/card/set/code_nest.rb
749
+ - lib/card/set/card_methods.rb
728
750
  - lib/card/set/event.rb
729
751
  - lib/card/set/event/all.rb
730
752
  - lib/card/set/event/callbacks.rb
@@ -757,21 +779,6 @@ files:
757
779
  - lib/card/subcards/args.rb
758
780
  - lib/card/subcards/relate.rb
759
781
  - lib/card/subcards/remove.rb
760
- - lib/card/tasks/card.rake
761
- - lib/card/tasks/card/asset.rake
762
- - lib/card/tasks/card/create.rake
763
- - lib/card/tasks/card/file_card_creator.rb
764
- - lib/card/tasks/card/file_card_creator/abstract_file_card.rb
765
- - lib/card/tasks/card/file_card_creator/abstract_file_card/migration_file.rb
766
- - lib/card/tasks/card/file_card_creator/abstract_file_card/ruby_file.rb
767
- - lib/card/tasks/card/file_card_creator/abstract_file_card/source_file.rb
768
- - lib/card/tasks/card/file_card_creator/haml_card.rb
769
- - lib/card/tasks/card/file_card_creator/output_helper.rb
770
- - lib/card/tasks/card/file_card_creator/script_card.rb
771
- - lib/card/tasks/card/file_card_creator/style_card.rb
772
- - lib/card/tasks/card/migrate.rake
773
- - lib/card/tasks/card/mod.rake
774
- - lib/card/version.rb
775
782
  - lib/card/view.rb
776
783
  - lib/card/view/cache.rb
777
784
  - lib/card/view/cache/cache_action.rb
@@ -787,9 +794,9 @@ files:
787
794
  - lib/cardio/application.rb
788
795
  - lib/cardio/cli.rb
789
796
  - lib/cardio/commands.rb
790
- - lib/cardio/commands/USAGE
791
797
  - lib/cardio/commands/application.rb
792
798
  - lib/cardio/commands/command.rb
799
+ - lib/cardio/commands/custom.rb
793
800
  - lib/cardio/commands/rake_command.rb
794
801
  - lib/cardio/commands/rake_command/parser.rb
795
802
  - lib/cardio/commands/rspec_command.rb
@@ -797,7 +804,6 @@ files:
797
804
  - lib/cardio/delaying.rb
798
805
  - lib/cardio/generators.rb
799
806
  - lib/cardio/generators/base.rb
800
- - lib/cardio/generators/class_methods.rb
801
807
  - lib/cardio/generators/deck_generator_loader.rb
802
808
  - lib/cardio/generators/deck_helper.rb
803
809
  - lib/cardio/generators/mod_base.rb
@@ -805,6 +811,7 @@ files:
805
811
  - lib/cardio/job.rb
806
812
  - lib/cardio/migration.rb
807
813
  - lib/cardio/migration/core.rb
814
+ - lib/cardio/migration/deck.rb
808
815
  - lib/cardio/migration/deck_structure.rb
809
816
  - lib/cardio/migration/import.rb
810
817
  - lib/cardio/migration/import/import_data.rb
@@ -812,7 +819,10 @@ files:
812
819
  - lib/cardio/migration/import/import_data/card_content.rb
813
820
  - lib/cardio/migration/import/merger.rb
814
821
  - lib/cardio/mod.rb
822
+ - lib/cardio/mod/class_methods.rb
815
823
  - lib/cardio/mod/dirs.rb
824
+ - lib/cardio/mod/eat.rb
825
+ - lib/cardio/mod/eat/edibles.rb
816
826
  - lib/cardio/mod/load_strategy.rb
817
827
  - lib/cardio/mod/load_strategy/eval.rb
818
828
  - lib/cardio/mod/load_strategy/pattern_tmp_files.rb
@@ -826,12 +836,14 @@ files:
826
836
  - lib/cardio/mod/modfile_api.rb
827
837
  - lib/cardio/mod/modfile_loader.rb
828
838
  - lib/cardio/mod/module_template.rb
839
+ - lib/cardio/mod/poop.rb
829
840
  - lib/cardio/railtie.rb
830
841
  - lib/cardio/record.rb
831
842
  - lib/cardio/schema.rb
832
843
  - lib/cardio/script_loader.rb
833
844
  - lib/cardio/seed.rb
834
845
  - lib/cardio/utils.rb
846
+ - lib/cardio/version.rb
835
847
  - lib/generators/deck/USAGE
836
848
  - lib/generators/deck/deck_generator.rb
837
849
  - lib/generators/deck/deck_generator/interactive.rb
@@ -883,12 +895,21 @@ files:
883
895
  - lib/generators/set/set_generator.rb
884
896
  - lib/generators/set/templates/set_spec_template.erb
885
897
  - lib/generators/set/templates/set_template.erb
898
+ - lib/tasks/card.rake
899
+ - lib/tasks/card/create.rake
900
+ - lib/tasks/card/migrate.rake
901
+ - lib/tasks/card/mod.rake
902
+ - mod/admin/locales/de.yml
886
903
  - mod/admin/locales/en.yml
904
+ - mod/admin/set/all/admin.rb
887
905
  - mod/admin/set/self/admin.rb
888
906
  - mod/admin/set/self/admin_info.rb
889
907
  - mod/admin/set/self/debugger.rb
890
908
  - mod/admin/spec/set/self/admin_info_spec.rb
891
909
  - mod/admin/spec/set/self/admin_spec.rb
910
+ - mod/core/data/production.yml
911
+ - mod/core/data/test.yml
912
+ - mod/core/locales/de.yml
892
913
  - mod/core/locales/en.yml
893
914
  - mod/core/set/all/abort.rb
894
915
  - mod/core/set/all/assign_attributes.rb
@@ -920,10 +941,8 @@ files:
920
941
  - mod/core/set_pattern/08_type_plus_right.rb
921
942
  - mod/core/set_pattern/09_self.rb
922
943
  - mod/core/spec/set/all/assign_attributes_spec.rb
923
- - mod/core/spec/set/all/clean_me_spec.rb
924
944
  - mod/core/spec/set/all/codename_spec.rb
925
945
  - mod/core/spec/set/all/collection_spec.rb
926
- - mod/core/spec/set/all/export_spec.rb
927
946
  - mod/core/spec/set/all/initialize_spec.rb
928
947
  - mod/core/spec/set/all/name_events_spec.rb
929
948
  - mod/core/spec/set/all/states_spec.rb
@@ -933,21 +952,12 @@ files:
933
952
  - mod/core/spec/set/self/trash_spec.rb
934
953
  - mod/core/spec/set/self/version_spec.rb
935
954
  - mod/core/spec/set/type/cardtype_spec.rb
936
- - mod/standard/file/favicon/image-icon.png
937
- - mod/standard/file/favicon/image-large.png
938
- - mod/standard/file/favicon/image-medium.png
939
- - mod/standard/file/favicon/image-original.png
940
- - mod/standard/file/favicon/image-small.png
941
- - mod/standard/file/logo/image-original.svg
942
- - tmpsets/set_pattern/100-all.rb
943
- - tmpsets/set_pattern/101-all_plus.rb
944
- - tmpsets/set_pattern/102-type.rb
945
- - tmpsets/set_pattern/103-star.rb
946
- - tmpsets/set_pattern/104-rstar.rb
947
- - tmpsets/set_pattern/105-rule.rb
948
- - tmpsets/set_pattern/106-right.rb
949
- - tmpsets/set_pattern/107-type_plus_right.rb
950
- - tmpsets/set_pattern/108-self.rb
955
+ - mod/standard/data/files/favicon/image-icon.png
956
+ - mod/standard/data/files/favicon/image-large.png
957
+ - mod/standard/data/files/favicon/image-medium.png
958
+ - mod/standard/data/files/favicon/image-original.png
959
+ - mod/standard/data/files/favicon/image-small.png
960
+ - mod/standard/data/files/logo/image-original.svg
951
961
  homepage: https://decko.org
952
962
  licenses:
953
963
  - GPL-3.0
@@ -972,7 +982,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
972
982
  - !ruby/object:Gem::Version
973
983
  version: '0'
974
984
  requirements: []
975
- rubygems_version: 3.1.6
985
+ rubygems_version: 3.2.15
976
986
  signing_key:
977
987
  specification_version: 4
978
988
  summary: a simple engine for emergent data structures
@@ -1,7 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- class AddPerformanceLogCard < Cardio::Migration::Core
4
- def up
5
- Card.create! name: "*performance log", type_code: :pointer, codename: :performance_log
6
- end
7
- end
@@ -1,59 +0,0 @@
1
- class Card
2
- module Set
3
- # The purpose of a basket it that you can throw something in from
4
- # the same set in another mod.
5
- # A basket can be defined on a format or directly on a set
6
- #
7
- # @example:
8
- # # mod/core/set/self/head.rb:
9
- # basket :basket_on_set
10
- #
11
- # format :html do
12
- # basket :js_tags # only available in HtmlFormat
13
- # view :core { output basket(:js_tags) }
14
- # end
15
- #
16
- # # mod/shell/set/self/head.rb:
17
- # add_to_basket :basket_on_set, 'hello world'
18
- #
19
- # format :html do
20
- # add_to_basket :js_tags "<script/>"
21
- # add_to_basket :js_tags do |format_obj|
22
- # format_obj.render_special_view
23
- # end
24
- # end
25
- module Basket
26
- # Define a basket in a set or format
27
- def basket name
28
- mattr_accessor "#{name}_content"
29
- send("#{name}_content=", [])
30
- define_method name do
31
- send("#{name}_content").map do |item|
32
- item.respond_to?(:call) ? item.call(self) : item
33
- end
34
- end
35
- end
36
-
37
- # Define a basket in an abstract set
38
- def abstract_basket name
39
- # the basket has to be defined on the including set
40
- # (instead on the set itself)
41
-
42
- define_singleton_method :included do |host|
43
- super(host)
44
- host.basket name
45
- end
46
- end
47
-
48
- def add_to_basket name, content=nil, &block
49
- content ||= block
50
- send("#{name}_content").send "<<", content
51
- end
52
-
53
- def unshift_basket name, content=nil, &block
54
- content ||= block
55
- send("#{name}_content").unshift content
56
- end
57
- end
58
- end
59
- end
@@ -1,15 +0,0 @@
1
- # TODO: work in progress
2
- class Card
3
- module Set
4
- # ActiveCard support: accessing plus cards as attributes
5
- module CodeNest
6
- def nest *args
7
- args.each do |arg|
8
- add_nest arg
9
- end
10
- end
11
-
12
- def add_nest args; end
13
- end
14
- end
15
- end
@@ -1,22 +0,0 @@
1
- namespace :card do
2
- namespace :asset do
3
- desc "reset style and script machine outputs"
4
- task reset: :environment do
5
- Card::Machine.reset_all
6
- end
7
-
8
- desc "refresh style and script machine output (regenerate if needed)"
9
- task refresh: :environment do
10
- Card::Cache.reset_all
11
- Card::Machine.refresh_assets
12
- Card::Cache.reset_all # should not be necessary but breaking without...
13
- end
14
-
15
- desc "refresh style and script machine output (regenerate if needed)"
16
- task refresh!: :environment do
17
- Card::Cache.reset_all
18
- Card::Machine.refresh_assets!
19
- Card::Cache.reset_all # should not be necessary but breaking without...
20
- end
21
- end
22
- end
@@ -1,105 +0,0 @@
1
- namespace :card do
2
- def importer
3
- @importer ||= Cardio::Migration::Import.new Cardio::Migration.data_path
4
- end
5
-
6
- desc "merge import card data that was updated since the last push into " \
7
- "the the database"
8
- task merge: :environment do
9
- importer.merge
10
- end
11
-
12
- desc "merge all import card data into the the database"
13
- task merge_all: :environment do
14
- importer.merge all: true
15
- end
16
-
17
- desc "add card to import data"
18
- task pull: :environment do
19
- pull_card
20
- end
21
-
22
- desc "add card and all nested cards to import data"
23
- task deep_pull: :environment do
24
- pull_card deep: true
25
- end
26
-
27
- desc "add nested cards to import data (not the card itself)"
28
- task deep_pull_items: :environment do
29
- pull_card items_only: true
30
- end
31
-
32
- # be rake card:pull_export from=live
33
- desc "add items of the export card to import data"
34
- task pull_export: :environment do
35
- importer.pull "export", items_only: true, remote: ENV["from"]
36
- end
37
-
38
- desc "add a new card to import data"
39
- task add: :environment do
40
- _task, name, type, codename = ARGV
41
- importer.add_card name: name, type: type || "Basic", codename: codename
42
- exit
43
- end
44
-
45
- desc "register remote for importing card data"
46
- task add_remote: :environment do
47
- _task, name, url = ARGV
48
- raise "no name given" unless name.present?
49
- raise "no url given" unless url.present?
50
-
51
- importer.add_remote name, url
52
- exit
53
- end
54
-
55
- def pull_card opts={}
56
- _task, card = ARGV
57
- raise "no card given" unless card.present?
58
-
59
- importer.pull card, opts.merge(remote: ENV["from"])
60
- exit # without exit the card argument is treated as second rake task
61
- end
62
-
63
- desc "migrate structure and cards"
64
- task migrate: :environment do
65
- ENV["NO_RAILS_CACHE"] = "true"
66
- ENV["SCHEMA"] ||= "#{Cardio.gem_root}/db/schema.rb"
67
-
68
- stamp = ENV["STAMP_MIGRATIONS"]
69
-
70
- puts "migrating structure"
71
- Rake::Task["card:migrate:structure"].invoke
72
- Rake::Task["card:migrate:stamp"].invoke :structure if stamp
73
-
74
- puts "migrating deck structure"
75
- Rake::Task["card:migrate:deck_structure"].execute
76
- if stamp
77
- Rake::Task["card:migrate:stamp"].reenable
78
- Rake::Task["card:migrate:stamp"].invoke :core_cards
79
- end
80
-
81
- puts "migrating core cards"
82
- Card::Cache.reset_all
83
- # not invoke because we don't want to reload environment
84
- Rake::Task["card:migrate:core_cards"].execute
85
- if stamp
86
- Rake::Task["card:migrate:stamp"].reenable
87
- Rake::Task["card:migrate:stamp"].invoke :core_cards
88
- end
89
-
90
- puts "migrating deck cards"
91
- # not invoke because we don't want to reload environment
92
- Rake::Task["card:migrate:deck_cards"].execute
93
- if stamp
94
- Rake::Task["card:migrate:stamp"].reenable
95
- Rake::Task["card:migrate:stamp"].invoke :deck_cards
96
- end
97
-
98
- Card::Cache.reset_all
99
- end
100
-
101
- desc "reset cache"
102
- task reset_cache: :environment do
103
- Card::Cache.reset_all
104
- end
105
- end
data/lib/card/version.rb DELETED
@@ -1,11 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- class Card
4
- module Version
5
- class << self
6
- def release
7
- @@version ||= File.read(File.expand_path("../../VERSION", __dir__)).strip
8
- end
9
- end
10
- end
11
- end
@@ -1,28 +0,0 @@
1
- Usage: decko COMMAND [ARGS]
2
-
3
- The most common decko commands are:
4
- new Create a new Decko deck. "decko new my_deck" creates a
5
- new deck called MyDeck in "./my_deck"
6
- seed Create and seed the database specified in config/database.yml
7
-
8
- server Start the Rails server (short-cut alias: "s")
9
- console Start the Rails console (short-cut alias: "c")
10
- dbconsole Start a console for the database specified in config/database.yml
11
- (short-cut alias: "db")
12
-
13
- For core developers
14
- cucumber Run cucumber features (short-cut alias: "cc")
15
- rspec Run rspec tests (short-cut alias: "rs")
16
- update Run card migrations
17
- load Load bootstrap data into database
18
-
19
- In addition to those, there are the standard rails commands:
20
- generate Generate new code (short-cut alias: "g")
21
- application Generate the Rails application code
22
- destroy Undo code generated with "generate" (short-cut alias: "d")
23
- benchmarker See how fast a piece of code runs
24
- profiler Get profile information from a piece of code
25
- plugin Install a plugin
26
- runner Run a piece of code in the application environment (short-cut alias: "r")
27
-
28
- All commands can be run with -h (or --help) for more information.
@@ -1,35 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- module Cardio
4
- module Generators
5
- # methods shared across Generator bases (which inherit from Rails generator classes)
6
- module ClassMethods
7
- def source_root path=nil
8
- if path
9
- @_card_source_root = path
10
- else
11
- @_card_source_root ||= File.expand_path(
12
- "../../../generators/#{generator_name}/templates", __FILE__
13
- )
14
- end
15
- end
16
-
17
- # Override Rails default banner (using card/decko for the command name).
18
- def banner
19
- usage_arguments = arguments.map(&:usage).join " "
20
- text = "#{banner_command} generate #{namespace} #{usage_arguments} [options]"
21
- text.gsub(/\s+/, " ")
22
- end
23
-
24
- def banner_command
25
- "card"
26
- end
27
-
28
- # Override Rails namespace handling so we can put generators in `module Cardio`
29
- def namespace name=nil
30
- return super if name
31
- @namespace ||= super.sub(/cardio:/, "")
32
- end
33
- end
34
- end
35
- end