piggybak 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -1,6 +1,8 @@
1
1
  module Piggybak
2
2
  class OrdersController < ApplicationController
3
3
  def show
4
+ response.headers['Cache-Control'] = 'no-cache'
5
+
4
6
  @cart = Piggybak::Cart.new(request.cookies["cart"])
5
7
  @order = Piggybak::Order.new
6
8
 
@@ -18,6 +20,8 @@ module Piggybak
18
20
  end
19
21
 
20
22
  def submit
23
+ response.headers['Cache-Control'] = 'no-cache'
24
+
21
25
  begin
22
26
  ActiveRecord::Base.transaction do
23
27
  @order = Piggybak::Order.new(params[:piggybak_order])
@@ -53,6 +57,8 @@ module Piggybak
53
57
  end
54
58
 
55
59
  def receipt
60
+ response.headers['Cache-Control'] = 'no-cache'
61
+
56
62
  @order = Piggybak::Order.find(session[:last_order])
57
63
  end
58
64
 
@@ -1,5 +1,5 @@
1
1
  module Piggybak
2
- class ShipppingCalculator::Range < ShippingCalculator
2
+ class ShippingCalculator::Range < ShippingCalculator
3
3
  KEYS = ["cost", "upper", "lower"]
4
4
 
5
5
  def self.available?(method, object)
data/piggybak.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "piggybak"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steph Skardal"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steph Skardal