acts-as-dag 1.1.3 → 1.1.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.4
data/lib/dag/dag.rb CHANGED
@@ -735,7 +735,7 @@ module Dag
735
735
  raise ActiveRecord::ActiveRecordError, 'Cannot modify ourself in this way' if edge == self
736
736
  edge.do_not_perpetuate = true
737
737
  if edge.count == 0
738
- edge.destroy!
738
+ edge.destroy
739
739
  else
740
740
  edge.save!
741
741
  end
data/test/dag_test.rb CHANGED
@@ -839,4 +839,14 @@ class DagTest < Test::Unit::TestCase
839
839
  assert_equal [c,d], path
840
840
  end
841
841
 
842
+ # Tests that perpetuate upon destroy works
843
+ def tests_perpetuate_upon_destroy_link
844
+ a = Node.create!
845
+ b = Node.create!
846
+ c = Node.create!
847
+ e = Default.create_edge!(a,b)
848
+ f = Default.create_edge!(b,c)
849
+ e.destroy
850
+ end
851
+
842
852
  end
data/test/database.test CHANGED
Binary file
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts-as-dag
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 27
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 3
9
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
10
11
  platform: ruby
11
12
  authors:
12
13
  - Matthew Leventi
@@ -15,8 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-02-04 00:00:00 -08:00
19
- default_executable:
19
+ date: 2011-04-29 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: Acts As Dag, short for Acts As Directed Acyclic Graph, is a gem which allows you to represent DAG hierarchy using your ActiveRecord models.
@@ -36,7 +36,6 @@ files:
36
36
  - lib/dag/dag.rb
37
37
  - test/dag_test.rb
38
38
  - test/database.test
39
- has_rdoc: true
40
39
  homepage: http://github.com/resgraph/acts-as-dag
41
40
  licenses: []
42
41
 
@@ -50,6 +49,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
49
  requirements:
51
50
  - - ">="
52
51
  - !ruby/object:Gem::Version
52
+ hash: 3
53
53
  segments:
54
54
  - 0
55
55
  version: "0"
@@ -58,13 +58,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
+ hash: 3
61
62
  segments:
62
63
  - 0
63
64
  version: "0"
64
65
  requirements: []
65
66
 
66
67
  rubyforge_project: acts-as-dag
67
- rubygems_version: 1.3.7
68
+ rubygems_version: 1.7.2
68
69
  signing_key:
69
70
  specification_version: 3
70
71
  summary: Acts As DAG Gem