staugaard-magic_cache_keys 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README +7 -0
- data/VERSION.yml +1 -1
- data/test/test_helper.rb +7 -4
- metadata +7 -5
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 Mick Staugaard
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
data/VERSION.yml
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'test/unit'
|
3
|
+
require 'active_support'
|
3
4
|
require 'active_record'
|
4
5
|
require 'active_record/fixtures'
|
5
6
|
|
@@ -11,11 +12,10 @@ load(File.dirname(__FILE__) + "/schema.rb")
|
|
11
12
|
|
12
13
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
13
14
|
require 'magic_cache_keys'
|
14
|
-
|
15
|
-
Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/"
|
16
|
-
$LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path)
|
17
15
|
|
18
|
-
class
|
16
|
+
class ActiveSupport::TestCase
|
17
|
+
include ActiveRecord::TestFixtures
|
18
|
+
|
19
19
|
def create_fixtures(*table_names)
|
20
20
|
if block_given?
|
21
21
|
Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield }
|
@@ -32,3 +32,6 @@ class Test::Unit::TestCase #:nodoc:
|
|
32
32
|
|
33
33
|
# Add more helper methods to be used by all tests here...
|
34
34
|
end
|
35
|
+
|
36
|
+
ActiveSupport::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/"
|
37
|
+
$LOAD_PATH.unshift(ActiveSupport::TestCase.fixture_path)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staugaard-magic_cache_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-04-17 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -20,13 +20,13 @@ executables: []
|
|
20
20
|
|
21
21
|
extensions: []
|
22
22
|
|
23
|
-
extra_rdoc_files:
|
24
|
-
|
23
|
+
extra_rdoc_files:
|
24
|
+
- README
|
25
|
+
- LICENSE
|
25
26
|
files:
|
26
27
|
- VERSION.yml
|
27
28
|
- lib/magic_cache_keys.rb
|
28
29
|
- test/database.yml
|
29
|
-
- test/debug.log
|
30
30
|
- test/fixtures
|
31
31
|
- test/fixtures/blogs.yml
|
32
32
|
- test/fixtures/comments.yml
|
@@ -34,6 +34,8 @@ files:
|
|
34
34
|
- test/magic_cache_keys_test.rb
|
35
35
|
- test/schema.rb
|
36
36
|
- test/test_helper.rb
|
37
|
+
- README
|
38
|
+
- LICENSE
|
37
39
|
has_rdoc: true
|
38
40
|
homepage: http://github.com/staugaard/magic_cache_keys
|
39
41
|
post_install_message:
|