org_tp 0.0.14 → 0.0.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a95da7931884f33db4c8c19ffda61778684a2b3357fd01fa693e4a8d01a62a6
4
- data.tar.gz: 984641a8328c70353aa7469c8e5c20e0d26133d6ab322ad81b22d2a1cfcb5f88
3
+ metadata.gz: 55ad5c7b849bd6713f24c7deedc1185baf203fa2b2cbabae1314c5badb6898cb
4
+ data.tar.gz: df72693b036ac225936893cd6621a95191a84e84e5c793987213f64e1fb1dbd5
5
5
  SHA512:
6
- metadata.gz: c831a337416f7d8375eecdba2d96fe1e34dc6b4afc1037090f71e6466f10fdb6e3a070f9cd1fa04cc763f1eda8f29605ae70d653ec6fb172c0a78106a22afcf1
7
- data.tar.gz: 3b5f3d21f8015640f92a7f8808f53d0d05b5faa26703760b448d30b10271a0e69261a3bfb17b7cfa33bda834415f46b69c9c079746ad04a35341c331a690a728
6
+ metadata.gz: b07ceaf240a1434231742547f8c46cc28e7e45d12ffcbaf316b9d64d2d154d2356aaf7109d460545cd526e58a4970a514a6fd29fe9b085d90648fc73fb95577e
7
+ data.tar.gz: d9cad0f0a8639e2bad5f64192d017451f286daef85ba0f1a1c07b35057eebaec6450082863df816ad752f0127b7f372da85abfac36446c669b07895126f1e192
data/README.org CHANGED
@@ -1,7 +1,27 @@
1
+ [[https://badge.fury.io/rb/org_tp][https://badge.fury.io/rb/org_tp.svg]]
2
+ [[https://travis-ci.org/akicho8/org_tp][https://travis-ci.org/akicho8/org_tp.svg?branch=master]]
3
+ [[https://codeclimate.com/github/akicho8/org_tp/maintainability][https://api.codeclimate.com/v1/badges/3af6a246ec61ddafd45d/maintainability]]
4
+
1
5
  * OrgTp
2
6
 
3
7
  OrgTp shows text table like emacs org-table for easy reading.
4
8
 
9
+ #+BEGIN_SRC ruby
10
+ tp Object.constants.grep(/RUBY_/).map { |e| [e, Object.const_get(e)] }.to_h
11
+
12
+ # >> |---------------------+------------------------------------------------------------|
13
+ # >> | RUBY_VERSION | 2.5.0 |
14
+ # >> | RUBY_RELEASE_DATE | 2017-12-25 |
15
+ # >> | RUBY_PLATFORM | x86_64-darwin16 |
16
+ # >> | RUBY_PATCHLEVEL | 0 |
17
+ # >> | RUBY_DESCRIPTION | ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16] |
18
+ # >> | RUBY_ENGINE | ruby |
19
+ # >> | RUBY_REVISION | 61468 |
20
+ # >> | RUBY_ENGINE_VERSION | 2.5.0 |
21
+ # >> | RUBY_COPYRIGHT | ruby - Copyright (C) 1993-2017 Yukihiro Matsumoto |
22
+ # >> |---------------------+------------------------------------------------------------|
23
+ #+END_SRC
24
+
5
25
  ** Installation
6
26
 
7
27
  Install as a standalone gem
@@ -121,23 +141,9 @@ tp ActiveRecord::Base.connection.select_all('SELECT * FROM users')
121
141
 
122
142
  ** Various alias
123
143
 
124
- *pt* and *tt* are alias of *tp*
125
-
126
- #+BEGIN_SRC ruby
127
- pt :ok
128
- # >> |----|
129
- # >> | ok |
130
- # >> |----|
131
- #+END_SRC
132
-
133
- #+BEGIN_SRC ruby
134
- tp :ok
135
- # >> |----|
136
- # >> | ok |
137
- # >> |----|
138
- #+END_SRC
144
+ *tt* are alias of *tp*
139
145
 
140
- #+BEGIN_SRC ruby
146
+ #+BEGIN_SRC ruby
141
147
  tt :ok
142
148
  # >> |----|
143
149
  # >> | ok |
@@ -1,7 +1,6 @@
1
1
  $LOAD_PATH << '../lib'
2
2
  require 'org_tp'
3
3
 
4
- pt :ok
5
4
  tp :ok
6
5
  tt :ok
7
6
  tp 'foo'
@@ -33,7 +33,6 @@ Kernel.class_eval do
33
33
  end
34
34
  end
35
35
 
36
- alias pt tp
37
36
  alias tt tp
38
37
  end
39
38
 
@@ -1,3 +1,3 @@
1
1
  module OrgTp
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.15'
3
3
  end
@@ -15,6 +15,6 @@ describe OrgTp do
15
15
 
16
16
  it 'result is like p method' do
17
17
  v = Object.new
18
- quietly { pt v }.should == v
18
+ quietly { tt v }.should == v
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: org_tp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - akicho8
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-04 00:00:00.000000000 Z
11
+ date: 2018-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport