ish_models 0.0.33.55 → 0.0.33.56

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: 50288497002824f2f034ee2caca8f84c87094c76
4
- data.tar.gz: 2142ce59768e2ca754e5509d2c3b2c8f85b1332c
3
+ metadata.gz: 4ec36a7ec96c7cc127814d266948e4466557238c
4
+ data.tar.gz: 614f9a67f26dc14161695bf12c5931c6b9880100
5
5
  SHA512:
6
- metadata.gz: e76cad4a689b280154c1ade4c35950c2ae0b9b55307b249d99a6acea0a33e0c10b9530da4b175f2be39da11c4d35e93f023669d0b6e76a06c74ad26a14e55d69
7
- data.tar.gz: d36a8a6f90865ef612b23a16b0dd8fee4a58e6f36408472be4da6a21065f83be74a5a7ef9fd90325a79651e49d2def89f129a2d4b4e0a318818b75df59419610
6
+ metadata.gz: 3e22da2237fc2baf1d32b322713dcf539796bd834be2906f70d355b79c2886084d98c2c103ab697a41f3da396837ba9d163fc94ca67fa72c0a04cd078a55d4e7
7
+ data.tar.gz: 6d3ec6e87c11e51d9654badcba7a083203f4ccfcc4939f938e5dbb7b0746249150d8e7ee2145194f4fdff9a6882f1c09153450ae0ef016e50d20255dbd2d2b58
@@ -3,25 +3,15 @@ class CoTailors::OrderItem
3
3
  include Mongoid::Document
4
4
  include Mongoid::Timestamps
5
5
 
6
- belongs_to :order, :class_name => '::IshModels::Order'
6
+ belongs_to :order, :class_name => 'CoTailors::Order'
7
7
 
8
8
  KINDS = [ :shirt, :pants, :suit ]
9
9
  field :kind, :type => Symbol
10
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
11
+ FABRICS = [ :white, :black, :light_blue, :dark_blue, :dark_green, :pink, :gray ]
12
+ field :fabric, :type => Symbol
13
+
14
+ has_one :measurement, :class_name => 'CoTailors::ProfileMeasurement'
25
15
 
26
16
  end
27
17
 
@@ -6,24 +6,25 @@ class CoTailors::ProfileMeasurement
6
6
  UNITS = [ :inches, :centimeters ]
7
7
  field :units, :type => Symbol
8
8
 
9
- belongs_to :profile, :class_name => '::IshModels::UserProfile'
9
+ belongs_to :profile, :class_name => 'IshModels::UserProfile'
10
+ belongs_to :order_item, :class_name => 'CoTailors::OrderItem'
10
11
 
11
- ## same as order item
12
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
13
+ field :neck_around, :type => Float
14
+ field :chest_around, :type => Float
15
+ field :waist_around, :type => Float
16
+ field :sleeve_length, :type => Float
17
+ field :shoulder_width, :type => Float
18
+ field :shirt_length, :type => Float
19
+ field :bicep_around, :type => Float
20
+ field :wrist_around, :type => Float
22
21
  ## pants
23
22
  # length
24
23
  # waist
25
24
  # hips
26
25
  ## suit
27
26
 
27
+ field :nickname
28
+
28
29
  end
29
30
 
@@ -52,7 +52,6 @@ class IshModels::UserProfile
52
52
  #
53
53
  field :videos_embed, :type => Boolean, :default => false
54
54
 
55
-
56
55
  def sudoer?
57
56
  %w( piousbox@gmail.com manager@gmail.com ).include?( self.user.email ) ? true : false
58
57
  end
@@ -66,7 +65,7 @@ class IshModels::UserProfile
66
65
 
67
66
  # colombia tailors
68
67
  has_many :measurements, :class_name => '::CoTailors::ProfileMeasurement'
69
- has_many :addresses, :class_name => '::CoTailors::Address'
70
- has_many :co_orders, :class_name => '::CoTailors::Order'
68
+ has_many :addresses, :class_name => '::CoTailors::Address'
69
+ has_many :orders, :class_name => '::CoTailors::Order'
71
70
 
72
71
  end
data/lib/ish_models.rb CHANGED
@@ -23,6 +23,7 @@ require 'co_tailors/shirt.rb'
23
23
  require 'co_tailors/suit.rb'
24
24
  require 'co_tailors/profile_measurement.rb'
25
25
  require 'co_tailors/order.rb'
26
+ require 'co_tailors/order_item.rb'
26
27
  require 'co_tailors/address.rb'
27
28
 
28
29
  require 'ish/gallery_name.rb'
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.55
4
+ version: 0.0.33.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox