table_format 0.0.8 → 0.0.12

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
  SHA256:
3
- metadata.gz: 0ecb4e366d0bfd3e4caa23c99eaf7ace891daec7da139485f2cf3de99dc52c81
4
- data.tar.gz: 6d666359f1ec0610fa654b85d2593c876c3a51269f766224ced9f1dbc5038a0d
3
+ metadata.gz: 67e3673e951370eecf4c5425e90e1e6c05a1226d832589199a51b5133096c891
4
+ data.tar.gz: 8a7a48f7a408564571506dd4373d0f7fbc88220179db20ef0358e9e5dc6382db
5
5
  SHA512:
6
- metadata.gz: 37b58297e78496507612c9283a6613482c3cf618543f8f9dd234037e230fe09aac779685d6017955137b57acd4ea6c71d0cdfabac3cd8b40937f72d97a788a1f
7
- data.tar.gz: cb033b6dbb6feff4b4fb61a58cca047c8a095f47811830837ccca8180b2abee9b2d58704065cd8747a159bc7739569fbb41468a39cba8f0a02c7a3b34c325c7d
6
+ metadata.gz: f3b15c9880d6bce8283278612111113e44df799fff0ad79061d188ca2c13eb51d23892efdedc3eaa22248e4b1dd1ccfb1dbb35b4a465c509d5539bbc7baa649f
7
+ data.tar.gz: 1f8601067d240a2afe90df869e1bdb04f340d431874d7686121c8ce886e7cbbbd35a815b747515b260f482518ab4452d302f998a6fe1ec25c64ae77e3312d475
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  /*.gem
2
2
  /*.html
3
3
  /Gemfile.lock
4
+ *.ruby-version
data/.travis.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5
3
+ - 2.6
data/README.org CHANGED
@@ -19,6 +19,32 @@ tp Object.constants.grep(/RUBY_/).map { |e| [e, Object.const_get(e)] }.to_h
19
19
  # >> | RUBY_ENGINE_VERSION | 2.5.0 |
20
20
  # >> | RUBY_COPYRIGHT | ruby - Copyright (C) 1993-2017 Yukihiro Matsumoto |
21
21
  # >> |---------------------+------------------------------------------------------------|
22
+ #+END_SRC
23
+
24
+ In the case of Rails
25
+
26
+ #+BEGIN_SRC ruby
27
+ class ApplicationController < ActionController::Base
28
+ if Rails.env.development?
29
+ before_action do
30
+ logger.debug params.to_unsafe_h.to_t(truncate: 40)
31
+ end
32
+ end
33
+ end
34
+ #+END_SRC
35
+
36
+ #+BEGIN_SRC shell
37
+ % cat log/development.log
38
+ Started POST "/api/xy_master/time_records" for ::1 at 2021-11-18 13:52:25 +0900
39
+ Processing by Api::XyMaster::TimeRecordsController#create as JSON
40
+ Parameters: (snip)
41
+ |-------------+---------------------------------------------|
42
+ | scope_key | scope_today |
43
+ | time_record | {"rule_key"=>"rule100t", "spent_sec"=>0,... |
44
+ | format | json |
45
+ | controller | api/xy_master/time_records |
46
+ | action | create |
47
+ |-------------+---------------------------------------------|
22
48
  #+END_SRC
23
49
 
24
50
  ** Installation
@@ -39,7 +39,7 @@ Object.class_eval do
39
39
  end
40
40
  end
41
41
 
42
- Kernel.class_eval do
42
+ Kernel.module_eval do
43
43
  private
44
44
 
45
45
  def tp(object, options = {})
@@ -1,4 +1,12 @@
1
1
  # frozen_string_literal: true
2
+
3
+ # Workaround of:
4
+ # uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState
5
+ begin
6
+ require 'active_support/isolated_execution_state'
7
+ rescue LoadError
8
+ end
9
+
2
10
  require 'active_support/core_ext/string' # for blank?
3
11
  require 'active_support/core_ext/class/attribute' # for class_attribute
4
12
  require 'kconv'
@@ -1,3 +1,3 @@
1
1
  module TableFormat
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.12'
3
3
  end
data/table_format.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency 'activesupport'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 1.3'
24
+ spec.add_development_dependency 'bundler'
25
25
  spec.add_development_dependency 'rake'
26
26
  spec.add_development_dependency 'rspec'
27
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - akicho8
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,7 +128,7 @@ files:
128
128
  homepage: https://github.com/akicho8/table_format
129
129
  licenses: []
130
130
  metadata: {}
131
- post_install_message:
131
+ post_install_message:
132
132
  rdoc_options:
133
133
  - "--line-numbers"
134
134
  - "--inline-source"
@@ -148,8 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.1.2
152
- signing_key:
151
+ rubygems_version: 3.3.4
152
+ signing_key:
153
153
  specification_version: 4
154
154
  summary: TableFormat shows text table like emacs org-table for easy reading.
155
155
  test_files: