epitools 0.5.84 → 0.5.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 758e5cb70b97cc01269e7861d2e571d61343cfaf
4
- data.tar.gz: f1e9622804a798936d3f10317dc3b1253401adc0
3
+ metadata.gz: 82e55cb9616386886e65746f877bd30630cccede
4
+ data.tar.gz: 91912ecab8cf845e802d2a2ebd3ed1ca028ef9e1
5
5
  SHA512:
6
- metadata.gz: c16141d80c10d973bae5bef63c69f711b5f80296cfb65e3d909d10300fa384713cfdc1db8606d43e2cbe74ef137276512486745bb253faf5494f24ab47d0abb2
7
- data.tar.gz: 1583c645ffd79690168558ca4ccfde9a19056eed45476917f0ce833d4f6aace4204922b3972d319bc6dfa9431441884a2cbbd928ebbf1cc5d7d02fcefa204b36
6
+ metadata.gz: fc129fa94cd978d17f046384aaeab7c2a47bfcdfcfbcf90ce6f94da3b33d1b6b7f19e008d842129867af378480a64611bb31872c3b59c0b59a06165dfcee7ec3
7
+ data.tar.gz: 1f3a0b926bbc652f97d65097770ba02d5766ec8c0190496ad7d2bc62301da3dc0c3f5c7b635486a86443251def8ada1515127114242421ada65ff292ae4efa88
data/TODO CHANGED
@@ -2,6 +2,9 @@
2
2
  TODOs
3
3
  ===========================
4
4
 
5
+ + Array#histogram
6
+ |_ Algorithm blows up when there's only 1 bucket (the `range` becomes 0)
7
+
5
8
  + Path
6
9
  |_ Fix rename/mv
7
10
  |_ Full README with more real-world examples (grep scripts/)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.84
1
+ 0.5.85
@@ -52,6 +52,7 @@ module Net
52
52
  end
53
53
 
54
54
  autoload :Resolv, 'resolv'
55
+ autoload :IPAddr, 'ipaddr'
55
56
 
56
57
 
57
58
  ## Nonstandard library (epitools)
data/lib/epitools/path.rb CHANGED
@@ -546,7 +546,7 @@ class Path
546
546
  cmd += ["-x", key]
547
547
  else
548
548
  # set
549
- cmd += ["-n", key, "-v", value]
549
+ cmd += ["-n", key, "-v", value.to_s.strip]
550
550
  end
551
551
 
552
552
  cmd << path
@@ -1293,7 +1293,7 @@ class Path
1293
1293
  # the directory for the duration of the block, then puts you back where you
1294
1294
  # came from once the block is finished.
1295
1295
  #
1296
- def self.cd(dest, &block)
1296
+ def self.cd(dest)
1297
1297
  dest = Path[dest]
1298
1298
 
1299
1299
  raise "Can't 'cd' into #{dest}" unless dest.dir?
data/spec/path_spec.rb CHANGED
@@ -546,6 +546,9 @@ describe Path do
546
546
  attrs["user.diff_element"] = "newtest"
547
547
  file.attrs = attrs
548
548
  file["user.diff_element"].should == "newtest"
549
+
550
+ file["user.null-terminated-string"] = "stuff\u0000"
551
+ file["user.null-terminated-string"].should == "stuff"
549
552
  end
550
553
 
551
554
  it "changes mtime/atime" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epitools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.84
4
+ version: 0.5.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - epitron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -128,3 +128,4 @@ signing_key:
128
128
  specification_version: 3
129
129
  summary: Not utils... METILS!
130
130
  test_files: []
131
+ has_rdoc: