bridgetown-prismic 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 228039775ada1cab1c61c74eed29302e9795b11ba594e14b31c77d3ba3478831
4
- data.tar.gz: 2bfec49e77bddd821d6cb720b49bb4d2f4bb29c111ed155c7025657fbfe48704
3
+ metadata.gz: 5527c934765e18198f16674eacd9443f5676aba706b9d58327c1ebe49c378234
4
+ data.tar.gz: fc37b56802422b8dbba4f4a5686891cd7db5466f7ee3b904d265446c4e645e5a
5
5
  SHA512:
6
- metadata.gz: 65717df7f3d68ae012027defb84dd4fb7becb3f19448dd8d0766bb0fe9a70408e126d8921608958a21bb9c674da44772924ff00fa5c5ed882f5f7fc12cdf52e8
7
- data.tar.gz: 89f7e077090f5021cba067c8eb46a3a73c83f55ee71acbafea1234099e5d51015c326d62ce7a1092f2b2ee898c028981ed39ff2c1e1a3dcd16e5a97ee28f2d49
6
+ metadata.gz: cf5848a62d57b3fd43d501c36e7448cf2ae04600f9683a5faba03940f684c8ad7045218724bc9969b290c20e57b02061f7bf025ed1792d1a26743bc139b778ff
7
+ data.tar.gz: 6c4a1f4d5afeab66b929033f5a716a9c5d16e67305f80a71ff25534117276838ec8efed8845d849b434d7c1bb6cc371bf9d07edd7822a71413899b081a50f630
data/CHANGELOG.md CHANGED
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ...
11
11
 
12
+ ## 0.1.2
13
+
14
+ - Add hash option to `provide_data`
15
+
12
16
  ## 0.1.1
13
17
 
14
18
  - Fix bugs and test link resolvers
@@ -7,8 +7,8 @@ Gem::Specification.new do |spec|
7
7
  spec.version = BridgetownPrismic::VERSION
8
8
  spec.author = "Bridgetown Team"
9
9
  spec.email = "maintainers@bridgetownrb.com"
10
- spec.summary = "Sample code for creating new Bridgetown plugins"
11
- spec.homepage = "https://github.com/username/bridgetown-prismic"
10
+ spec.summary = "A Prismic CMS integration plugin for Bridgetown"
11
+ spec.homepage = "https://github.com/bridgetownrb/bridgetown-prismic"
12
12
  spec.license = "MIT"
13
13
 
14
14
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features|frontend)/!) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownPrismic
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -22,7 +22,14 @@ Bridgetown::Model::Base.class_eval do # rubocop:disable Metrics/BlockLength
22
22
 
23
23
  def self.with_links = Bridgetown::Current.site.config.prismic_link_resolver
24
24
 
25
- def self.provide_data(&block)
25
+ def self.provide_data(hsh = nil, &block)
26
+ if hsh
27
+ hsh.each do |k, v|
28
+ @prismic_data.set k, v
29
+ end
30
+ return
31
+ end
32
+
26
33
  @prismic_data.provide_data(&block)
27
34
  end
28
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-prismic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
@@ -122,7 +122,7 @@ files:
122
122
  - lib/bridgetown-prismic/roda/previews.rb
123
123
  - lib/bridgetown-prismic/version.rb
124
124
  - lib/bridgetown/utils/prismic_data.rb
125
- homepage: https://github.com/username/bridgetown-prismic
125
+ homepage: https://github.com/bridgetownrb/bridgetown-prismic
126
126
  licenses:
127
127
  - MIT
128
128
  metadata: {}
@@ -144,5 +144,5 @@ requirements: []
144
144
  rubygems_version: 3.2.22
145
145
  signing_key:
146
146
  specification_version: 4
147
- summary: Sample code for creating new Bridgetown plugins
147
+ summary: A Prismic CMS integration plugin for Bridgetown
148
148
  test_files: []