ish_models 0.0.33.304 → 3.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +15 -0
  5. data/app/assets/config/ish_models_manifest.js +1 -0
  6. data/app/assets/stylesheets/ish_models/application.css +15 -0
  7. data/app/controllers/ish_models/application_controller.rb +4 -0
  8. data/app/helpers/ish_models/application_helper.rb +4 -0
  9. data/app/jobs/ish_models/application_job.rb +4 -0
  10. data/app/mailers/ish_models/application_mailer.rb +6 -0
  11. data/app/models/ish_models/application_record.rb +5 -0
  12. data/app/views/layouts/ish_models/application.html.erb +15 -0
  13. data/config/routes.rb +2 -0
  14. data/lib/ish_models/engine.rb +5 -0
  15. data/lib/ish_models/version.rb +3 -0
  16. data/lib/ish_models.rb +4 -89
  17. data/lib/tasks/ish_models_tasks.rake +4 -0
  18. data/lib/{office/admin_message.rb → wco/profile.rb} +2 -5
  19. metadata +32 -221
  20. data/lib/address.rb +0 -20
  21. data/lib/feature.rb +0 -32
  22. data/lib/gallery.rb +0 -66
  23. data/lib/gameui/asset3d.rb +0 -35
  24. data/lib/gameui/map.rb +0 -260
  25. data/lib/gameui/map_bookmark.rb +0 -9
  26. data/lib/gameui/marker.rb +0 -128
  27. data/lib/iro/alert.rb-bk +0 -72
  28. data/lib/ish/cache_key.rb +0 -14
  29. data/lib/ish/configuration.rb +0 -11
  30. data/lib/ish/crawler.rb +0 -26
  31. data/lib/ish/email_campaign.rb +0 -55
  32. data/lib/ish/email_context.rb +0 -113
  33. data/lib/ish/email_template.rb +0 -115
  34. data/lib/ish/email_unsubscribe.rb +0 -19
  35. data/lib/ish/event.rb +0 -20
  36. data/lib/ish/image_asset.rb +0 -38
  37. data/lib/ish/invoice.rb +0 -130
  38. data/lib/ish/lorem_ipsum.rb +0 -30
  39. data/lib/ish/meeting.rb +0 -31
  40. data/lib/ish/payment.rb +0 -29
  41. data/lib/ish/premium_item.rb +0 -13
  42. data/lib/ish/railtie.rb +0 -8
  43. data/lib/ish/user_profile.rb +0 -146
  44. data/lib/ish/utils.rb +0 -45
  45. data/lib/mongoid/votable.rb +0 -247
  46. data/lib/mongoid/voter.rb +0 -96
  47. data/lib/newsitem.rb +0 -94
  48. data/lib/office/action.rb +0 -32
  49. data/lib/office/action_tie.rb +0 -16
  50. data/lib/office/directmail_envelope.rb +0 -51
  51. data/lib/office/email_action.rb +0 -34
  52. data/lib/office/email_action_tie.rb +0 -18
  53. data/lib/office/email_attachment.rb +0 -12
  54. data/lib/office/email_conversation.rb +0 -86
  55. data/lib/office/email_conversation_lead.rb +0 -11
  56. data/lib/office/email_conversation_tag.rb +0 -14
  57. data/lib/office/email_filter.rb +0 -45
  58. data/lib/office/email_message.rb +0 -229
  59. data/lib/office/email_message_stub.rb +0 -22
  60. data/lib/office/lead_action.rb +0 -24
  61. data/lib/office/lead_action_template.rb +0 -47
  62. data/lib/office/obfuscated_redirect.rb +0 -12
  63. data/lib/office/scheduled_email_action.rb +0 -62
  64. data/lib/photo.rb +0 -87
  65. data/lib/report.rb +0 -65
  66. data/lib/video.rb +0 -91
  67. data/lib/wco/appliance.rb +0 -43
  68. data/lib/wco/appliance_tmpl.rb +0 -36
  69. data/lib/wco/leadset.rb +0 -17
  70. data/lib/wco/price.rb +0 -30
  71. data/lib/wco/product.rb +0 -35
  72. data/lib/wco/serverhost.rb +0 -100
  73. data/lib/wco/subscription.rb +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '069e59f9305d7133032ef2b6776d9cefd59f376d40774828a21b5b95c5acd7b9'
