rocket_cms 0.15.4 → 0.15.5

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: f57984f568b8a839e2e4ded174ec998d82263bd1
4
- data.tar.gz: 4ab519fbad9e0f685553de36e3e1eb59b07f9150
3
+ metadata.gz: ea514224d9c3716dfee3fa9acc61dbb28dd78487
4
+ data.tar.gz: 8d3d12ec8756ce47268d48689deeaa9d66b10c4d
5
5
  SHA512:
6
- metadata.gz: 53779a5e300559c3a9661aa52c63e1c071d5c102eee994da1bf35a40371cadcc0cff9be6199b201180935fc858020419649d3bf465ee4174da0997047661e17b
7
- data.tar.gz: 5bb951139b8f6a22098c7ecebf24d226c71a2c6bcc9cf9a11293c4481dee077c67b9d386bd1dac80964e8e3d86b6a19f575ce7e21d16c61eff4c6bfb1e6b876f
6
+ metadata.gz: a36b3d8798202c087a48a8aa564484734b741e8e33a96c91765c25f1aa1e19d75d5acd062d9783dc3ae9596df440ebd76f8671c55256fef8db4d62e37051b660
7
+ data.tar.gz: 4407679edf73811374122e2729650a4ae3bd1118db40c5c59ef386095b68eaa1b094233107edd4caa9aca0650f94a0e954c11dd6efe6f1dd545efa633df557c3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.15.4)
4
+ rocket_cms (0.15.5)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -86,7 +86,7 @@ GEM
86
86
  mime-types-data (~> 3.2015)
87
87
  mime-types-data (3.2016.0521)
88
88
  mini_portile2 (2.1.0)
89
- minitest (5.9.0)
89
+ minitest (5.9.1)
90
90
  nio4r (1.2.1)
91
91
  nokogiri (1.6.8)
92
92
  mini_portile2 (~> 2.1.0)
@@ -4,6 +4,9 @@ ru:
4
4
  messages:
5
5
  blank_in_locale:
6
6
  "can't be blank in %{location}"
7
+ message_title: "message"
8
+ summary_title: "summary"
9
+ resolution_title: "resolution"
7
10
  ambiguous_relationship:
8
11
  message: "Ambiguous relations %{candidates} defined on %{klass}."
9
12
  summary:
@@ -19,7 +22,7 @@ ru:
19
22
  message: "Calling %{method} on %{klass} resulted in a false return
20
23
  from a callback."
21
24
  summary: "If a before callback returns false when using Document.create!,
22
- Document#save!, or Documnet#update_attributes! this error will get raised
25
+ Document#save!, or Document#update_attributes! this error will get raised
23
26
  since the document did not actually get saved."
24
27
  resolution: "Double check all before callbacks to make sure they are
25
28
  not unintentionally returning false."
@@ -31,6 +34,13 @@ ru:
31
34
  resolution: "Most likely this is caused by passing parameters directly
32
35
  through to the find, and the parameter either is not present or the
33
36
  key from which it is accessed is incorrect."
37
+ document_not_destroyed:
38
+ message: "%{klass} with id %{id} was not destroyed."
39
+ summary: "When calling %{klass}#destroy! and a callback halts the destroy
40
+ callback chain by returning a false value, the deletion will not
41
+ actually occur."
42
+ resolution: "Check the before/after destroy callbacks to ensure that the
43
+ return values are truthy for the chain to continue."
34
44
  document_not_found:
35
45
  message: "Document(s) not found for class %{klass} with id(s) %{missing}."
36
46
  summary: "When calling %{klass}.find with an id or array of ids, each
@@ -119,6 +129,7 @@ ru:
119
129
  has the correct options.\n\n
120
130
  Valid options are:\n
121
131
  \_\_background: true|false\n
132
+ \_\_database: 'database_name'\n
122
133
  \_\_drop_dups: true|false\n
123
134
  \_\_name: 'index_name'\n
