ish_models 0.0.33.54 → 0.0.33.55
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 +4 -4
- data/lib/co_tailors/address.rb +2 -1
- data/lib/co_tailors/order.rb +2 -0
- data/lib/co_tailors/order_item.rb +27 -0
- data/lib/co_tailors/profile_measurement.rb +17 -2
- data/lib/ish_models/user_profile.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50288497002824f2f034ee2caca8f84c87094c76
|
4
|
+
data.tar.gz: 2142ce59768e2ca754e5509d2c3b2c8f85b1332c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e76cad4a689b280154c1ade4c35950c2ae0b9b55307b249d99a6acea0a33e0c10b9530da4b175f2be39da11c4d35e93f023669d0b6e76a06c74ad26a14e55d69
|
7
|
+
data.tar.gz: d36a8a6f90865ef612b23a16b0dd8fee4a58e6f36408472be4da6a21065f83be74a5a7ef9fd90325a79651e49d2def89f129a2d4b4e0a318818b75df59419610
|
data/lib/co_tailors/address.rb
CHANGED
@@ -4,13 +4,14 @@ class CoTailors::Address
|
|
4
4
|
include Mongoid::Timestamps
|
5
5
|
|
6
6
|
belongs_to :profile, :class_name => '::IshModels::UserProfile'
|
7
|
+
validates :profile, :presence => true
|
7
8
|
|
8
9
|
field :name
|
9
10
|
field :address_1
|
10
11
|
field :address_2
|
11
12
|
field :city
|
12
13
|
field :state
|
13
|
-
field :
|
14
|
+
field :zipcode
|
14
15
|
field :phone
|
15
16
|
|
16
17
|
end
|
data/lib/co_tailors/order.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
class CoTailors::OrderItem
|
3
|
+
include Mongoid::Document
|
4
|
+
include Mongoid::Timestamps
|
5
|
+
|
6
|
+
belongs_to :order, :class_name => '::IshModels::Order'
|
7
|
+
|
8
|
+
KINDS = [ :shirt, :pants, :suit ]
|
9
|
+
field :kind, :type => Symbol
|
10
|
+
|
11
|
+
## shirt
|
12
|
+
# neck around
|
13
|
+
# chest around
|
14
|
+
# waist around
|
15
|
+
# sleeve length
|
16
|
+
# shoulder width
|
17
|
+
# shirt length
|
18
|
+
# bicep around
|
19
|
+
# wrist around
|
20
|
+
|
21
|
+
## pants
|
22
|
+
# length
|
23
|
+
# waist
|
24
|
+
# hips
|
25
|
+
|
26
|
+
end
|
27
|
+
|
@@ -6,9 +6,24 @@ class CoTailors::ProfileMeasurement
|
|
6
6
|
UNITS = [ :inches, :centimeters ]
|
7
7
|
field :units, :type => Symbol
|
8
8
|
|
9
|
-
field :neck_across, :type => Float
|
10
|
-
|
11
9
|
belongs_to :profile, :class_name => '::IshModels::UserProfile'
|
12
10
|
|
11
|
+
## same as order item
|
12
|
+
## shirt
|
13
|
+
# neck around
|
14
|
+
field :neck_across, :type => Float
|
15
|
+
# chest around
|
16
|
+
# waist around
|
17
|
+
# sleeve length
|
18
|
+
# shoulder width
|
19
|
+
# shirt length
|
20
|
+
# bicep around
|
21
|
+
# wrist around
|
22
|
+
## pants
|
23
|
+
# length
|
24
|
+
# waist
|
25
|
+
# hips
|
26
|
+
## suit
|
27
|
+
|
13
28
|
end
|
14
29
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.33.
|
4
|
+
version: 0.0.33.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/co_tailors.rb
|
74
74
|
- lib/co_tailors/address.rb
|
75
75
|
- lib/co_tailors/order.rb
|
76
|
+
- lib/co_tailors/order_item.rb
|
76
77
|
- lib/co_tailors/pant.rb
|
77
78
|
- lib/co_tailors/profile_measurement.rb
|
78
79
|
- lib/co_tailors/shirt.rb
|