card 1.103.2 → 1.104.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/config/environments/development.rb +4 -2
- data/config/environments/production.rb +9 -9
- data/config/environments/test.rb +1 -1
- data/config/initializers/01_core_extensions/array.rb +4 -1
- data/config/initializers/01_core_extensions/object.rb +1 -1
- data/config/initializers/02_patches/active_record.rb +16 -17
- data/config/locales/de.yml +8 -564
- data/config/locales/es.yml +2 -3
- data/db/migrate/20110511221913_require_earlier_migrations.rb +1 -1
- data/db/migrate/20120105203350_require_1_8_migrations.rb +1 -1
- data/db/migrate/20121111025347_require_1_10_migrations.rb +1 -1
- data/db/migrate/20211128040849_virtuals_updated_at.rb +11 -0
- data/db/migrate_core_cards/20130411191151_renaming_for_menu.rb +0 -1
- data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +0 -2
- data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +0 -2
- data/db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb +1 -3
- data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +1 -2
- data/db/migrate_core_cards/20190710090209_homepage_tweaks.rb +3 -7
- data/db/migrate_core_cards/20190823220018_cleanup_for_decko_1_0.rb +2 -4
- data/db/migrate_core_cards/20190902193208_input_type.rb +3 -8
- data/db/migrate_core_cards/20190904174403_token_upgrade.rb +1 -1
- data/db/migrate_core_cards/data/1.12_stylesheets/traditional.scss +1 -2
- data/db/schema.rb +19 -16
- data/db/seed/new/card_actions.yml +2615 -3383
- data/db/seed/new/card_acts.yml +3 -3
- data/db/seed/new/card_references.yml +1588 -1707
- data/db/seed/new/cards.yml +5450 -8416
- data/db/seed/new/schema_migrations.yml +2 -0
- data/db/seed/new/schema_migrations_core_cards.yml +8 -0
- data/db/seed/test/fixtures/card_actions.yml +4304 -5144
- data/db/seed/test/fixtures/card_acts.yml +780 -840
- data/db/seed/test/fixtures/card_changes.yml +110 -110
- data/db/seed/test/fixtures/card_references.yml +2908 -2992
- data/db/seed/test/fixtures/cards.yml +8775 -11955
- data/db/seed/test/fixtures/schema_migrations.yml +2 -0
- data/db/seed/test/fixtures/schema_migrations_core_cards.yml +8 -0
- data/db/test_seed.rb +2 -5
- data/db/version.txt +1 -1
- data/db/version_core_cards.txt +1 -1
- data/lib/card/auth/current.rb +1 -1
- data/lib/card/auth/permissions.rb +37 -35
- data/lib/card/content/all.rb +3 -3
- data/lib/card/content/chunk.rb +1 -1
- data/lib/card/content/diff/summary.rb +14 -18
- data/lib/card/content.rb +9 -1
- data/lib/card/director/act_direction.rb +6 -6
- data/lib/card/director/card_methods.rb +0 -1
- data/lib/card/director/phases.rb +1 -0
- data/lib/card/director/stages.rb +2 -0
- data/lib/card/director.rb +1 -0
- data/lib/card/fetch/all.rb +3 -3
- data/lib/card/fetch/card_class.rb +5 -11
- data/lib/card/fetch/results.rb +8 -8
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card/migration_file.rb +0 -0
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card/ruby_file.rb +0 -0
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card/source_file.rb +0 -0
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/abstract_file_card.rb +0 -5
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/haml_card.rb +0 -0
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/output_helper.rb +0 -0
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/script_card.rb +0 -0
- data/lib/card/{tasks/card/file_card_creator → file_card_creator}/style_card.rb +0 -0
- data/lib/card/{tasks/card/file_card_creator.rb → file_card_creator.rb} +0 -5
- data/lib/card/format/content.rb +5 -7
- data/lib/card/format/error.rb +2 -2
- data/lib/card/format/render.rb +10 -10
- data/lib/card/format.rb +3 -8
- data/lib/card/lexicon.rb +30 -7
- data/lib/card/model/save_helper/save_arguments.rb +2 -2
- data/lib/card/model/save_helper.rb +3 -3
- data/lib/card/name/all/descendants.rb +9 -7
- data/lib/card/name/all/parts.rb +1 -1
- data/lib/card/name/all.rb +4 -3
- data/lib/card/name/card_class.rb +2 -1
- data/lib/card/name/fields_and_traits.rb +6 -30
- data/lib/card/name/name_variants.rb +5 -1
- data/lib/card/name.rb +6 -14
- data/lib/card/query/abstract_query/tie.rb +2 -3
- data/lib/card/query/card_query/normalization.rb +1 -1
- data/lib/card/query/sql_statement/order.rb +5 -6
- data/lib/card/query/value.rb +10 -7
- data/lib/card/reference/all.rb +9 -7
- data/lib/card/reference.rb +36 -41
- data/lib/card/rule/all.rb +3 -3
- data/lib/card/set/advanced_api.rb +5 -0
- data/lib/card/set/card_methods.rb +13 -0
- data/lib/card/set/event/delayed_event.rb +8 -1
- data/lib/card/set/event/skip_and_trigger.rb +8 -0
- data/lib/card/set/event.rb +1 -0
- data/lib/card/set/format/abstract_format/wrapper.rb +1 -1
- data/lib/card/set/format/abstract_format.rb +2 -1
- data/lib/card/set/format.rb +2 -3
- data/lib/card/set/helpers.rb +68 -0
- data/lib/card/set/inheritance.rb +1 -1
- data/lib/card/set/pattern/all.rb +20 -10
- data/lib/card/set/pattern/base.rb +12 -18
- data/lib/card/set/pattern/class_methods.rb +13 -13
- data/lib/card/set/pattern.rb +46 -24
- data/lib/card/set/registrar.rb +8 -2
- data/lib/card/set/trait.rb +16 -1
- data/lib/card/set/type.rb +3 -0
- data/lib/card/set.rb +14 -7
- data/lib/card/subcards/add.rb +1 -3
- data/lib/card/subcards/all.rb +30 -56
- data/lib/card/view/classy.rb +15 -27
- data/lib/card/view/options/voo_api.rb +3 -1
- data/lib/card/view/options.rb +7 -5
- data/lib/card/view/permission.rb +4 -11
- data/lib/card/view.rb +1 -0
- data/lib/card.rb +9 -11
- data/lib/cardio/cli.rb +1 -0
- data/lib/cardio/commands/custom.rb +60 -0
- data/lib/cardio/commands/rake_command/parser.rb +49 -48
- data/lib/cardio/commands/rake_command.rb +17 -15
- data/lib/cardio/commands/rspec_command.rb +2 -0
- data/lib/cardio/commands.rb +69 -69
- data/lib/cardio/generators/deck_helper.rb +0 -4
- data/lib/cardio/generators.rb +56 -3
- data/lib/cardio/migration/deck.rb +0 -0
- data/lib/cardio/migration/deck_structure.rb +2 -0
- data/lib/cardio/migration/import/import_data/card_content.rb +1 -1
- data/lib/cardio/migration/import.rb +2 -2
- data/lib/cardio/migration.rb +26 -2
- data/lib/cardio/mod/class_methods.rb +112 -0
- data/lib/cardio/mod/dirs.rb +15 -11
- data/lib/cardio/mod/eat/edibles.rb +92 -0
- data/lib/cardio/mod/eat.rb +81 -0
- data/lib/cardio/mod/load_strategy/set_tmp_files.rb +10 -4
- data/lib/cardio/mod/load_strategy/tmp_files.rb +1 -1
- data/lib/cardio/mod/load_strategy.rb +3 -4
- data/lib/cardio/mod/loader/set_loader.rb +13 -13
- data/lib/cardio/mod/loader.rb +1 -1
- data/lib/cardio/mod/modfile_api.rb +5 -0
- data/lib/cardio/mod/poop.rb +135 -0
- data/lib/cardio/mod.rb +20 -80
- data/lib/cardio/railtie.rb +24 -6
- data/lib/cardio/schema.rb +11 -10
- data/lib/cardio/version.rb +35 -0
- data/lib/cardio.rb +4 -0
- data/lib/generators/deck/deck_generator.rb +3 -2
- data/lib/generators/deck/templates/Gemfile.erb +1 -5
- data/lib/generators/deck/templates/Rakefile.erb +6 -2
- data/lib/generators/deck/templates/rspec.erb +1 -1
- data/lib/generators/deck/templates/simplecov.rb.erb +7 -11
- data/lib/generators/deck/templates/spec/javascripts/support/decko_jasmine.yml.erb +0 -1
- data/lib/generators/mod/USAGE +1 -0
- data/lib/{card/tasks → tasks}/card/create.rake +0 -0
- data/lib/{card/tasks → tasks}/card/migrate.rake +41 -1
- data/lib/{card/tasks → tasks}/card/mod.rake +15 -8
- data/lib/tasks/card.rake +65 -0
- data/mod/admin/locales/de.yml +4 -0
- data/mod/admin/set/all/admin.rb +16 -0
- data/mod/admin/set/self/admin.rb +12 -14
- data/mod/admin/set/self/admin_info.rb +2 -5
- data/mod/core/data/production.yml +7 -0
- data/mod/core/data/test.yml +30 -0
- data/mod/core/locales/de.yml +28 -0
- data/mod/core/locales/en.yml +4 -5
- data/mod/core/set/all/assign_attributes.rb +1 -33
- data/mod/core/set/all/content.rb +3 -1
- data/mod/core/set/all/initialize.rb +1 -4
- data/mod/core/set/all/name_events.rb +3 -18
- data/mod/core/set/all/reference_events.rb +32 -36
- data/mod/core/set/all/subcards.rb +6 -2
- data/mod/core/set/all/trash.rb +4 -6
- data/mod/core/set/all/type.rb +67 -18
- data/mod/core/set/self/version.rb +1 -1
- data/mod/core/spec/set/all/name_events_spec.rb +10 -10
- data/mod/core/spec/set/all/trash_spec.rb +1 -1
- data/mod/core/spec/set/self/trash_spec.rb +1 -1
- data/mod/standard/{file → data/files}/favicon/image-icon.png +0 -0
- data/mod/standard/{file → data/files}/favicon/image-large.png +0 -0
- data/mod/standard/{file → data/files}/favicon/image-medium.png +0 -0
- data/mod/standard/{file → data/files}/favicon/image-original.png +0 -0
- data/mod/standard/{file → data/files}/favicon/image-small.png +0 -0
- data/mod/standard/{file → data/files}/logo/image-original.svg +0 -0
- metadata +52 -42
- data/db/migrate_core_cards/20150605115802_add_performance_log_card.rb +0 -7
- data/lib/card/set/basket.rb +0 -59
- data/lib/card/set/code_nest.rb +0 -15
- data/lib/card/tasks/card/asset.rake +0 -22
- data/lib/card/tasks/card.rake +0 -105
- data/lib/card/version.rb +0 -11
- data/lib/cardio/commands/USAGE +0 -28
- data/lib/cardio/generators/class_methods.rb +0 -35
- data/mod/core/spec/set/all/clean_me_spec.rb +0 -258
- data/mod/core/spec/set/all/export_spec.rb +0 -71
- data/tmpsets/set_pattern/100-all.rb +0 -22
- data/tmpsets/set_pattern/101-all_plus.rb +0 -24
- data/tmpsets/set_pattern/102-type.rb +0 -40
- data/tmpsets/set_pattern/103-star.rb +0 -26
- data/tmpsets/set_pattern/104-rstar.rb +0 -28
- data/tmpsets/set_pattern/105-rule.rb +0 -28
- data/tmpsets/set_pattern/106-right.rb +0 -35
- data/tmpsets/set_pattern/107-type_plus_right.rb +0 -43
- 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.
|
4
|
+
version: 1.104.1
|
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:
|
13
|
+
date: 2022-01-04 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.
|
21
|
+
version: 0.14.1
|
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.
|
28
|
+
version: 0.14.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -222,6 +222,20 @@ 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
|
@@ -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/
|
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/
|
937
|
-
- mod/standard/
|
938
|
-
- mod/standard/
|
939
|
-
- mod/standard/
|
940
|
-
- mod/standard/
|
941
|
-
- mod/standard/
|
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.
|
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
|
data/lib/card/set/basket.rb
DELETED
@@ -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
|
data/lib/card/set/code_nest.rb
DELETED
@@ -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
|
data/lib/card/tasks/card.rake
DELETED
@@ -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
data/lib/cardio/commands/USAGE
DELETED
@@ -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
|