124
135
  \_\_sparse: true|false\n
@@ -128,6 +139,7 @@ ru:
128
139
  \_\_bits: 26\n
129
140
  \_\_bucket_size : 1\n
130
141
  \_\_weights: { content: 1, title: 2 }\n
142
+ \_\_expire_after_seconds: number_of_seconds\n
131
143
  Valid types are: 1, -1, '2d', '2dsphere', 'geoHaystack', 'text', 'hashed'\n\n
132
144
  Example:\n
133
145
  \_\_class Band\n
@@ -153,24 +165,39 @@ ru:
153
165
  collection. Double check the relation definitions and fix any
154
166
  instances where embedded documents are improperly referenced
155
167
  from other collections."
168
+ invalid_persistence_option:
169
+ message: "Invalid persistence option :%{invalid}."
170
+ summary: "The options used to change the persistence context must be one
171
+ of the valid options for a mongo client, or a collection name."
172
+ resolution: "Valid options are: %{valid}, make sure these are the ones
173
+ you are using."
174
+ invalid_relation:
175
+ message: "Defining a relation named '%{name}' is not allowed."
176
+ summary: "Defining this relation would override the method '%{name}',
177
+ which would cause issues with expectations around the original
178
+ method and cause extremely hard to debug issues. The original
179
+ method was defined in:\n
180
+ \_\_Object: %{origin}\n
181
+ \_\_File: %{file}\n
182
+ \_\_Line: %{line}"
183
+ resolution: "Use Mongoid.destructive_fields to see what names are not
184
+ allowed, and don't use these names. These include names that also
185
+ conflict with core Ruby methods on Object, Module, Enumerable, or
186
+ included gems that inject methods into these or Mongoid internals."
156
187
  invalid_scope:
157
188
  message: "Defining a scope of value %{value} on %{klass} is not
158
189
  allowed."
159
- summary: "Scopes in Mongoid must be either criteria objects or procs
160
- that wrap criteria objects."
161
- resolution: "Change the scope to be a criteria or proc wrapped
162
- critera.\n\n
190
+ summary: "Scopes in Mongoid must be procs that wrap criteria objects."
191
+ resolution: "Change the scope to be a proc wrapped critera.\n\n
163
192
  Example:\n
164
193
  \_\_class Band\n
165
194
  \_\_\_\_include Mongoid::Document\n
166
- \_\_\_\_field :active, type: Boolean, default: true\n
167
- \_\_\_\_scope :active, where(active: true)\n
168
195
  \_\_\_\_scope :inactive, ->{ where(active: false) }\n
169
196
  \_\_end\n\n"
170
197
  invalid_storage_options:
171
198
  message: "Invalid options passed to %{klass}.store_in: %{options}."
172
199
  summary: "The :store_in macro takes only a hash of parameters with
173
- the keys :database, :collection, or :session."
200
+ the keys :database, :collection, or :client."
174
201
  resolution: "Change the options passed to store_in to match the
175
202
  documented API, and ensure all keys in the options hash are
176
203
  symbols.\n\n
@@ -179,6 +206,12 @@ ru:
179
206
  \_\_\_\_include Mongoid::Document\n
180
207
  \_\_\_\_store_in collection: 'artists', database: 'secondary'\n
181
208
  \_\_end\n\n"
209
+ invalid_storage_parent:
210
+ message: "Invalid store_in call on class %{klass}."
211
+ summary: "The :store_in macro can only be called on a base Mongoid Document"
212
+ resolution: "Remove the store_in call on class %{klass}, as it will use its
213
+ parent store configuration. Or remove the hierarchy extension for this
214
+ class."
182
215
  invalid_time:
183
216
  message: "'%{value}' is not a valid Time."
184
217
  summary: "Mongoid tries to serialize the values for Date, DateTime, and
@@ -238,9 +271,9 @@ ru:
238
271
  for each parent up the hierarchy."
239
272
  resolution: "Consider not embedding %{embedded}, or do the key
240
273
  storage and access in a custom manner in the application code."
241
- mixed_session_configuration:
274
+ mixed_client_configuration:
242
275
  message: "Both uri and standard configuration options defined for
243
- session: '%{name}'."
276
+ client: '%{name}'."
244
277
  summary: "Instead of simply giving uri or standard options a
245
278
  preference order, Mongoid assumes that you have made a mistake in
246
279
  your configuration and requires that you provide one or the other,
@@ -265,15 +298,15 @@ ru:
265
298
  \_\_\_\_has_many :albums\n
266
299
  \_\_\_\_accepts_nested_attributes_for :albums\n
267
300
  \_\_end\n\n"
268
- no_default_session:
269
- message: "No default session configuration is defined."
301
+ no_default_client:
302
+ message: "No default client configuration is defined."
270
303
  summary: "The configuration provided settings for: %{keys}, but
271
304
  Mongoid requires a :default to be defined at minimum."
272
305
  resolution: "If configuring via a mongoid.yml, ensure that within
273
- your :sessions section a :default session is defined.\n\n
306
+ your :clients section a :default client is defined.\n\n
274
307
  Example:\n
275
308
  \_\_development:\n
276
- \_\_\_\_sessions:\n
309
+ \_\_\_\_clients:\n
277
310
  \_\_\_\_\_\_default:\n
278
311
  \_\_\_\_\_\_\_\_hosts:\n
279
312
  \_\_\_\_\_\_\_\_\_\_- localhost:27017\n\n"
@@ -325,61 +358,61 @@ ru:
325
358
  %{klass}.create! without setting the parent document as an
326
359
  attribute."
327
360
  resolution: "Ensure that you've set the parent relation if
328
- instantiating the embedded document direcly, or always create new
361
+ instantiating the embedded document directly, or always create new
329
362
  embedded documents via the parent relation."
330
- no_session_config:
331
- message: "No configuration could be found for a session named
363
+ no_client_config:
364
+ message: "No configuration could be found for a client named
332
365
  '%{name}'."
333
- summary: "When attempting to create the new session, Mongoid could
334
- not find a session configuration for the name: '%{name}'. This is
366
+ summary: "When attempting to create the new client, Mongoid could
367
+ not find a client configuration for the name: '%{name}'. This is
335
368
  necessary in order to know the host, port, and options needed
336
369
  to connect."
337
370
  resolution: "Double check your mongoid.yml to make sure under the
338
- sessions key that a configuration exists for '%{name}'. If you
371
+ clients key that a configuration exists for '%{name}'. If you
339
372
  have set the configuration programatically, ensure that '%{name}'
340
373
  exists in the configuration hash."
341
- no_sessions_config:
342
- message: "No sessions configuration provided."
374
+ no_clients_config:
375
+ message: "No clients configuration provided."
343
376
  summary: "Mongoid's configuration requires that you provide details
344
- about each session that can be connected to, and requires in
345
- the sessions config at least 1 default session to exist."
377
+ about each client that can be connected to, and requires in
378
+ the clients config at least 1 default client to exist."
346
379
  resolution: "Double check your mongoid.yml to make sure that you
347
- have a top-level sessions key with at least 1 default session
380
+ have a top-level clients key with at least 1 default client
348
381
  configuration for it. You can regenerate a new mongoid.yml for
349
382
  assistance via `rails g mongoid:config`.\n\n
350
383
  Example:\n
351
384
  \_\_development:\n
352
- \_\_\_\_sessions:\n
385
+ \_\_\_\_clients:\n
353
386
  \_\_\_\_\_\_default:\n
354
387
  \_\_\_\_\_\_\_\_database: mongoid_dev\n
355
388
  \_\_\_\_\_\_\_\_hosts:\n
356
389
  \_\_\_\_\_\_\_\_\_\_- localhost:27017\n\n"
357
- no_session_database:
358
- message: "No database provided for session configuration: :%{name}."
359
- summary: "Each session configuration must provide a database so Mongoid
390
+ no_client_database:
391
+ message: "No database provided for client configuration: :%{name}."
392
+ summary: "Each client configuration must provide a database so Mongoid
360
393
  knows where the default database to persist to. What was provided
361
394
  was: %{config}."
362
395
  resolution: "If configuring via a mongoid.yml, ensure that within
363
- your :%{name} section a :database value for the session's default
396
+ your :%{name} section a :database value for the client's default
364
397
  database is defined.\n\n
365
398
  Example:\n
366
399
  \_\_development:\n
367
- \_\_\_\_sessions:\n
400
+ \_\_\_\_clients:\n
368
401
  \_\_\_\_\_\_%{name}:\n
369
402
  \_\_\_\_\_\_\_\_database: my_app_db\n
370
403
  \_\_\_\_\_\_\_\_hosts:\n
371
404
  \_\_\_\_\_\_\_\_\_\_- localhost:27017\n\n"
372
- no_session_hosts:
373
- message: "No hosts provided for session configuration: :%{name}."
374
- summary: "Each session configuration must provide hosts so Mongoid
405
+ no_client_hosts:
406
+ message: "No hosts provided for client configuration: :%{name}."
407
+ summary: "Each client configuration must provide hosts so Mongoid
375
408
  knows where the database server is located. What was provided
376
409
  was: %{config}."
377
410
  resolution: "If configuring via a mongoid.yml, ensure that within
378
- your :%{name} section a :hosts value for the session hosts is
411
+ your :%{name} section a :hosts value for the client hosts is
379
412
  defined.\n\n
380
413
  Example:\n
381
414
  \_\_development:\n
382
- \_\_\_\_sessions:\n
415
+ \_\_\_\_clients:\n
383
416
  \_\_\_\_\_\_%{name}:\n
384
417
  \_\_\_\_\_\_\_\_database: my_app_db\n
385
418
  \_\_\_\_\_\_\_\_hosts:\n
@@ -391,6 +424,12 @@ ru:
391
424
  can only have values set when the document is a new record."
392
425
  resolution: "Don't define '%{name}' as readonly, or do not attempt
393
426
  to update its value after the document is persisted."
427
+ readonly_document:
428
+ message: "Attempted to persist the readonly document '%{klass}'."
429
+ summary: "Documents loaded from the database using #only
430
+ cannot be persisted."
431
+ resolution: "Don't attempt to persist documents that are flagged as
432
+ readonly."
394
433
  scope_overwrite:
395
434
  message: "Cannot create scope :%{scope_name}, because of existing
396
435
  method %{model_name}.%{scope_name}."
@@ -401,6 +440,8 @@ ru:
401
440
  with the already defined method %{model_name}, or set the
402
441
  configuration option Mongoid.scope_overwrite_exception to false,
403
442
  which is its default. In this case a warning will be logged."
443
+ taken:
444
+ "is already taken"
404
445
  too_many_nested_attribute_records:
405
446
  message: "Accepting nested attributes for %{association} is limited
406
447
  to %{limit} records."
@@ -423,9 +464,9 @@ ru:
423
464
  unsaved_document:
424
465
  message: "Attempted to save %{document} before the parent %{base}."
425
466
  summary: "You cannot call create or create! through the
426
- relation (%{document}) who's parent (%{base}) is
427
- not already saved. This would case the database to be out of sync
428
- since the child could potentially reference a nonexistant parent."
467
+ relation (%{document}) whose parent (%{base}) is
468
+ not already saved. This would cause the database to be out of sync
469
+ since the child could potentially reference a nonexistent parent."
429
470
  resolution: "Make sure to only use create or create! when the parent
430
471
  document %{base} is persisted."
431
472
  unsupported_javascript:
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.15.4"
2
+ VERSION = "0.15.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.4
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2016-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler