bin/hoc in hoc-0.7.1 vs bin/hoc in hoc-0.7.2
- old
+ new
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
# encoding: utf-8
#
-# Copyright (c) 2014 Teamed.io
-# Copyright (c) 2014 Yegor Bugayenko
+# Copyright (c) 2014-2017 Teamed.io
+# Copyright (c) 2014-2017 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -27,11 +27,11 @@
require 'hoc'
require 'slop'
require 'hoc/version'
args = []
-args.push(*File.read('.hoc').split(/\s+/).map(&:strip)) if File.exist?('.hoc')
-args.push(*ARGV)
+args.concat(File.read('.hoc').split(/\s+/).map(&:strip)) if File.exist?('.hoc')
+args.concat(ARGV)
opts = Slop.parse(args, strict: true, help: true) do
banner "Usage (#{HOC::VERSION}): hoc [options]"
on(
'f',