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 +4 -4
- data/lib/material/concerns/mount.rb +14 -0
- data/lib/material/list.rb +1 -0
- data/lib/material/version.rb +1 -1
- data/lib/material.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32abc9198a5a231e3e5008996d931136e4c73426e3fb7fcc7c9aea25b18d3cc2
|
4
|
+
data.tar.gz: cb6a8eb11ce1959c72a780eb9907f56d1587b3a29502618af04210779c67aa00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/material/version.rb
CHANGED
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.
|
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
|