ish_models 0.0.33.142 → 0.0.33.146

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
  SHA256:
3
- metadata.gz: b0dd9bba4e16c209fb54dcebf586119e5576a594e6fa21ac1d8b8b9eae0ecc35
4
- data.tar.gz: 5b1afb35b2e8e1ea6f828b11e5639b176efc67d008958b2823e4693a6e560370
3
+ metadata.gz: b97e9f9e4ed76c66c50d30bf5f4ec80f2532058e7a8b687a049bd87f07f98434
4
+ data.tar.gz: f27c9a996be622b67ace6dbba51473d83cb5b5af6e4c390a7f28cdd25e0ac1fa
5
5
  SHA512:
6
- metadata.gz: b41ca3ca98611ec517ee00bde8f7e4de19f1743a7103c707df9883916609ef2f7d7084456f191262eec86d245446ad85fd8103e99d712c80b50db7027dc430a6
7
- data.tar.gz: dfab6751845fff7c3c14e72463b7bf0259f13bd3515e3b03ebe46bc8b98468bff2e4462c6d917bc1de0ef21d352bc5fb864a6551d3d30639bd282bac698a0726
6
+ metadata.gz: e936a99d778b9eea62cd3cb1895990ea3aaae2d756fcdefb2bedd21847d5d8f604fba33e88604965e35a7958325bee0b613a22a083a32e0728fb21970a61ceea
7
+ data.tar.gz: 3300a0193da951151944262f0d6065655a2ba9e63e560d66db668aa36b24f3d0dc7544517c0c0e171d141a0c6256c5416fc27380d5a63044cc6516a5f142ed0d
data/lib/gameui/marker.rb CHANGED
@@ -60,7 +60,8 @@ class ::Gameui::Marker
60
60
 
61
61
  ITEM_TYPE_LOCATION = 'gameui-location'
62
62
  ITEM_TYPE_MAP = 'gameui-map'
63
- ITEM_TYPES = [ ITEM_TYPE_LOCATION, ITEM_TYPE_MAP ]
63
+ ITEM_TYPE_OBJ = 'gameui-obj'
64
+ ITEM_TYPES = [ ITEM_TYPE_LOCATION, ITEM_TYPE_MAP, ITEM_TYPE_OBJ ]
64
65
  field :item_type, type: String
65
66
  validates :item_type, presence: true
66
67
 
@@ -0,0 +1,13 @@
1
+
2
+ ## THIS IS TRASH. I copy-paste repetitively instead!
3
+
4
+ ## aka: Ish::Shareable
5
+ ## adds is_public (default true) and #shared_profiles, inverse :shared_items ???
6
+ module Ish::Nonpublic
7
+
8
+ def self.included base
9
+ base.send :field, :is_public, type: Boolean, default: true
10
+ base.send :has_and_belongs_to_many, :shared_profiles, :class_name => 'Ish::UserProfile', :inverse_of => :shared_markers
11
+ end
12
+
13
+ end
@@ -6,6 +6,7 @@ class Ish::UserProfile
6
6
  validates_presence_of :name
7
7
 
8
8
  field :username
9
+ field :scratchpad
9
10
 
10
11
  field :email
11
12
  # validates_format_of :email, :with => ::Devise::email_regexp
data/lib/ish_models.rb CHANGED
@@ -40,6 +40,7 @@ require 'ish/input_error'
40
40
  require 'ish/invoice'
41
41
  require 'ish/issue'
42
42
  require 'ish/lead'
43
+ require 'ish/nonpublic'
43
44
  require 'ish/payment'
44
45
  require 'ish/premium_item'
45
46
  require 'ish/utils'
@@ -2,6 +2,7 @@
2
2
  class Warbler::StockWatch
3
3
  include Mongoid::Document
4
4
  include Mongoid::Timestamps
5
+ store_in collection: 'ish_stock_watches'
5
6
 
6
7
  field :ticker
7
8
 
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.142
4
+ version: 0.0.33.146
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -128,6 +128,7 @@ files:
128
128
  - lib/ish/invoice.rb
129
129
  - lib/ish/issue.rb
130
130
  - lib/ish/lead.rb
131
+ - lib/ish/nonpublic.rb
131
132
  - lib/ish/payment.rb
132
133
  - lib/ish/premium_item.rb
133
134
  - lib/ish/railtie.rb
@@ -170,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
171
  - !ruby/object:Gem::Version
171
172
  version: '0'
172
173
  requirements: []
173
- rubygems_version: 3.2.25
174
+ rubygems_version: 3.0.3.1
174
175
  signing_key:
175
176
  specification_version: 4
176
177
  summary: models of ish