Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Last active February 13, 2017 21:11
Show Gist options
  • Save tarynsauer/7620f0d3f91839b44cf8d7001b29572a to your computer and use it in GitHub Desktop.
Save tarynsauer/7620f0d3f91839b44cf8d7001b29572a to your computer and use it in GitHub Desktop.

Revisions

  1. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    display_promo: "false",
    hero_bg: "https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    img_element: "",
    title: "Valentine's Day Deals",
    title: "Valentine's Deals",
    subtitle: "Save on everything you love with Raise."
    }

  2. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,6 @@
    display_promo: "false",
    hero_bg: "https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    img_element: "",
    display_guarantee: false,
    title: "Valentine's Day Deals",
    subtitle: "Save on everything you love with Raise."
    }
  3. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    display_promo: "false",
    hero_bg: "https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    img_element: "",
    display_guarantee: "false",
    display_guarantee: false,
    title: "Valentine's Day Deals",
    subtitle: "Save on everything you love with Raise."
    }
  4. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    content = {
    :active=>true,
    :display_promo=>"false",
    :hero_bg=>"https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    :img_element=>"",
    :display_guarantee=>"false",
    :title=> "Valentine's Day Deals",
    :subtitle=> "Save on everything you love with Raise."
    active: true,
    display_promo: "false",
    hero_bg: "https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    img_element: "",
    display_guarantee: "false",
    title: "Valentine's Day Deals",
    subtitle: "Save on everything you love with Raise."
    }

    c = Cms::LandingPage.new('shop')
  5. tarynsauer revised this gist Feb 13, 2017. No changes.
  6. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,6 @@
    :subtitle=> "Save on everything you love with Raise."
    }

    brands = []
    c = Cms::LandingPage.new('shop')
    c.save_page('merchants', content, brands)
    c.save_page('merchants', content)
    c.get_page('merchants')
  7. tarynsauer revised this gist Feb 13, 2017. No changes.
  8. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 1 addition and 22 deletions.
    23 changes: 1 addition & 22 deletions v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -8,28 +8,7 @@
    :subtitle=> "Save on everything you love with Raise."
    }

    brands = [
    {:id=>0,
    :title=>"Best Sellers",
    :brands=>["105","12","286","4133","68","1467","40","100","1330","5","208","97","210","211","219","3606","55","3831","63","195"]
    },
    {:id=>1,
    :title=>"Home & Electronics",
    :brands=>["327","67","466","70","41","354","1328","558","433","2188","4106","1511","436","411","4104","4062","4091","3837","3972","4129"]
    },
    {:id=>2,
    :title=>"Apparel & Beauty",
    :brands=>["478","239","6","2846","278","2375","3905","3825","2372","941","1553","3907","3947","910","491","622","1160","4126","4043","4099"]
    },
    {:id=>3,
    :title=>"Food & Drink",
    :brands=>["3883","54","443","259","110","280","2950","334","81","439","1465","1000","990","573","1892","2794","731","363","78","3247"]
    },
    {:id=>4,
    :title=>"Things to Do",
    :brands=>["3051","679","296","461","1299","2036","268","463","578","1369","3215","314","394","1967","3223","2404","49","1137","3969","1513"]
    }
    ]
    brands = []
    c = Cms::LandingPage.new('shop')
    c.save_page('merchants', content, brands)
    c.get_page('merchants')
  9. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 24 additions and 1 deletion.
    25 changes: 24 additions & 1 deletion v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,29 @@
    :title=> "Valentine's Day Deals",
    :subtitle=> "Save on everything you love with Raise."
    }

    brands = [
    {:id=>0,
    :title=>"Best Sellers",
    :brands=>["105","12","286","4133","68","1467","40","100","1330","5","208","97","210","211","219","3606","55","3831","63","195"]
    },
    {:id=>1,
    :title=>"Home & Electronics",
    :brands=>["327","67","466","70","41","354","1328","558","433","2188","4106","1511","436","411","4104","4062","4091","3837","3972","4129"]
    },
    {:id=>2,
    :title=>"Apparel & Beauty",
    :brands=>["478","239","6","2846","278","2375","3905","3825","2372","941","1553","3907","3947","910","491","622","1160","4126","4043","4099"]
    },
    {:id=>3,
    :title=>"Food & Drink",
    :brands=>["3883","54","443","259","110","280","2950","334","81","439","1465","1000","990","573","1892","2794","731","363","78","3247"]
    },
    {:id=>4,
    :title=>"Things to Do",
    :brands=>["3051","679","296","461","1299","2036","268","463","578","1369","3215","314","394","1967","3223","2404","49","1137","3969","1513"]
    }
    ]
    c = Cms::LandingPage.new('shop')
    c.save_page('merchants', content, [])
    c.save_page('merchants', content, brands)
    c.get_page('merchants')
  10. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    :active=>true,
    :display_promo=>"false",
    :hero_bg=>"https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    :img_element=>"https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/iphone.png",
    :img_element=>"",
    :display_guarantee=>"false",
    :title=> "Valentine's Day Deals",
    :subtitle=> "Save on everything you love with Raise."
  11. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 0 additions and 10 deletions.
    10 changes: 0 additions & 10 deletions v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -7,16 +7,6 @@
    :title=> "Valentine's Day Deals",
    :subtitle=> "Save on everything you love with Raise."
    }

    content = {
    hero_bg:"https://d3hu3x7rvgjffo.cloudfront.net/marketing/landing-pages/lastcall/background.png",
    hero_title:"https://d3hu3x7rvgjffo.cloudfront.net/marketing/landing-pages/lastcall/title-text.png",
    hero_title_mobile: "https://d3hu3x7rvgjffo.cloudfront.net/marketing/landing-pages/lastcall/title-text-mobile.png",
    promocode:"LASTCALL",
    active:true,
    tagline:"Three Discounts. One Code:",
    terms: "Extra 3%, 4% and 5% off select brands with code <strong>LASTCALL</strong>. To redeem, sign in and apply code in promo box at checkout. Cannot be combined with any additional offers. Limit one-time use within date of promotion. One redemption per household. Offer expires 12/18/2016 11:59 PM CST. This offer is subject to our <a href=\"/raise-rewards-terms\" target=\"blank\">Rewards Terms and Conditions</a>."
    }
    c = Cms::LandingPage.new('shop')
    c.save_page('merchants', content, [])
    c.get_page('merchants')
  12. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -7,3 +7,16 @@
    :title=> "Valentine's Day Deals",
    :subtitle=> "Save on everything you love with Raise."
    }

    content = {
    hero_bg:"https://d3hu3x7rvgjffo.cloudfront.net/marketing/landing-pages/lastcall/background.png",
    hero_title:"https://d3hu3x7rvgjffo.cloudfront.net/marketing/landing-pages/lastcall/title-text.png",
    hero_title_mobile: "https://d3hu3x7rvgjffo.cloudfront.net/marketing/landing-pages/lastcall/title-text-mobile.png",
    promocode:"LASTCALL",
    active:true,
    tagline:"Three Discounts. One Code:",
    terms: "Extra 3%, 4% and 5% off select brands with code <strong>LASTCALL</strong>. To redeem, sign in and apply code in promo box at checkout. Cannot be combined with any additional offers. Limit one-time use within date of promotion. One redemption per household. Offer expires 12/18/2016 11:59 PM CST. This offer is subject to our <a href=\"/raise-rewards-terms\" target=\"blank\">Rewards Terms and Conditions</a>."
    }
    c = Cms::LandingPage.new('shop')
    c.save_page('merchants', content, [])
    c.get_page('merchants')
  13. tarynsauer revised this gist Feb 13, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    content = :active=>true,
    content = {
    :active=>true,
    :display_promo=>"false",
    :hero_bg=>"https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    :img_element=>"https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/iphone.png",
  14. tarynsauer created this gist Feb 13, 2017.
    8 changes: 8 additions & 0 deletions v-day-shop-merchants.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    content = :active=>true,
    :display_promo=>"false",
    :hero_bg=>"https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/shop_merchants_vday_desktop.jpg",
    :img_element=>"https://s3.amazonaws.com/raise-cdn/marketing/shop-lp/iphone.png",
    :display_guarantee=>"false",
    :title=> "Valentine's Day Deals",
    :subtitle=> "Save on everything you love with Raise."
    }