radiant-reorder_children-extension 1.0.5 → 1.0.6

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
  module RadiantReorderChildrenExtension
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
@@ -6,7 +6,7 @@ module ReorderChildren
6
6
 
7
7
  def update_position
8
8
  last = Page.find(:first, :conditions => { :parent_id => parent_id }, :order => 'position DESC')
9
- write_attribute('position', last.position + 1) if last
9
+ write_attribute('position', last.position.to_i + 1) if last
10
10
  true
11
11
  end
12
12
  end
@@ -22,8 +22,4 @@ Gem::Specification.new do |s|
22
22
  # s.executables = Dir['bin/*'] - ignores
23
23
  s.require_paths = ["lib"]
24
24
 
25
- s.post_install_message = %{
26
- Add this to your radiant project with:
27
- config.gem 'radiant-reorder_children-extension', :version => '~>#{RadiantReorderChildrenExtension::VERSION}'
28
- }
29
25
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-reorder_children-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
4
+ hash: 27
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benny Degezelle
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-13 00:00:00 +02:00
18
+ date: 2012-03-05 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -59,7 +59,7 @@ has_rdoc: true
59
59
  homepage: http://github.com/jomz/radiant-reorder_children-extension
60
60
  licenses: []
61
61
 
62
- post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-reorder_children-extension', :version => '~>1.0.5'\n "
62
+ post_install_message:
63
63
  rdoc_options: []
64
64
 
65
65
  require_paths:
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements: []
86
86
 
87
87
  rubyforge_project:
88
- rubygems_version: 1.3.7
88
+ rubygems_version: 1.4.2
89
89
  signing_key:
90
90
  specification_version: 3
91
91
  summary: Reorder Children for Radiant CMS