radiant-relations-extension 1.2.0 → 1.2.1

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.
@@ -1,3 +1,3 @@
1
1
  class RadiantRelationsExtension
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -5,7 +5,7 @@ module RelationsExtension::RelationsTags
5
5
  tag.locals.related_pages = tag.locals.page.related_pages
6
6
  if tag.attr['from_ancestor']
7
7
  ancestor_path = Page.find(tag.attr['from_ancestor']).path
8
- tag.locals.related_pages.delete_if{|p| p.path =~ /^#{ancestor_path}/ }
8
+ tag.locals.related_pages.delete_if{|p| not p.path =~ /^#{ancestor_path}/ }
9
9
  end
10
10
  tag.expand unless tag.locals.related_pages.empty?
11
11
  end
@@ -24,6 +24,6 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.post_install_message = %{
26
26
  Add this to your radiant project by putting this line in your Gemfile:
27
- gem "radiant-children_config-extension", "~> #{RadiantRelationsExtension::VERSION}"
27
+ gem "radiant-relations-extension", "~> #{RadiantRelationsExtension::VERSION}"
28
28
  }
29
29
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-relations-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan De Poorter
@@ -50,6 +50,7 @@ files:
50
50
  - public/stylesheets/sass/admin/relations.sass
51
51
  - radiant-relations-extension-1.1.0.gem
52
52
  - radiant-relations-extension-1.1.1.gem
53
+ - radiant-relations-extension-1.2.0.gem
53
54
  - radiant-relations-extension.gemspec
54
55
  - Rakefile
55
56
  - README
@@ -60,7 +61,7 @@ has_rdoc: true
60
61
  homepage: http://github.com/jomz/radiant-relations-extension
61
62
  licenses: []
62
63
 
63
- post_install_message: "\n Add this to your radiant project by putting this line in your Gemfile:\n gem \"radiant-children_config-extension\", \"~> 1.2.0\"\n "
64
+ post_install_message: "\n Add this to your radiant project by putting this line in your Gemfile:\n gem \"radiant-relations-extension\", \"~> 1.2.1\"\n "
64
65
  rdoc_options: []
65
66
 
66
67
  require_paths: