validate_specific_value 0.3.1 → 0.3.2

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: '08e4492f3309857e8222d812fd88ecc9c8f80283021f61cb00957c87628758be'
4
- data.tar.gz: c5e1b4e360a41686dfcacb8ac39e2b17521c4316bd5034aae4805eeaf22c5738
3
+ metadata.gz: a557fc4e1a01b88b72c4dcb20c8e551e765e23f0e2b29f3816da1a3e511798b5
4
+ data.tar.gz: d322ae9760762860cfe6f7766201289cc825107cb0f7178c284292136752216e
5
5
  SHA512:
6
- metadata.gz: e4b7479de339e8a154d96c8b5076d5c7351d0467aabec2f6f2fb8207e92e81a5425ac83149ed393c49a23bebe4702ef1df771cc0e11e62b3edf5a3b2b8de3d81
7
- data.tar.gz: 15d0d6963fa5c31789f825b4130fbc58edfad8e72bd2f0613b42af4f9bd4934504c25682d961f8577c0b930b6c7fa9512ba08f8e9eafa11a5bc5c251eb5ecef5
6
+ metadata.gz: 78ab3513e880db10cf9db1ee621b342b4fa2f37b8a6313ac6332313b8f012bdf26f1423075309764338d22987c3624f32470925c05ce341fadeb941eb27ece6f
7
+ data.tar.gz: f29d9fcede20ccde35a9211aba53fb111f40633c92421198304de471e730559ac10ffa5e814bbd8cc5a2656d466c29dc8062b16defa240a9b14ae98266a8d561
@@ -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
- validate_specific_value (0.3.1)
4
+ validate_specific_value (0.3.2)
5
5
  activerecord (>= 4.2, < 6.0)
6
6
 
7
7
  GEM
@@ -23,6 +23,8 @@ GEM
23
23
  i18n (1.2.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
  sqlite3
40
44
  validate_specific_value!
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 = 'validate_specific_value_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 ValidateSpecificValue
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -31,10 +31,15 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
 
34
+ spec.required_rubygems_version = ">= 1.3.6"
35
+ spec.required_ruby_version = ">= 2.3.0"
36
+
34
37
  spec.add_dependency "activerecord", [">= 4.2", "< 6.0"]
35
38
 
36
39
  spec.add_development_dependency "bundler"
37
40
  spec.add_development_dependency "rake"
38
41
  spec.add_development_dependency "minitest"
39
42
  spec.add_development_dependency "sqlite3"
43
+ spec.add_development_dependency "mysql2", "~> 0.5.2"
44
+ spec.add_development_dependency "pg", "~> 1.1.3"
40
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate_specific_value
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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
@@ -124,12 +152,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
152
  requirements:
125
153
  - - ">="
126
154
  - !ruby/object:Gem::Version
127
- version: '0'
155
+ version: 2.3.0
128
156
  required_rubygems_version: !ruby/object:Gem::Requirement
129
157
  requirements:
130
158
  - - ">="
131
159
  - !ruby/object:Gem::Version
132
- version: '0'
160
+ version: 1.3.6
133
161
  requirements: []
134
162
  rubyforge_project:
135
163
  rubygems_version: 2.7.6