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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9424309ec8f7ac77b44503b31bbd1a62fa54881cdaa7f75a507ba90d596d1f6a
4
- data.tar.gz: d217036b86439348557fe9d0538be415260b970b43fa6fc0f29997c4772292d6
3
+ metadata.gz: 590240e0f1d36a691aa8d0bf85e96dad188fe49d69d40574165fc81795cda837
4
+ data.tar.gz: a7dbd3cdea44b2fda843e9376f0b25f9b9606d0cc381484beef9d9b34c3bdaf6
5
5
  SHA512:
6
- metadata.gz: dfd1f75df70cb2380f9ed51000dcfacfdef64ffc185c9965cdc324979f676380c508ee7ed1e4d326bd134732c35aa430f8e10a211edfdf1e2bd30285a909ae84
7
- data.tar.gz: 931f3a899695f04b044cf83f936db122291b28b85e7eb3924469745cd3b9cb44dd1c5366179c57f5e15720d78ac09dac4b1743062b21e34d6783b07bdb53d6cb
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: circleci/ruby:2.6
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
@@ -75,7 +75,7 @@ Cleanup command.
75
75
 
76
76
  ## Compatibility
77
77
 
78
- - Ruby 2.3.0+
78
+ - Ruby 3.0.0+
79
79
  - MySQL 5.7.0+
80
80
  - PostgreSQL 8.0+
81
81
 
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.10'
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', ['>= 6.0.0']
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
@@ -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.to_s(:db),
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.to_s(:db),
40
+ 'created_at' => created_at.to_fs(:db),
41
41
  'table_name' => table_name,
42
42
  'action' => action,
43
43
  'id' => transaction_id,
@@ -16,7 +16,7 @@ describe Breathing::TerminalTable do
16
16
  table = Breathing::TerminalTable.new(:users)
17
17
  puts table.render(id: 1)
18
18
 
19
- expect(table.rows.size).to eq(3)
19
+ expect(table.rows.size - 2).to eq(3) # Three rows excluding header rows
20
20
  end
21
21
  end
22
22
  end
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.10
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: 2021-01-06 00:00:00.000000000 Z
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: 6.0.0
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: 6.0.0
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.0.3
201
+ rubygems_version: 3.4.22
188
202
  signing_key:
189
203
  specification_version: 4
190
204
  summary: Audit logging for database