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.
@@ -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
- Base classess have been enhanced: {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
+ 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, allowing a single (key,value) pair to match many 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-2011 epitron
35
+ Copyright (c) 2009-2012 epitron
29
36
 
30
37
  == License
31
38
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.6
1
+ 0.5.7
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "epitools"
8
- s.version = "0.5.6"
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-01"
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"
@@ -1,5 +1,4 @@
1
1
  require 'pp'
2
- require 'set'
3
2
 
4
3
  class Object
5
4
 
@@ -134,7 +133,6 @@ end
134
133
  zopen
135
134
  colored
136
135
  clitools
137
- permutations
138
136
  numwords
139
137
  ].each do |mod|
140
138
  require_wrapper.call mod
@@ -1,6 +1,7 @@
1
1
  #require 'epitools/core_ext'
2
2
  #require 'epitools/permutations'
3
3
  require 'epitools'
4
+ require 'epitools/permutations'
4
5
 
5
6
  describe "Permutations" do
6
7
 
@@ -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.6
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-01 00:00:00.000000000 Z
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: