neocities 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7f66283fddcf6190da1ecaf0389efaba0996189b24646186abb79a28f73c6f6
4
- data.tar.gz: 0e3689324daef211c11890e793583276c98b3947b0c5ca806afb06d3f1d389ad
3
+ metadata.gz: f9d71c9bd0c1d52be5e1f9635298ba028245f497a59ae728341a0d937622ded4
4
+ data.tar.gz: 798343676b96640a2dcb9cd9fbeabf02dc2c35d2eb6de6c1058594872c496bf5
5
5
  SHA512:
6
- metadata.gz: 6a2a23a8c16964aa8a2961047b813715fd9f530af852ac759cb30351e67c7d7471f6dce4fb634b0790197b37bcef45a9ba2fbb531e18a5d921458e984c1f34c7
7
- data.tar.gz: 1189fe06830afc94032804788bf543f6fd37b14b40d493c96c9c76df52139d46fac9f091769833a2aeaa5d84b0ed1618bbb535a64ed9afdff7dfe6e0a9d9dd7e
6
+ metadata.gz: 417ae94070d578e70688d28420871275b68b24fd434295619e05a98c88047e0a71eb77bc2d0101b25d386222a168d17adc440d084e92683d00f6b03f1ade01dc
7
+ data.tar.gz: 36e04b76185dbc706c0717d9ff5ee2d1eae1a1c063e2a525f8920474c1adadd2a5f1988da224dbc586675db203297b1f78c145cd7adfb7ace642b6cbc9a4b142
@@ -114,7 +114,7 @@ module Neocities
114
114
  out = []
115
115
 
116
116
  resp[:info].each do |k,v|
117
- v = Time.parse(v).localtime if k == :created_at || k == :last_updated
117
+ v = Time.parse(v).localtime if v && (k == :created_at || k == :last_updated)
118
118
  out.push [@pastel.bold(k), v]
119
119
  end
120
120
 
@@ -206,6 +206,10 @@ module Neocities
206
206
 
207
207
  paths.select! {|p| !@excluded_files.include?(p)}
208
208
 
209
+ paths.select! {|p|
210
+ !excluded_files.include?(Pathname.new(p).dirname.to_s)
211
+ }
212
+
209
213
  paths.collect! {|path| Pathname path}
210
214
 
211
215
  paths.each do |path|
@@ -1,3 +1,3 @@
1
1
  module Neocities
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
@@ -21,4 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'tty-prompt', '~> 0.12', '= 0.12.0'
22
22
  spec.add_dependency 'pastel', '~> 0.7', '= 0.7.2'
23
23
  spec.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
24
+ spec.add_dependency 'rake', '~> 12.3', '>= 12.3.1'
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neocities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Drake
@@ -90,6 +90,26 @@ dependencies:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: 2.8.3
93
+ - !ruby/object:Gem::Dependency
94
+ name: rake
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '12.3'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 12.3.1
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '12.3'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 12.3.1
93
113
  description:
94
114
  email:
95
115
  - contact@neocities.org