epitools 0.5.6 → 0.5.7
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.
- data/README.rdoc +11 -4
- data/VERSION +1 -1
- data/epitools.gemspec +3 -2
- data/lib/epitools.rb +0 -2
- data/spec/permutations_spec.rb +1 -0
- data/spec/wm_spec.rb +15 -0
- metadata +3 -2
data/README.rdoc
CHANGED
@@ -1,17 +1,24 @@
|
|
1
1
|
= epitools
|
2
2
|
|
3
3
|
Useful miscellaneous improvements for base Ruby objects, plus some extra
|
4
|
-
data structures and handy wrappers.
|
4
|
+
data structures and handy wrappers. (Think of it as a light-weight version
|
5
|
+
of ActiveSupport. All modules are loaded on demand with `autoload`.)
|
5
6
|
|
6
|
-
|
7
|
+
Enhanced base classes: {Enumerable}[http://rdoc.info/github/epitron/epitools/master/Enumerable], {Hash}[http://rdoc.info/github/epitron/epitools/master/Hash], {String}[http://rdoc.info/github/epitron/epitools/master/String], {Array}[http://rdoc.info/github/epitron/epitools/master/Array], {Object}[http://rdoc.info/github/epitron/epitools/master/Object], {Integer}[http://rdoc.info/github/epitron/epitools/master/Integer], etc.
|
7
8
|
|
8
9
|
Extras:
|
9
10
|
|
10
11
|
* {Colored}[http://rdoc.info/github/epitron/epitools/master/Colored] (enhanced version of defunkt's colored -- adds ANSI colouring methods to String, eg: #red, #green, #light_blue, etc.)
|
11
12
|
* {Path}[http://rdoc.info/github/epitron/epitools/master/Path] (a better Pathname)
|
12
|
-
* {Rash}[http://rdoc.info/github/epitron/epitools/master/Rash] (a hash which can have Regexps as keys,
|
13
|
+
* {Rash}[http://rdoc.info/github/epitron/epitools/master/Rash] (a hash which can have Regexps as keys, so that many input keys can map to a single value.)
|
13
14
|
* {Progressbar}[http://rdoc.info/github/epitron/epitools/master/Progressbar] (better than the progressbar gem)
|
14
15
|
* {Browser}[http://rdoc.info/github/epitron/epitools/master/Browser] (a fake browser, using mechanize, Progressbar, and CacheDB)
|
16
|
+
* {WM}[http://rdoc.info/github/epitron/epitools/master/WM] (control/query desktop windows in X. Note: `wmctrl` must be installed)
|
17
|
+
* {TypedStruct}[http://rdoc.info/github/epitron/epitools/master/TypedStruct] (like Struct, but setters always coerce input to a certain type, eg: boolean, integer, etc.)
|
18
|
+
* {MimeMagic}[http://rdoc.info/github/epitron/epitools/master/MimeMagic] (a port of the Unix `file` utility for automatically recognizing files based on their contents; faster than running `file` on every file if you have to process large batches of files)
|
19
|
+
* {Term}[http://rdoc.info/github/epitron/epitools/master/Term] (a toolbox for making terminal-based scripts -- get terminal size, create tables, etc.)
|
20
|
+
* {Iter}[http://rdoc.info/github/epitron/epitools/master/Iter] (a "stable iterator" -- lets you write algorithms that modify the array as you're iterating; good for clustering.)
|
21
|
+
* {Sys}[http://rdoc.info/github/epitron/epitools/master/Sys] (system tools -- determine operating system, list processes, view network statistics, etc.)
|
15
22
|
|
16
23
|
== Installing
|
17
24
|
|
@@ -25,7 +32,7 @@ or check out the rdoc: http://rdoc.info/github/epitron/epitools/master/frames
|
|
25
32
|
|
26
33
|
== Copyright
|
27
34
|
|
28
|
-
Copyright (c) 2009-
|
35
|
+
Copyright (c) 2009-2012 epitron
|
29
36
|
|
30
37
|
== License
|
31
38
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
data/epitools.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "epitools"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["epitron"]
|
12
|
-
s.date = "2012-05-
|
12
|
+
s.date = "2012-05-04"
|
13
13
|
s.description = "Miscellaneous utility libraries to make my life easier."
|
14
14
|
s.email = "chris@ill-logic.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -81,6 +81,7 @@ Gem::Specification.new do |s|
|
|
81
81
|
"spec/sys_spec.rb",
|
82
82
|
"spec/term_spec.rb",
|
83
83
|
"spec/typed_struct_spec.rb",
|
84
|
+
"spec/wm_spec.rb",
|
84
85
|
"spec/zopen_spec.rb"
|
85
86
|
]
|
86
87
|
s.homepage = "http://github.com/epitron/epitools"
|
data/lib/epitools.rb
CHANGED
data/spec/permutations_spec.rb
CHANGED
data/spec/wm_spec.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'epitools'
|
2
|
+
|
3
|
+
describe WM do
|
4
|
+
|
5
|
+
it "works" do
|
6
|
+
WM.windows.any?.should == true
|
7
|
+
WM.processes.any?.should == true
|
8
|
+
WM.desktops.any?.should == true
|
9
|
+
|
10
|
+
#WM.current_desktop.is_a?(WM::Desktop).should == true
|
11
|
+
WM.current_desktop.nil? == false
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epitools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- spec/sys_spec.rb
|
132
132
|
- spec/term_spec.rb
|
133
133
|
- spec/typed_struct_spec.rb
|
134
|
+
- spec/wm_spec.rb
|
134
135
|
- spec/zopen_spec.rb
|
135
136
|
homepage: http://github.com/epitron/epitools
|
136
137
|
licenses:
|