mechanize_store 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +8 -8
  2. data/app/controllers/mechanize_store/orders_controller.rb +1 -0
  3. data/app/models/mechanize_store/freight.rb +2 -0
  4. data/app/models/mechanize_store/payment.rb +2 -0
  5. data/config/locales/mechanize_store.pt-BR.yml +3 -0
  6. data/lib/mechanize_store/version.rb +1 -1
  7. data/spec/controllers/mechanize_store/orders_controller_spec.rb +5 -2
  8. data/spec/dummy/db/migrate/{20140407144119_create_mechanize_store_freights.mechanize_store.rb → 20140424193635_create_mechanize_store_freights.mechanize_store.rb} +0 -0
  9. data/spec/dummy/db/migrate/{20140407144120_create_mechanize_store_order_statuses.mechanize_store.rb → 20140424193636_create_mechanize_store_order_statuses.mechanize_store.rb} +0 -0
  10. data/spec/dummy/db/migrate/{20140407144121_create_mechanize_store_payment_statuses.mechanize_store.rb → 20140424193637_create_mechanize_store_payment_statuses.mechanize_store.rb} +0 -0
  11. data/spec/dummy/db/migrate/{20140407144122_create_mechanize_store_payment_types.mechanize_store.rb → 20140424193638_create_mechanize_store_payment_types.mechanize_store.rb} +0 -0
  12. data/spec/dummy/db/migrate/{20140407144123_create_mechanize_store_payments.mechanize_store.rb → 20140424193639_create_mechanize_store_payments.mechanize_store.rb} +1 -2
  13. data/spec/dummy/db/migrate/{20140407144124_create_mechanize_store_flags.mechanize_store.rb → 20140424193640_create_mechanize_store_flags.mechanize_store.rb} +0 -0
  14. data/spec/dummy/db/migrate/{20140407144125_create_mechanize_store_products.mechanize_store.rb → 20140424193641_create_mechanize_store_products.mechanize_store.rb} +0 -0
  15. data/spec/dummy/db/migrate/{20140407144126_create_mechanize_store_product_photos.mechanize_store.rb → 20140424193642_create_mechanize_store_product_photos.mechanize_store.rb} +0 -0
  16. data/spec/dummy/db/migrate/{20140407144127_create_mechanize_store_orders.mechanize_store.rb → 20140424193643_create_mechanize_store_orders.mechanize_store.rb} +0 -0
  17. data/spec/dummy/db/migrate/{20140407144128_create_mechanize_store_product_categories.mechanize_store.rb → 20140424193644_create_mechanize_store_product_categories.mechanize_store.rb} +0 -0
  18. data/spec/dummy/db/migrate/{20140407193949_add_width_to_mechanize_store_product.mechanize_store.rb → 20140424193645_add_width_to_mechanize_store_product.mechanize_store.rb} +0 -0
  19. data/spec/dummy/db/migrate/{20140409191457_create_mechanize_store_order_items.mechanize_store.rb → 20140424193646_create_mechanize_store_order_items.mechanize_store.rb} +0 -0
  20. data/spec/dummy/db/migrate/20140424193647_add_payment_type_id_to_payment.mechanize_store.rb +7 -0
  21. data/spec/dummy/db/migrate/20140424193648_add_time_to_freight.mechanize_store.rb +6 -0
  22. data/spec/dummy/db/schema.rb +5 -3
  23. data/spec/dummy/db/test.sqlite3 +0 -0
  24. data/spec/dummy/log/test.log +5234 -0
  25. data/spec/dummy/public/photos/1/medium.png +0 -0
  26. data/spec/dummy/public/photos/1/original.png +0 -0
  27. data/spec/dummy/public/photos/1/thumb.png +0 -0
  28. data/spec/factories/{store_orders.rb → mechanize_store_orders.rb} +1 -2
  29. data/spec/factories/{store_payment_types.rb → mechanize_store_payment_types.rb} +1 -1
  30. data/spec/factories/store_freights.rb +1 -2
  31. data/spec/factories/store_order_statuses.rb +1 -1
  32. data/spec/factories/store_payments.rb +0 -2
  33. metadata +40 -30
