ish_models 0.0.33.54 → 0.0.33.55

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: 63ead4124ad8c073a953f4c5cabb690223f7b31e
4
- data.tar.gz: d85a7277533980e942bc3d09f9600878f2cb9e95
3
+ metadata.gz: 50288497002824f2f034ee2caca8f84c87094c76
4
+ data.tar.gz: 2142ce59768e2ca754e5509d2c3b2c8f85b1332c
5
5
  SHA512:
6
- metadata.gz: 425761a13cfe48301ef248f8b6a421f2292c0ce31ac5adbc5e8f970174636c50b3354636f3a897628c329317ebf05cf881423498cd8f083244da42a2d01b9c38
7
- data.tar.gz: 497eaeb5156a7757bb7e5011ca2bca1dcdc82b396a55df0875683ea20f36377a39935b486841ae41b6261ccd8eb21a8d8d59088ec8b77c185f2a4e3ee657feda
6
+ metadata.gz: e76cad4a689b280154c1ade4c35950c2ae0b9b55307b249d99a6acea0a33e0c10b9530da4b175f2be39da11c4d35e93f023669d0b6e76a06c74ad26a14e55d69
7
+ data.tar.gz: d36a8a6f90865ef612b23a16b0dd8fee4a58e6f36408472be4da6a21065f83be74a5a7ef9fd90325a79651e49d2def89f129a2d4b4e0a318818b75df59419610
@@ -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 :zip
14
+ field :zipcode
14
15
  field :phone
15
16
 
16
17
  end
@@ -5,6 +5,8 @@ class CoTailors::Order
5
5
 
6
6
  belongs_to :profile, :class_name => '::IshModels::UserProfile'
7
7
 
8
+ has_many :items, :class_name => '::CoTailors::OrderItem'
9
+
8
10
  field :submitted_at, :type => Time
9
11
 
10
12
  end
@@ -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
 
@@ -11,6 +11,7 @@ class IshModels::UserProfile
11
11
 
12
12
  field :fb_access_token
13
13
  field :fb_long_access_token
14
+ field :fb_expires_in
14
15
 
15
16
  field :about, :type => String
16
17
  field :education, :type => String
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.54
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