wolverine 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/TODO CHANGED
@@ -1,2 +1,2 @@
1
- - Tests for Wolverine::PathComponent
1
+ - Re-evaluate what actually needs to be exposed as public
2
2
  - Think of more TODO items
@@ -1,3 +1,3 @@
1
1
  module Wolverine
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/wolverine.rb CHANGED
@@ -15,6 +15,10 @@ module Wolverine
15
15
  config.redis
16
16
  end
17
17
 
18
+ def self.reset!
19
+ @root_directory = nil
20
+ end
21
+
18
22
  def self.root_directory
19
23
  @root_directory ||= PathComponent.new(config.script_path)
20
24
  end
@@ -22,4 +22,4 @@ class WolverineIntegrationTest < MiniTest::Unit::TestCase
22
22
  assert_equal [1, 0], Wolverine.util.mexists(:a, :b)
23
23
  end
24
24
 
25
- end
25
+ end
@@ -1,10 +1,17 @@
1
1
  require_relative 'test_helper'
2
2
 
3
3
  class WolverineTest < MiniTest::Unit::TestCase
4
-
4
+
5
5
  def test_redis
6
6
  Wolverine.config.redis = :redis
7
7
  assert_equal :redis, Wolverine.redis
8
8
  end
9
9
 
10
+ def test_reset!
11
+ dir = Wolverine.root_directory
12
+ assert_equal Wolverine.root_directory, dir
13
+ Wolverine.reset!
14
+ refute_equal Wolverine.root_directory, dir
15
+ end
16
+
10
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolverine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
16
- requirement: &70166214008280 !ruby/object:Gem::Requirement
16
+ requirement: &70168248879520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70166214008280
24
+ version_requirements: *70168248879520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mocha
27
- requirement: &70166214007720 !ruby/object:Gem::Requirement
27
+ requirement: &70168248877840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70166214007720
35
+ version_requirements: *70168248877840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &70166214007120 !ruby/object:Gem::Requirement
38
+ requirement: &70168248876300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70166214007120
46
+ version_requirements: *70168248876300
47
47
  description: Wolverine provides a simple way to run server-side redis scripts from
48
48
  a rails app
49
49
  email: