breathing 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -2
- data/README.md +1 -1
- data/breathing.gemspec +4 -2
- data/lib/breathing/change_log.rb +2 -2
- data/spec/breathing/terminal_table_spec.rb +1 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 590240e0f1d36a691aa8d0bf85e96dad188fe49d69d40574165fc81795cda837
|
4
|
+
data.tar.gz: a7dbd3cdea44b2fda843e9376f0b25f9b9606d0cc381484beef9d9b34c3bdaf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b457e63a0d0776df1b1278b7b0fb77e6b9c50d323b327d44aa258484ca3a6ca4673edea85b4dce8f0e7f81d09083c45408ff4f87199da0b668ef2983fafd3137
|
7
|
+
data.tar.gz: 81c4488c9e47f35bf8d3ffcdc6996909ef8c15f67383037c9a7e3b6104c28d77ba100b2a13c92c6d131a208745d830ce075081b77b94afef298fdf74069cbf3a
|
data/.circleci/config.yml
CHANGED
@@ -4,13 +4,12 @@ executors:
|
|
4
4
|
default:
|
5
5
|
working_directory: ~/app
|
6
6
|
docker:
|
7
|
-
- image:
|
7
|
+
- image: cimg/ruby:3.2.2
|
8
8
|
environment:
|
9
9
|
DB_USER: root
|
10
10
|
DB_HOST: '127.0.0.1'
|
11
11
|
- image: circleci/mysql:8-ram
|
12
12
|
environment:
|
13
|
-
MYSQL_USER: root
|
14
13
|
MYSQL_ROOT_PASSWORD: root
|
15
14
|
MYSQL_DATABASE: breathing_test
|
16
15
|
command: [--default-authentication-plugin=mysql_native_password]
|
data/README.md
CHANGED
data/breathing.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path('lib', __dir__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'breathing'
|
5
|
-
s.version = '0.0.
|
5
|
+
s.version = '0.0.11'
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ['Akira Kusumoto']
|
8
8
|
s.email = ['akirakusumo10@gmail.com']
|
@@ -19,13 +19,15 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.bindir = 'exe'
|
20
20
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
s.add_runtime_dependency 'thor'
|
22
|
+
s.required_ruby_version = '>= 3.0'
|
22
23
|
|
23
|
-
s.add_dependency 'activerecord', ['>=
|
24
|
+
s.add_dependency 'activerecord', ['>= 7.0.0']
|
24
25
|
s.add_dependency 'hairtrigger'
|
25
26
|
s.add_dependency 'mysql2'
|
26
27
|
s.add_dependency 'pg'
|
27
28
|
s.add_dependency 'terminal-table'
|
28
29
|
s.add_dependency 'rubyXL', ['>= 3.4.0']
|
30
|
+
s.add_development_dependency 'rake'
|
29
31
|
s.add_development_dependency 'pry-byebug'
|
30
32
|
s.add_development_dependency 'rspec', '~> 3.9'
|
31
33
|
end
|
data/lib/breathing/change_log.rb
CHANGED
@@ -19,7 +19,7 @@ module Breathing
|
|
19
19
|
|
20
20
|
def data_attributes
|
21
21
|
data_column_names.each.with_object('change_logs.id' => id,
|
22
|
-
'change_logs.created_at' => created_at.
|
22
|
+
'change_logs.created_at' => created_at.to_fs(:db),
|
23
23
|
'action' => action,
|
24
24
|
'id' => transaction_id) do |name, hash|
|
25
25
|
hash[name] = data[name]
|
@@ -37,7 +37,7 @@ module Breathing
|
|
37
37
|
def attributes_for_excel
|
38
38
|
{
|
39
39
|
'change_logs.id' => id,
|
40
|
-
'created_at' => created_at.
|
40
|
+
'created_at' => created_at.to_fs(:db),
|
41
41
|
'table_name' => table_name,
|
42
42
|
'action' => action,
|
43
43
|
'id' => transaction_id,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breathing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Kusumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 7.0.0
|
34
34
|
type: :runtime
|
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: 7.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hairtrigger
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 3.4.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: pry-byebug
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,14 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
191
|
requirements:
|
178
192
|
- - ">="
|
179
193
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
194
|
+
version: '3.0'
|
181
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
196
|
requirements:
|
183
197
|
- - ">="
|
184
198
|
- !ruby/object:Gem::Version
|
185
199
|
version: '0'
|
186
200
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
201
|
+
rubygems_version: 3.4.22
|
188
202
|
signing_key:
|
189
203
|
specification_version: 4
|
190
204
|
summary: Audit logging for database
|