motion_print 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: 4822270b7c57e517918b8941817941bb3dba3e73
4
- data.tar.gz: af4aef483305cf2704bbd646c20de785528e554a
3
+ metadata.gz: 90fedd225e91b75739211636bae39e1519c53dd8
4
+ data.tar.gz: dd9842fbd9dfcd7882aa39f7a417b950f0edfb26
5
5
  SHA512:
6
- metadata.gz: 45ed6f30a4acb0cdfb7a0d87819f12a9f4f37dce7fcd5772f8095ab5eb8734f2a0a440101bf5eb239437783742f29baca954bc042fe933ed6674cbb5ed6272d1
7
- data.tar.gz: 095eae4a5039266ef10f58f31ac8720db90c9bbb4793c6b9d5e169ed41116aff507608f3da0fc43cbb29f3dd4b2bcbdb9ce23f871370b7edfcc8e56be556cad5
6
+ metadata.gz: 5fa77292a0930532c014975d6d81b51b598937cb7b07785636f3d41d724d1cd2d75d4d561e8653cf4c292d7962e0ab3c6df150cc4e43c73d698ed72d592f8f83
7
+ data.tar.gz: 1857234580c00acff1857b4d83931fe22777441eec9f2429d2609203496c82fc6b03c335bd07c7b3c60ff922c3446996b0e86e82d0d95df867656199606ea68e
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A RubyMotion pretty printer.
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/motion_print.svg)](http://badge.fury.io/rb/motion_print) [![Build Status](https://travis-ci.org/MohawkApps/motion_print.svg)](https://travis-ci.org/MohawkApps/motion_print) [![Code Climate](https://codeclimate.com/github/MohawkApps/motion_print.png)](https://codeclimate.com/github/MohawkApps/motion_print)
5
+ [![Gem Version](https://badge.fury.io/rb/motion_print.svg)](http://badge.fury.io/rb/motion_print) [![Build Status](https://travis-ci.org/OTGApps/motion_print.svg)](https://travis-ci.org/OTGApps/motion_print) [![Code Climate](https://codeclimate.com/github/MohawkApps/motion_print.png)](https://codeclimate.com/github/MohawkApps/motion_print)
6
6
 
7
7
  instead of using `p` or `puts`, use `mp` to log your debug values to the RubyMotion REPL.
8
8
 
@@ -1,6 +1,7 @@
1
1
  module Kernel
2
2
  def mp(object, options = {})
3
- puts MotionPrint.logger(object)
3
+ output_stream = RUBYMOTION_ENV == "test" ? $stderr : $stdout
4
+ output_stream.puts MotionPrint.logger(object)
4
5
  object unless MotionPrint.console?
5
6
  end
6
7
 
@@ -1,3 +1,3 @@
1
1
  module MotionPrint
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion_print
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 Rickert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-11 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bacon