langalex-components 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/components.gemspec +2 -2
- data/lib/components/caching.rb +1 -1
- data/test/caching_test.rb +6 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
data/components.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{components}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Lance Ivy", "Alexander Lang"]
|
9
|
-
s.date = %q{2009-08-
|
9
|
+
s.date = %q{2009-08-27}
|
10
10
|
s.email = %q{alex@upstream-berlin.com}
|
11
11
|
s.extra_rdoc_files = [
|
12
12
|
"README.md"
|
data/lib/components/caching.rb
CHANGED
data/test/caching_test.rb
CHANGED
@@ -51,4 +51,10 @@ class CachingTest < Test::Unit::TestCase
|
|
51
51
|
@component.expects(:some_named_method).with("rangleratta").returns(314)
|
52
52
|
assert_equal "components/hello_world/say_it/rangleratta/v314", @component.send(:cache_key, :say_it, ["rangleratta"])
|
53
53
|
end
|
54
|
+
|
55
|
+
def test_versioned_keys_dont_have_spaces
|
56
|
+
@component.say_it_cache_options = {:version => :some_named_method}
|
57
|
+
@component.expects(:some_named_method).with("rangleratta").returns('2009 10 31')
|
58
|
+
assert_equal "components/hello_world/say_it/rangleratta/v2009_10_31", @component.send(:cache_key, :say_it, ["rangleratta"])
|
59
|
+
end
|
54
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: langalex-components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lance Ivy
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-08-
|
13
|
+
date: 2009-08-27 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|