cart 0.0.1 → 0.0.2

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.
@@ -0,0 +1 @@
1
+ pkg/
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Jakub Stastny aka Botanicus
1
+ Copyright (c) 2009 – 2010 Jakub Stastny aka Botanicus
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,20 +1,18 @@
1
- begin
2
- require "rubygems/specification"
3
- rescue SecurityError
4
- # http://gems.github.com
5
- end
1
+ #!/usr/bin/env gem build
2
+
3
+ require "base64"
6
4
 
7
- VERSION = "0.0.1"
8
5
  SPECIFICATION = ::Gem::Specification.new do |s|
9
6
  s.name = "cart"
10
- s.version = VERSION
7
+ s.version = "0.0.2"
11
8
  s.authors = ["Jakub Šťastný aka Botanicus"]
12
9
  s.homepage = "http://github.com/botanicus/cart"
13
10
  s.summary = "Cart is framework agnostic solution for shopping cart."
14
11
  s.description = "Cart is framework agnostic solution for shopping cart. There are two existing imlementations. First is *Cart::Simple* which is just basic cart which can store only ID of products without any metadata. The second is *Cart::Advanced* and it is good when you have not just product, but also some metadata as size or color of product etc."
15
12
  s.cert_chain = nil
16
- s.email = ["knava.bestvinensis", "gmail.com"].join("@")
17
- s.files = Dir.glob("**/*") - Dir.glob("pkg/*")
13
+ s.email = Base64.decode64("c3Rhc3RueUAxMDFpZGVhcy5jeg==\n")
14
+ s.files = `git ls-files`.split("\n")
15
+
18
16
  s.require_paths = ["lib"]
19
17
  # s.required_ruby_version = ::Gem::Requirement.new(">= 1.9.1")
20
18
  # s.rubyforge_project = "cart"
@@ -43,7 +43,7 @@ class Cart
43
43
  end
44
44
  @items.push(new_item)
45
45
  @config.logger.debug("Item #{new_item.inspect} was added to cart")
46
- return new_item.product
46
+ return new_item#.product
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
- date: 2009-11-26 00:00:00 +00:00
11
+ date: 2010-02-22 00:00:00 +00:00
12
12
  default_executable:
13
13
  dependencies: []
14
14
 
15
15
  description: Cart is framework agnostic solution for shopping cart. There are two existing imlementations. First is *Cart::Simple* which is just basic cart which can store only ID of products without any metadata. The second is *Cart::Advanced* and it is good when you have not just product, but also some metadata as size or color of product etc.
16
- email: knava.bestvinensis@gmail.com
16
+ email: stastny@101ideas.cz
17
17
  executables: []
18
18
 
19
19
  extensions: []
@@ -21,14 +21,16 @@ extensions: []
21
21
  extra_rdoc_files: []
22
22
 
23
23
  files:
24
+ - .gitignore
25
+ - LICENSE
26
+ - README.textile
27
+ - Rakefile
28
+ - TODO
24
29
  - cart.gemspec
25
30
  - lib/cart/advanced.rb
26
31
  - lib/cart/config.rb
27
32
  - lib/cart/logger_stub.rb
28
33
  - lib/cart/simple.rb
29
- - LICENSE
30
- - Rakefile
31
- - README.textile
32
34
  - spec/cart/advanced_spec.rb
33
35
  - spec/cart/config_spec.rb
34
36
  - spec/cart/logger_stub_spec.rb
@@ -36,7 +38,6 @@ files:
36
38
  - spec/factories.rb
37
39
  - spec/spec.opts
38
40
  - spec/spec_helper.rb
39
- - TODO
40
41
  has_rdoc: true
41
42
  homepage: http://github.com/botanicus/cart
42
43
  licenses: []