succession 0.1.0 → 0.2.0

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.
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Succession
2
2
 
3
- Manage the Rails object succession easily.
3
+ [![Gem Version](https://badge.fury.io/rb/succession.png)](http://badge.fury.io/rb/succession)
4
4
 
5
+ Manage the Rails object succession easily.
5
6
 
6
7
  You have to privide a user manage succession for a Rails object, you can simply
7
8
  add this gem.
data/config/routes.rb CHANGED
@@ -1,4 +1,4 @@
1
- Rails.application.routes.draw do
2
- match '/succession_entity/:id/up/' => "Succession::Entities#up"
3
- match '/succession_entity/:id/down/' => "Succession::Entities#down"
1
+ Succession::Engine.routes.draw do
2
+ match 'entities/:id/up/' => "entities#up"
3
+ match 'entities/:id/down/' => "entities#down"
4
4
  end
@@ -37,11 +37,11 @@ module ActionView::Helpers::UrlHelper
37
37
  end
38
38
 
39
39
  def succession_entity_up_path(entity)
40
- "succession_entity/#{entity.id}/up"
40
+ "succession/entities/#{entity.id}/up"
41
41
  end
42
42
 
43
43
  def succession_entity_down_path(entity)
44
- "succession_entity/#{entity.id}/down"
44
+ "succession/entities/#{entity.id}/down"
45
45
  end
46
46
 
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Succession
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: succession
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: