depression 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/depression.gemspec CHANGED
@@ -5,6 +5,7 @@ require "depression/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "depression"
7
7
  s.version = Depression::VERSION
8
+ s.date = Date.today.to_s
8
9
  s.platform = Gem::Platform::RUBY
9
10
  s.authors = ["Lars Gierth"]
10
11
  s.email = ["lars.gierth@gmail.com"]
data/lib/depression.rb CHANGED
@@ -61,7 +61,7 @@ class Depression
61
61
  Relation.new(item2.name, :greedy_reverse)
62
62
  end
63
63
  rels.delete(nil)
64
- data.relations.push(*deps)
64
+ data.relations.push(*rels)
65
65
  else
66
66
  item.relations[:before].each do |name|
67
67
  next unless @data[name]
@@ -1,3 +1,3 @@
1
1
  class Depression
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + "/helper.rb"
1
+ require File.dirname(__FILE__) + "/helper"
2
2
 
3
3
  class DepressionTest < Test::Unit::TestCase
4
4
  def setup
@@ -49,8 +49,8 @@ class DepressionTest < Test::Unit::TestCase
49
49
  test "resolves greedy before/after relations" do
50
50
  items = [
51
51
  @item.call(:foo, :before => [:bar]),
52
- @item.call(:bar, :after => [:all]),
53
- @item.call(:baz, :before => [:all])
52
+ @item.call(:bar, :after => :all),
53
+ @item.call(:baz, :before => :all)
54
54
  ]
55
55
 
56
56
  result = Depression.process(items).map {|i| i.name }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depression
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lars Gierth
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-17 00:00:00 +01:00
18
+ date: 2010-11-18 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency