Sha256: a888f84b40b31df9b4d116dff281d1cd80d356ef2282a95b581dcf2acf10deea
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
# #!/usr/bin/env ruby require "bundler" require_relative "../lib/rfix/loader/spec.rb" require_relative "../lib/rfix/loader/bundler.rb" require_relative "../lib/rfix/loader/env.rb" if spec = Bundler.find_locked("rubocop") Gem::Specification.deactivate(spec.name) unless spec.__materialize__&.activation abort "Could not load rubocop spec file" end end if spec = Gem.loaded_specs.fetch("rubocop") unless Env.requirement === spec.version abort "RuboCop version #{Env.pretty_req} required by rfix but #{spec.version} was found in Gemfile" end end require "cri" require "rfix" require "rfix/log" require "rubocop" require "rfix/extensions/string" require "rfix/commands/extensions/options" require "rfix/commands/helper/loader" require "rfix/branch" include Rfix::Loader include Rfix::Log root = Cri::Command.new Dir.glob(File.join(__dir__, "../lib/rfix/commands/*.rb")).each do |command| root.add_command(Cri::Command.load_file(command, infer_name: true)) end begin if root.run(ARGV, {}, hard_exit: false) exit 0 else prt root.help exit 1 end rescue RuntimeError => e say_abort e.to_s rescue Rfix::Error => e say_abort e.to_s end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rfix-1.4.1 | exe/rfix |
rfix-1.4.0.pre.201 | exe/rfix |
rfix-1.4.0 | exe/rfix |
rfix-1.3.0.pre.199 | exe/rfix |
rfix-1.2.6.pre.198 | exe/rfix |