rubyhacks 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -381,6 +381,10 @@ class String
381
381
  new_string
382
382
  end
383
383
  alias :delsubstr :delete_substrings
384
+
385
+ def paginate(command = "less")
386
+ system({"PAGINATE_STRING" => self.gsub(/\n/, "\\n")}, "echo $PAGINATE_STRING | #{command}")
387
+ end
384
388
  end
385
389
 
386
390
  class TrueClass
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rubyhacks"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Edmund Highcock"]
12
- s.date = "2013-08-15"
12
+ s.date = "2013-10-01"
13
13
  s.description = "A collection of handy little hacks to Ruby objects. Does not modify default behaviours."
14
14
  s.email = "edmundhighcock@sourceforge.net"
15
15
  s.extra_rdoc_files = [
@@ -9,4 +9,7 @@ class TestRubyhacks < Test::Unit::TestCase
9
9
  assert_equal(0.2342437, fh[5.0])
10
10
  assert_raise(TypeError){fh['bb'] = 55}
11
11
  end
12
+ def test_paginate
13
+ #File.read(__FILE__).paginate
14
+ end
12
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyhacks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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: 2013-08-15 00:00:00.000000000 Z
12
+ date: 2013-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: 2841264561825389949
114
+ hash: 1542202629001448109
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements: