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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8d54540c561e7433f373842cf671decf365f0c7f
4
- data.tar.gz: 5541d5b5074820e452a6e45e3bd1c6bc679ba217
2
+ SHA256:
3
+ metadata.gz: 9a95da7931884f33db4c8c19ffda61778684a2b3357fd01fa693e4a8d01a62a6
4
+ data.tar.gz: 984641a8328c70353aa7469c8e5c20e0d26133d6ab322ad81b22d2a1cfcb5f88
5
5
  SHA512:
6
- metadata.gz: 86ca520eaed9ab8f8e8cfba447b31f7852741690a1e26fa726dbfca6a774cd786e2a0cd7c07d14a2c2a0f385a26bafb69d722933df9795595e246613f85c61d2
7
- data.tar.gz: 63c6a43f9348768c678ff47fd7944c0c92ea8ff4e250b50ef5113fee8d499b17240091dd65b833b402103128bd9ce0559c49097cb2d5d626f4411f493657b8e2
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') # !> `*' interpreted as argument prefix
23
+ tp ActiveRecord::Base.connection.select_value('SELECT 1 + 2')
24
24
  # >> |----+-------|
25
25
  # >> | id | name |
26
26
  # >> |----+-------|
@@ -1,6 +1,6 @@
1
1
  $LOAD_PATH << '../lib'
2
2
  require 'active_record'
3
- require 'mongoid' # !> method redefined; discarding old as_json
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) } # !> method redefined; discarding old text_search
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
- # >> | 59bb8090f6453f365f93ddc3 | alice |
24
- # >> | 59bb8090f6453f365f93ddc4 | bob |
25
- # >> | 59bb8090f6453f365f93ddc5 | carol |
23
+ # >> | 59ed43e9f6453f17bc8e4fd3 | alice |
24
+ # >> | 59ed43e9f6453f17bc8e4fd4 | bob |
25
+ # >> | 59ed43e9f6453f17bc8e4fd5 | carol |
26
26
  # >> |--------------------------+-------|
27
27
  # >> |------+--------------------------|
28
- # >> | _id | 59bb8090f6453f365f93ddc3 |
28
+ # >> | _id | 59ed43e9f6453f17bc8e4fd3 |
29
29
  # >> | name | alice |
30
30
  # >> |------+--------------------------|
31
31
  # >> |--------------------------+-------|
32
32
  # >> | _id | name |
33
33
  # >> |--------------------------+-------|
34
- # >> | 59bb8090f6453f365f93ddc3 | alice |
34
+ # >> | 59ed43e9f6453f17bc8e4fd3 | alice |
35
35
  # >> |--------------------------+-------|
@@ -20,7 +20,7 @@ tp array
20
20
 
21
21
  ######################################## markdown option
22
22
 
23
- # tp with options # !> `*' interpreted as argument prefix
23
+ # tp with options
24
24
  tp array, markdown: true
25
25
 
26
26
  # to_t with options
@@ -234,3 +234,7 @@ end
234
234
  # >> | ["a", "b"] | |
235
235
  # >> | | d |
236
236
  # >> |-----------------+---|
237
+ # >> |------------+------------|
238
+ # >> | id | 1 |
239
+ # >> | created_at | 2000-01-01 |
240
+ # >> |------------+------------|
@@ -1,3 +1,3 @@
1
1
  module OrgTp
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.14'
3
3
  end
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.12
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: 2017-09-30 00:00:00.000000000 Z
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/0140_tapp.rb
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.6.11
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.
@@ -1,11 +0,0 @@
1
- $LOAD_PATH << '../lib'
2
- require 'tapp'
3
- require 'org_tp'
4
-
5
- "Hello".reverse.tapp(:tp).reverse.tapp(:tp)
6
- # >> |-------|
7
- # >> | olleH |
8
- # >> |-------|
9
- # >> |-------|
10
- # >> | Hello |
11
- # >> |-------|