material 0.2.9 → 0.2.10

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: 047af7d49a83c2ad4b9a19d3c213327ae21538a5e6063c6b464841c839459fb4
4
- data.tar.gz: 930346af738b233c2724de6f80200eae88a8f640c7a6f822c500ab53b5a69715
3
+ metadata.gz: 32abc9198a5a231e3e5008996d931136e4c73426e3fb7fcc7c9aea25b18d3cc2
4
+ data.tar.gz: cb6a8eb11ce1959c72a780eb9907f56d1587b3a29502618af04210779c67aa00
5
5
  SHA512:
6
- metadata.gz: 79c5720bd197a514ca5b214b63eaddd670921920f89f840dd9d266c05560bbf619d8ba9d905892e6033669051b01c17317073ada36d9e3b6d62397c352c7b75d
7
- data.tar.gz: 19d43b60c7eb4c1db11ccf9bb2f4148b40e5a654770057a95a77f1b9aa12b050c03fbb35a6bc684c5733fcdd4a4032d976fab0cf8b21fac005b1d28eb606f2cb
6
+ metadata.gz: c7b1d83ad37b0a4a813535aa5ba9bc57c9408dbeda48a232e107bd068578a84a6f349d7f85c9038b93facde4d22562782f8d8db690be694fd0db2a3b70ff2924
7
+ data.tar.gz: d10d8242b61827299005f3e37b10b45d7a8ba0a818f436798220e090b126d643b3730d7b6b4b19334263bf15fc573c737b042f9cb5df69e9f0028b318386e1d1
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Material
4
+ module Mount
5
+ extend ActiveSupport::Concern
6
+
7
+ def mount_facet(facet)
8
+ output = facet.output
9
+ @current_page = output.current_page
10
+ @total_pages = output.total_pages
11
+ concat(output)
12
+ end
13
+ end
14
+ end
data/lib/material/list.rb CHANGED
@@ -12,6 +12,7 @@ module Material
12
12
  include Material::Site
13
13
  include Material::For
14
14
  include Material::Pagination
15
+ include Material::Mount
15
16
 
16
17
  def self.for(object)
17
18
  material_class = material_class_for(object, "List")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Material
4
- VERSION = "0.2.9"
4
+ VERSION = "0.2.10"
5
5
  end
data/lib/material.rb CHANGED
@@ -11,6 +11,7 @@ require_relative "material/concerns/text"
11
11
  require_relative "material/concerns/site"
12
12
  require_relative "material/concerns/for"
13
13
  require_relative "material/concerns/pagination"
14
+ require_relative "material/concerns/mount"
14
15
 
15
16
  require "material/version"
16
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
@@ -212,6 +212,7 @@ files:
212
212
  - lib/material/concerns/core.rb
213
213
  - lib/material/concerns/for.rb
214
214
  - lib/material/concerns/icon.rb
215
+ - lib/material/concerns/mount.rb
215
216
  - lib/material/concerns/pagination.rb
216
217
  - lib/material/concerns/site.rb
217
218
  - lib/material/concerns/text.rb