records_rip 0.5.0 → 0.5.1

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: dd739162117845e7ae99cd70dae20a70960f1c8995b032ec874ac3f9ce442129
4
- data.tar.gz: 350edea99a7b95b6abd7b88c863be45eecf2e591b0e8a470691c2643466f17a2
3
+ metadata.gz: 79f23e92be17ee3a7d3825c74946d4ea34148ba54ba3048b8d14b689da703394
4
+ data.tar.gz: 909cefbe3741981ca244347f9ee133d32ca26089ea4b47f8abb5f0ac93f58739
5
5
  SHA512:
6
- metadata.gz: ed68dc1286c06e20c13fdce2205bbaa346f9252192f8a68c22f11d75d7d447ea073530b7a373edae800988511903683015e67037f0da2f5a342244294922248c
7
- data.tar.gz: cbd9a5bd9a7efc8e96b73dd7c04ae99b31800f98f396f193b8345e84b1a26ddae70cd632f33ccc651a351bf6462c4e36943f83b6dcd075fbdc69d1db340404fd
6
+ metadata.gz: c4e3131e542f03fd5342ad2bda91711207d760f1f7c7f6ebf85d91190d3c825bb7076cb411317534ccce7ee0c30dc559f63c0048654bd0005f2e5f7979b923a0
7
+ data.tar.gz: 1f7dd61e44c40ce4fb26099b457cbb637d33212e71b7af15742ca5910014eb54b74bdd45be1898ebc7eaa7e64deee3a3d39e6905d55b5efb6b355aa113d86f75
@@ -43,6 +43,3 @@ matrix:
43
43
  - rvm: 2.4.5
44
44
  gemfile: gemfiles/ar_5.2.gemfile
45
45
  fast_finish: true
46
-
47
- addons:
48
- postgresql: "9.4"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- records_rip (0.5.0)
4
+ records_rip (0.5.1)
5
5
  activerecord (>= 4.2, < 6.0)
6
6
 
7
7
  GEM
@@ -23,6 +23,8 @@ GEM
23
23
  i18n (1.3.0)
24
24
  concurrent-ruby (~> 1.0)
25
25
  minitest (5.11.3)
26
+ mysql2 (0.5.2)
27
+ pg (1.1.3)
26
28
  rake (12.3.2)
27
29
  sqlite3 (1.3.13)
28
30
  thread_safe (0.3.6)
@@ -35,6 +37,8 @@ PLATFORMS
35
37
  DEPENDENCIES
36
38
  bundler
37
39
  minitest
40
+ mysql2 (~> 0.5.2)
41
+ pg (~> 1.1.3)
38
42
  rake
39
43
  records_rip!
40
44
  sqlite3
data/Rakefile CHANGED
@@ -1,10 +1,40 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
+ ENV["DB"] ||= "sqlite"
5
+
6
+ database = 'records_rip_test'
7
+
8
+ task :clean do
9
+ case ENV["DB"]
10
+ when "mysql"
11
+ system("mysqladmin drop -f #{database} > /dev/null 2>&1")
12
+ when "postgres"
13
+ system("dropdb --if-exists #{database} > /dev/null 2>&1")
14
+ when nil, "sqlite"
15
+ nil
16
+ else
17
+ raise "Don't know how to clean specified RDBMS: #{ENV['DB']}"
18
+ end
19
+ end
20
+
21
+ task prepare: [:clean] do
22
+ case ENV["DB"]
23
+ when "mysql"
24
+ system("mysqladmin create #{database}")
25
+ when "postgres"
26
+ system("createdb #{database}")
27
+ when nil, "sqlite"
28
+ nil
29
+ else
30
+ raise "Don't know how to create specified DB: #{ENV['DB']}"
31
+ end
32
+ end
33
+
4
34
  Rake::TestTask.new(:test) do |t|
5
35
  t.libs << "test"
6
36
  t.libs << "lib"
7
37
  t.test_files = FileList["test/**/*_test.rb"]
8
38
  end
9
39
 
10
- task default: :test
40
+ task default: %i[prepare test]
@@ -1,5 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem "activerecord", "~> 4.2.10"
4
+ gem "mysql2", "~> 0.4.10"
5
+ gem "pg", "~> 0.21.0"
4
6
 
5
7
  gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module RecordsRip
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -34,10 +34,15 @@ Gem::Specification.new do |spec|
34
34
  spec.required_rubygems_version = ">= 1.3.6"
35
35
  spec.required_ruby_version = ">= 2.3.0"
36
36
 
37
+ spec.required_rubygems_version = ">= 1.3.6"
38
+ spec.required_ruby_version = ">= 2.3.0"
39
+
37
40
  spec.add_dependency "activerecord", [">= 4.2", "< 6.0"]
38
41
 
39
42
  spec.add_development_dependency "bundler"
40
43
  spec.add_development_dependency "rake"
41
44
  spec.add_development_dependency "minitest"
42
45
  spec.add_development_dependency "sqlite3"
46
+ spec.add_development_dependency "mysql2", "~> 0.5.2"
47
+ spec.add_development_dependency "pg", "~> 1.1.3"
43
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: records_rip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ts-3156
@@ -86,6 +86,34 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: mysql2
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: 0.5.2
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: 0.5.2
103
+ - !ruby/object:Gem::Dependency
104
+ name: pg
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 1.1.3
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 1.1.3
89
117
  description:
90
118
  email:
91
119
  - ts_3156@yahoo.co.jp