table_format 0.0.8 → 0.0.12
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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/README.org +26 -0
- data/lib/table_format/core_ext.rb +1 -1
- data/lib/table_format/generator.rb +8 -0
- data/lib/table_format/version.rb +1 -1
- data/table_format.gemspec +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67e3673e951370eecf4c5425e90e1e6c05a1226d832589199a51b5133096c891
|
4
|
+
data.tar.gz: 8a7a48f7a408564571506dd4373d0f7fbc88220179db20ef0358e9e5dc6382db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b15c9880d6bce8283278612111113e44df799fff0ad79061d188ca2c13eb51d23892efdedc3eaa22248e4b1dd1ccfb1dbb35b4a465c509d5539bbc7baa649f
|
7
|
+
data.tar.gz: 1f8601067d240a2afe90df869e1bdb04f340d431874d7686121c8ce886e7cbbbd35a815b747515b260f482518ab4452d302f998a6fe1ec25c64ae77e3312d475
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
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
|
@@ -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'
|
data/lib/table_format/version.rb
CHANGED
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'
|
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.
|
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:
|
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: '
|
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: '
|
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.
|
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:
|