-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
119 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
source 'https://rubygems.org' | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
eval_gemfile "Gemfile.devtools" | ||
|
||
group :test do | ||
gem 'inflecto' | ||
gem 'rspec', '~> 3.5' | ||
gem 'codeclimate-test-reporter', require: false | ||
gem 'sqlite3', platforms: [:mri, :rbx] | ||
gem 'jdbc-sqlite3', platforms: :jruby | ||
gem "codeclimate-test-reporter", require: false | ||
gem "inflecto" | ||
gem "jdbc-sqlite3", platforms: :jruby | ||
gem "rspec", "~> 3.5" | ||
gem "sqlite3", platforms: %i[mri rbx] | ||
end | ||
|
||
group :tools do | ||
gem 'byebug', platforms: [:mri] | ||
gem "byebug", platforms: [:mri] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
# frozen_string_literal: true | ||
|
||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
task default: [:ci] | ||
|
||
desc 'Run CI tasks' | ||
desc "Run CI tasks" | ||
task ci: [:spec] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
require 'rom' # FIXME: this should not be needed | ||
# frozen_string_literal: true | ||
|
||
require 'rom/yesql' | ||
require "rom" # FIXME: this should not be needed | ||
|
||
require "rom/yesql" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
require 'rom/yesql/version' | ||
require 'rom/yesql/gateway' | ||
# frozen_string_literal: true | ||
|
||
require "rom/yesql/version" | ||
require "rom/yesql/gateway" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module ROM | ||
module Yesql | ||
class Relation < ROM::Relation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module ROM | ||
module Yesql | ||
VERSION = '0.5.1'.freeze | ||
VERSION = "0.5.1" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
RSpec.shared_context 'gateway setup' do | ||
let(:root) { Pathname(__FILE__).dirname.join('../..') } | ||
let(:path) { root.join('spec/fixtures') } | ||
# frozen_string_literal: true | ||
|
||
if RUBY_ENGINE == 'jruby' | ||
let(:uri) { "jdbc:sqlite://#{root.join('db/test.sqlite')}" } | ||
RSpec.shared_context "gateway setup" do | ||
let(:root) { Pathname(__FILE__).dirname.join("../..") } | ||
let(:path) { root.join("spec/fixtures") } | ||
|
||
if RUBY_ENGINE == "jruby" | ||
let(:uri) { "jdbc:sqlite://#{root.join("db/test.sqlite")}" } | ||
else | ||
let(:uri) { "sqlite://#{root.join('db/test.sqlite')}" } | ||
let(:uri) { "sqlite://#{root.join("db/test.sqlite")}" } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
RSpec.shared_context 'users and tasks' do | ||
include_context 'database setup' | ||
# frozen_string_literal: true | ||
|
||
RSpec.shared_context "users and tasks" do | ||
include_context "database setup" | ||
|
||
before do | ||
conn[:users].insert id: 1, name: 'Jane' | ||
conn[:users].insert id: 2, name: 'Joe' | ||
conn[:users].insert id: 3, name: 'Jade' | ||
conn[:users].insert id: 1, name: "Jane" | ||
conn[:users].insert id: 2, name: "Joe" | ||
conn[:users].insert id: 3, name: "Jade" | ||
|
||
conn[:tasks].insert id: 1, title: 'Task One' | ||
conn[:tasks].insert id: 2, title: 'Task Two' | ||
conn[:tasks].insert id: 1, title: "Task One" | ||
conn[:tasks].insert id: 2, title: "Task Two" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters