diff --git a/Gemfile b/Gemfile index fa75df1..b4e2a20 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,3 @@ -source 'https://rubygems.org' +source "https://rubygems.org" gemspec diff --git a/eventide-postgres.gemspec b/eventide-postgres.gemspec index c88232f..76ca1b7 100644 --- a/eventide-postgres.gemspec +++ b/eventide-postgres.gemspec @@ -1,21 +1,21 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| - s.name = 'eventide-postgres' - s.version = '2.0.1.0' - s.summary = 'Event-Sourced Autonomous Services Toolkit' - s.description = ' ' + s.name = "eventide-postgres" + s.version = "2.0.1.0" + s.summary = "Event-Sourced Autonomous Services Toolkit" + s.description = " " - s.authors = ['The Eventide Project'] - s.email = 'opensource@eventide-project.org' - s.homepage = 'https://github.com/eventide-project/eventide-postgres' - s.licenses = ['MIT'] + s.authors = ["The Eventide Project"] + s.email = "opensource@eventide-project.org" + s.homepage = "https://github.com/eventide-project/eventide-postgres" + s.licenses = ["MIT"] - s.require_paths = ['lib'] - s.files = Dir.glob('{lib}/**/*') + s.require_paths = ["lib"] + s.files = Dir.glob("{lib}/**/*") s.platform = Gem::Platform::RUBY - s.required_ruby_version = '>= 2.3.3' + s.required_ruby_version = ">= 2.3.3" - s.add_runtime_dependency 'evt-entity_store' - s.add_runtime_dependency 'evt-consumer-postgres' - s.add_runtime_dependency 'evt-entity_snapshot-postgres' + s.add_runtime_dependency "evt-entity_store" + s.add_runtime_dependency "evt-consumer-postgres" + s.add_runtime_dependency "evt-entity_snapshot-postgres" end diff --git a/init.rb b/init.rb index d6d7683..9d6dc30 100755 --- a/init.rb +++ b/init.rb @@ -1,3 +1,3 @@ -require_relative './load_path' +require_relative "./load_path" -require 'eventide/postgres' +require "eventide/postgres" diff --git a/lib/eventide/postgres.rb b/lib/eventide/postgres.rb index fbf0f4d..216b859 100644 --- a/lib/eventide/postgres.rb +++ b/lib/eventide/postgres.rb @@ -1,3 +1,3 @@ -require 'entity_store' -require 'consumer/postgres' -require 'entity_snapshot/postgres' +require "entity_store" +require "consumer/postgres" +require "entity_snapshot/postgres" diff --git a/load_path.rb b/load_path.rb index 4f7ebf2..69ebac3 100644 --- a/load_path.rb +++ b/load_path.rb @@ -1,4 +1,4 @@ -bundler_standalone_loader = 'gems/bundler/setup' +bundler_standalone_loader = "gems/bundler/setup" begin require_relative bundler_standalone_loader @@ -8,10 +8,10 @@ Bundler.require end -lib_dir = File.expand_path('lib', __dir__) +lib_dir = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir) -libraries_dir = ENV['LIBRARIES_HOME'] +libraries_dir = ENV["LIBRARIES_HOME"] unless libraries_dir.nil? libraries_dir = File.expand_path(libraries_dir) $LOAD_PATH.unshift libraries_dir unless $LOAD_PATH.include?(libraries_dir) diff --git a/test.rb b/test.rb index 9975172..f46185d 100755 --- a/test.rb +++ b/test.rb @@ -1 +1 @@ -load './init.rb' +load "./init.rb"