active_record_mutex 2.4.0 → 2.5.0

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
  SHA1:
3
- metadata.gz: 868990d82f5cfc1f8948a56494b5264d67610031
4
- data.tar.gz: 843d17dd76cfb98da16bce309f4b33a8595a65b9
3
+ metadata.gz: 8ad53b840d867e5a6a1620af52a4977225291b77
4
+ data.tar.gz: 148d6b7989ffe8e9c2a84a75ba09e160774e52a4
5
5
  SHA512:
6
- metadata.gz: cbab372a12b534583abaede4466a91e99ec981670d73729f1282a80bd2f68f99af379781d47fb06523513af03b3a82e150da15ae6fe7c074b3032ad757628f06
7
- data.tar.gz: 859681f8d7bbb4cf64544bf5a00adfd8007d929e028e06dd498ac8a501eef3f64637822006f548bb62da4287ca0c46a8635fff6b9a97d280aa580e13ae25997a
6
+ metadata.gz: 4fba55ed3b59f757279d915d44a9346f032f50ed49f95663867785302ad5bd98b203c0eff1f6b548f04b4e7a28688b0e39a9c62809872d76a86bc2c3b2a07d99
7
+ data.tar.gz: bdfacad72359df7eac204ac7c634d2718507520a6de4c2a88a760786130a77f8cd9699a12e001534615aab9b3b983761438fd82c2340668d16cd4a5bf0160d99
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  rvm:
2
- - 2.0.0
2
+ - 2.0
3
3
  - 2.1
4
- - ruby-head
4
+ - 2.2
5
+ - 2.3.3
5
6
  - jruby-head
6
7
  matrix:
7
8
  allow_failures:
@@ -9,6 +10,11 @@ matrix:
9
10
  - rvm: jruby-head
10
11
  before_script:
11
12
  - mysql -e 'create database test;'
12
- env:
13
- - CODECLIMATE_REPO_TOKEN=316615e61480039c3444f59bf124cf810d31110326e51f133e9cc9852de14892
13
+ script:
14
+ - rake && codeclimate-test-reporter --file coverage
14
15
  sudo: false
16
+ addons:
17
+ code_climate:
18
+ repo_token: 316615e61480039c3444f59bf124cf810d31110326e51f133e9cc9852de14892
19
+ env:
20
+ - START_SIMPLECOV=1
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ GemHadar do
18
18
  licenses << 'GPL-2'
19
19
 
20
20
  dependency 'mysql2', '~>0.3.0'
21
- dependency 'activerecord', '~> 4.0'
21
+ dependency 'activerecord', '~> 4.0', '<6'
22
22
  dependency 'tins', '~> 1.12'
23
23
  development_dependency 'test-unit', '~>3.0'
24
24
  development_dependency 'byebug'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.5.0
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: active_record_mutex 2.4.0 ruby lib
2
+ # stub: active_record_mutex 2.5.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "active_record_mutex".freeze
6
- s.version = "2.4.0"
6
+ s.version = "2.5.0"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2016-11-23"
11
+ s.date = "2016-12-07"
12
12
  s.description = "Mutex that can be used to synchronise ruby processes via an ActiveRecord datababase connection. (Only Mysql is supported at the moment.)".freeze
13
13
  s.email = "flori@ping.de".freeze
14
14
  s.extra_rdoc_files = ["README.md".freeze, "lib/active_record/database_mutex.rb".freeze, "lib/active_record/database_mutex/implementation.rb".freeze, "lib/active_record/database_mutex/version.rb".freeze, "lib/active_record/mutex.rb".freeze, "lib/active_record_mutex.rb".freeze]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.homepage = "http://github.com/flori/active_record_mutex".freeze
17
17
  s.licenses = ["GPL-2".freeze]
18
18
  s.rdoc_options = ["--title".freeze, "ActiveRecordMutex - Implementation of a Mutex for Active Record".freeze, "--main".freeze, "README.md".freeze]
