inkjet 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 72acf255b3ae411d26608f105f579021e0c6a127
4
- data.tar.gz: c43e6b1afdd90669d08920d7b7d314a38efc0bc5
3
+ metadata.gz: 233f3dfad49a1beb08760b9103772c2cc037e3f2
4
+ data.tar.gz: a317f8e4542d17291bd2d55087a0151bbcd93291
5
5
  SHA512:
6
- metadata.gz: 16368b8b5f32fc41401e47569622fd1f9b9c49a04f21811900be8d1c3519af4eae7e1add2e7919f582135e37074deb1ebcaad9a2b4f79d082be1ceef2a20a251
7
- data.tar.gz: acf95b0fa218df2e838fb2dbdd8d1b97381d9743a0bbed8a8f22f5d9aa651f3f4f34c29b7848aaaff1592016671e6558ecc2f9691fa2894eee739ba6dac59dff
6
+ metadata.gz: 26d2474dd3e67c76bab42f16da93c2edb0b6cf6a57cee53700f54ed3f7939bc6dfd1604270e2b64574b0edb5be2a6bf9e216e93921bc623686ba61b4a6379c52
7
+ data.tar.gz: 0df47b052ec940a56960779b9a397519ce12066480111f603a40b5d4cac0a7714a422d3a98a714771187e0319793b18985db8c1331255e7caec42e91ead989a7
data/lib/inkjet/indent.rb CHANGED
@@ -16,12 +16,12 @@ module Inkjet
16
16
  end
17
17
 
18
18
  def self.add_bindings(block)
19
- block.binding.eval("define_method :puts do |output| Inkjet::Indent.puts(output); end")
20
- block.binding.eval("define_method :print do |output| Inkjet::Indent.print(output); end")
21
- block.binding.eval("define_method :format_with do |meth, *args| Inkjet::Indent.format_with(meth, *args); end")
19
+ block.binding.eval("def puts(output); Inkjet::Indent.puts(output); end")
20
+ block.binding.eval("def print(output); Inkjet::Indent.print(output); end")
21
+ block.binding.eval("def format_with(meth, *args); Inkjet::Indent.format_with(meth, *args); end")
22
22
  block
23
23
  end
24
-
24
+
25
25
  def self.indent(*args, &block)
26
26
  @@spaces ||= 0
27
27
  if block_given?
@@ -56,11 +56,11 @@ module Inkjet
56
56
  end
57
57
 
58
58
  def self.puts(output)
59
- STDOUT.puts apply_formatters(indent(output))#indent(output, 0)
59
+ STDOUT.puts apply_formatters(indent(output, 0))
60
60
  end
61
61
 
62
62
  def self.print(output)
63
- STDOUT.print apply_formatters(indent(output))#indent(output, 0)
63
+ STDOUT.print apply_formatters(indent(output, 0))
64
64
  end
65
65
 
66
66
  module String
@@ -1,3 +1,3 @@
1
1
  module Inkjet
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inkjet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec