adrian 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/adrian/file_item.rb +3 -1
- data/lib/adrian/version.rb +1 -1
- data/test/file_item_test.rb +12 -0
- metadata +3 -9
data/lib/adrian/file_item.rb
CHANGED
data/lib/adrian/version.rb
CHANGED
data/test/file_item_test.rb
CHANGED
@@ -25,6 +25,18 @@ describe Adrian::FileItem do
|
|
25
25
|
assert_equal item1, item3
|
26
26
|
end
|
27
27
|
|
28
|
+
describe 'updated_at' do
|
29
|
+
|
30
|
+
it 'is nil when moved by another process' do
|
31
|
+
assert @item.updated_at
|
32
|
+
File.unlink(@item.path)
|
33
|
+
assert_equal false, @item.exist?
|
34
|
+
|
35
|
+
assert_equal nil, @item.updated_at
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
28
40
|
describe 'move' do
|
29
41
|
before do
|
30
42
|
@destination = Dir.mktmpdir('file_item_move_test')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adrian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -120,21 +120,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- - ! '>='
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
|
-
segments:
|
124
|
-
- 0
|
125
|
-
hash: -4434037212517463675
|
126
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
124
|
none: false
|
128
125
|
requirements:
|
129
126
|
- - ! '>='
|
130
127
|
- !ruby/object:Gem::Version
|
131
128
|
version: '0'
|
132
|
-
segments:
|
133
|
-
- 0
|
134
|
-
hash: -4434037212517463675
|
135
129
|
requirements: []
|
136
130
|
rubyforge_project:
|
137
|
-
rubygems_version: 1.8.
|
131
|
+
rubygems_version: 1.8.21
|
138
132
|
signing_key:
|
139
133
|
specification_version: 3
|
140
134
|
summary: Adrian does not do any real work, but is really good at delegating it
|