github-ds 0.2.9 → 0.2.10

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: 716ec52fb178302c762091225dc4ab8b1b61a793
4
- data.tar.gz: dd79687dfd3a302ebff1978a9f2ea18adf649a05
3
+ metadata.gz: 58267b1fe40225f667e6639dd0df6830b9397853
4
+ data.tar.gz: 641de968bea62624f96c2dce9233d01e970050b5
5
5
  SHA512:
6
- metadata.gz: f23f9d2e7467159b263ec39352c22f1e400198a81dc5294fea08c0e99361f9fe76a44f5a694979fe72359cf8d174dd9655503e8c7f8ea3aa3a0bc8cbb4c28468
7
- data.tar.gz: 732716e7a5a28b5526934ad854e1148b17c35322546d01fce321b26417067dd9542d026ef69dfed371dede8a744871a3a505053fc93a7c560de851a845e663e5
6
+ metadata.gz: cd9e18016d02099599946110ae6814e78fc12d82de1d1bf964ad4a9e1fe60d7dd213a20f1867d8c6fe563cdd3731ab6a940db89dbcd8bbe2ac2548fa435e8839
7
+ data.tar.gz: 6768c6a9631f0f7520370bd879da57d23d3d1c830e0d07349065f12b88896f5e8671aca9be43d1d8cb26a5175cf8394481499f789f6725e35ef8a5a7e6ee3e88
@@ -1,11 +1,15 @@
1
1
  language: ruby
2
+ before_install:
3
+ - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
4
+ - gem install bundler -v '<2'
2
5
  rvm:
3
- - 2.2
4
6
  - 2.3
5
7
  - 2.4
6
8
  - 2.5
7
9
  script: bundle exec rake
8
10
  env:
11
+ - RAILS_VERSION=6.0.0.rc1
12
+ - RAILS_VERSION=5.2.0
9
13
  - RAILS_VERSION=5.1.5
10
14
  - RAILS_VERSION=5.0.6
11
15
  - RAILS_VERSION=4.2.10
@@ -30,9 +30,9 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "activerecord", ">= 3.2", "< 6.0"
33
+ spec.add_dependency "activerecord", ">= 3.2"
34
34
 
35
- spec.add_development_dependency "bundler", "~> 1.14"
35
+ spec.add_development_dependency "bundler", ">= 1.14"
36
36
  spec.add_development_dependency "rake", "~> 10.0"
37
37
  spec.add_development_dependency "minitest", "~> 5.0"
38
38
  spec.add_development_dependency "timecop", "~> 0.8.1"
@@ -1,5 +1,5 @@
1
1
  module GitHub
2
2
  module DS
3
- VERSION = "0.2.9"
3
+ VERSION = "0.2.10"
4
4
  end
5
5
  end
@@ -136,6 +136,7 @@ module GitHub
136
136
  validate_expires(expires) if expires
137
137
 
138
138
  rows = kvs.map { |key, value|
139
+ value = value.is_a?(GitHub::SQL::Literal) ? value : GitHub::SQL::BINARY(value)
139
140
  [key, value, GitHub::SQL::NOW, GitHub::SQL::NOW, expires || GitHub::SQL::NULL]
140
141
  }
141
142
 
@@ -225,6 +226,7 @@ module GitHub
225
226
  DELETE FROM key_values WHERE `key` = :key AND expires_at <= NOW()
226
227
  SQL
227
228
 
229
+ value = value.is_a?(GitHub::SQL::Literal) ? value : GitHub::SQL::BINARY(value)
228
230
  sql = GitHub::SQL.run(<<-SQL, :key => key, :value => value, :expires => expires || GitHub::SQL::NULL, :connection => connection)
229
231
  INSERT IGNORE INTO key_values (`key`, value, created_at, updated_at, expires_at)
230
232
  VALUES (:key, :value, NOW(), NOW(), :expires)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-ds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-05-11 00:00:00.000000000 Z
12
+ date: 2019-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -18,9 +18,6 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '3.2'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '6.0'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,21 +25,18 @@ dependencies:
28
25
  - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '3.2'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '6.0'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: bundler
36
30
  requirement: !ruby/object:Gem::Requirement
37
31
  requirements:
38
- - - "~>"
32
+ - - ">="
39
33
  - !ruby/object:Gem::Version
40
34
  version: '1.14'
41
35
  type: :development
42
36
  prerelease: false
43
37
  version_requirements: !ruby/object:Gem::Requirement
44
38
  requirements:
45
- - - "~>"
39
+ - - ">="
46
40
  - !ruby/object:Gem::Version
47
41
  version: '1.14'
48
42
  - !ruby/object:Gem::Dependency