19
- s.rubygems_version = "2.6.7".freeze
19
+ s.rubygems_version = "2.6.8".freeze
20
20
  s.summary = "Implementation of a Mutex for Active Record".freeze
21
21
  s.test_files = ["test/database_mutex_test.rb".freeze, "test/test_helper.rb".freeze]
22
22
 
@@ -24,29 +24,29 @@ Gem::Specification.new do |s|
24
24
  s.specification_version = 4
25
25
 
26
26
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.7.1"])
27
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
28
28
  s.add_development_dependency(%q<test-unit>.freeze, ["~> 3.0"])
29
29
  s.add_development_dependency(%q<byebug>.freeze, [">= 0"])
30
30
  s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
31
31
  s.add_runtime_dependency(%q<mysql2>.freeze, ["~> 0.3.0"])
32
- s.add_runtime_dependency(%q<activerecord>.freeze, ["~> 4.0"])
32
+ s.add_runtime_dependency(%q<activerecord>.freeze, ["< 6", "~> 4.0"])
33
33
  s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.12"])
34
34
  else
35
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.7.1"])
35
+ s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
36
36
  s.add_dependency(%q<test-unit>.freeze, ["~> 3.0"])
37
37
  s.add_dependency(%q<byebug>.freeze, [">= 0"])
38
38
  s.add_dependency(%q<simplecov>.freeze, [">= 0"])
39
39
  s.add_dependency(%q<mysql2>.freeze, ["~> 0.3.0"])
40
- s.add_dependency(%q<activerecord>.freeze, ["~> 4.0"])
40
+ s.add_dependency(%q<activerecord>.freeze, ["< 6", "~> 4.0"])
41
41
  s.add_dependency(%q<tins>.freeze, ["~> 1.12"])
42
42
  end
43
43
  else
44
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.7.1"])
44
+ s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
45
45
  s.add_dependency(%q<test-unit>.freeze, ["~> 3.0"])
46
46
  s.add_dependency(%q<byebug>.freeze, [">= 0"])
47
47
  s.add_dependency(%q<simplecov>.freeze, [">= 0"])
48
48
  s.add_dependency(%q<mysql2>.freeze, ["~> 0.3.0"])
49
- s.add_dependency(%q<activerecord>.freeze, ["~> 4.0"])
49
+ s.add_dependency(%q<activerecord>.freeze, ["< 6", "~> 4.0"])
50
50
  s.add_dependency(%q<tins>.freeze, ["~> 1.12"])
51
51
  end
52
52
  end
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord::DatabaseMutex
2
2
  # ActiveRecord::DatabaseMutex version
3
- VERSION = '2.4.0'
3
+ VERSION = '2.5.0'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/test/test_helper.rb CHANGED
@@ -1,7 +1,3 @@
1
- if ENV.key?('CODECLIMATE_REPO_TOKEN')
2
- require "codeclimate-test-reporter"
3
- CodeClimate::TestReporter.start
4
- end
5
1
  if ENV['START_SIMPLECOV'].to_i == 1
6
2
  require 'simplecov'
7
3
  SimpleCov.start do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_mutex
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.7.1
19
+ version: 1.9.1
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.7.1
26
+ version: 1.9.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: test-unit
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -87,6 +87,9 @@ dependencies:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '4.0'
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '6'
90
93
  type: :runtime
91
94
  prerelease: false
92
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -94,6 +97,9 @@ dependencies:
94
97
  - - "~>"
95
98
  - !ruby/object:Gem::Version
96
99
  version: '4.0'
100
+ - - "<"
101
+ - !ruby/object:Gem::Version
102
+ version: '6'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: tins
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -160,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
166
  version: '0'
161
167
  requirements: []
162
168
  rubyforge_project:
163
- rubygems_version: 2.6.7
169
+ rubygems_version: 2.6.8
164
170
  signing_key:
165
171
  specification_version: 4
166
172
  summary: Implementation of a Mutex for Active Record