@@ -2,7 +2,6 @@
2
2
 
3
3
  FactoryGirl.define do
4
4
  factory :mechanize_store_order, :class => MechanizeStore::Order do
5
- order_status nil
6
- delivery_date "2014-04-02 12:31:39"
5
+
7
6
  end
8
7
  end
@@ -1,7 +1,7 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
3
  FactoryGirl.define do
4
- factory :mechanize_store_payment_type, :class => 'PaymentType' do
4
+ factory :mechanize_store_payment_type, :class => MechanizeStore::PaymentType do
5
5
  name "MyString"
6
6
  end
7
7
  end
@@ -1,10 +1,9 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
3
  FactoryGirl.define do
4
- factory :mechanize_store_freight, :class => 'Freight' do
4
+ factory :mechanize_store_freight, :class => MechanizeStore::Freight do
5
5
  value 1.5
6
6
  service "MyString"
7
- order nil
8
7
  zipcode "MyString"
9
8
  end
10
9
  end
@@ -1,7 +1,7 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
3
  FactoryGirl.define do
4
- factory :mechanize_store_order_status, :class => 'OrderStatus' do
4
+ factory :mechanize_store_order_status, :class => MechanizeStore::OrderStatus do
5
5
  name "MyString"
6
6
  end
7
7
  end
@@ -2,8 +2,6 @@
2
2
 
3
3
  FactoryGirl.define do
4
4
  factory :mechanize_store_payment, :class => MechanizeStore::Payment do
5
- payable_id 1
6
- payable_type "MyString"
7
5
  payment_status nil
8
6
  value 1.5
9
7
  paid_value 1.5
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mechanize_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilbert Ribeiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-20 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -380,18 +380,20 @@ files:
380
380
  - spec/dummy/config/locales/pt-BR.yml
381
381
  - spec/dummy/config/routes.rb
382
382
  - spec/dummy/db/development.sqlite3
383
- - spec/dummy/db/migrate/20140407144119_create_mechanize_store_freights.mechanize_store.rb
384
- - spec/dummy/db/migrate/20140407144120_create_mechanize_store_order_statuses.mechanize_store.rb
385
- - spec/dummy/db/migrate/20140407144121_create_mechanize_store_payment_statuses.mechanize_store.rb
386
- - spec/dummy/db/migrate/20140407144122_create_mechanize_store_payment_types.mechanize_store.rb
387
- - spec/dummy/db/migrate/20140407144123_create_mechanize_store_payments.mechanize_store.rb
388
- - spec/dummy/db/migrate/20140407144124_create_mechanize_store_flags.mechanize_store.rb
389
- - spec/dummy/db/migrate/20140407144125_create_mechanize_store_products.mechanize_store.rb
390
- - spec/dummy/db/migrate/20140407144126_create_mechanize_store_product_photos.mechanize_store.rb
391
- - spec/dummy/db/migrate/20140407144127_create_mechanize_store_orders.mechanize_store.rb
392
- - spec/dummy/db/migrate/20140407144128_create_mechanize_store_product_categories.mechanize_store.rb
393
- - spec/dummy/db/migrate/20140407193949_add_width_to_mechanize_store_product.mechanize_store.rb
394
- - spec/dummy/db/migrate/20140409191457_create_mechanize_store_order_items.mechanize_store.rb
383
+ - spec/dummy/db/migrate/20140424193635_create_mechanize_store_freights.mechanize_store.rb
384
+ - spec/dummy/db/migrate/20140424193636_create_mechanize_store_order_statuses.mechanize_store.rb
385
+ - spec/dummy/db/migrate/20140424193637_create_mechanize_store_payment_statuses.mechanize_store.rb
386
+ - spec/dummy/db/migrate/20140424193638_create_mechanize_store_payment_types.mechanize_store.rb
387
+ - spec/dummy/db/migrate/20140424193639_create_mechanize_store_payments.mechanize_store.rb
388
+ - spec/dummy/db/migrate/20140424193640_create_mechanize_store_flags.mechanize_store.rb
389
+ - spec/dummy/db/migrate/20140424193641_create_mechanize_store_products.mechanize_store.rb
390
+ - spec/dummy/db/migrate/20140424193642_create_mechanize_store_product_photos.mechanize_store.rb
391
+ - spec/dummy/db/migrate/20140424193643_create_mechanize_store_orders.mechanize_store.rb
392
+ - spec/dummy/db/migrate/20140424193644_create_mechanize_store_product_categories.mechanize_store.rb
393
+ - spec/dummy/db/migrate/20140424193645_add_width_to_mechanize_store_product.mechanize_store.rb
394
+ - spec/dummy/db/migrate/20140424193646_create_mechanize_store_order_items.mechanize_store.rb
395
+ - spec/dummy/db/migrate/20140424193647_add_payment_type_id_to_payment.mechanize_store.rb
396
+ - spec/dummy/db/migrate/20140424193648_add_time_to_freight.mechanize_store.rb
395
397
  - spec/dummy/db/schema.rb
