| 1 |
alias __source_distinct__ source |
| 2 |
def source(url) |
| 3 |
@loaded ||= {} |
| 4 |
unless @loaded[url] |
| 5 |
@loaded[url] = true |
| 6 |
__source_distinct__(url) |
| 7 |
end |
| 8 |
end |
| 9 |
|
| 10 |
source 'https://rubygems.org' |
| 11 |
|
| 12 |
ruby '>= 3.2' |
| 13 |
|
| 14 |
group :default do |
| 15 |
gem 'addressable', '>= 2.8.0', '< 2.10' |
| 16 |
gem 'delayer', '>= 1.2.1', '< 2.0' |
| 17 |
gem 'delayer-deferred', '>= 2.2.0', '< 3.0' |
| 18 |
gem 'diva', '>= 2.0.1', '< 3.0' |
| 19 |
gem 'memoist', '>= 0.16.2', '< 0.17' |
| 20 |
gem 'observer', '>= 0.1.2' |
| 21 |
gem 'pluggaloid', '>= 1.7.0', '< 2.0' |
| 22 |
gem 'typed-array', '>= 0.1.2', '< 0.2' |
| 23 |
end |
| 24 |
|
| 25 |
group :test do |
| 26 |
gem 'mocha', '>= 1.13.0' |
| 27 |
gem 'rake', '>= 13.0.6' |
| 28 |
gem 'ruby-prof', '>= 1.4.3' |
| 29 |
gem 'test-unit', '>= 3.5.2', '< 4.0' |
| 30 |
end |
| 31 |
|
| 32 |
group :plugin do |
| 33 |
Dir.glob(File.expand_path(File.join(__dir__, 'plugin/*/Gemfile'))) do |path| |
| 34 |
eval File.read(path) # rubocop:disable Security/Eval |
| 35 |
end |
| 36 |
Dir.glob(File.join(File.expand_path(ENV.fetch('MIKUTTER_CONFROOT', '~/.mikutter')), 'plugin/*/Gemfile')) do |path| |
| 37 |
eval File.read(path), binding, path # rubocop:disable Security/Eval |
| 38 |
end |
| 39 |
end |