card 1.101.0 → 1.101.5
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/i18n-tasks.yml +0 -5
- data/config/initializers/01_core_extensions/array.rb +2 -1
- data/config/initializers/01_core_extensions/hash.rb +1 -0
- data/config/initializers/01_core_extensions/object.rb +15 -11
- data/config/initializers/02_patches/active_job.rb +1 -1
- data/config/initializers/02_patches/active_record.rb +2 -4
- data/config/initializers/02_patches/better_errors.rb +1 -3
- data/config/initializers/02_patches/kaminari.rb +2 -2
- data/config/initializers/deck_config.rb +1 -1
- data/config/initializers/inflections.rb +1 -0
- data/config/initializers/internationalization.rb +23 -21
- data/config/initializers/mime_types.rb +1 -0
- data/config/initializers/notification.rb +1 -0
- data/config/initializers/patches.rb +6 -5
- data/config/locales/en.yml +137 -525
- data/db/migrate/20110511221913_require_earlier_migrations.rb +1 -0
- data/db/migrate/20121111025347_require_1_10_migrations.rb +1 -0
- data/db/migrate/20121118114000_split_link_type.rb +1 -0
- data/db/migrate/20121118115000_update_link_type.rb +1 -0
- data/db/migrate/20130106052640_table_cleanup.rb +2 -2
- data/db/migrate/20130109015336_trunk_left.rb +1 -0
- data/db/migrate/20130411210957_update_codenames.rb +1 -0
- data/db/migrate/20140822073704_create_new_revision_tables.rb +1 -0
- data/db/migrate/20141001105348_move_revisions_to_actions.rb +9 -3
- data/db/migrate/20141216053032_better_index_names.rb +9 -6
- data/db/migrate/20170908114442_create_delayed_jobs.rb +1 -1
- data/db/migrate/20170908114452_increase_text_size_for_delayed_jobs.rb +1 -1
- data/db/migrate/20180514152037_add_card_virtuals_table.rb +1 -1
- data/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb +3 -2
- data/db/migrate_core_cards/20130411191151_renaming_for_menu.rb +9 -9
- data/db/migrate_core_cards/20130419215612_import_help_text.rb +3 -2
- data/db/migrate_core_cards/20130823192433_add_style_cards.rb +5 -5
- data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +3 -2
- data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +2 -4
- data/db/migrate_core_cards/20131016172445_common_css_patch.rb +1 -3
- data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +1 -3
- data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +12 -8
- data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +2 -4
- data/db/migrate_core_cards/20140512155840_add_script_cards.rb +16 -9
- data/db/migrate_core_cards/20140629222005_add_email_cards.rb +19 -11
- data/db/migrate_core_cards/20140725180118_config_card_updates.rb +1 -1
- data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +1 -1
- data/db/migrate_core_cards/20141119001955_make_symlinks_relative.rb +1 -1
- data/db/migrate_core_cards/20141204061304_watchers_to_following.rb +2 -0
- data/db/migrate_core_cards/20141216155251_add_more_following_cards.rb +4 -2
- data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +2 -2
- data/db/migrate_core_cards/20150220134731_following_to_follow_rule.rb +3 -4
- data/db/migrate_core_cards/20150317162412_bootstrap_themes.rb +8 -4
- data/db/migrate_core_cards/20150326205655_bootswatch_themes.rb +14 -7
- data/db/migrate_core_cards/20150429090551_search_card_context.rb +6 -4
- data/db/migrate_core_cards/20150508212032_menu_compatibility.rb +4 -2
- data/db/migrate_core_cards/20150510031118_fix_skin_codenames.rb +2 -1
- data/db/migrate_core_cards/20150601133433_add_recent_setting_session_card.rb +3 -3
- data/db/migrate_core_cards/20150610171702_add_debugger_session_card.rb +2 -1
- data/db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb +4 -3
- data/db/migrate_core_cards/20150724123438_update_file_and_image_cards.rb +6 -2
- data/db/migrate_core_cards/20150807205221_create_references_for_search_cards.rb +1 -1
- data/db/migrate_core_cards/20150824135418_update_file_history.rb +2 -0
- data/db/migrate_core_cards/20160804112510_reorganize_scripts.rb +1 -1
- data/db/migrate_core_cards/20160811115836_rename_stats_to_admin.rb +1 -0
- data/db/migrate_core_cards/20160914132636_fix_mod_files.rb +2 -0
- data/db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb +6 -6
- data/db/migrate_core_cards/20161103154836_update_keys.rb +2 -1
- data/db/migrate_core_cards/20170209132834_email_test_context.rb +2 -0
- data/db/migrate_core_cards/20170314175313_add_notification_event_card.rb +3 -3
- data/db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb +1 -1
- data/db/migrate_core_cards/20170608200649_add_input_options_codename.rb +1 -1
- data/db/migrate_core_cards/20180712042655_head_rule.rb +3 -4
- data/db/migrate_core_cards/20180905061537_migrate_layouts.rb +4 -4
- data/db/migrate_core_cards/20181120200937_update_layout.rb +1 -1
- data/db/migrate_core_cards/20190320091257_upgrade_recaptcha_to_v3.rb +7 -7
- data/db/migrate_core_cards/20190424100531_update_credit_image.rb +1 -0
- data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +15 -14
- data/db/migrate_core_cards/20190503122739_update_pristine_data.rb +1 -1
- data/db/migrate_core_cards/20190625153616_pointer_overhaul.rb +9 -5
- data/db/migrate_core_cards/20190718140126_add_guides.rb +3 -3
- data/db/migrate_core_cards/20190822093633_move_help_text_to_code.rb +1 -2
- data/db/migrate_core_cards/20190823220018_cleanup_for_decko_1_0.rb +1 -1
- data/db/migrate_core_cards/20190829093961_cardtype_grouping.rb +7 -7
- data/db/migrate_core_cards/20190902193208_input_type.rb +1 -3
- data/db/migrate_core_cards/20190909104250_add_cardtype_input_types.rb +2 -2
- data/db/migrate_core_cards/20191028135243_add_link_editor_to_tiny_mce_config.rb +1 -0
- data/db/migrate_core_cards/20191115160748_history_cleanup.rb +0 -1
- data/db/migrate_core_cards/20191118145629_codename_fixes.rb +1 -2
- data/db/migrate_core_cards/20200821231558_add_nest_list_type.rb +1 -1
- data/db/migrate_core_cards/data/decko_logo.svg +1 -59
- data/db/seed/new/card_actions.yml +2153 -2145
- data/db/seed/new/card_acts.yml +3 -3
- data/db/seed/new/card_references.yml +900 -858
- data/db/seed/new/cards.yml +4869 -4848
- data/db/seed/new/schema_migrations_deck_cards.yml +2 -0
- data/db/seed/test/fixtures/card_actions.yml +3563 -3547
- data/db/seed/test/fixtures/card_acts.yml +675 -675
- data/db/seed/test/fixtures/card_changes.yml +103 -103
- data/db/seed/test/fixtures/card_references.yml +2165 -2123
- data/db/seed/test/fixtures/cards.yml +7862 -7751
- data/db/seed/test/fixtures/rails.gif +0 -0
- data/db/seed/test/fixtures/schema_migrations_deck_cards.yml +2 -0
- data/db/test_seed.rb +33 -34
- data/lib/card.rb +18 -1
- data/lib/card/auth.rb +5 -2
- data/lib/card/auth/current.rb +39 -100
- data/lib/card/auth/proxy.rb +36 -16
- data/lib/card/auth/token.rb +8 -2
- data/lib/card/cache.rb +2 -1
- data/lib/card/cache/all.rb +88 -0
- data/lib/card/cache/card_class.rb +44 -0
- data/lib/card/cache/persistent.rb +3 -34
- data/lib/card/cache/persistent_class.rb +28 -0
- data/lib/card/codename.rb +3 -4
- data/lib/card/content.rb +20 -10
- data/lib/card/content/all.rb +59 -0
- data/lib/card/content/chunk.rb +1 -1
- data/lib/card/content/clean.rb +4 -3
- data/lib/card/content/diff.rb +3 -2
- data/lib/card/content/diff/l_c_s/processor.rb +1 -1
- data/lib/card/content/diff/result.rb +41 -29
- data/lib/card/content/parser.rb +2 -2
- data/lib/card/content/truncate.rb +6 -6
- data/lib/card/director.rb +1 -1
- data/lib/card/director/act_direction.rb +4 -0
- data/lib/card/director/all.rb +61 -0
- data/lib/card/director/card_class.rb +18 -0
- data/lib/card/director/card_methods.rb +1 -0
- data/lib/card/director/event_delay.rb +4 -6
- data/lib/card/director/phases.rb +0 -1
- data/lib/card/director/run.rb +2 -0
- data/lib/card/director/stages.rb +3 -2
- data/lib/card/dirty.rb +13 -3
- data/lib/card/env.rb +2 -2
- data/lib/card/env/location.rb +4 -3
- data/lib/card/env/success.rb +46 -103
- data/lib/card/env/success/target.rb +73 -0
- data/lib/card/error.rb +1 -2
- data/lib/card/fetch.rb +7 -4
- data/lib/card/fetch/all.rb +33 -0
- data/lib/card/fetch/card_class.rb +155 -0
- data/lib/card/fetch/results.rb +9 -0
- data/lib/card/fetch/retrieve.rb +2 -0
- data/lib/card/fetch/store.rb +1 -0
- data/lib/card/format.rb +1 -2
- data/lib/card/format/content.rb +1 -3
- data/lib/card/format/error.rb +8 -4
- data/lib/card/format/method_delegation.rb +10 -2
- data/lib/card/format/nest.rb +3 -2
- data/lib/card/format/nest/fetch.rb +3 -2
- data/lib/card/format/nesting/mode.rb +1 -1
- data/lib/card/format/nesting/subformat.rb +2 -1
- data/lib/card/format/render.rb +2 -2
- data/lib/card/format/wrapper.rb +1 -1
- data/lib/card/lexicon.rb +5 -4
- data/lib/card/mark.rb +17 -15
- data/lib/card/model/save_helper.rb +18 -184
- data/lib/card/model/save_helper/save_arguments.rb +94 -0
- data/lib/card/model/save_helper/save_helper_helper.rb +93 -0
- data/lib/card/name.rb +10 -9
- data/lib/card/name/all.rb +136 -0
- data/lib/card/name/all/descendants.rb +48 -0
- data/lib/card/name/all/parts.rb +67 -0
- data/lib/card/name/card_class.rb +28 -0
- data/lib/card/name/fields_and_traits.rb +4 -2
- data/lib/card/name/name_variants.rb +0 -1
- data/lib/card/query.rb +24 -19
- data/lib/card/query/card_query/interpretation.rb +3 -2
- data/lib/card/query/card_query/match_attributes.rb +2 -1
- data/lib/card/query/card_query/normalization.rb +1 -0
- data/lib/card/query/card_query/reference_attributes.rb +1 -1
- data/lib/card/query/card_query/sorting.rb +12 -4
- data/lib/card/query/join.rb +1 -1
- data/lib/card/query/sql_statement.rb +1 -1
- data/lib/card/query/value/match_value.rb +1 -0
- data/lib/card/reference/all.rb +136 -0
- data/lib/card/rule/all.rb +76 -0
- data/lib/card/rule/cache.rb +2 -0
- data/lib/card/set/advanced_api.rb +8 -4
- data/lib/card/set/event.rb +2 -2
- data/lib/card/set/event/all.rb +101 -0
- data/lib/card/set/event/delayed_event.rb +6 -6
- data/lib/card/set/event/options.rb +14 -5
- data/lib/card/set/event/skip_and_trigger.rb +89 -0
- data/lib/card/set/format.rb +16 -9
- data/lib/card/set/format/abstract_format/view_definition.rb +1 -0
- data/lib/card/set/format/abstract_format/view_opts.rb +1 -0
- data/lib/card/set/i18n_scope.rb +18 -13
- data/lib/card/set/inheritance.rb +8 -6
- data/lib/card/set/loader.rb +24 -13
- data/lib/card/set/pattern/all.rb +63 -0
- data/lib/card/set/pattern/base.rb +4 -74
- data/lib/card/set/pattern/class_methods.rb +75 -0
- data/lib/card/set/required_field.rb +4 -1
- data/lib/card/set/trait.rb +11 -8
- data/lib/card/setting.rb +13 -12
- data/lib/card/subcards.rb +3 -4
- data/lib/card/subcards/add.rb +3 -24
- data/lib/card/subcards/all.rb +103 -0
- data/lib/card/subcards/args.rb +42 -0
- data/lib/card/tasks/card/file_card_creator/abstract_file_card/ruby_file.rb +1 -1
- data/lib/card/tasks/card/file_card_creator/output_helper.rb +17 -14
- data/lib/card/tasks/card/migrate.rake +2 -2
- data/lib/card/view/cache.rb +6 -8
- data/lib/card/view/cache/cache_action.rb +1 -2
- data/lib/card/view/cache/stub.rb +1 -1
- data/lib/card/view/options.rb +5 -4
- data/lib/card/view/permission.rb +15 -3
- data/lib/cardio.rb +10 -67
- data/lib/cardio/defaults.yml +70 -0
- data/lib/cardio/migration.rb +2 -2
- data/lib/cardio/migration/deck_structure.rb +2 -4
- data/lib/cardio/migration/import.rb +3 -3
- data/lib/cardio/migration/import/import_data.rb +1 -0
- data/lib/cardio/mod.rb +1 -0
- data/lib/cardio/mod/dirs.rb +2 -2
- data/lib/cardio/mod/load_strategy.rb +2 -4
- data/lib/cardio/mod/loader/set_loader.rb +2 -1
- data/lib/cardio/mod/loader/set_pattern_loader.rb +0 -1
- data/lib/cardio/mod/module_template.rb +1 -0
- data/lib/cardio/modfiles.rb +2 -4
- data/lib/cardio/schema.rb +2 -4
- data/lib/cardio/utils.rb +9 -0
- data/lib/generators/card/format/format_generator.rb +1 -1
- data/lib/generators/card/migration/migration_generator.rb +2 -1
- data/lib/generators/card/mod/mod_generator.rb +3 -2
- data/lib/generators/card/set/set_generator.rb +3 -3
- data/lib/generators/card/template/template_generator.rb +1 -1
- data/mod/admin/set/self/admin.rb +6 -3
- data/mod/admin/set/self/admin_info.rb +3 -8
- data/mod/admin/set/self/trash.rb +3 -2
- data/mod/admin/spec/set/self/admin_spec.rb +4 -4
- data/mod/core/set/all/abort.rb +5 -5
- data/mod/core/set/all/assign_attributes.rb +12 -28
- data/mod/core/set/all/autoname.rb +17 -0
- data/mod/core/set/all/codename.rb +3 -2
- data/mod/core/set/all/collection.rb +4 -6
- data/mod/core/set/all/content.rb +55 -99
- data/mod/core/set/all/contextual_content.rb +2 -4
- data/mod/core/set/all/initialize.rb +9 -9
- data/mod/core/set/all/name_events.rb +78 -58
- data/mod/core/set/all/reference_events.rb +69 -0
- data/mod/core/set/all/states.rb +5 -5
- data/mod/core/set/all/subcards.rb +1 -101
- data/mod/core/set/all/trash.rb +16 -14
- data/mod/core/set/all/type.rb +11 -11
- data/mod/core/set/all/utils.rb +4 -1
- data/mod/{settings → core}/set/right/autoname.rb +0 -0
- data/mod/{settings → core}/set/self/autoname.rb +0 -0
- data/mod/core/set/type/cardtype.rb +28 -0
- data/mod/core/set_pattern/06_rule.rb +1 -1
- data/mod/core/spec/set/all/assign_attributes_spec.rb +10 -9
- data/mod/core/spec/set/all/{rules2_spec.rb → clean_me_spec.rb} +19 -4
- data/mod/core/spec/set/all/collection_spec.rb +1 -1
- data/mod/core/spec/set/all/export_spec.rb +1 -0
- data/mod/core/spec/set/all/initialize_spec.rb +11 -11
- data/mod/core/spec/set/all/name_events_spec.rb +204 -0
- data/mod/{standard → core}/spec/set/type/cardtype_spec.rb +3 -24
- data/mod/standard/file/logo/image-original.svg +1 -59
- metadata +50 -61
- data/config/initializers/uuid_state_file.rb +0 -3
- data/lib/card/mod_inflector.rb +0 -16
- data/mod/Modfile +0 -4
- data/mod/core/set/all/actify.rb +0 -68
- data/mod/core/set/all/cache.rb +0 -109
- data/mod/core/set/all/event_conditions.rb +0 -172
- data/mod/core/set/all/fetch.rb +0 -122
- data/mod/core/set/all/fetch_helper.rb +0 -35
- data/mod/core/set/all/i18n.rb +0 -11
- data/mod/core/set/all/name.rb +0 -229
- data/mod/core/set/all/pattern.rb +0 -54
- data/mod/core/set/all/references.rb +0 -191
- data/mod/core/set/all/rename.rb +0 -33
- data/mod/core/set/all/rules.rb +0 -81
- data/mod/core/spec/set/all/actify_spec.rb +0 -58
- data/mod/core/spec/set/all/content_spec.rb +0 -15
- data/mod/core/spec/set/all/event_conditions_spec.rb +0 -217
- data/mod/core/spec/set/all/fetch_helper_spec.rb +0 -65
- data/mod/core/spec/set/all/fetch_spec.rb +0 -338
- data/mod/core/spec/set/all/i18n_spec.rb +0 -17
- data/mod/core/spec/set/all/name_spec.rb +0 -11
- data/mod/core/spec/set/all/pattern_spec.rb +0 -101
- data/mod/core/spec/set/all/permissions/reader_rules_spec.rb +0 -166
- data/mod/core/spec/set/all/references_spec.rb +0 -62
- data/mod/core/spec/set/all/rename_spec.rb +0 -189
- data/mod/core/spec/set/all/rules_spec.rb +0 -100
- data/mod/core/spec/set/all/subcards_spec.rb +0 -102
- data/mod/standard/set/all/rich_html/html_views/info.rb +0 -84
- data/mod/standard/set/type/cardtype.rb +0 -119
@@ -18,7 +18,7 @@ RSpec.describe Card::Set::All::Collection do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it "handles searches relative to context card" do
|
21
|
-
#
|
21
|
+
# NOTE: A refers to 'Z'
|
22
22
|
@context = "A"
|
23
23
|
@args = { name: "foo", type: "Search",
|
24
24
|
content: '{"referred_to_by":"_self"}' }
|
@@ -23,6 +23,7 @@ RSpec.describe Card::Set::All::Export do
|
|
23
23
|
a_hash_including(name: "A+B", type: "RichText", content: "AlphaBeta")
|
24
24
|
)
|
25
25
|
end
|
26
|
+
|
26
27
|
it "handles multi levels pointer cards" do
|
27
28
|
inner_pointer = create "inner pointer", type: :pointer, content: "T"
|
28
29
|
expect(export_pointer([inner_pointer.name, "A+B"])).to include(
|
@@ -54,34 +54,34 @@ describe Card::Set::All::Initialize do
|
|
54
54
|
|
55
55
|
describe "module inclusion" do
|
56
56
|
context "(search)" do
|
57
|
-
|
58
|
-
|
57
|
+
let :c do
|
58
|
+
Card.new type: "Search", name: "Module Inclusion Test Card"
|
59
59
|
end
|
60
60
|
|
61
61
|
it "happens after new" do
|
62
|
-
expect(
|
62
|
+
expect(c).to respond_to(:query)
|
63
63
|
end
|
64
64
|
|
65
65
|
it "happens after save" do
|
66
|
-
expect(
|
67
|
-
|
68
|
-
expect(
|
66
|
+
expect(c).to respond_to(:query)
|
67
|
+
c.save!
|
68
|
+
expect(c).to respond_to(:query)
|
69
69
|
end
|
70
70
|
|
71
71
|
it "happens after fetch" do
|
72
|
-
|
73
|
-
|
74
|
-
expect(
|
72
|
+
c.save!
|
73
|
+
f = Card.fetch(c.name)
|
74
|
+
expect(f).to respond_to(:query)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
78
|
context "(pointer)" do
|
79
79
|
it "happens with explicit pointer setting" do
|
80
|
-
expect(Card.new(type: "Pointer").respond_to
|
80
|
+
expect(Card.new(type: "Pointer")).to respond_to(:add_item)
|
81
81
|
end
|
82
82
|
|
83
83
|
it "happens with implicit pointer setting (from template)" do
|
84
|
-
expect(Card.new(name: "Home+*cc").respond_to
|
84
|
+
expect(Card.new(name: "Home+*cc")).to respond_to(:add_item)
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
@@ -1,4 +1,208 @@
|
|
1
1
|
RSpec.describe Card::Set::All::NameEvents do
|
2
|
+
include CardExpectations
|
3
|
+
|
4
|
+
def name_invariant_attributes card
|
5
|
+
descendant_ids = []
|
6
|
+
card.each_descendant { |d| descendant_ids << d.id }
|
7
|
+
{
|
8
|
+
content: card.db_content,
|
9
|
+
# updater_id: card.updater_id,
|
10
|
+
# revisions: card.actions.count,
|
11
|
+
referers: card.referers.map(&:name).sort,
|
12
|
+
referees: card.referees.map(&:name).sort,
|
13
|
+
descendants: descendant_ids.sort
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
def assert_rename card, new_name
|
18
|
+
card = card_to_rename card
|
19
|
+
attrs_before = name_invariant_attributes(card)
|
20
|
+
actions_count_before = card.actions.count
|
21
|
+
old_name = card.name
|
22
|
+
|
23
|
+
update! card.name, name: new_name, update_referers: true
|
24
|
+
expect_action_added card, actions_count_before
|
25
|
+
expect_old_name_cleared old_name
|
26
|
+
expect_successful_rename card, attrs_before
|
27
|
+
end
|
28
|
+
|
29
|
+
def expect_action_added card, actions_count_before
|
30
|
+
expect(card.actions.count).to eq(actions_count_before + 1)
|
31
|
+
end
|
32
|
+
|
33
|
+
def expect_old_name_cleared old_name
|
34
|
+
expect(Card.cache.read(old_name)).to eq(nil)
|
35
|
+
end
|
36
|
+
|
37
|
+
def expect_successful_rename card, attrs_before
|
38
|
+
expect(name_invariant_attributes(card)).to eq(attrs_before)
|
39
|
+
expect(Card[card.name]).to eq(card)
|
40
|
+
end
|
41
|
+
|
42
|
+
def card_to_rename card
|
43
|
+
return card unless card.is_a? String
|
44
|
+
|
45
|
+
Card[card].refresh || raise("Couldn't find card named #{card}")
|
46
|
+
end
|
47
|
+
|
48
|
+
it "renames simple card to its own child" do
|
49
|
+
assert_rename "F", "F+M"
|
50
|
+
end
|
51
|
+
|
52
|
+
it "disallows renaming simple to compound when simple is used as tag" do
|
53
|
+
expect { Card["A"].update! name: "A+M" }.to raise_error(/illegal name change/)
|
54
|
+
end
|
55
|
+
|
56
|
+
it "renames plus card to its own child" do
|
57
|
+
assert_rename "A+B", "A+B+T"
|
58
|
+
end
|
59
|
+
|
60
|
+
it "clears cache for old name" do
|
61
|
+
Card["A"]
|
62
|
+
Card["A+B"]
|
63
|
+
assert_rename "A", "AAA"
|
64
|
+
expect(Card.cache.read("a")).to be_nil
|
65
|
+
expect(Card.cache.read("a+b")).to be_nil
|
66
|
+
end
|
67
|
+
|
68
|
+
it "wipes old references by default" do
|
69
|
+
update "Menu", name: "manure"
|
70
|
+
expect(Card["manure"].references_in.size).to eq(0)
|
71
|
+
end
|
72
|
+
|
73
|
+
it "picks up new references" do
|
74
|
+
expect(Card["Z"].references_in.size).to eq(2)
|
75
|
+
assert_rename "Z", "Mister X"
|
76
|
+
expect(Card["Mister X"].references_in.size).to eq(3)
|
77
|
+
end
|
78
|
+
|
79
|
+
it "handles name variants" do
|
80
|
+
assert_rename "B", "b"
|
81
|
+
end
|
82
|
+
|
83
|
+
it "handles plus cards renamed to simple" do
|
84
|
+
assert_rename "A+B", "K"
|
85
|
+
end
|
86
|
+
|
87
|
+
it "handles flipped parts" do
|
88
|
+
assert_rename "A+B", "B+A"
|
89
|
+
end
|
90
|
+
|
91
|
+
it "fails if card exists" do
|
92
|
+
expect { update "T", name: "A+B" }.to raise_error(/Name must be unique/)
|
93
|
+
end
|
94
|
+
|
95
|
+
it "fails if used as tag" do
|
96
|
+
expect { update "B", name: "A+D" }.to raise_error(/Name must be unique/)
|
97
|
+
end
|
98
|
+
|
99
|
+
it "updates descendants" do
|
100
|
+
old_names = %w[One+Two One+Two+Three Four+One Four+One+Five]
|
101
|
+
new_names = %w[Uno+Two Uno+Two+Three Four+Uno Four+Uno+Five]
|
102
|
+
card_list = old_names.map { |name| Card[name] }
|
103
|
+
|
104
|
+
expect(card_list.map(&:name)).to eq old_names
|
105
|
+
update "One", name: "Uno"
|
106
|
+
expect(card_list.map(&:id).map(&:cardname)).to eq new_names
|
107
|
+
end
|
108
|
+
|
109
|
+
it "fails if name is invalid" do
|
110
|
+
expect { update "T", name: "" }
|
111
|
+
.to raise_error(/Name can't be blank/)
|
112
|
+
end
|
113
|
+
|
114
|
+
example "simple to simple" do
|
115
|
+
assert_rename "A", "Alephant"
|
116
|
+
end
|
117
|
+
|
118
|
+
example "simple to junction with create" do
|
119
|
+
assert_rename "T", "C+J"
|
120
|
+
end
|
121
|
+
|
122
|
+
example "reset key" do
|
123
|
+
c = Card["basicname"]
|
124
|
+
update "basicname", name: "banana card"
|
125
|
+
expect(c.key).to eq("banana_card")
|
126
|
+
expect(Card["Banana Card"]).not_to be_nil
|
127
|
+
end
|
128
|
+
|
129
|
+
it "does not fail when updating inaccessible referer" do
|
130
|
+
Card.create! name: "Joe Card", content: "Whattup"
|
131
|
+
Card::Auth.as "joe_admin" do
|
132
|
+
Card.create! name: "Admin Card", content: "[[Joe Card]]"
|
133
|
+
end
|
134
|
+
|
135
|
+
c = Card["Joe Card"]
|
136
|
+
c.update! name: "Card of Joe", update_referers: true
|
137
|
+
assert_equal "[[Card of Joe]]", Card["Admin Card"].content
|
138
|
+
end
|
139
|
+
|
140
|
+
it "test_rename_should_update_structured_referer" do
|
141
|
+
Card::Auth.as_bot do
|
142
|
+
c = Card.create! name: "Pit"
|
143
|
+
Card.create! name: "Orange", type: "Fruit", content: "[[Pit]]"
|
144
|
+
Card.create! name: "Fruit+*type+*structure", content: "this [[Pit]]"
|
145
|
+
|
146
|
+
assert_equal "this [[Pit]]", Card["Orange"].content
|
147
|
+
c.update! name: "Seed", update_referers: true
|
148
|
+
assert_equal "this [[Seed]]", Card["Orange"].content
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
it "handles plus cards that have children" do
|
153
|
+
assert_rename Card["a+b"], "e+f"
|
154
|
+
end
|
155
|
+
|
156
|
+
context "with self references" do
|
157
|
+
example "renaming card with self link should nothang" do
|
158
|
+
pre_content = Card["self_aware"].content
|
159
|
+
update "self aware", name: "buttah", update_referers: true
|
160
|
+
expect_card("Buttah").to have_content(pre_content)
|
161
|
+
end
|
162
|
+
|
163
|
+
it "renames card without updating references" do
|
164
|
+
pre_content = Card["self_aware"].content
|
165
|
+
update "self aware", name: "Newt", update_referers: false
|
166
|
+
expect_card("Newt").to have_content(pre_content)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
context "with references" do
|
171
|
+
it "updates nests" do
|
172
|
+
update "Blue", name: "Red", update_referers: true
|
173
|
+
expect_card("blue includer 1").to have_content("{{Red}}")
|
174
|
+
expect_card("blue includer 2").to have_content("{{Red|closed;other:stuff}}")
|
175
|
+
end
|
176
|
+
|
177
|
+
it "updates nests when renaming to plus" do
|
178
|
+
update "Blue", name: "blue includer 1+color", update_referers: true
|
179
|
+
expect_card("blue includer 1").to have_content("{{blue includer 1+color}}")
|
180
|
+
end
|
181
|
+
|
182
|
+
it "reference updates on case variants" do
|
183
|
+
update "Blue", name: "Red", update_referers: true
|
184
|
+
expect_card("blue linker 1").to have_content("[[Red]]")
|
185
|
+
expect_card("blue linker 2").to have_content("[[Red]]")
|
186
|
+
end
|
187
|
+
|
188
|
+
it "handles link to and nest of same card" do
|
189
|
+
update "blue linker 1", content: "[[Blue]] is {{Blue|name}}"
|
190
|
+
update "Blue", name: "Red", update_referers: true
|
191
|
+
expect_card("blue linker 1").to have_content("[[Red]] is {{Red|name}}")
|
192
|
+
end
|
193
|
+
|
194
|
+
example "reference updates plus to simple" do
|
195
|
+
assert_rename Card["A+B"], "schmuck"
|
196
|
+
expect_card("X").to have_content("[[A]] [[schmuck]] [[T]]")
|
197
|
+
end
|
198
|
+
|
199
|
+
it "substitutes name part" do
|
200
|
+
c1 = Card["A+B"]
|
201
|
+
assert_rename Card["B"], "buck"
|
202
|
+
expect(Card.find(c1.id).name).to eq "A+buck"
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
2
206
|
describe "event: set_name" do
|
3
207
|
it "handles case variants" do
|
4
208
|
c = Card.create! name: "chump"
|
@@ -1,40 +1,19 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
|
3
1
|
RSpec.describe Card::Set::Type::Cardtype do
|
4
|
-
describe "view: add_button" do
|
5
|
-
it "creates link with correct path" do
|
6
|
-
expect(render_content("{{RichText|add_button}}"))
|
7
|
-
.to have_tag('a[href="/type/RichText?view=new_in_modal"]', text: "Add RichText")
|
8
|
-
end
|
9
|
-
it "handles title argument" do
|
10
|
-
expect(render_content("{{RichText|add_button;title: custom link text}}"))
|
11
|
-
.to have_tag('a[href="/type/RichText?view=new_in_modal"]',
|
12
|
-
text: "custom link text")
|
13
|
-
end
|
14
|
-
it "handles params" do
|
15
|
-
expect(render_content("{{RichText|add_button;params:_project=_self}}"))
|
16
|
-
.to have_tag('a[href="/type/RichText?_project=Tempo+Rary+2&view=new_in_modal"]')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
2
|
it "can only be deleted when no instances present" do
|
21
3
|
city = create_cardtype "City"
|
22
4
|
sparta = create_city "Sparta"
|
23
5
|
expect(sparta.type_id).to eq city.id
|
24
|
-
expect { city.delete! }
|
25
|
-
.to raise_error(/this card must remain/)
|
6
|
+
expect { city.delete! }.to raise_error(/this card must remain/)
|
26
7
|
expect(Card["City"]).to be_a(Card)
|
27
8
|
sparta.delete!
|
28
|
-
expect { city.delete! }
|
29
|
-
.not_to raise_error
|
9
|
+
expect { city.delete! }.not_to raise_error
|
30
10
|
end
|
31
11
|
|
32
12
|
it "type can't be change when instances present" do
|
33
13
|
expect { update "Cardtype A", type_id: Card::BasicID }
|
34
14
|
.to raise_error(/can't alter this type/)
|
35
15
|
Card["type-a-card"].delete!
|
36
|
-
expect { update "Cardtype A", type_id: Card::BasicID }
|
37
|
-
.not_to raise_error
|
16
|
+
expect { update "Cardtype A", type_id: Card::BasicID }.not_to raise_error
|
38
17
|
expect(Card["Cardtype A"]).to have_type :basic
|
39
18
|
end
|
40
19
|
|
@@ -1,59 +1 @@
|
|
1
|
-
<svg style="min-width:
|
2
|
-
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
|
3
|
-
<title>b&w_logo</title>
|
4
|
-
<desc>Created with Sketch.</desc>
|
5
|
-
<defs>
|
6
|
-
<rect id="path-1" x="35.3297422" y="10.484836" width="157.279595" height="190.607432" rx="12.491335"></rect>
|
7
|
-
<filter x="-12.1%" y="-10.5%" width="125.4%" height="121.0%" filterUnits="objectBoundingBox" id="filter-2">
|
8
|
-
<feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
|
9
|
-
<feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
|
10
|
-
<feGaussianBlur stdDeviation="5.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
11
|
-
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
12
|
-
</filter>
|
13
|
-
<rect id="path-3" x="51.9878879" y="19.404077" width="123.9533" height="171.161486" rx="9.6888466"></rect>
|
14
|
-
<filter x="-15.3%" y="-11.7%" width="132.3%" height="123.4%" filterUnits="objectBoundingBox" id="filter-4">
|
15
|
-
<feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
|
16
|
-
<feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
|
17
|
-
<feGaussianBlur stdDeviation="5.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
18
|
-
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
19
|
-
</filter>
|
20
|
-
<path d="M70.1050368,35.6666109 L159.089911,35.6666109 L159.089911,35.6666109 C163.678051,35.6666109 167.397473,39.386033 167.397473,43.9741728 L167.397473,87.717145 L167.397473,166.808436 L167.397473,166.808436 C167.397473,171.396576 163.678051,175.115998 159.089911,175.115998 L70.1050368,175.115998 L70.1050368,175.115998 C65.516897,175.115998 61.7974749,171.396576 61.7974749,166.808436 L61.7974749,43.9741728 L61.7974749,43.9741728 C61.7974749,39.386033 65.516897,35.6666109 70.1050368,35.6666109 Z" id="path-5"></path>
|
21
|
-
<filter x="-18.0%" y="-14.3%" width="137.9%" height="128.7%" filterUnits="objectBoundingBox" id="filter-6">
|
22
|
-
<feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
|
23
|
-
<feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
|
24
|
-
<feGaussianBlur stdDeviation="5.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
25
|
-
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
26
|
-
</filter>
|
27
|
-
<rect id="path-7" x="70.7637805" y="49.8525134" width="92.149175" height="107.18743" rx="7.8659801"></rect>
|
28
|
-
<filter x="-20.6%" y="-18.7%" width="143.4%" height="137.3%" filterUnits="objectBoundingBox" id="filter-8">
|
29
|
-
<feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
|
30
|
-
<feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
|
31
|
-
<feGaussianBlur stdDeviation="5.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
32
|
-
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.102553216 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
33
|
-
</filter>
|
34
|
-
</defs>
|
35
|
-
<g id="Page-3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
36
|
-
<g id="b&w_logo" fill-rule="nonzero">
|
37
|
-
<g id="Decko-Logo-" transform="translate(7.000000, 4.000000)">
|
38
|
-
<g id="g5642">
|
39
|
-
<g id="svg-card-1" transform="translate(113.969540, 105.788552) scale(-1, 1) rotate(105.855860) translate(-113.969540, -105.788552) ">
|
40
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
|
41
|
-
<use fill="#4D4D4D" fill-rule="evenodd" xlink:href="#path-1"></use>
|
42
|
-
</g>
|
43
|
-
<g id="svg-card-2" opacity="0.879999995" transform="translate(113.964538, 104.984820) scale(-1, 1) rotate(117.480003) translate(-113.964538, -104.984820) ">
|
44
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
45
|
-
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-3"></use>
|
46
|
-
</g>
|
47
|
-
<g id="svg-card-3" transform="translate(114.597474, 105.391304) scale(-1, 1) rotate(133.539993) translate(-114.597474, -105.391304) ">
|
48
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-6)" xlink:href="#path-5"></use>
|
49
|
-
<use fill="#4C4C4C" fill-rule="evenodd" xlink:href="#path-5"></use>
|
50
|
-
</g>
|
51
|
-
<g id="svg-card-4" opacity="0.879999995" transform="translate(116.838368, 103.446228) scale(-1, 1) rotate(142.690002) translate(-116.838368, -103.446228) ">
|
52
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-8)" xlink:href="#path-7"></use>
|
53
|
-
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-7"></use>
|
54
|
-
</g>
|
55
|
-
</g>
|
56
|
-
</g>
|
57
|
-
</g>
|
58
|
-
</g>
|
59
|
-
</svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="min-width:65px;min-height:45px;margin-top:-12px;margin-bottom:-14px" version="1.1" viewBox="0 0 242 218"><title>b&w_logo</title><desc>Created with Sketch.</desc><defs><rect id="path-1" width="157.28" height="190.607" x="35.33" y="10.485" rx="12.491"/><filter id="filter-2" width="125.4%" height="121%" x="-12.1%" y="-10.5%" filterUnits="objectBoundingBox"><feMorphology in="SourceAlpha" operator="dilate" radius="1" result="shadowSpreadOuter1"/><feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="5.5"/><feColorMatrix in="shadowBlurOuter1" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/></filter><rect id="path-3" width="123.953" height="171.161" x="51.988" y="19.404" rx="9.689"/><filter id="filter-4" width="132.3%" height="123.4%" x="-15.3%" y="-11.7%" filterUnits="objectBoundingBox"><feMorphology in="SourceAlpha" operator="dilate" radius="1" result="shadowSpreadOuter1"/><feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="5.5"/><feColorMatrix in="shadowBlurOuter1" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/></filter><path id="path-5" d="M70.1050368,35.6666109 L159.089911,35.6666109 L159.089911,35.6666109 C163.678051,35.6666109 167.397473,39.386033 167.397473,43.9741728 L167.397473,87.717145 L167.397473,166.808436 L167.397473,166.808436 C167.397473,171.396576 163.678051,175.115998 159.089911,175.115998 L70.1050368,175.115998 L70.1050368,175.115998 C65.516897,175.115998 61.7974749,171.396576 61.7974749,166.808436 L61.7974749,43.9741728 L61.7974749,43.9741728 C61.7974749,39.386033 65.516897,35.6666109 70.1050368,35.6666109 Z"/><filter id="filter-6" width="137.9%" height="128.7%" x="-18%" y="-14.3%" filterUnits="objectBoundingBox"><feMorphology in="SourceAlpha" operator="dilate" radius="1" result="shadowSpreadOuter1"/><feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="5.5"/><feColorMatrix in="shadowBlurOuter1" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/></filter><rect id="path-7" width="92.149" height="107.187" x="70.764" y="49.853" rx="7.866"/><filter id="filter-8" width="143.4%" height="137.3%" x="-20.6%" y="-18.7%" filterUnits="objectBoundingBox"><feMorphology in="SourceAlpha" operator="dilate" radius="1" result="shadowSpreadOuter1"/><feOffset dx="1" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="5.5"/><feColorMatrix in="shadowBlurOuter1" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.102553216 0"/></filter></defs><g id="Page-3" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="b&w_logo" fill-rule="nonzero"><g id="Decko-Logo-" transform="translate(7.000000, 4.000000)"><g id="g5642"><g id="svg-card-1" transform="translate(113.969540, 105.788552) scale(-1, 1) rotate(105.855860) translate(-113.969540, -105.788552)"><use fill="#000" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"/><use fill="#4D4D4D" fill-rule="evenodd" xlink:href="#path-1"/></g><g id="svg-card-2" opacity=".88" transform="translate(113.964538, 104.984820) scale(-1, 1) rotate(117.480003) translate(-113.964538, -104.984820)"><use fill="#000" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"/><use fill="#FFF" fill-rule="evenodd" xlink:href="#path-3"/></g><g id="svg-card-3" transform="translate(114.597474, 105.391304) scale(-1, 1) rotate(133.539993) translate(-114.597474, -105.391304)"><use fill="#000" fill-opacity="1" filter="url(#filter-6)" xlink:href="#path-5"/><use fill="#4C4C4C" fill-rule="evenodd" xlink:href="#path-5"/></g><g id="svg-card-4" opacity=".88" transform="translate(116.838368, 103.446228) scale(-1, 1) rotate(142.690002) translate(-116.838368, -103.446228)"><use fill="#000" fill-opacity="1" filter="url(#filter-8)" xlink:href="#path-7"/><use fill="#FFF" fill-rule="evenodd" xlink:href="#path-7"/></g></g></g></g></g></svg>
|
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.101.
|
4
|
+
version: 1.101.5
|
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: 2021-05-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cardname
|
@@ -18,56 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.11.
|
21
|
+
version: 0.11.5
|
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.11.
|
28
|
+
version: 0.11.5
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - "<="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 12.3.0
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - "<="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 12.3.0
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: rails
|
45
31
|
requirement: !ruby/object:Gem::Requirement
|
46
32
|
requirements:
|
47
33
|
- - "~>"
|
48
34
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
35
|
+
version: '13.0'
|
50
36
|
type: :runtime
|
51
37
|
prerelease: false
|
52
38
|
version_requirements: !ruby/object:Gem::Requirement
|
53
39
|
requirements:
|
54
40
|
- - "~>"
|
55
41
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
42
|
+
version: '13.0'
|
57
43
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
44
|
+
name: rails
|
59
45
|
requirement: !ruby/object:Gem::Requirement
|
60
46
|
requirements:
|
61
47
|
- - "~>"
|
62
48
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
49
|
+
version: 6.1.3.1
|
64
50
|
type: :runtime
|
65
51
|
prerelease: false
|
66
52
|
version_requirements: !ruby/object:Gem::Requirement
|
67
53
|
requirements:
|
68
54
|
- - "~>"
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
56
|
+
version: 6.1.3.1
|
71
57
|
- !ruby/object:Gem::Dependency
|
72
58
|
name: colorize
|
73
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,14 +144,14 @@ dependencies:
|
|
158
144
|
requirements:
|
159
145
|
- - "~>"
|
160
146
|
- !ruby/object:Gem::Version
|
161
|
-
version: '
|
147
|
+
version: '4.2'
|
162
148
|
type: :runtime
|
163
149
|
prerelease: false
|
164
150
|
version_requirements: !ruby/object:Gem::Requirement
|
165
151
|
requirements:
|
166
152
|
- - "~>"
|
167
153
|
- !ruby/object:Gem::Version
|
168
|
-
version: '
|
154
|
+
version: '4.2'
|
169
155
|
- !ruby/object:Gem::Dependency
|
170
156
|
name: sprockets
|
171
157
|
requirement: !ruby/object:Gem::Requirement
|
@@ -269,7 +255,6 @@ files:
|
|
269
255
|
- config/initializers/mime_types.rb
|
270
256
|
- config/initializers/notification.rb
|
271
257
|
- config/initializers/patches.rb
|
272
|
-
- config/initializers/uuid_state_file.rb
|
273
258
|
- config/initializers/zeitwerk.rb
|
274
259
|
- config/locales/de.yml
|
275
260
|
- config/locales/en.yml
|
@@ -526,11 +511,15 @@ files:
|
|
526
511
|
- lib/card/auth/setup.rb
|
527
512
|
- lib/card/auth/token.rb
|
528
513
|
- lib/card/cache.rb
|
514
|
+
- lib/card/cache/all.rb
|
515
|
+
- lib/card/cache/card_class.rb
|
529
516
|
- lib/card/cache/persistent.rb
|
517
|
+
- lib/card/cache/persistent_class.rb
|
530
518
|
- lib/card/cache/prepopulate.rb
|
531
519
|
- lib/card/cache/temporary.rb
|
532
520
|
- lib/card/codename.rb
|
533
521
|
- lib/card/content.rb
|
522
|
+
- lib/card/content/all.rb
|
534
523
|
- lib/card/content/chunk.rb
|
535
524
|
- lib/card/content/chunk/abstract.rb
|
536
525
|
- lib/card/content/clean.rb
|
@@ -542,6 +531,8 @@ files:
|
|
542
531
|
- lib/card/content/truncate.rb
|
543
532
|
- lib/card/director.rb
|
544
533
|
- lib/card/director/act_direction.rb
|
534
|
+
- lib/card/director/all.rb
|
535
|
+
- lib/card/director/card_class.rb
|
545
536
|
- lib/card/director/card_methods.rb
|
546
537
|
- lib/card/director/event_delay.rb
|
547
538
|
- lib/card/director/phases.rb
|
@@ -558,8 +549,11 @@ files:
|
|
558
549
|
- lib/card/env/serialization.rb
|
559
550
|
- lib/card/env/slot_options.rb
|
560
551
|
- lib/card/env/success.rb
|
552
|
+
- lib/card/env/success/target.rb
|
561
553
|
- lib/card/error.rb
|
562
554
|
- lib/card/fetch.rb
|
555
|
+
- lib/card/fetch/all.rb
|
556
|
+
- lib/card/fetch/card_class.rb
|
563
557
|
- lib/card/fetch/results.rb
|
564
558
|
- lib/card/fetch/retrieve.rb
|
565
559
|
- lib/card/fetch/store.rb
|
@@ -581,9 +575,14 @@ files:
|
|
581
575
|
- lib/card/lexicon.rb
|
582
576
|
- lib/card/mailer.rb
|
583
577
|
- lib/card/mark.rb
|
584
|
-
- lib/card/mod_inflector.rb
|
585
578
|
- lib/card/model/save_helper.rb
|
579
|
+
- lib/card/model/save_helper/save_arguments.rb
|
580
|
+
- lib/card/model/save_helper/save_helper_helper.rb
|
586
581
|
- lib/card/name.rb
|
582
|
+
- lib/card/name/all.rb
|
583
|
+
- lib/card/name/all/descendants.rb
|
584
|
+
- lib/card/name/all/parts.rb
|
585
|
+
- lib/card/name/card_class.rb
|
587
586
|
- lib/card/name/fields_and_traits.rb
|
588
587
|
- lib/card/name/name_variants.rb
|
589
588
|
- lib/card/query.rb
|
@@ -612,7 +611,9 @@ files:
|
|
612
611
|
- lib/card/query/value.rb
|
613
612
|
- lib/card/query/value/match_value.rb
|
614
613
|
- lib/card/reference.rb
|
614
|
+
- lib/card/reference/all.rb
|
615
615
|
- lib/card/rule.rb
|
616
|
+
- lib/card/rule/all.rb
|
616
617
|
- lib/card/rule/cache.rb
|
617
618
|
- lib/card/rule/preference_cache.rb
|
618
619
|
- lib/card/rule/read_rule_cache.rb
|
@@ -623,9 +624,11 @@ files:
|
|
623
624
|
- lib/card/set/basket.rb
|
624
625
|
- lib/card/set/code_nest.rb
|
625
626
|
- lib/card/set/event.rb
|
627
|
+
- lib/card/set/event/all.rb
|
626
628
|
- lib/card/set/event/callbacks.rb
|
627
629
|
- lib/card/set/event/delayed_event.rb
|
628
630
|
- lib/card/set/event/options.rb
|
631
|
+
- lib/card/set/event/skip_and_trigger.rb
|
629
632
|
- lib/card/set/format.rb
|
630
633
|
- lib/card/set/format/abstract_format.rb
|
631
634
|
- lib/card/set/format/abstract_format/haml_views.rb
|
@@ -639,13 +642,17 @@ files:
|
|
639
642
|
- lib/card/set/inheritance.rb
|
640
643
|
- lib/card/set/loader.rb
|
641
644
|
- lib/card/set/pattern.rb
|
645
|
+
- lib/card/set/pattern/all.rb
|
642
646
|
- lib/card/set/pattern/base.rb
|
647
|
+
- lib/card/set/pattern/class_methods.rb
|
643
648
|
- lib/card/set/required_field.rb
|
644
649
|
- lib/card/set/trait.rb
|
645
650
|
- lib/card/set/type.rb
|
646
651
|
- lib/card/setting.rb
|
647
652
|
- lib/card/subcards.rb
|
648
653
|
- lib/card/subcards/add.rb
|
654
|
+
- lib/card/subcards/all.rb
|
655
|
+
- lib/card/subcards/args.rb
|
649
656
|
- lib/card/subcards/relate.rb
|
650
657
|
- lib/card/subcards/remove.rb
|
651
658
|
- lib/card/tasks/card.rake
|
@@ -672,6 +679,7 @@ files:
|
|
672
679
|
- lib/card/view/options/voo_api.rb
|
673
680
|
- lib/card/view/permission.rb
|
674
681
|
- lib/cardio.rb
|
682
|
+
- lib/cardio/defaults.yml
|
675
683
|
- lib/cardio/delaying.rb
|
676
684
|
- lib/cardio/migration.rb
|
677
685
|
- lib/cardio/migration/core.rb
|
@@ -713,7 +721,6 @@ files:
|
|
713
721
|
- lib/generators/card/template/USAGE
|
714
722
|
- lib/generators/card/template/template_generator.rb
|
715
723
|
- lib/generators/card/template/templates/haml_template.erb
|
716
|
-
- mod/Modfile
|
717
724
|
- mod/admin/set/self/admin.rb
|
718
725
|
- mod/admin/set/self/admin_info.rb
|
719
726
|
- mod/admin/set/self/debugger.rb
|
@@ -722,31 +729,25 @@ files:
|
|
722
729
|
- mod/admin/spec/set/self/admin_spec.rb
|
723
730
|
- mod/admin/spec/set/self/trash_spec.rb
|
724
731
|
- mod/core/set/all/abort.rb
|
725
|
-
- mod/core/set/all/actify.rb
|
726
732
|
- mod/core/set/all/assign_attributes.rb
|
727
|
-
- mod/core/set/all/
|
733
|
+
- mod/core/set/all/autoname.rb
|
728
734
|
- mod/core/set/all/codename.rb
|
729
735
|
- mod/core/set/all/collection.rb
|
730
736
|
- mod/core/set/all/content.rb
|
731
737
|
- mod/core/set/all/contextual_content.rb
|
732
738
|
- mod/core/set/all/debug.rb
|
733
|
-
- mod/core/set/all/event_conditions.rb
|
734
|
-
- mod/core/set/all/fetch.rb
|
735
|
-
- mod/core/set/all/fetch_helper.rb
|
736
|
-
- mod/core/set/all/i18n.rb
|
737
739
|
- mod/core/set/all/initialize.rb
|
738
|
-
- mod/core/set/all/name.rb
|
739
740
|
- mod/core/set/all/name_events.rb
|
740
|
-
- mod/core/set/all/
|
741
|
-
- mod/core/set/all/references.rb
|
742
|
-
- mod/core/set/all/rename.rb
|
743
|
-
- mod/core/set/all/rules.rb
|
741
|
+
- mod/core/set/all/reference_events.rb
|
744
742
|
- mod/core/set/all/states.rb
|
745
743
|
- mod/core/set/all/subcards.rb
|
746
744
|
- mod/core/set/all/trash.rb
|
747
745
|
- mod/core/set/all/type.rb
|
748
746
|
- mod/core/set/all/utils.rb
|
747
|
+
- mod/core/set/right/autoname.rb
|
748
|
+
- mod/core/set/self/autoname.rb
|
749
749
|
- mod/core/set/self/version.rb
|
750
|
+
- mod/core/set/type/cardtype.rb
|
750
751
|
- mod/core/set_pattern/01_all.rb
|
751
752
|
- mod/core/set_pattern/02_all_plus.rb
|
752
753
|
- mod/core/set_pattern/03_type.rb
|
@@ -756,42 +757,25 @@ files:
|
|
756
757
|
- mod/core/set_pattern/07_right.rb
|
757
758
|
- mod/core/set_pattern/08_type_plus_right.rb
|
758
759
|
- mod/core/set_pattern/09_self.rb
|
759
|
-
- mod/core/spec/set/all/actify_spec.rb
|
760
760
|
- mod/core/spec/set/all/assign_attributes_spec.rb
|
761
|
+
- mod/core/spec/set/all/clean_me_spec.rb
|
761
762
|
- mod/core/spec/set/all/codename_spec.rb
|
762
763
|
- mod/core/spec/set/all/collection_spec.rb
|
763
|
-
- mod/core/spec/set/all/content_spec.rb
|
764
|
-
- mod/core/spec/set/all/event_conditions_spec.rb
|
765
764
|
- mod/core/spec/set/all/export_spec.rb
|
766
|
-
- mod/core/spec/set/all/fetch_helper_spec.rb
|
767
|
-
- mod/core/spec/set/all/fetch_spec.rb
|
768
|
-
- mod/core/spec/set/all/i18n_spec.rb
|
769
765
|
- mod/core/spec/set/all/initialize_spec.rb
|
770
766
|
- mod/core/spec/set/all/name_events_spec.rb
|
771
|
-
- mod/core/spec/set/all/name_spec.rb
|
772
|
-
- mod/core/spec/set/all/pattern_spec.rb
|
773
|
-
- mod/core/spec/set/all/permissions/reader_rules_spec.rb
|
774
|
-
- mod/core/spec/set/all/references_spec.rb
|
775
|
-
- mod/core/spec/set/all/rename_spec.rb
|
776
|
-
- mod/core/spec/set/all/rules2_spec.rb
|
777
|
-
- mod/core/spec/set/all/rules_spec.rb
|
778
767
|
- mod/core/spec/set/all/states_spec.rb
|
779
|
-
- mod/core/spec/set/all/subcards_spec.rb
|
780
768
|
- mod/core/spec/set/all/trash_spec.rb
|
781
769
|
- mod/core/spec/set/all/type_spec.rb
|
782
770
|
- mod/core/spec/set/all/utils_spec.rb
|
783
771
|
- mod/core/spec/set/self/version_spec.rb
|
784
|
-
- mod/
|
785
|
-
- mod/settings/set/self/autoname.rb
|
772
|
+
- mod/core/spec/set/type/cardtype_spec.rb
|
786
773
|
- mod/standard/file/favicon/image-icon.png
|
787
774
|
- mod/standard/file/favicon/image-large.png
|
788
775
|
- mod/standard/file/favicon/image-medium.png
|
789
776
|
- mod/standard/file/favicon/image-original.png
|
790
777
|
- mod/standard/file/favicon/image-small.png
|
791
778
|
- mod/standard/file/logo/image-original.svg
|
792
|
-
- mod/standard/set/all/rich_html/html_views/info.rb
|
793
|
-
- mod/standard/set/type/cardtype.rb
|
794
|
-
- mod/standard/spec/set/type/cardtype_spec.rb
|
795
779
|
- tmpsets/set/mod001-admin/self/admin.rb
|
796
780
|
- tmpsets/set/mod001-admin/self/admin_info.rb
|
797
781
|
- tmpsets/set/mod001-admin/self/debugger.rb
|
@@ -1224,10 +1208,15 @@ files:
|
|
1224
1208
|
- tmpsets/set_pattern/106-right.rb
|
1225
1209
|
- tmpsets/set_pattern/107-type_plus_right.rb
|
1226
1210
|
- tmpsets/set_pattern/108-self.rb
|
1227
|
-
homepage:
|
1211
|
+
homepage: https://decko.org
|
1228
1212
|
licenses:
|
1229
1213
|
- GPL-3.0
|
1230
|
-
metadata:
|
1214
|
+
metadata:
|
1215
|
+
source_code_uri: https://github.com/decko-commons/decko
|
1216
|
+
homepage_uri: https://decko.org
|
1217
|
+
bug_tracker_uri: https://github.com/decko-commons/decko/issues
|
1218
|
+
wiki_uri: https://decko.org
|
1219
|
+
documentation_url: http://docs.decko.org/
|
1231
1220
|
post_install_message:
|
1232
1221
|
rdoc_options: []
|
1233
1222
|
require_paths:
|
@@ -1243,7 +1232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1243
1232
|
- !ruby/object:Gem::Version
|
1244
1233
|
version: '0'
|
1245
1234
|
requirements: []
|
1246
|
-
rubygems_version: 3.
|
1235
|
+
rubygems_version: 3.1.4
|
1247
1236
|
signing_key:
|
1248
1237
|
specification_version: 4
|
1249
1238
|
summary: a simple engine for emergent data structures
|