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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 3
4
+ :patch: 4
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.3"
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-26}
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"
@@ -158,7 +158,7 @@ module Components::Caching
158
158
  else
159
159
  arg.to_param
160
160
  end
161
- end.join('/')
161
+ end.join('/').gsub(' ', '_')
162
162
 
163
163
  key = Digest::MD5.hexdigest(key) if key.length > 200
164
164
 
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.3
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-26 00:00:00 -07:00
13
+ date: 2009-08-27 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies: []
16
16