comable_frontend 0.3.3 → 0.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b48544c49eba68872e7b96392fadb4094d2d6a7
4
- data.tar.gz: 5e50c5bb88f4ec6b33ac13ab5f51b407b42eed9f
3
+ metadata.gz: 3beb76091e8b030c33f3242ab1aaed6a0541757f
4
+ data.tar.gz: 18c8f8db4e34f646e429adfbbfdd806d2ce55c65
5
5
  SHA512:
6
- metadata.gz: 00aad98b7ac7d521b2380192ab40f8648a8788f964bb9dfce2866a107f5f5bab3223874ee88f5b42ce8331887976312685c1ca1581d25ac865b5389ff924e3b2
7
- data.tar.gz: c4ac388d30f273dbcb731a048bc146376a70fdded64fb5d19f6bb7b77c66e2c983708868f15ee3e2eff2d0d2971209ec8d6a2ebd7951d4486557a7272bad5137
6
+ metadata.gz: 7224bb70be00b7dd5cb36f42612f96b8ee39329c6152314e1be4cf61b85bd7878f9405b078d2d0d017f50132c0c52558b92f060b68b2856963185b0f50a6845c
7
+ data.tar.gz: 48ac9e707debee3b4aa4350bc88d8c60753091e4cf815bc9656565c3ce7dd9c35b1a0e5a51097707bc3bdf017502a415de7b875615ab3a84b70bc851de690b1d
@@ -54,8 +54,8 @@ module Comable
54
54
  end
55
55
 
56
56
  def ensure_saleable_stocks
57
- return if current_order.soldout_stocks.empty?
58
- flash[:alert] = Comable.t('errors.messages.products_soldout')
57
+ return if current_order.stocked_items.empty?
58
+ flash[:alert] = Comable.t('errors.messages.out_of_stocks')
59
59
  redirect_to comable.cart_path
60
60
  end
61
61
 
@@ -32,8 +32,8 @@
32
32
  = link_to stock.name_with_sku, comable.product_path(product)
33
33
  .caption
34
34
  = product.caption
35
- - if cart_item.soldout_stock?
36
- .error.soldout = Comable.t('carts.soldout')
35
+ - if cart_item.unstocked?
36
+ .error.soldout = Comable.t('soldout')
37
37
  td.price
38
38
  = number_to_currency product.price
39
39
  td.quantity
@@ -50,7 +50,7 @@
50
50
  = link_to order_detail.name_with_sku, comable.product_path(order_detail.product)
51
51
  .comable-repeat
52
52
  = form_tag comable.add_cart_path do
53
- - if order_detail.stock.unsold?
53
+ - if order_detail.stock.stocked?
54
54
  .add_cart.form-inline.form-group
55
55
  = hidden_field_tag :stock_id, order_detail.stock_id
56
56
  = hidden_field_tag :quantity, order_detail.quantity
@@ -36,13 +36,13 @@
36
36
  .sku
37
37
  = sku_table @product
38
38
 
39
- - if @product.unsold?
39
+ - if @product.stocked?
40
40
  .add_cart.form-inline.form-group
41
41
  = hidden_field_tag :product_id, @product.id
42
42
  = select_tag :quantity, options_for_select(1.upto(10).to_a)
43
43
  = submit_tag Comable.t('add_to_cart')
44
44
  - else
45
- .sold_out
45
+ .soldout
46
46
  = Comable.t('soldout')
47
47
 
48
48
  - if @product.categories.any?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comable_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - YOSHIDA Hiroki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: comable_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.3
19
+ version: 0.3.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.3
26
+ version: 0.3.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement