super_awesome_print 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/super_awesome_print/version.rb +1 -1
- data/lib/super_awesome_print.rb +3 -3
- data/super_awesome_print.gemspec +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f84886051b6aba93025590a9edc35324d9ad38a
|
4
|
+
data.tar.gz: cdb50d0419bc64e2a0a6f4c07dacda2fa7586782
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76c20608db1acef613f68cb0697f82386bbfb9cbaa7973b482befc71b323132c60fc8ef1dc47b37758e0f1b0d2067dfa4d9749b24f7453fff76245db9755d142
|
7
|
+
data.tar.gz: 8ad18ba1535449e97c2f9df07105b80695b09a050a8282b569e56b42c4228bee10833f8c0c564a773d843abb7d25586a7e6804254f0226bca07e7e884909aa03
|
data/lib/super_awesome_print.rb
CHANGED
@@ -5,11 +5,11 @@ require 'awesome_print'
|
|
5
5
|
module Kernel
|
6
6
|
def sap(msg)
|
7
7
|
SuperAwesomePrint.blank_lines_top
|
8
|
-
ap "*** #{Time.now} ***", color
|
8
|
+
ap "*** #{Time.now} ***", :color => { :string => :green }
|
9
9
|
ap msg.class if msg.respond_to?(:class)
|
10
10
|
SuperAwesomePrint.print_caller_lines(caller)
|
11
11
|
ap msg
|
12
|
-
ap '*** END ***', color
|
12
|
+
ap '*** END ***', :color => { :string => :green }
|
13
13
|
SuperAwesomePrint.blank_lines_bottom
|
14
14
|
end
|
15
15
|
end
|
@@ -24,7 +24,7 @@ module SuperAwesomePrint
|
|
24
24
|
lines = caller_array[0...number_of_lines].map do |line|
|
25
25
|
line.gsub(config.root_path + '/', '')
|
26
26
|
end
|
27
|
-
lines.each { |line| ap line, color
|
27
|
+
lines.each { |line| ap line, :color => { :string => :purpleish } }
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.blank_lines_top
|
data/super_awesome_print.gemspec
CHANGED
@@ -21,5 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
23
23
|
spec.add_development_dependency 'rake', '~> 10.0'
|
24
|
-
|
24
|
+
|
25
|
+
if RUBY_VERSION < '1.9.3'
|
26
|
+
spec.add_runtime_dependency 'awesome_print', '1.2.0'
|
27
|
+
else
|
28
|
+
spec.add_runtime_dependency 'awesome_print'
|
29
|
+
end
|
25
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_awesome_print
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Antonyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|