4
- data.tar.gz: a556f13344b589b0add0b7c0f81408f0c9c55a89f902cfa855b7b29171182769
3
+ metadata.gz: 895202f7191c98512bd29e1fb9981c081f3ffee8b908135c59f38b78a1d20452
4
+ data.tar.gz: c9c0834c8885e4510fa09e10f277ede5e7e7b7ece1b7e99f1b7f68135677b6ab
5
5
  SHA512:
6
- metadata.gz: a9ab4766a82cd464fef564632d3fade497a5bb4542d0c472c2089fcf99cd657462d68b0c463b5800486d47a51613c2952d290b78fba7adcc080d713a508d119e
7
- data.tar.gz: d21d6f7d92307efd7338bd86dd3b1fc1f0f3c9bc254c7b2ee00da15c5cf8193c1ac4aa5ea46d47d21f02fae2c1283b69553ac37f84f38ce1ae5d9615e1b0ff17
6
+ metadata.gz: 8eb6fa0a7ecbf3c27db26c69dc9b75f59740b469a9b43a296982a602c69a16dbd6da000af01e33e082e56a3c0d66eb62a1f422e6b65c8463c91b3c5b73f484c8
7
+ data.tar.gz: 90cb3e930fb6e9a0de9e8a9ddd5e2739784c51c61acb90565acb497367abdb3b2419ee07c44175f204c62c5eb1bb81215ccff4ef45c6ede2834c082c70d75b03
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2023 mac_a2141
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # IshModels
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'ish_models'
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install ish_models
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require "bundler/setup"
2
+
3
+ load "rails/tasks/statistics.rake"
4
+
5
+ require "bundler/gem_tasks"
6
+
7
+ require "rake/testtask"
8
+
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << 'test'
11
+ t.pattern = 'test/**/*_test.rb'
12
+ t.verbose = false
13
+ end
14
+
15
+ task default: :test
@@ -0,0 +1 @@
1
+ //= link_directory ../stylesheets/ish_models .css
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ module IshModels
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module IshModels
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module IshModels
2
+ class ApplicationJob < ActiveJob::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module IshModels
2
+ class ApplicationMailer < ActionMailer::Base
3
+ default from: 'from@example.com'
4
+ layout 'mailer'
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module IshModels
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Ish models</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "ish_models/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+
12
+ <%= yield %>
13
+
14
+ </body>
15
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ IshModels::Engine.routes.draw do
2
+ end
@@ -0,0 +1,5 @@
1
+ module IshModels
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace IshModels
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module IshModels
2
+ VERSION = '3.1.0.0'
3
+ end
data/lib/ish_models.rb CHANGED
@@ -1,95 +1,10 @@
1
-
2
- require 'ish/railtie' if defined?(Rails)
3
- require 'ish/configuration'
4
- require 'aws-sdk-s3'
5
- require 'kaminari/mongoid'
6
-
7
- module Gameui; end
8
- module Iro; end
9
- module Ish; end
10
- class Ish::InputError < RuntimeError; end
11
-
12
- module Manager; end
13
-
14
- module Office; end
15
-
16
- module Wco; end
1
+ require "ish_models/version"
2
+ require "ish_models/engine"
17
3
 
18
4
  module IshModels
19
-
20
- class << self
21
- attr_accessor :configuration
22
- end
23
-
24
- def self.configure
25
- @configuration ||= Configuration.new
26
- end
27
-
28
- def self.setup
29
- yield(configuration)
30
- end
5
+ # Your code goes here...
31
6
  end
32
7
 
33
- ## Needs to be before gameui/asset3d
34
- require 'ish/utils'
35
-
36
- require 'mongoid/votable'
37
- require 'mongoid/voter'
38
-
39
- require 'gameui/asset3d'
40
- require 'gameui/map'
41
- require 'gameui/marker'
42
-
43
- # require 'iro/alert'
44
-
45
- require 'ish/cache_key'
46
- require 'ish/crawler'
47
- require 'ish/email_campaign'
48
- require 'ish/email_context'
49
- require 'ish/email_template'
50
- require 'ish/email_unsubscribe'
51
- require 'ish/event'
52
- require 'ish/image_asset'
53
- require 'ish/invoice'
54
- require 'ish/lorem_ipsum'
55
- require 'ish/meeting'
56
- require 'ish/payment'
57
- require 'ish/premium_item'
58
- require 'ish/user_profile'
59
-
60
- require 'gallery'
61
- require 'newsitem'
62
- require 'photo'
63
- require 'report'
64
- require 'video'
65
-
66
- require 'office/action'
67
- require 'office/action_tie'
68
- require 'office/admin_message'
69
- require 'office/directmail_envelope'
70
- require 'office/email_action'
71
- require 'office/email_action_tie'
72
- require 'office/email_attachment'
73
- require 'office/email_conversation'
74
- require 'office/email_conversation_lead'
75
- require 'office/email_conversation_tag'
76
- require 'office/email_filter'
77
- require 'office/email_message'
78
- require 'office/email_message_stub'
79
- require 'office/lead_action'
80
- require 'office/lead_action_template'
81
- require 'office/obfuscated_redirect'
82
- require 'office/scheduled_email_action'
83
-
84
-
85
- require 'wco/appliance'
86
- require 'wco/appliance_tmpl'
87
- require 'wco/leadset'
88
- require 'wco/price'
89
- require 'wco/product'
90
- require 'wco/serverhost'
91
- require 'wco/subscription'
92
-
93
-
8
+ require 'wco/profile'
94
9
 
95
10
 
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :ish_models do
3
+ # # Task goes here
4
+ # end
@@ -1,11 +1,8 @@
1
1
 
2
-
3
- class Office::AdminMessage
2
+ class Wco::Profile
4
3
  include Mongoid::Document
5
4
  include Mongoid::Timestamps
6
5
 
7
- field :message
6
+ field :email
8
7
 
9
8
  end
10
-
11
-
metadata CHANGED
@@ -1,113 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.304
4
+ version: 3.1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - piousbox
8
- autorequire:
7
+ - mac_a2141
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2023-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: mongoid
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 7.3.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 7.3.0
27
- - !ruby/object:Gem::Dependency
28
- name: mongoid_paranoia
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: mongoid-autoinc
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '6.0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '6.0'
55
- - !ruby/object:Gem::Dependency
56
- name: mongoid-paperclip
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: kaminari-mongoid
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 1.0.1
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 1.0.1
83
- - !ruby/object:Gem::Dependency
84
- name: devise
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">"
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">"
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: aws-sdk-s3
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
13
  - !ruby/object:Gem::Dependency
112
14
  name: rails
113
15
  requirement: !ruby/object:Gem::Requirement
@@ -122,129 +24,38 @@ dependencies:
122
24
  - - "~>"
123
25
  - !ruby/object:Gem::Version
124
26
  version: 6.1.0
125
- - !ruby/object:Gem::Dependency
126
- name: net-ssh
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 7.1.0
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 7.1.0
139
- - !ruby/object:Gem::Dependency
140
- name: prawn
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 2.4.0
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 2.4.0
153
- - !ruby/object:Gem::Dependency
154
- name: prawn-table
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 0.2.1
160
- type: :runtime
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 0.2.1
167
- - !ruby/object:Gem::Dependency
168
- name: net-scp
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: 4.0.0
174
- type: :runtime
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: 4.0.0
181
- description: models of ish
182
- email: victor@wasya.co
27
+ description: https://wasya.co
28
+ email:
29
+ - victor@piousbox.com
183
30
  executables: []
