active_cart 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -17,6 +17,8 @@ The cart system has a storage engine, which means you aren't bound to a particul
17
17
 
18
18
  In this example the ShippingOrderTotal and GstOrderTotal have been created by the developer and follow the OrderTotal interface.
19
19
 
20
+ For information about the API and interfase, checkout the documentation: http://rdoc.info/projects/madpilot/active_cart
21
+
20
22
  == Todo
21
23
 
22
24
  Write some actual Storage Engines and OrderTotal examples.
data/Rakefile CHANGED
@@ -9,12 +9,17 @@ begin
9
9
  Jeweler::Tasks.new do |gem|
10
10
  gem.name = "active_cart"
11
11
  gem.summary = "Shopping Cart framework gem. Supports 'storage engines' and order total plugins"
12
- gem.description = "You can use active-cart as the basis of a shopping cart system. It's definately not complete, you need to build a website around it."
12
+ gem.description = "You can use active_cart as the basis of a shopping cart system. It's not a shopping cart application - it's a shopping cart framework."
13
13
  gem.email = "myles@madpilot.com.au"
14
- gem.homepage = "http://gemcutter.org/gems/active-cart"
14
+ gem.homepage = "http://gemcutter.org/gems/active_cart"
15
15
  gem.authors = ["Myles Eftos"]
16
16
  gem.version = File.exist?('VERSION') ? File.read('VERSION') : ""
17
+
17
18
  gem.add_dependency 'aasm'
19
+
20
+ gem.add_development_dependency 'redgreen'
21
+ gem.add_development_dependency 'shoulda'
22
+ gem.add_development_dependency 'mocha'
18
23
  end
19
24
  Jeweler::GemcutterTasks.new
20
25
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -16,13 +16,12 @@ module ActiveCart
16
16
  # @cart.check_payment! # transistions from checkout to verifying_payment
17
17
  # @cart.payment_successful! # transitions from verifying_payment to completed
18
18
  # @cart.payment_failed! # transitions from verifying_payment to failed
19
- # @cart.continue_shopping # transitions from checkout or verifying_payment to shopping
19
+ # @cart.continue_shopping! # transitions from checkout or verifying_payment to shopping
20
20
  #
21
21
  class Cart
22
22
  attr_accessor :storage_engine, :order_total_calculators, :customer
23
23
  include Enumerable
24
24
 
25
- # The method MUST be called before you call instance, otherwise you will receive and StandardError
26
25
  # You need to supply a storage engine. An optional block can be given which allows you to add order total items.
27
26
  #
28
27
  # A typical initialization block might look like this
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myles Eftos
@@ -22,7 +22,37 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  version:
25
- description: You can use active-cart as the basis of a shopping cart system. It's definately not complete, you need to build a website around it.
25
+ - !ruby/object:Gem::Dependency
26
+ name: redgreen
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: shoulda
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: mocha
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ description: You can use active_cart as the basis of a shopping cart system. It's not a shopping cart application - it's a shopping cart framework.
26
56
  email: myles@madpilot.com.au
27
57
  executables: []
28
58
 
@@ -35,8 +65,6 @@ files:
35
65
  - README.rdoc
36
66
  - Rakefile
37
67
  - VERSION
38
- - generators/schwacms-gallery/schwacms_gallery_generator.rb
39
- - generators/schwacms-gallery/templates/schwacms_gallery_migration.rb
40
68
  - install.rb
41
69
  - lib/active_cart.rb
42
70
  - lib/active_cart/cart.rb
@@ -55,7 +83,7 @@ files:
55
83
  - test/unit/order_total_collection_test.rb
56
84
  - uninstall.rb
57
85
  has_rdoc: true
58
- homepage: http://gemcutter.org/gems/active-cart
86
+ homepage: http://gemcutter.org/gems/active_cart
59
87
  licenses: []
60
88
 
61
89
  post_install_message:
@@ -1,11 +0,0 @@
1
- class SchwacmsGalleryGenerator < Rails::Generator::NamedBase
2
- def initialize(runtime_args, runtime_options = {})
3
- super
4
- end
5
-
6
- def manifest
7
- record do |m|
8
- m.migration_template 'schwacms_gallery_migration.rb', 'db/migrate', :migration_file_name => 'create_schwacms_gallery'
9
- end
10
- end
11
- end
@@ -1,26 +0,0 @@
1
- class CreateSchwacmsGallery < ActiveRecord::Migration
2
- def self.up
3
- create_table "galleries", :force => true do |t|
4
- t.integer "width"
5
- t.integer "height"
6
- t.integer "thumbnail_width"
7
- t.integer "thumbnail_height"
8
- t.datetime "created_at"
9
- t.datetime "updated_at"
10
- end
11
-
12
- create_table "gallery_images", :force => true do |t|
13
- t.string "path"
14
- t.text "description"
15
- t.integer "gallery_id"
16
- t.integer "position"
17
- t.datetime "created_at"
18
- t.datetime "updated_at"
19
- end
20
- end
21
-
22
- def self.down
23
- drop_table "gallery_images"
24
- drop_table "galleries"
25
- end
26
- end