druid-tools 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -13
  2. data/VERSION +1 -1
  3. data/lib/druid_tools/druid.rb +1 -2
  4. metadata +10 -10
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzU3NjNlYTI1N2IwOTllYzQ0MjM4ZTg1N2YzYzBkMTQyMWY2ZTllOA==
5
- data.tar.gz: !binary |-
6
- MjRhMjQyMGRhODY3YTQ2NGZlMDFmZDE0MjU2NGZiYTFhZWJlNWI2ZA==
2
+ SHA1:
3
+ metadata.gz: cf9c519783ef2847427e51eaa3f35cb768d9406c
4
+ data.tar.gz: ae57ca611f4fc4edd01ddaa35d6a366697e715dc
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YjY5ODdkMjUwYzlhZDEwNWI1OTI2MmFhMTc3Y2ZkZjgwNTM5MzI2YzliYzM4
10
- YmJlZmIzMTFkNTUzMmI0MTY4YzIwYTcyNDQwMjdjM2IwN2RmODA4MmNkN2U2
11
- MDMzNjE5NTcyYjA1ZmI5YjQ2YTcwZTdhMjM2ZThhY2NlZWRiMjA=
12
- data.tar.gz: !binary |-
13
- NGUwYTQ1YWM4YTdlY2VkZTJiYzA3ZTExZmFiOThhYjgwYmQ0NTQ4NjNhZWJh
14
- YWMzNGM4NTYxMGY1OTI0YmQzMzk2YTI2MDQ3YTE5OWE3YzY5MDYyMDIxZmVl
15
- NGMxOGI0Y2JmNWY2M2FkYmVlZjkzOGEwNGNiMDc5MGQwNDQ2YjE=
6
+ metadata.gz: 2bbdd81ce14eb76a1c65d2b94b483dc69b7148ea197f49a28e3395f9682e61d179d220a81bd407562bf744c671a6c4101c7ea64c111cefa515f2a08972fe95e3
7
+ data.tar.gz: 75c06f9555897382202c5997571cfb4e15555e85a43deefba0702121e8392c33f7a5d7799d2a714c5d9397562ad651b1f4f3ad5553a1833b7209b6345234fdef
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.3
@@ -141,12 +141,11 @@ module DruidTools
141
141
  # @param [Pathname] outermost_branch The branch at which pruning begins
142
142
  # @return [void] Ascend the druid tree and prune empty branches
143
143
  def prune_ancestors(outermost_branch)
144
- while outermost_branch.children.size == 0
144
+ while outermost_branch.exist? && outermost_branch.children.size == 0
145
145
  outermost_branch.rmdir
146
146
  outermost_branch = outermost_branch.parent
147
147
  break if outermost_branch == base_pathname
148
148
  end
149
- rescue
150
149
  end
151
150
 
152
151
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: druid-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-16 00:00:00.000000000 Z
12
+ date: 2015-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 10.1.0
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 10.1.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '3.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3.0'
42
42
  description: Tools to manipulate DRUID trees and content directories
@@ -46,7 +46,7 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - .gitignore
49
+ - ".gitignore"
50
50
  - Gemfile
51
51
  - LICENSE
52
52
  - README.md
@@ -103,17 +103,17 @@ require_paths:
103
103
  - lib
104
104
  required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ! '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ! '>='
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.2.2
116
+ rubygems_version: 2.4.5
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Tools to manipulate DRUID trees and content directories