ish_models 0.0.33.48 → 0.0.33.49

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: dc6160f5e01863bf535cde99e211841a237ce7fa
4
- data.tar.gz: c81a4a9d676d139fa6c18bb5931c4db2f1259a56
3
+ metadata.gz: 3708a91c0838cb91fc7f8fa3be8aa960487e49df
4
+ data.tar.gz: 62af38ca3b04abbd9ae31ce3584b1bba140108cf
5
5
  SHA512:
6
- metadata.gz: 402b4d83d920281cccc0e3b8c8ad5b494036403485eae29e82ba896d0d8f07946b6aaa7bb2e24470345279d4b30a6348a236fc4df583b2484842e533f9fe27df
7
- data.tar.gz: 8c73bf66a4adae719181423755e13da046d21f08d35c9c3b4658835bde178ef5cd3f295d298844b513088fa22ebb848e2924308c96c25cae48112772978f0a54
6
+ metadata.gz: 40d3aef1d03ad892385ab5071fb23621ea294e14f9d59562fadec0114e4f86e5e730a255fa9d6609c66eb9c785103fafc275ae95a4a0bed9b37a5f5c02489b4c
7
+ data.tar.gz: 88e579be2f3cecfc984d34f55d10d29837917a9527d213a48b9a795b976a8ab29b513a901b02ef47bddbf44c57a3150076b5c7a4d79071c56449a9f102d9d6e3
@@ -0,0 +1,17 @@
1
+
2
+ class CoTailors::Address
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ belongs_to :profile, :class_name => '::IshModels::UserProfile'
7
+
8
+ field :name
9
+ field :address_1
10
+ field :address_2
11
+ field :city
12
+ field :state
13
+ field :zip
14
+ field :phone
15
+
16
+ end
17
+
@@ -0,0 +1,11 @@
1
+
2
+ class CoTailors::Order
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ belongs_to :profile, :class_name => '::IshModels::UserProfile'
7
+
8
+ field :submitted_at, :type => Time
9
+
10
+ end
11
+
@@ -0,0 +1,7 @@
1
+
2
+ class CoTailors::Merchandise
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ end
7
+
@@ -0,0 +1,14 @@
1
+
2
+ class CoTailors::ProfileMeasurement
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ UNITS = [ :inches, :centimeters ]
7
+ field :units, :type => Symbol
8
+
9
+ field :neck_across, :type => Float
10
+
11
+ belongs_to :profile, :class_name => '::IshModels::UserProfile'
12
+
13
+ end
14
+
@@ -0,0 +1,7 @@
1
+
2
+ class CoTailors::Shirt
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ end
7
+
@@ -0,0 +1,7 @@
1
+
2
+ class CoTailors::Suit
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ end
7
+
data/lib/co_tailors.rb ADDED
@@ -0,0 +1,3 @@
1
+
2
+ module CoTailors
3
+ end
data/lib/ish/lead.rb CHANGED
@@ -19,4 +19,7 @@ class Ish::Lead
19
19
  STATES = [ :considering, :applied ]
20
20
  field :state, :type => Symbol
21
21
 
22
+ field :is_done, :type => Boolean, :default => false
23
+ field :is_trash, :type => Boolean, :default => false
24
+
22
25
  end
@@ -63,4 +63,9 @@ class IshModels::UserProfile
63
63
  [['', nil]] + out.map { |item| [ item.name, item.id ] }
64
64
  end
65
65
 
66
+ # colombia tailors
67
+ has_many :measurements, :class_name => '::CoTailors::ProfileMeasurement'
68
+ has_many :addresses, :class_name => '::CoTailors::Address'
69
+ has_many :co_orders, :class_name => '::CoTailors::Order'
70
+
66
71
  end
data/lib/ish_models.rb CHANGED
@@ -17,6 +17,14 @@ module IshModels
17
17
  end
18
18
  end
19
19
 
20
+ require 'co_tailors'
21
+ require 'co_tailors/pant.rb'
22
+ require 'co_tailors/shirt.rb'
23
+ require 'co_tailors/suit.rb'
24
+ require 'co_tailors/profile_measurement.rb'
25
+ require 'co_tailors/order.rb'
26
+ require 'co_tailors/address.rb'
27
+
20
28
  require 'ish/gallery_name.rb'
21
29
  require 'ish/payment.rb'
22
30
  require 'ish/stock_action.rb'
@@ -45,6 +53,13 @@ require 'public_item.rb'
45
53
  require 'report.rb'
46
54
  require 'site.rb'
47
55
  require 'tag.rb'
48
- # require 'user_profile.rb'
49
56
  require 'venue.rb'
50
57
  require 'video.rb'
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
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.48
4
+ version: 0.0.33.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -70,6 +70,13 @@ files:
70
70
  - lib/cities_user.rb
71
71
  - lib/cities_user.rb~
72
72
  - lib/city.rb
73
+ - lib/co_tailors.rb
74
+ - lib/co_tailors/address.rb
75
+ - lib/co_tailors/order.rb
76
+ - lib/co_tailors/pant.rb
77
+ - lib/co_tailors/profile_measurement.rb
78
+ - lib/co_tailors/shirt.rb
79
+ - lib/co_tailors/suit.rb
73
80
  - lib/country.rb
74
81
  - lib/event.rb
75
82
  - lib/feature.rb