cabinet 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec CHANGED
@@ -1 +1,2 @@
1
- --colour
1
+ --format Fuubar
2
+ --colour
data/Gemfile.lock CHANGED
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cabinet (0.1.1)
4
+ cabinet (0.1.3)
5
5
  fog (~> 0.3.30)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
10
  builder (3.0.0)
11
+ chalofa_ruby-progressbar (0.0.9.1)
11
12
  diff-lcs (1.1.2)
12
13
  excon (0.3.7)
13
14
  fog (0.3.34)
@@ -21,6 +22,10 @@ GEM
21
22
  ruby-hmac
22
23
  forgery (0.3.6)
23
24
  formatador (0.0.16)
25
+ fuubar (0.0.4)
26
+ chalofa_ruby-progressbar (~> 0.0.9)
27
+ rspec (~> 2.0)
28
+ rspec-instafail (~> 0.1.4)
24
29
  json (1.4.6)
25
30
  mime-types (1.16)
26
31
  net-ssh (2.0.23)
@@ -32,6 +37,7 @@ GEM
32
37
  rspec-core (2.3.1)
33
38
  rspec-expectations (2.3.0)
34
39
  diff-lcs (~> 1.1.2)
40
+ rspec-instafail (0.1.7)
35
41
  rspec-mocks (2.3.0)
36
42
  ruby-hmac (0.4.0)
37
43
 
@@ -42,4 +48,5 @@ DEPENDENCIES
42
48
  cabinet!
43
49
  fog (~> 0.3.30)
44
50
  forgery
51
+ fuubar
45
52
  rspec (~> 2.3.0)
data/cabinet.gemspec CHANGED
@@ -22,4 +22,5 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "fog", "~> 0.3.30"
23
23
  s.add_development_dependency "rspec", "~> 2.3.0"
24
24
  s.add_development_dependency "forgery"
25
+ s.add_development_dependency "fuubar"
25
26
  end
data/lib/cabinet/cloud.rb CHANGED
@@ -66,7 +66,7 @@ module Cabinet
66
66
  end
67
67
 
68
68
  def modified(name)
69
- file(name).last_modified + 0
69
+ file(name).last_modified + 0 if exists?(name)
70
70
  end
71
71
 
72
72
  def gzip(name, content)
data/lib/cabinet/local.rb CHANGED
@@ -28,7 +28,7 @@ module Cabinet
28
28
  end
29
29
 
30
30
  def modified(file)
31
- File.mtime(dir + file)
31
+ File.mtime(dir + file) if exists?(file)
32
32
  end
33
33
 
34
34
  def gzip(file, content)
@@ -1,3 +1,3 @@
1
1
  module Cabinet
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cabinet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sebastian von Conrad
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-13 00:00:00 +10:30
18
+ date: 2011-06-05 00:00:00 +09:30
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -64,6 +64,20 @@ dependencies:
64
64
  version: "0"
65
65
  type: :development
66
66
  version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: fuubar
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ type: :development
80
+ version_requirements: *id004
67
81
  description: ""
68
82
  email:
69
83
  - sebastian@vonconrad.com