396
398
  - spec/dummy/db/test.sqlite3
397
399
  - spec/dummy/log/development.log
@@ -400,6 +402,9 @@ files:
400
402
  - spec/dummy/public/422.html
401
403
  - spec/dummy/public/500.html
402
404
  - spec/dummy/public/favicon.ico
405
+ - spec/dummy/public/photos/1/medium.png
406
+ - spec/dummy/public/photos/1/original.png
407
+ - spec/dummy/public/photos/1/thumb.png
403
408
  - spec/dummy/tmp/cache/assets/development/sprockets/015a50b3ac7ad70aa90ce0a95c99df04
404
409
  - spec/dummy/tmp/cache/assets/development/sprockets/020540bcd9f6782692071f17f50f43b0
405
410
  - spec/dummy/tmp/cache/assets/development/sprockets/0378e5799bf84efc4c9b8ac61252a081
@@ -560,13 +565,13 @@ files:
560
565
  - spec/dummy/tmp/cache/assets/development/sprockets/fbbf6a435d522871a2d29d97e370bfce
561
566
  - spec/dummy/tmp/cache/assets/development/sprockets/ffbf6316da17c85bd6bda4bdb1961baf
562
567
  - spec/factories/mechanize_store_order_items.rb
568
+ - spec/factories/mechanize_store_orders.rb
569
+ - spec/factories/mechanize_store_payment_types.rb
563
570
  - spec/factories/mechanize_store_products.rb
564
571
  - spec/factories/store_flags.rb
565
572
  - spec/factories/store_freights.rb
566
573
  - spec/factories/store_order_statuses.rb
567
- - spec/factories/store_orders.rb
568
574
  - spec/factories/store_payment_statuses.rb
569
- - spec/factories/store_payment_types.rb
570
575
  - spec/factories/store_payments.rb
571
576
  - spec/factories/store_product_categories.rb
572
577
  - spec/factories/store_product_photos.rb
@@ -657,18 +662,20 @@ test_files:
657
662
  - spec/dummy/config/routes.rb
658
663
  - spec/dummy/config.ru
659
664
  - spec/dummy/db/development.sqlite3
