-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-missing-expect
- Loading branch information
Showing
38 changed files
with
253 additions
and
103 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby | ||
{ | ||
"name": "IceCube", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.3-bookworm", | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "ruby --version", | ||
|
||
// Configure tool-specific properties. | ||
"customizations" : { | ||
"jetbrains" : { | ||
"backend" : "RubyMine" | ||
} | ||
}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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 |
---|---|---|
|
@@ -8,16 +8,15 @@ Gem::Specification.new do |s| | |
s.description = "ice_cube is a recurring date library for Ruby. It allows for quick, programatic expansion of recurring date rules." | ||
s.author = "John Crepezzi" | ||
s.email = "[email protected]" | ||
s.homepage = "https://seejohnrun.github.io/ice_cube/" | ||
s.homepage = "https://ice-cube-ruby.github.io/ice_cube/" | ||
s.license = "MIT" | ||
|
||
s.metadata["changelog_uri"] = "https://github.com/seejohnrun/ice_cube/blob/master/CHANGELOG.md" | ||
s.metadata["wiki_uri"] = "https://github.com/seejohnrun/ice_cube/wiki" | ||
s.metadata["changelog_uri"] = "https://github.com/ice-cube-ruby/ice_cube/blob/master/CHANGELOG.md" | ||
s.metadata["wiki_uri"] = "https://github.com/ice-cube-ruby/ice_cube/wiki" | ||
|
||
s.version = IceCube::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.files = Dir["lib/**/*.rb", "config/**/*.yml"] | ||
s.test_files = Dir.glob("spec/*.rb") | ||
s.require_paths = ["lib"] | ||
|
||
s.add_development_dependency("rake") | ||
|
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,26 +1,15 @@ | ||
require "ice_cube/null_i18n" | ||
|
||
module IceCube | ||
module I18n | ||
LOCALES_PATH = File.expand_path(File.join("..", "..", "..", "config", "locales"), __FILE__) | ||
|
||
def self.t(*args, **kwargs) | ||
backend.t(*args, **kwargs) | ||
end | ||
|
||
def self.l(*args, **kwargs) | ||
backend.l(*args, **kwargs) | ||
end | ||
|
||
def self.backend | ||
@backend ||= detect_backend! | ||
end | ||
|
||
def self.detect_backend! | ||
::I18n.load_path += Dir[File.join(LOCALES_PATH, "*.yml")] | ||
::I18n | ||
rescue NameError | ||
NullI18n | ||
end | ||
LOCALES_PATH = File.expand_path(File.join("..", "..", "config", "locales"), __dir__) | ||
|
||
# rubocop:disable Naming/ConstantName | ||
I18n = begin | ||
require "i18n" | ||
::I18n.load_path += Dir[File.join(LOCALES_PATH, "*.yml")] | ||
::I18n | ||
rescue LoadError | ||
NullI18n | ||
end | ||
# rubocop:enable Naming/ConstantName | ||
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
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
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
Oops, something went wrong.