Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source 'https://rubygems.org'
source "https://rubygems.org"

gemspec
26 changes: 13 additions & 13 deletions clock.gemspec
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-clock'
s.summary = 'Clock interface with support for UTC and local timezones, timezone coercion, and dependency substitution'
s.version = '2.4.0.0'
s.description = ' '
s.name = "evt-clock"
s.summary = "Clock interface with support for UTC and local timezones, timezone coercion, and dependency substitution"
s.version = "2.4.0.0"
s.description = " "

s.authors = ['The Eventide Project']
s.email = '[email protected]'
s.homepage = 'https://github.com/eventide-project/clock'
s.licenses = ['MIT']
s.authors = ["The Eventide Project"]
s.email = "[email protected]"
s.homepage = "https://github.com/eventide-project/clock"
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-mimic'
s.add_runtime_dependency "evt-mimic"

s.add_development_dependency 'test_bench'
s.add_development_dependency "test_bench"
end
4 changes: 2 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require_relative './load_path'
require_relative "./load_path"

require 'clock'
require "clock"
14 changes: 7 additions & 7 deletions lib/clock.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'time'
require 'ostruct'
require 'mimic'
require "time"
require "ostruct"
require "mimic"

require 'clock/clock'
require 'clock/substitute'
require 'clock/utc'
require 'clock/local'
require "clock/clock"
require "clock/substitute"
require "clock/utc"
require "clock/local"
4 changes: 2 additions & 2 deletions lib/clock/controls.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require 'clock/controls/time'
require 'clock/controls/time/offset'
require "clock/controls/time"
require "clock/controls/time/offset"
6 changes: 3 additions & 3 deletions load_path.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bundler_standalone_loader = 'gems/bundler/setup'
bundler_standalone_loader = "gems/bundler/setup"

begin
require_relative bundler_standalone_loader
Expand All @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions test/automated.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative './test_init'
require_relative "./test_init"

TestBench::Run.(
'test/automated',
exclude: '{_*,*sketch*,*_init,*_tests}.rb'
"test/automated",
exclude: "{_*,*sketch*,*_init,*_tests}.rb"
) or exit(false)
2 changes: 1 addition & 1 deletion test/automated/automated_init.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require_relative '../test_init'
require_relative "../test_init"

2 changes: 1 addition & 1 deletion test/automated/clock.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'automated_init'
require_relative "automated_init"

context "Clock" do
now = Time.now
Expand Down
2 changes: 1 addition & 1 deletion test/automated/elapsed_milliseconds.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'automated_init'
require_relative "automated_init"

context "Clock" do
context "Elapsed milliseconds" do
Expand Down
2 changes: 1 addition & 1 deletion test/automated/local.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'automated_init'
require_relative "automated_init"

context "Local clock" do
now = Time.now
Expand Down
2 changes: 1 addition & 1 deletion test/automated/substitute/iso8601_precision.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../automated_init'
require_relative "../automated_init"

context "Substitute clock" do
context "ISO8601 Precision" do
Expand Down
2 changes: 1 addition & 1 deletion test/automated/substitute/substitute.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../automated_init'
require_relative "../automated_init"

context "Substitute clock" do
context "No assigned time" do
Expand Down
2 changes: 1 addition & 1 deletion test/automated/utc.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'automated_init'
require_relative "automated_init"

context "UTC clock" do
now = Time.now.utc
Expand Down
14 changes: 7 additions & 7 deletions test/test_init.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ENV['CONSOLE_DEVICE'] ||= 'stdout'
ENV['LOG_COLOR'] ||= 'on'
ENV['LOG_LEVEL'] ||= 'trace'
ENV["CONSOLE_DEVICE"] ||= "stdout"
ENV["LOG_COLOR"] ||= "on"
ENV["LOG_LEVEL"] ||= "trace"

puts RUBY_DESCRIPTION

require_relative '../init.rb'
require_relative "../init.rb"

require 'clock/controls'
require "clock/controls"

require 'test_bench'; TestBench.activate
require "test_bench"; TestBench.activate

require 'pp'
require "pp"