rom-yesql 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71d682ad4bde9ef7d69778c1520c682907f2eeb3
4
- data.tar.gz: 34ffde7f67a7da528281adb02abcc57ef50dbfdb
3
+ metadata.gz: 84f7bdeaea040680780a8efbff3c9f1ec94b6dea
4
+ data.tar.gz: 3ffff64b2719c990a1e946fc8f47f14786daa4ac
5
5
  SHA512:
6
- metadata.gz: 83ab884d970038302ef7275d47b26f9101eb8986b16aa5741e3a26e79b35b7cb79b44a89f1b306f78ffe299ffd321d36201ce87d185ce39c5e9187aa11dce54a
7
- data.tar.gz: 62235b937beaf7a8cd723eee295fc9ca0b589d7fd65a6a93d1104e63513fac16db5b34d867ac79d1a629e8c599ee605acd1b05fbe7be96a752730426552205f4
6
+ metadata.gz: 58a24fb443ddf9cdf6995dc6817406ce14500f6dad4723faae15ec6dc12cf8206ee0f33b50f8e9a3ea74b6ddaf4d6b804ef80ddbbe19749a188660892a78415f
7
+ data.tar.gz: 635b114bfc740fd40f21b2ba6801ec5072cc54f3121ea2aad9553a442faca6ae9c4a637c2c189aed1134d5fb99af72ff4e3302008c34f614a7826b92805f9351
@@ -8,14 +8,14 @@ env:
8
8
  global:
9
9
  - CODECLIMATE_REPO_TOKEN=15dad2a6b4f5f73f367783df8192230b73070b33fe1f193393e9867d50653885
10
10
  - JRUBY_OPTS='--dev -J-Xmx1024M'
11
+ - COVERAGE=true
11
12
  after_success:
12
- # Send coverage report from the job #1 == current MRI release
13
- - '[ "${TRAVIS_JOB_NUMBER#*.}" = "1" ] && [ "$TRAVIS_BRANCH" = "master" ] && bundle exec codeclimate-test-reporter'
13
+ - '[ -d coverage ] && bundle exec codeclimate-test-reporter'
14
14
  rvm:
15
- - 2.4.0
16
- - 2.3.3
17
15
  - 2.2.6
18
- - jruby-9.1.7.0
16
+ - 2.3.3
17
+ - 2.4.1
18
+ - jruby-9.1.8.0
19
19
  - ruby-head
20
20
  - rbx-3
21
21
  matrix:
@@ -1,16 +1,26 @@
1
- ## v0.4.0 to-be-released
1
+ ## v0.5.0 2017-03-28
2
+
3
+ Updated to work with rom 3.2.0
4
+
5
+ [Compare v0.4.0...v0.5.0](https://github.com/rom-rb/rom-yesql/compare/v0.4.0...v0.5.0)
6
+
7
+ ## v0.4.0 2017-02-10
2
8
 
3
9
  Updated to work with rom 3.0.0
4
10
 
11
+ [Compare v0.3.0...v0.4.0](https://github.com/rom-rb/rom-yesql/compare/v0.3.0...v0.4.0)
12
+
5
13
  ## v0.3.0 2016-07-31
6
14
 
15
+ [Compare v0.2.0...v0.3.0](https://github.com/rom-rb/rom-yesql/compare/v0.2.0...v0.3.0)
16
+
7
17
  Updated to work with rom 2.0.0
8
18
 
9
19
  ## v0.2.0 2015-08-19
10
20
 
11
21
  Updated to work with rom 0.9.0
12
22
 
13
- [Compare v0.1.1...v0.2.0](https://github.com/rom-rb/rom-yaml/compare/v0.1.0...v0.2.0)
23
+ [Compare v0.1.1...v0.2.0](https://github.com/rom-rb/rom-yesql/compare/v0.1.1...v0.2.0)
14
24
 
15
25
  ## v0.1.1 2015-07-27
16
26
 
@@ -18,7 +28,7 @@ Updated to work with rom 0.9.0
18
28
 
19
29
  Updated to work with rom 0.8 (solnic)
20
30
 
21
- [Compare v0.1.0...v0.1.1](https://github.com/rom-rb/rom-yaml/compare/v0.1.0...v0.1.1)
31
+ [Compare v0.1.0...v0.1.1](https://github.com/rom-rb/rom-yesql/compare/v0.1.0...v0.1.1)
22
32
 
23
33
  ## v0.1.0 2015-03-22
24
34
 
data/Rakefile CHANGED
@@ -1,7 +1,8 @@
1
- require "rspec/core/rake_task"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
2
3
 
3
4
  RSpec::Core::RakeTask.new(:spec)
4
5
  task default: [:ci]
5
6
 
6
- desc "Run CI tasks"
7
+ desc 'Run CI tasks'
7
8
  task ci: [:spec]
@@ -16,6 +16,8 @@ module ROM
16
16
  class Gateway < ROM::Gateway
17
17
  extend Initializer
18
18
 
19
+ adapter :yesql
20
+
19
21
  # @!attribute [r] uri
20
22
  # @return [String] connection string
21
23
  param :uri
@@ -26,7 +28,7 @@ module ROM
26
28
 
27
29
  # @!attribute [r] queries
28
30
  # @return [Hash] a hash with queries
29
- option :queries, default: -> _ { EMPTY_HASH }, reader: true
31
+ option :queries, default: -> { EMPTY_HASH }
30
32
 
31
33
  # @!attribute [r] query_proc
32
34
  # This defaults to simple interpolation of the query using option hash passed to a relation
@@ -1,5 +1,5 @@
1
1
  module ROM
2
2
  module Yesql
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.5.0'.freeze
4
4
  end
5
5
  end
@@ -1,10 +1,16 @@
1
1
  require 'bundler'
2
2
  Bundler.setup
3
3
 
4
- if RUBY_ENGINE == 'ruby' && ENV['CI'] == 'true'
5
- require 'simplecov'
6
- SimpleCov.start do
7
- add_filter '/spec/'
4
+ if RUBY_ENGINE == 'ruby' && ENV['COVERAGE'] == 'true'
5
+ require 'yaml'
6
+ rubies = YAML.load(File.read(File.join(__dir__, '..', '.travis.yml')))['rvm']
7
+ latest_mri = rubies.select { |v| v =~ /\A\d+\.\d+.\d+\z/ }.max
8
+
9
+ if RUBY_VERSION == latest_mri
10
+ require 'simplecov'
11
+ SimpleCov.start do
12
+ add_filter '/spec/'
13
+ end
8
14
  end
9
15
  end
10
16
 
@@ -21,8 +27,6 @@ LOGGER = Logger.new(File.open('./log/test.log', 'a'))
21
27
 
22
28
  root = Pathname(__FILE__).dirname
23
29
 
24
- Dir[root.join('shared/*.rb').to_s].each { |f| require f }
25
-
26
30
  RSpec.configure do |config|
27
31
  config.before do
28
32
  module Test
@@ -34,4 +38,7 @@ RSpec.configure do |config|
34
38
  end
35
39
 
36
40
  config.disable_monkey_patching!
41
+ config.warnings = true
37
42
  end
43
+
44
+ Dir[root.join('shared/*.rb').to_s].each { |f| require f }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-yesql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rom
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.5.1
146
+ rubygems_version: 2.6.11
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Yesql adapter for ROM