breathing 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/breathing.gemspec +2 -2
- data/lib/breathing.rb +4 -8
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 815ec172eb186702177838e5213fb84c471b15dc7a4bdd7c951a97c78d9666c2
|
4
|
+
data.tar.gz: d05a272b946c324ca9f0031e291840ca58d21069607ffc2e8b0579e9a99ecb76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5130a4714437d96c658266626989a86feb1c670d62308168dc64b009a0ea660aa86d8ede410acba4fdd6bb0a33504248f0c6ecca1e9b95ecc74293783ea03c5
|
7
|
+
data.tar.gz: 1c624939e64701ab5dc42bcbac6ac46cfae7ece8dd967ee1d960c6f1a209b63c42bdaf0d454e50a8bd06d1fe29982967c85098af683da1b0e93c7c3a85a197e0
|
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.3'
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ['Akira Kusumoto']
|
8
8
|
s.email = ['akirakusumo10@gmail.com']
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.add_dependency 'activerecord', ['>= 5.0.0']
|
24
24
|
s.add_dependency 'rubyXL', ['>= 3.4.0']
|
25
|
-
s.
|
25
|
+
s.add_dependency 'mysql2'
|
26
26
|
s.add_development_dependency 'pry-byebug'
|
27
27
|
s.add_development_dependency 'rspec', '~> 3.9'
|
28
28
|
end
|
data/lib/breathing.rb
CHANGED
@@ -9,27 +9,23 @@ module Breathing
|
|
9
9
|
|
10
10
|
class << self
|
11
11
|
def install
|
12
|
-
establish_connection
|
12
|
+
ActiveRecord::Base.establish_connection
|
13
13
|
Breathing::Installer.new.install
|
14
14
|
end
|
15
15
|
|
16
16
|
def uninstall
|
17
|
-
establish_connection
|
17
|
+
ActiveRecord::Base.establish_connection
|
18
18
|
Breathing::Installer.new.uninstall
|
19
19
|
end
|
20
20
|
|
21
21
|
def clear
|
22
|
-
establish_connection
|
22
|
+
ActiveRecord::Base.establish_connection
|
23
23
|
Breathing::ChangeLog.delete_all
|
24
24
|
end
|
25
25
|
|
26
26
|
def export
|
27
|
-
establish_connection
|
27
|
+
ActiveRecord::Base.establish_connection
|
28
28
|
Breathing::Excel.new.create
|
29
29
|
end
|
30
|
-
|
31
|
-
def establish_connection
|
32
|
-
ActiveRecord::Base.establish_connection(url: ENV['DATABASE_URL'])
|
33
|
-
end
|
34
30
|
end
|
35
31
|
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.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Kusumoto
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
type: :
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
@@ -125,7 +125,7 @@ homepage: https://github.com/bluerabbit/breathing
|
|
125
125
|
licenses:
|
126
126
|
- MIT
|
127
127
|
metadata: {}
|
128
|
-
post_install_message:
|
128
|
+
post_install_message:
|
129
129
|
rdoc_options: []
|
130
130
|
require_paths:
|
131
131
|
- lib
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubygems_version: 3.0.3
|
144
|
-
signing_key:
|
144
|
+
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Audit logging for database
|
147
147
|
test_files:
|