diff --git a/edition4/makedepot.rb b/edition4/makedepot.rb index 9716a6a..fcec199 100644 --- a/edition4/makedepot.rb +++ b/edition4/makedepot.rb @@ -2921,6 +2921,7 @@ def download end section 12.5, 'Playtime' do + next if Gorp::Config[:skip_xml_serialization] warn 'xml serialization skipped' next @@ -3347,7 +3348,10 @@ def pay_type_params edit 'test/system/products_test.rb' do sub! ':one', ':ruby' - sub! 'Product was successfully created', 'Title has already been taken' + # These aren't 100% correct, but close enough I think? + sub! 'test "updating a Product" do', "#START:fix-system-test\n test \"updating a Product\" do" + sub! 'test "destroying a Product" do', "#END:fix-system-test\n\ntest \"destroying a Product\" do" + sub! 'click_on "Update Product"', "#START_HIGHLIGHT\n fill_in \"Title\", with: \"Karel The Robot in a Nutshell\"# END_HIGHLIGHT\n click_on \"Update Product\"" end cmd 'rm test/system/carts_test.rb' cmd 'rm test/system/line_items_test.rb' @@ -4731,6 +4735,9 @@ def default_url_options end edit "app/javascript/PayTypeSelector/index.jsx" do clear_highlights + gsub! ' return (', " // START_HIGHLIGHT\n return (" + gsub! ' );'," );\n// END_HIGHLIGHT" + gsub! ' ', < {I18n.t("orders.form.pay_type")} @@ -4995,6 +5002,22 @@ def default_url_options edit 'app/views/layouts/application.html.erb', 'i18n' do clear_highlights + + # we need to add javascript_pack_tag("locale_switcher") in here as well + # this is probably not the best/right way to do this but hopefully expresses the intent + sub! "<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>", %{ + + <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> + } + + sub! /<\/script>/,%{ + + + <%= javascript_pack_tag 'locale_switcher', 'data-turbolinks-track': 'reload' %> + + + } + edit /^\s+
.*?<\/header>\n/m, :mark => 'i18n' msub /\n()\s+<%= image_tag/, <<-EOF, :highlight