product_rails 0.1.0 → 0.1.1

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: a68156a7d55e6f59e60135ddd2c59f18f8b4f102
4
- data.tar.gz: c4482c0c7083ed0f9806d52f2ccf80f267cfad77
3
+ metadata.gz: 2e17c56968fbd7a8ac81f788a79d5991931d592e
4
+ data.tar.gz: 38c63b91ad884af5c511bbb510d82558008c41e0
5
5
  SHA512:
6
- metadata.gz: 20a3572e76899f49771f220365f7552d1ff33dfa22cd794cc0084699b61c2bcf3304e4601b1c6b6bdd620128a895ef807cc4600aa5bdc091a3fffe4950763175
7
- data.tar.gz: c7a80a3d5f2cc15f4a69fc83095001b006bb5df909df702689eb0d6203c76ed58702a388c10f67fb1d918e53ed36490ecbc28d9a45cace8d2c46796ddc814069
6
+ metadata.gz: a7df91958df396e136a07fc5c82903c57c1592711c6adcd6d4bc03cb3244ac4da0293597f860a8aae7dbd48de8adf7d85ac8d18b48b25b6d3300db28d0d098cb
7
+ data.tar.gz: b9cef24566bea9c4947be955b3fa32c542d115a2393ca951b8b72e5e5f3fd08952822e8dc2930fd509b3176a33eb2f59d86e5563a999245d794128dd33900384
@@ -3,7 +3,7 @@ class Product < ActiveRecord::Base
3
3
 
4
4
  extend FriendlyId
5
5
 
6
- validates :sku, :name, :description, :unity, :stock, :min_stock, :wheight, presence: true
6
+ validates :sku, :name, :description, :unity, :stock, :min_stock, :weight, presence: true
7
7
  validates :sku, uniqueness: true
8
8
  validates :stock, :min_stock, numericality: {only_integer: true}
9
9
  validates :price, :tax, :wheight, numericality: {greater_than_or_equal_to: 0}
@@ -14,4 +14,4 @@ class Product < ActiveRecord::Base
14
14
  [[:name, :sku]]
15
15
  end
16
16
 
17
- end
17
+ end
@@ -0,0 +1,5 @@
1
+ class RenameProductWheightToWeight < ActiveRecord::Migration
2
+ def change
3
+ rename_column :products, :wheight, :weight
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module ProductRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: product_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orgânica Digital
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -64,6 +64,7 @@ files:
64
64
  - app/models/product.rb
65
65
  - config/locales/pt-BR.yml
66
66
  - db/migrate/20150206104816_create_products.rb
67
+ - db/migrate/20150209192603_rename_product_wheight_to_weight.rb
67
68
  - lib/product_rails.rb
68
69
  - lib/product_rails/engine.rb
69
70
  - lib/product_rails/version.rb