org_tp 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.org +0 -15
- data/examples/0110_active_record.rb +1 -1
- data/examples/0130_mongoid.rb +7 -7
- data/examples/{0150_markdown_format.rb → 0140_markdown_format.rb} +1 -1
- data/lib/org_tp/generator.rb +4 -0
- data/lib/org_tp/version.rb +1 -1
- data/lib/org_tp.rb +0 -19
- metadata +4 -5
- data/examples/0140_tapp.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9a95da7931884f33db4c8c19ffda61778684a2b3357fd01fa693e4a8d01a62a6
|
4
|
+
data.tar.gz: 984641a8328c70353aa7469c8e5c20e0d26133d6ab322ad81b22d2a1cfcb5f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c831a337416f7d8375eecdba2d96fe1e34dc6b4afc1037090f71e6466f10fdb6e3a070f9cd1fa04cc763f1eda8f29605ae70d653ec6fb172c0a78106a22afcf1
|
7
|
+
data.tar.gz: 3b5f3d21f8015640f92a7f8808f53d0d05b5faa26703760b448d30b10271a0e69261a3bfb17b7cfa33bda834415f46b69c9c079746ad04a35341c331a690a728
|
data/README.org
CHANGED
@@ -222,18 +222,3 @@ tp 1
|
|
222
222
|
# >> | 1 |
|
223
223
|
# >> +---+
|
224
224
|
#+END_SRC
|
225
|
-
|
226
|
-
** When used in conjunction with tapp gem
|
227
|
-
|
228
|
-
#+BEGIN_SRC ruby
|
229
|
-
require 'tapp'
|
230
|
-
require 'org_tp'
|
231
|
-
|
232
|
-
"Hello".reverse.tapp(:tp).reverse.tapp(:tp)
|
233
|
-
# >> |-------|
|
234
|
-
# >> | olleH |
|
235
|
-
# >> |-------|
|
236
|
-
# >> |-------|
|
237
|
-
# >> | Hello |
|
238
|
-
# >> |-------|
|
239
|
-
#+END_SRC
|
@@ -20,7 +20,7 @@ tp User.first
|
|
20
20
|
tp User.limit(1)
|
21
21
|
tp ActiveRecord::Base.connection.select_all('SELECT * FROM users')
|
22
22
|
tp ActiveRecord::Base.connection.select_one('SELECT * FROM users')
|
23
|
-
tp ActiveRecord::Base.connection.select_value('SELECT 1 + 2')
|
23
|
+
tp ActiveRecord::Base.connection.select_value('SELECT 1 + 2')
|
24
24
|
# >> |----+-------|
|
25
25
|
# >> | id | name |
|
26
26
|
# >> |----+-------|
|
data/examples/0130_mongoid.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
$LOAD_PATH << '../lib'
|
2
2
|
require 'active_record'
|
3
|
-
require 'mongoid'
|
3
|
+
require 'mongoid'
|
4
4
|
require 'org_tp'
|
5
5
|
|
6
6
|
Mongo::Logger.logger.level = Logger::INFO
|
@@ -12,7 +12,7 @@ class User
|
|
12
12
|
field :name, type: String
|
13
13
|
end
|
14
14
|
|
15
|
-
['alice', 'bob', 'carol'].each { |e| User.create!(name: e) }
|
15
|
+
['alice', 'bob', 'carol'].each { |e| User.create!(name: e) }
|
16
16
|
|
17
17
|
tp User
|
18
18
|
tp User.first
|
@@ -20,16 +20,16 @@ tp User.limit(1)
|
|
20
20
|
# >> |--------------------------+-------|
|
21
21
|
# >> | _id | name |
|
22
22
|
# >> |--------------------------+-------|
|
23
|
-
# >> |
|
24
|
-
# >> |
|
25
|
-
# >> |
|
23
|
+
# >> | 59ed43e9f6453f17bc8e4fd3 | alice |
|
24
|
+
# >> | 59ed43e9f6453f17bc8e4fd4 | bob |
|
25
|
+
# >> | 59ed43e9f6453f17bc8e4fd5 | carol |
|
26
26
|
# >> |--------------------------+-------|
|
27
27
|
# >> |------+--------------------------|
|
28
|
-
# >> |
|
28
|
+
# >> | _id | 59ed43e9f6453f17bc8e4fd3 |
|
29
29
|
# >> | name | alice |
|
30
30
|
# >> |------+--------------------------|
|
31
31
|
# >> |--------------------------+-------|
|
32
32
|
# >> | _id | name |
|
33
33
|
# >> |--------------------------+-------|
|
34
|
-
# >> |
|
34
|
+
# >> | 59ed43e9f6453f17bc8e4fd3 | alice |
|
35
35
|
# >> |--------------------------+-------|
|
data/lib/org_tp/generator.rb
CHANGED
data/lib/org_tp/version.rb
CHANGED
data/lib/org_tp.rb
CHANGED
@@ -15,22 +15,3 @@ else
|
|
15
15
|
Mongoid::Document.include(OrgTp::ActiveRecord)
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
19
|
-
if defined?(Tapp)
|
20
|
-
module Tapp::Printer
|
21
|
-
class Tp < Base
|
22
|
-
def print(*args)
|
23
|
-
tp *args
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
register :tp, Tp
|
28
|
-
register :pt, Tp
|
29
|
-
register :tt, Tp
|
30
|
-
end
|
31
|
-
|
32
|
-
# # When tapp defaults to tp
|
33
|
-
# Tapp.configure do |config|
|
34
|
-
# config.default_printer = :tp
|
35
|
-
# end
|
36
|
-
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.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akicho8
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -109,8 +109,7 @@ files:
|
|
109
109
|
- examples/0110_active_record.rb
|
110
110
|
- examples/0120_default_options.rb
|
111
111
|
- examples/0130_mongoid.rb
|
112
|
-
- examples/
|
113
|
-
- examples/0150_markdown_format.rb
|
112
|
+
- examples/0140_markdown_format.rb
|
114
113
|
- lib/org_tp.rb
|
115
114
|
- lib/org_tp/core_ext.rb
|
116
115
|
- lib/org_tp/generator.rb
|
@@ -145,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
144
|
version: '0'
|
146
145
|
requirements: []
|
147
146
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.7.3
|
149
148
|
signing_key:
|
150
149
|
specification_version: 4
|
151
150
|
summary: OrgTp shows text table like emacs org-table for easy reading.
|