cmor_showcase_frontend 0.0.40.pre → 0.0.41.pre

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: ce50447b7bfe8e9df83f0201c6c12c15329bc32a56d63b6d0c162e4a93e153ac
4
- data.tar.gz: 857934a56a0228bbf73aeb72d76298df648c23289aa5631d64f3d039693b345e
3
+ metadata.gz: 02ae4ec56b6a7bb33d65292c37e7775f80ad22caccb3fb98343fefa04fe8d29f
4
+ data.tar.gz: 5dbcabb8a2cfd82c5b428f5313b1fdfeee50f6c5d467d303d74084498c71a7e8
5
5
  SHA512:
6
- metadata.gz: 0adf476c365954dbb9fad7fe7f3b100ff215cdab49bc73da02cc9470205115a242c26746a15b10a0cb1d520989141241fc4a419a4d33928311bfb7cbea08ec28
7
- data.tar.gz: c012466c6214d082945689f5ea49c6ec0035ea483703636e98a27e37cebbf64074cbf1b1492404fc9a85267bb918f385774c84a10edce6276f49642c284bd35b
6
+ metadata.gz: cb2d7b191ea064cf591eecd75be08e8bce5e63bb4b81026f21ce6467c7caa10ef83d896be9193cbdbdd20db7d276b220ed5a241fa7c006471757182cefe968e3
7
+ data.tar.gz: 507629989d865c4d46f0b26be4ddc28cf2ace853989888596cdc8b57808c237ea51480e37326650d8cde062a8849e63ec97173160dc4989819765c9fbc32b1c2
@@ -16,8 +16,10 @@ module Cmor::Showcase
16
16
  def render_items(category_or_identifier, options = {})
17
17
  options.reverse_merge!(
18
18
  variant_options: Cmor::Showcase::Frontend::Configuration.default_render_items_variant_options,
19
+ limit: nil
19
20
  )
20
21
  variant_options = options.delete(:variant_options)
22
+
21
23
  category = if category_or_identifier.is_a?(Cmor::Showcase::Category)
22
24
  category_or_identifier
23
25
  else
@@ -1,5 +1,5 @@
1
1
  .row{ class: "cmor-showcase-category cmor-showcase-category-#{dom_class(category)", id: dom_id(category) }
2
- - category.items.each do |item|
2
+ - category.items.limit(options[:limit]).each do |item|
3
3
  .col-lg-3.col-md-4.col-sm-6{ class: dom_class(item) }
4
4
  .card.h-100
5
5
  %a{:href => "#"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_showcase_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40.pre
4
+ version: 0.0.41.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-04 00:00:00.000000000 Z
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.40.pre
33
+ version: 0.0.41.pre
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.40.pre
40
+ version: 0.0.41.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cmor_core_frontend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.40.pre
47
+ version: 0.0.41.pre
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.40.pre
54
+ version: 0.0.41.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -248,6 +248,20 @@ dependencies:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rubocop-rails_config
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
251
265
  - !ruby/object:Gem::Dependency
252
266
  name: shoulda-matchers
253
267
  requirement: !ruby/object:Gem::Requirement
@@ -375,7 +389,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
389
  - !ruby/object:Gem::Version
376
390
  version: 1.3.1
377
391
  requirements: []
378
- rubygems_version: 3.0.6
392
+ rubygems_version: 3.1.2
379
393
  signing_key:
380
394
  specification_version: 4
381
395
  summary: Cmor::Showcase::Frontend Module.