radiant-snippets-extension 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f5ad88509f11ae0eda34cc88bec2a89b74795d9a
4
+ data.tar.gz: 7dc450f0d98751a7bd81aff00028c8061eff38f5
5
+ SHA512:
6
+ metadata.gz: 11ac11caaa06147a7b22cb63fbad23a959edd56e5d689251fbfa1699fb1dea5caa90073b8f0be3c3285e99d99e6751d07463b335cf1b74a5addf7f381acba50e
7
+ data.tar.gz: 175313eebcecef084f51475384dfcf9b02b3aec02de4bc0c6385bee97162c766996316f979edf56016962b2f4c783f3c11788ea7d1fb3f327f7432967df0c8eb
@@ -9,7 +9,7 @@
9
9
  - thead.title_header do
10
10
  %th.name= t('snippet')
11
11
  %tbody
12
- - if @snippet_files.any?
12
+ - if @snippet_files.present?
13
13
  - @snippet_files.each do |snippet|
14
14
  %tr[snippet]
15
15
  - render_region :tbody, :locals => {:snippet => snippet} do |tbody|
@@ -1,3 +1,3 @@
1
1
  Radiant.config do |config|
2
- # config.define "setting.name", :default => 'value', :select_from => ['foo', 'bar']
2
+ config.define 'defaults.snippet.filter', :select_from => lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, :allow_blank => true
3
3
  end
@@ -1,5 +1,5 @@
1
1
  module RadiantSnippetsExtension
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  SUMMARY = "Snippets for Radiant CMS"
4
4
  DESCRIPTION = "Makes Radiant better by adding snippets!"
5
5
  URL = "http://github.com/radiant"
@@ -25,11 +25,11 @@ describe "Page rendering snippets" do
25
25
  end
26
26
 
27
27
  it "should render an error when the snippet does not exist" do
28
- page.should render('<r:snippet name="non-existant" />').with_error("snippet 'non-existant' not found")
28
+ page.should render('<r:snippet name="non-existent" />').with_error("snippet not found: non-existent")
29
29
  end
30
30
 
31
31
  it "should render an error when not given a 'name' attribute" do
32
- page.should render('<r:snippet />').with_error("`snippet' tag must contain a `name' attribute.")
32
+ page.should render('<r:snippet />').with_error("`snippet' tag must contain `name' attribute")
33
33
  end
34
34
 
35
35
  it "should filter the snippet with its assigned filter" do
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-snippets-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jim Gay
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-15 00:00:00.000000000 Z
11
+ date: 2013-08-28 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Makes Radiant better by adding snippets!
15
14
  email:
@@ -63,27 +62,26 @@ files:
63
62
  - spec/spec.opts
64
63
  homepage: http://github.com/radiant
65
64
  licenses: []
65
+ metadata: {}
66
66
  post_install_message:
67
67
  rdoc_options: []
68
68
  require_paths:
69
69
  - lib
70
70
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
71
  requirements:
73
- - - ! '>='
72
+ - - '>='
74
73
  - !ruby/object:Gem::Version
75
74
  version: '0'
76
75
  required_rubygems_version: !ruby/object:Gem::Requirement
77
- none: false
78
76
  requirements:
79
- - - ! '>='
77
+ - - '>='
80
78
  - !ruby/object:Gem::Version
81
79
  version: '0'
82
80
  requirements: []
83
81
  rubyforge_project:
84
- rubygems_version: 1.8.25
82
+ rubygems_version: 2.0.3
85
83
  signing_key:
86
- specification_version: 3
84
+ specification_version: 4
87
85
  summary: Snippets for Radiant CMS
88
86
  test_files:
89
87
  - spec/ci/before_script