card-mod-format 0.11.6 → 0.12.0

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: a6d456d6bb2c8990d8a69589a71caeebab04a24027dfeebf09a071f755413c5d
4
- data.tar.gz: 10d5c52cc7d3c708b014cd5ac96e3c004be92b1ca295c730d3ec40cf62bfbc92
3
+ metadata.gz: 7a14a87f7d666f6e68411e159ea14f4b217fa6e8e3002dd69186dec8a0b9daeb
4
+ data.tar.gz: bdfe37143e119215126613981e2892002bdd254b0a8f6ea58f639cec5727b87b
5
5
  SHA512:
6
- metadata.gz: 0fb99bd738a84c124db0b47c22075057a2df33526320b8cb1d038275bce37265564abdb04ab103feb590d281a1a94a399b7890dcb6c1491d5c44d8d8bdff2ec3
7
- data.tar.gz: bf4fec545a683495a08a55446791e3d5d4291fcf8e3dd657e5fc94cf358d7c94b7966a355fd1495b9d98a0a05a588cf84555ab0758d37a9b87aaaff3e9c9f2f8
6
+ metadata.gz: 874d45d7ab14d8bba368fbf31c461eeeacf59dff1e2b6cfc1904a055a77727a8d39304fb037690e1b5573db446690b2cb7212f5839185a712544d06dd84e8230
7
+ data.tar.gz: 664bd91c44a1f20f2dbdee671fdb405c02454524508d8a77e024ee1712295dc846d2f6725a23a6674ca18e5b575b2adc808ec7337c8e98a9778b1bd220c0ae5d
data/set/all/links.rb CHANGED
@@ -73,7 +73,7 @@ format do
73
73
  def clean_resource resource, resource_type
74
74
  if resource_type == "internal-link"
75
75
  # remove initial slash; #contextualize_path handles relative root
76
- contextualize_path resource[1..-1].sub %r{^/}, ""
76
+ contextualize_path resource.sub(%r{^/}, "")
77
77
  else
78
78
  resource
79
79
  end
data/set/all/menu.rb CHANGED
@@ -102,7 +102,7 @@ format :html do
102
102
 
103
103
  def edit_link view=:edit, opts={}
104
104
  link_to_view view, opts.delete(:link_text) || menu_icon,
105
- edit_link_opts(opts.reverse_merge(modal: :lg))
105
+ edit_link_opts(modal: (opts[:modal] || :lg))
106
106
  end
107
107
 
108
108
  # @param modal [Symbol] modal size
data/set/all/rss.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "builder"
2
+
1
3
  format :rss do
2
4
  attr_accessor :xml
3
5
 
data/set/all/text.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "htmlentities"
2
+
1
3
  format :text do
2
4
  view :core do
3
5
  HTMLEntities.new.decode strip_tags(super()).to_s
data/set/type/json.rb CHANGED
@@ -1,4 +1,4 @@
1
- # include_set Abstract::Pointer
1
+ require "coderay"
2
2
 
3
3
  event :validate_json, :validate, on: :save, changed: :content do
4
4
  check_json_syntax if content.present?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.6
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-21 00:00:00.000000000 Z
13
+ date: 2021-07-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.101.6
21
+ version: 1.102.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.101.6
28
+ version: 1.102.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-content
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.11.6
35
+ version: 0.12.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.11.6
42
+ version: 0.12.0
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.1.4
128
+ rubygems_version: 3.2.15
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: format