simplec 0.7.0 → 0.7.1

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: 96f4e9c1f6b7ebca90065eaafc12867bd2402760
4
- data.tar.gz: bdbd5d66111b3afa442c3cb9a1d84cd25bc7387a
3
+ metadata.gz: b0b7d4593344d7269aa06e45087efda7849a7651
4
+ data.tar.gz: 0fa8f29b58a5d090641b5b888709b8cbff12eb98
5
5
  SHA512:
6
- metadata.gz: 2e60a95279a8c1aebbb8cdbfd2a1c17f8f66f8d6598a6d6fd307342a17597f95431a60bfccadf100f0c5df526bb0bc9d8b930741e92218791bcf0617f816ba31
7
- data.tar.gz: 3a267018544e4d5c9c5990beee28b1d694ce24055d70f7156481830a2c0de3a825d58ccebfbef14f787e3dc4a33b429b94703b8c83bb640393b05e067dbc9ca2
6
+ metadata.gz: 95c9af9159b2f4e1d0c97ea56ce8a3630de1c87348b406302d085d7920bc52a91a77533b232fb9cb433ec7aba4999620995938a65cc9fefa7291904798ab8c8a
7
+ data.tar.gz: 7e6258e48fedf02c613a691662c8198de8eb7a218b85d8b06e5c5d5c03eca1afdb00ccbf6d1b0c6e99c306fc21d439da7f37a3bce15db71378e0f18c5daedf7b
@@ -48,8 +48,9 @@ module Simplec
48
48
  #
49
49
  # @return [String, nil] path of page, or nil
50
50
  def simplec_path_for(page_or_path, options={})
51
- page = page_for(page_or_path, options.extract!(:raise))
51
+ page = page_for(page_or_path, options)
52
52
  return unless page
53
+ options.delete(:raise)
53
54
  simplec.page_path options.merge(
54
55
  path: page.path
55
56
  )
@@ -73,8 +74,9 @@ module Simplec
73
74
  #
74
75
  # @return [String, nil] path of page, or nil
75
76
  def simplec_url_for(page_or_path, options={})
76
- page = page_for(page_or_path, options.extract!(:raise))
77
+ page = page_for(page_or_path, options)
77
78
  return unless page
79
+ options.delete(:raise)
78
80
  simplec.page_url options.merge(
79
81
  subdomain: page.subdomain.try(:name),
80
82
  path: page.path
@@ -1,3 +1,3 @@
1
1
  module Simplec
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-17 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails