power_shop 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2437754df804dd691acffab52a68e572f0b67c7
|
4
|
+
data.tar.gz: 78f4f4c6cfddad23c591b1d4a930d84e118aa3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46f9b4791b03d5945f0fda0921f5d14472275e8a1e16bb884782145d6272034b95ccefd9e3363c80d7535f81f2c47844c060f9a1f387b3ae38330a72502d3750
|
7
|
+
data.tar.gz: 8f88d97850d382b6509404292ecbe472f6a0376fd74e35ccf06123e6159fe533d245ad8957e234ec78d7ff58be6a5b0f890b6eb2dae4946f9854f6880801aa98
|
@@ -57,12 +57,11 @@ module PowerShop
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
61
|
-
|
62
|
-
|
63
|
-
not_expected_attributes.include?(attr)
|
64
|
-
end
|
60
|
+
def order_attributes
|
61
|
+
[:user_name, :user_phone, :user_email, :delivery_address, :total]
|
62
|
+
end
|
65
63
|
|
64
|
+
def create_order
|
66
65
|
order_attributes.each do |attr|
|
67
66
|
order.send("#{attr}=", self.send(attr))
|
68
67
|
end
|
data/lib/power_shop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: power_shop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Semyon Pupkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -387,64 +387,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
387
387
|
version: '0'
|
388
388
|
requirements: []
|
389
389
|
rubyforge_project:
|
390
|
-
rubygems_version: 2.0.
|
390
|
+
rubygems_version: 2.0.3
|
391
391
|
signing_key:
|
392
392
|
specification_version: 4
|
393
393
|
summary: Simple and flexible Ruby On Rails Ecomerce engine
|
394
|
-
test_files:
|
395
|
-
- spec/controllers/cart_controller_spec.rb
|
396
|
-
- spec/controllers/catalog_controller_spec.rb
|
397
|
-
- spec/dummy/README.rdoc
|
398
|
-
- spec/dummy/Rakefile
|
399
|
-
- spec/dummy/app/assets/images/.keep
|
400
|
-
- spec/dummy/app/assets/javascripts/application.js
|
401
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
402
|
-
- spec/dummy/app/controllers/application_controller.rb
|
403
|
-
- spec/dummy/app/controllers/concerns/.keep
|
404
|
-
- spec/dummy/app/helpers/application_helper.rb
|
405
|
-
- spec/dummy/app/mailers/.keep
|
406
|
-
- spec/dummy/app/models/.keep
|
407
|
-
- spec/dummy/app/models/concerns/.keep
|
408
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
409
|
-
- spec/dummy/bin/bundle
|
410
|
-
- spec/dummy/bin/rails
|
411
|
-
- spec/dummy/bin/rake
|
412
|
-
- spec/dummy/config.ru
|
413
|
-
- spec/dummy/config/application.rb
|
414
|
-
- spec/dummy/config/boot.rb
|
415
|
-
- spec/dummy/config/database.yml
|
416
|
-
- spec/dummy/config/environment.rb
|
417
|
-
- spec/dummy/config/environments/development.rb
|
418
|
-
- spec/dummy/config/environments/production.rb
|
419
|
-
- spec/dummy/config/environments/test.rb
|
420
|
-
- spec/dummy/config/initializers/assets.rb
|
421
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
422
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
423
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
424
|
-
- spec/dummy/config/initializers/inflections.rb
|
425
|
-
- spec/dummy/config/initializers/mime_types.rb
|
426
|
-
- spec/dummy/config/initializers/secret_token.rb
|
427
|
-
- spec/dummy/config/initializers/session_store.rb
|
428
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
429
|
-
- spec/dummy/config/locales/en.yml
|
430
|
-
- spec/dummy/config/routes.rb
|
431
|
-
- spec/dummy/config/secrets.yml
|
432
|
-
- spec/dummy/db/schema.rb
|
433
|
-
- spec/dummy/lib/assets/.keep
|
434
|
-
- spec/dummy/log/.keep
|
435
|
-
- spec/dummy/log/development.log
|
436
|
-
- spec/dummy/public/404.html
|
437
|
-
- spec/dummy/public/422.html
|
438
|
-
- spec/dummy/public/500.html
|
439
|
-
- spec/dummy/public/favicon.ico
|
440
|
-
- spec/factories/categories.rb
|
441
|
-
- spec/factories/order.rb
|
442
|
-
- spec/factories/products.rb
|
443
|
-
- spec/factories/shopping_cart.rb
|
444
|
-
- spec/lib/middleware/shopping_cart_spec.rb
|
445
|
-
- spec/models/category_spec.rb
|
446
|
-
- spec/models/order_item_spec.rb
|
447
|
-
- spec/models/order_spec.rb
|
448
|
-
- spec/models/product_spec.rb
|
449
|
-
- spec/models/shop_image_spec.rb
|
450
|
-
- spec/spec_helper.rb
|
394
|
+
test_files: []
|