184
31
  extensions: []
185
32
  extra_rdoc_files: []
186
33
  files:
187
- - lib/address.rb
188
- - lib/feature.rb
189
- - lib/gallery.rb
190
- - lib/gameui/asset3d.rb
191
- - lib/gameui/map.rb
192
- - lib/gameui/map_bookmark.rb
193
- - lib/gameui/marker.rb
194
- - lib/iro/alert.rb-bk
195
- - lib/ish/cache_key.rb
196
- - lib/ish/configuration.rb
197
- - lib/ish/crawler.rb
198
- - lib/ish/email_campaign.rb
199
- - lib/ish/email_context.rb
200
- - lib/ish/email_template.rb
201
- - lib/ish/email_unsubscribe.rb
202
- - lib/ish/event.rb
203
- - lib/ish/image_asset.rb
204
- - lib/ish/invoice.rb
205
- - lib/ish/lorem_ipsum.rb
206
- - lib/ish/meeting.rb
207
- - lib/ish/payment.rb
208
- - lib/ish/premium_item.rb
209
- - lib/ish/railtie.rb
210
- - lib/ish/user_profile.rb
211
- - lib/ish/utils.rb
34
+ - MIT-LICENSE
35
+ - README.md
36
+ - Rakefile
37
+ - app/assets/config/ish_models_manifest.js
38
+ - app/assets/stylesheets/ish_models/application.css
39
+ - app/controllers/ish_models/application_controller.rb
40
+ - app/helpers/ish_models/application_helper.rb
41
+ - app/jobs/ish_models/application_job.rb
42
+ - app/mailers/ish_models/application_mailer.rb
43
+ - app/models/ish_models/application_record.rb
44
+ - app/views/layouts/ish_models/application.html.erb
45
+ - config/routes.rb
212
46
  - lib/ish_models.rb
213
- - lib/mongoid/votable.rb
214
- - lib/mongoid/voter.rb
215
- - lib/newsitem.rb
216
- - lib/office/action.rb
217
- - lib/office/action_tie.rb
218
- - lib/office/admin_message.rb
219
- - lib/office/directmail_envelope.rb
220
- - lib/office/email_action.rb
221
- - lib/office/email_action_tie.rb
222
- - lib/office/email_attachment.rb
223
- - lib/office/email_conversation.rb
224
- - lib/office/email_conversation_lead.rb
225
- - lib/office/email_conversation_tag.rb
226
- - lib/office/email_filter.rb
227
- - lib/office/email_message.rb
228
- - lib/office/email_message_stub.rb
229
- - lib/office/lead_action.rb
230
- - lib/office/lead_action_template.rb
231
- - lib/office/obfuscated_redirect.rb
232
- - lib/office/scheduled_email_action.rb
233
- - lib/photo.rb
234
- - lib/report.rb
235
- - lib/video.rb
236
- - lib/wco/appliance.rb
237
- - lib/wco/appliance_tmpl.rb
238
- - lib/wco/leadset.rb
239
- - lib/wco/price.rb
240
- - lib/wco/product.rb
241
- - lib/wco/serverhost.rb
242
- - lib/wco/subscription.rb
47
+ - lib/ish_models/engine.rb
48
+ - lib/ish_models/version.rb
49
+ - lib/tasks/ish_models_tasks.rake
50
+ - lib/wco/profile.rb
243
51
  homepage: https://wasya.co
244
52
  licenses:
245
- - Proprietary
246
- metadata: {}
247
- post_install_message:
53
+ - MIT
54
+ metadata:
55
+ homepage_uri: https://wasya.co
56
+ source_code_uri: https://wasya.co
57
+ changelog_uri: https://wasya.co
58
+ post_install_message:
248
59
  rdoc_options: []
249
60
  require_paths:
250
61
  - lib
@@ -259,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
70
  - !ruby/object:Gem::Version
