pdd 0.16 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pdd/version.rb +1 -1
- data/lib/pdd.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f39abf45e74c8b628a184ebf3af5f381dd1a6fa
|
4
|
+
data.tar.gz: 7e5c582166939f646278e3026ddef64973aba9b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f63302dde98c839ea1d415750e7535640c0cf2e34c739e2bdf7f4f9c3e5b2bd6bbf3d5c758068a977d041fcc63cab0f07f1e80187c99dc7a6cd8b6b561460135
|
7
|
+
data.tar.gz: ee409a6da382ccace28f1e25a85440e5a93df7a06d16898991fb594e5b34be6860727709367b43f7615671244e7ce1b7efa48d113f71d6f456f62ebaef65f6ed
|
data/lib/pdd/version.rb
CHANGED
data/lib/pdd.rb
CHANGED
@@ -74,14 +74,14 @@ module PDD
|
|
74
74
|
# +opts+:: Options
|
75
75
|
def initialize(opts)
|
76
76
|
@opts = opts
|
77
|
-
PDD.log.level = Logger::INFO if @opts
|
77
|
+
PDD.log.level = Logger::INFO if @opts[:verbose]
|
78
78
|
PDD.log.info "my version is #{PDD::VERSION}"
|
79
79
|
PDD.log.info "Ruby version is #{RUBY_VERSION} at #{RUBY_PLATFORM}"
|
80
80
|
end
|
81
81
|
|
82
82
|
# Generate XML.
|
83
83
|
def xml
|
84
|
-
dir = @opts
|
84
|
+
dir = @opts[:source] ? @opts[:source] : Dir.pwd
|
85
85
|
PDD.log.info "reading #{dir}"
|
86
86
|
sources = Sources.new(dir)
|
87
87
|
@opts[:exclude].each do |p|
|