beecart 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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/beecart/{models/shopping_cart.rb → cart.rb} +52 -25
  3. data/lib/beecart/configuration.rb +58 -0
  4. data/lib/beecart/current_cart.rb +23 -0
  5. data/lib/beecart/error.rb +6 -0
  6. data/lib/beecart/gateway/base_gateway.rb +23 -0
  7. data/lib/beecart/gateway/webpay_gateway.rb +60 -0
  8. data/lib/beecart/validator/validator.rb +7 -0
  9. data/lib/beecart/version.rb +1 -1
  10. data/lib/beecart.rb +9 -38
  11. data/test/dummy/app/controllers/application_controller.rb +2 -0
  12. data/test/dummy/app/controllers/carts_controller.rb +26 -0
  13. data/test/dummy/app/views/carts/index.html.erb +8 -2
  14. data/test/dummy/config/initializers/beecart.rb +12 -5
  15. data/test/dummy/config/initializers/webpay.rb +1 -0
  16. data/test/dummy/config/routes.rb +3 -2
  17. data/test/dummy/db/development.sqlite3 +0 -0
  18. data/test/dummy/log/development.log +7736 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  25. data/test/dummy/tmp/pids/server.pid +1 -0
  26. metadata +55 -10
  27. data/app/assets/javascripts/cartbee/application.js +0 -13
  28. data/app/assets/stylesheets/cartbee/application.css +0 -13
  29. data/app/controllers/beecart/application_controller.rb +0 -4
  30. data/app/helpers/beecart/application_helper.rb +0 -4
  31. data/app/views/layouts/beecart/application.html.erb +0 -14
  32. data/lib/beecart/controllers/core_ext.rb +0 -13
  33. data/lib/beecart/engine.rb +0 -5
@@ -0,0 +1 @@
1
+ 89356
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beecart
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
  - Ryo Sakikawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-08 00:00:00.000000000 Z
11
+ date: 2014-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: redis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.6
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.6
41
+ - !ruby/object:Gem::Dependency
42
+ name: msgpack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.5.8
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.8
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: sqlite3
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -45,15 +73,14 @@ executables: []
45
73
  extensions: []
46
74
  extra_rdoc_files: []
47
75
  files:
48
- - app/assets/javascripts/cartbee/application.js
49
- - app/assets/stylesheets/cartbee/application.css
50
- - app/controllers/beecart/application_controller.rb
51
- - app/helpers/beecart/application_helper.rb
52
- - app/views/layouts/beecart/application.html.erb
53
76
  - config/routes.rb
54
- - lib/beecart/controllers/core_ext.rb
55
- - lib/beecart/engine.rb
56
- - lib/beecart/models/shopping_cart.rb
77
+ - lib/beecart/cart.rb
78
+ - lib/beecart/configuration.rb
79
+ - lib/beecart/current_cart.rb
80
+ - lib/beecart/error.rb
81
+ - lib/beecart/gateway/base_gateway.rb
82
+ - lib/beecart/gateway/webpay_gateway.rb
83
+ - lib/beecart/validator/validator.rb
57
84
  - lib/beecart/version.rb
58
85
  - lib/beecart.rb
59
86
  - lib/tasks/cartbee_tasks.rake
@@ -84,10 +111,12 @@ files:
84
111
  - test/dummy/config/initializers/mime_types.rb
85
112
  - test/dummy/config/initializers/secret_token.rb
86
113
  - test/dummy/config/initializers/session_store.rb
114
+ - test/dummy/config/initializers/webpay.rb
87
115
  - test/dummy/config/initializers/wrap_parameters.rb
88
116
  - test/dummy/config/locales/en.yml
89
117
  - test/dummy/config/routes.rb
90
118
  - test/dummy/config.ru
119
+ - test/dummy/db/development.sqlite3
91
120
  - test/dummy/log/development.log
92
121
  - test/dummy/public/404.html
93
122
  - test/dummy/public/422.html
@@ -95,6 +124,13 @@ files:
95
124
  - test/dummy/public/favicon.ico
96
125
  - test/dummy/Rakefile
97
126
  - test/dummy/README.rdoc
127
+ - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
128
+ - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
129
+ - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
130
+ - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
131
+ - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
132
+ - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
133
+ - test/dummy/tmp/pids/server.pid
98
134
  - test/integration/navigation_test.rb
99
135
  - test/test_helper.rb
100
136
  homepage: http://beenos.com
@@ -146,10 +182,12 @@ test_files:
146
182
  - test/dummy/config/initializers/mime_types.rb
147
183
  - test/dummy/config/initializers/secret_token.rb
148
184
  - test/dummy/config/initializers/session_store.rb
185
+ - test/dummy/config/initializers/webpay.rb
149
186
  - test/dummy/config/initializers/wrap_parameters.rb
150
187
  - test/dummy/config/locales/en.yml
151
188
  - test/dummy/config/routes.rb
152
189
  - test/dummy/config.ru
190
+ - test/dummy/db/development.sqlite3
153
191
  - test/dummy/log/development.log
154
192
  - test/dummy/public/404.html
155
193
  - test/dummy/public/422.html
@@ -157,5 +195,12 @@ test_files:
157
195
  - test/dummy/public/favicon.ico
158
196
  - test/dummy/Rakefile
159
197
  - test/dummy/README.rdoc
198
+ - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
199
+ - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
200
+ - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
201
+ - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
202
+ - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
203
+ - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
204
+ - test/dummy/tmp/pids/server.pid
160
205
  - test/integration/navigation_test.rb
161
206
  - test/test_helper.rb
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,4 +0,0 @@
1
- module Beecart
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Beecart
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Cartbee</title>
5
- <%= stylesheet_link_tag "cartbee/application", media: "all" %>
6
- <%= javascript_include_tag "cartbee/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,13 +0,0 @@
1
- ActionController::Base.class_eval do
2
- def current_cart
3
- if session[:cart_id]
4
- cart = Beecart::ShoppingCart.new(session[:cart_id])
5
- else
6
- session[:cart_id]
7
- cart = Beecart::ShoppingCart.new()
8
- session[:cart_id] = cart.key
9
- end
10
-
11
- cart
12
- end
13
- end
@@ -1,5 +0,0 @@
1
- module Beecart
2
- class Engine < ::Rails::Engine
3
- isolate_namespace Beecart
4
- end
5
- end