lackie 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/lackie.rb +1 -1
- data/lib/lackie/cache_buster.rb +1 -1
- data/spec/lackie/cache_buster_spec.rb +6 -1
- metadata +6 -6
data/lib/lackie.rb
CHANGED
data/lib/lackie/cache_buster.rb
CHANGED
@@ -3,8 +3,13 @@ require 'lackie/cache_buster'
|
|
3
3
|
|
4
4
|
module Lackie
|
5
5
|
describe CacheBuster do
|
6
|
-
it "
|
6
|
+
it "produces unique strings" do
|
7
7
|
(1..99).map { |i| CacheBuster.unique_string }.uniq.size.should == 99
|
8
8
|
end
|
9
|
+
|
10
|
+
it "produces strings that include the current time" do
|
11
|
+
Time.should_receive(:now).and_return("332211")
|
12
|
+
CacheBuster.unique_string.should =~ /332211/
|
13
|
+
end
|
9
14
|
end
|
10
15
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lackie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Chisholm
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-02 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -201,7 +201,7 @@ rubyforge_project:
|
|
201
201
|
rubygems_version: 1.4.1
|
202
202
|
signing_key:
|
203
203
|
specification_version: 3
|
204
|
-
summary: lackie-0.
|
204
|
+
summary: lackie-0.2.0
|
205
205
|
test_files:
|
206
206
|
- features/remote_control.feature
|
207
207
|
- features/step_definitions/lackie_steps.rb
|