660
- - spec/dummy/db/migrate/20140407144119_create_mechanize_store_freights.mechanize_store.rb
661
- - spec/dummy/db/migrate/20140407144120_create_mechanize_store_order_statuses.mechanize_store.rb
662
- - spec/dummy/db/migrate/20140407144121_create_mechanize_store_payment_statuses.mechanize_store.rb
663
- - spec/dummy/db/migrate/20140407144122_create_mechanize_store_payment_types.mechanize_store.rb
664
- - spec/dummy/db/migrate/20140407144123_create_mechanize_store_payments.mechanize_store.rb
665
- - spec/dummy/db/migrate/20140407144124_create_mechanize_store_flags.mechanize_store.rb
666
- - spec/dummy/db/migrate/20140407144125_create_mechanize_store_products.mechanize_store.rb
667
- - spec/dummy/db/migrate/20140407144126_create_mechanize_store_product_photos.mechanize_store.rb
668
- - spec/dummy/db/migrate/20140407144127_create_mechanize_store_orders.mechanize_store.rb
669
- - spec/dummy/db/migrate/20140407144128_create_mechanize_store_product_categories.mechanize_store.rb
670
- - spec/dummy/db/migrate/20140407193949_add_width_to_mechanize_store_product.mechanize_store.rb
671
- - spec/dummy/db/migrate/20140409191457_create_mechanize_store_order_items.mechanize_store.rb
665
+ - spec/dummy/db/migrate/20140424193635_create_mechanize_store_freights.mechanize_store.rb
666
+ - spec/dummy/db/migrate/20140424193636_create_mechanize_store_order_statuses.mechanize_store.rb
667
+ - spec/dummy/db/migrate/20140424193637_create_mechanize_store_payment_statuses.mechanize_store.rb
668
+ - spec/dummy/db/migrate/20140424193638_create_mechanize_store_payment_types.mechanize_store.rb
669
+ - spec/dummy/db/migrate/20140424193639_create_mechanize_store_payments.mechanize_store.rb
670
+ - spec/dummy/db/migrate/20140424193640_create_mechanize_store_flags.mechanize_store.rb
671
+ - spec/dummy/db/migrate/20140424193641_create_mechanize_store_products.mechanize_store.rb
672
+ - spec/dummy/db/migrate/20140424193642_create_mechanize_store_product_photos.mechanize_store.rb
673
+ - spec/dummy/db/migrate/20140424193643_create_mechanize_store_orders.mechanize_store.rb
674
+ - spec/dummy/db/migrate/20140424193644_create_mechanize_store_product_categories.mechanize_store.rb
675
+ - spec/dummy/db/migrate/20140424193645_add_width_to_mechanize_store_product.mechanize_store.rb
676
+ - spec/dummy/db/migrate/20140424193646_create_mechanize_store_order_items.mechanize_store.rb
677
+ - spec/dummy/db/migrate/20140424193647_add_payment_type_id_to_payment.mechanize_store.rb
678
+ - spec/dummy/db/migrate/20140424193648_add_time_to_freight.mechanize_store.rb
672
679
  - spec/dummy/db/schema.rb
673
680
  - spec/dummy/db/test.sqlite3
674
681
  - spec/dummy/log/development.log
@@ -677,6 +684,9 @@ test_files:
677
684
  - spec/dummy/public/422.html
678
685
  - spec/dummy/public/500.html
679
686
  - spec/dummy/public/favicon.ico
687
+ - spec/dummy/public/photos/1/medium.png
688
+ - spec/dummy/public/photos/1/original.png
689
+ - spec/dummy/public/photos/1/thumb.png
680
690
  - spec/dummy/Rakefile
681
691
  - spec/dummy/README.rdoc
682
692
  - spec/dummy/tmp/cache/assets/development/sprockets/015a50b3ac7ad70aa90ce0a95c99df04
@@ -839,13 +849,13 @@ test_files:
839
849
  - spec/dummy/tmp/cache/assets/development/sprockets/fbbf6a435d522871a2d29d97e370bfce
840
850
  - spec/dummy/tmp/cache/assets/development/sprockets/ffbf6316da17c85bd6bda4bdb1961baf
841
851
  - spec/factories/mechanize_store_order_items.rb
852
+ - spec/factories/mechanize_store_orders.rb
853
+ - spec/factories/mechanize_store_payment_types.rb
842
854
  - spec/factories/mechanize_store_products.rb
843
855
  - spec/factories/store_flags.rb
844
856
  - spec/factories/store_freights.rb
845
857
  - spec/factories/store_order_statuses.rb
846
- - spec/factories/store_orders.rb
847
858
  - spec/factories/store_payment_statuses.rb
848
- - spec/factories/store_payment_types.rb
849
859
  - spec/factories/store_payments.rb
850
860
  - spec/factories/store_product_categories.rb
851
861
  - spec/factories/store_product_photos.rb