260
71
  version: '0'
261
72
  requirements: []
262
- rubygems_version: 3.1.6
263
- signing_key:
73
+ rubygems_version: 3.0.3.1
74
+ signing_key:
264
75
  specification_version: 4
265
- summary: models of ish
76
+ summary: https://wasya.co
266
77
  test_files: []
data/lib/address.rb DELETED
@@ -1,20 +0,0 @@
1
-
2
- class Address
3
- include Mongoid::Document
4
- include Mongoid::Timestamps
5
-
6
- belongs_to :profile, :class_name => '::Ish::UserProfile'
7
- # validates :profile, :presence => true
8
-
9
- field :lead_id, type: :integer
10
-
11
- field :name
12
- field :address_1
13
- field :address_2
14
- field :city
15
- field :state
16
- field :zipcode
17
- field :phone
18
-
19
- end
20
-
data/lib/feature.rb DELETED
@@ -1,32 +0,0 @@
1
-
2
- class Feature
3
- include Mongoid::Document
4
- include Mongoid::Timestamps
5
-
6
- field :name
7
- field :subhead
8
-
9
- field :image_path
10
- field :link_path
11
- field :partial_name
12
- field :inner_html
13
- field :weight, type: Integer, default: 10
14
-
15
- belongs_to :city, optional: true
16
- belongs_to :gallery, optional: true
17
- belongs_to :photo, optional: true
18
- belongs_to :report, optional: true
19
- belongs_to :site, optional: true
20
- belongs_to :tag, optional: true
21
- belongs_to :video, optional: true
22
- belongs_to :venue, optional: true
23
-
24
- def self.all
25
- self.order_by( :created_at => :desc )
26
- end
27
-
28
- def self.n_features
29
- 4
30
- end
31
-
32
- end
data/lib/gallery.rb DELETED
@@ -1,66 +0,0 @@
1
-
2
- class Gallery
3
- include Mongoid::Document
4
- include Mongoid::Timestamps
5
- include Ish::PremiumItem
6
- include Ish::Utils
7
-
8
- PER_PAGE = 6
9
-
10
- field :name
11
- validates :name, :uniqueness => true
12
- index({ :name => -1 }) ## 2023-09-23 removed uniqueness
13
-
14
- field :subhead
15
- field :descr, :as => :description
16
-
17
- field :is_public, type: Boolean, default: false
18
- has_and_belongs_to_many :shared_profiles, :class_name => 'Ish::UserProfile', :inverse_of => :shared_galleries
19
-
20
- field :is_trash, type: Boolean, default: false
21
- field :is_done, type: Boolean, default: false
22
-
23
- def published
24
- where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc })
25
- end
26
-
27
- field :x, :type => Float
28
- field :y, :type => Float
29
- field :z, :type => Float
30
-
31
- field :lang, :default => 'en'
32
- field :username
33
- field :lead_id, type: :integer
34
-
35
- field :slug
36
- index({ :slug => -1 }, { :unique => true })
37
- validates :slug, presence: true, uniqueness: true
38
- before_validation :set_slug, :on => :create
39
-
40
- def self.list conditions = { :is_trash => false }
41
- out = self.unscoped.where( conditions ).order_by( :created_at => :desc )
42
- [['', nil]] + out.map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
43
- end
44
-
45
- belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile', :inverse_of => :galleries
46
-
47
- has_many :newsitems # Seems correct. _vp_ 2022-03-21
48
-
49
- has_many :photos, order: { ordering: :asc }
50
-
51
- ACTIONS = [ 'show_mini', 'show_long', 'show' ]
52
- # @deprecated, use Gallery::ACTIONS
53
- def self.actions
54
- ACTIONS
55
- end
56
-
57
-
58
- RENDER_TITLES = 'index_titles' # view name
59
- RENDER_THUMBS = 'index_thumbs' # view name
60
-
61
- def export_fields
62
- %w| name subhead descr |
63
- end
64
-
65
- end
66
-