breathing 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/breathing.gemspec +2 -2
  3. data/lib/breathing.rb +4 -8
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b0a34aef932a21f7369a766114261c484fcc68cdb32ec50e81c721da2f13d0a
4
- data.tar.gz: eb6c8c5370a13e422674c9256032eeb650a4a58e018eed78f33c234a7a9cbc41
3
+ metadata.gz: 815ec172eb186702177838e5213fb84c471b15dc7a4bdd7c951a97c78d9666c2
4
+ data.tar.gz: d05a272b946c324ca9f0031e291840ca58d21069607ffc2e8b0579e9a99ecb76
5
5
  SHA512:
6
- metadata.gz: 91a00104ce4496d7250df3664624cd3cd5fb1b6af4d48f57445fbd7f0e798a4e4dd2003d0a2cfc3b1bc1e31d4729971abcfc0086701208a37b1a1975522527da
7
- data.tar.gz: 4dc36063b0e355d5f245660136b2c439bacf16bf2da61fe899ee05b19a51f17c09e2036e1f6aa4505671c1f89cd4f4c637f0f58baf1adf0d1776bf6379594ccf
6
+ metadata.gz: f5130a4714437d96c658266626989a86feb1c670d62308168dc64b009a0ea660aa86d8ede410acba4fdd6bb0a33504248f0c6ecca1e9b95ecc74293783ea03c5
7
+ data.tar.gz: 1c624939e64701ab5dc42bcbac6ac46cfae7ece8dd967ee1d960c6f1a209b63c42bdaf0d454e50a8bd06d1fe29982967c85098af683da1b0e93c7c3a85a197e0
@@ -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.2'
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.add_development_dependency 'mysql2'
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
@@ -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.2
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-10 00:00:00.000000000 Z
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: :development
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: