Skip to content

Commit

Permalink
Merge pull request #26 from edmund/patch-1
Browse files Browse the repository at this point in the history
Update deprecated Fixnum class to Integer for Ruby 2.4 compatability
  • Loading branch information
piotrmurach committed Feb 10, 2017
2 parents 2c5d8ef + 939f893 commit cfe2540
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -249,7 +249,7 @@ You can directly use shell redirection facility like so:
cmd.run("ls 1&>2")
```

You can provide the streams as additional hash options where the key is one of `:in`, `:out`, `:err`, a fixnum(a file descriptor for the child process), an IO or array. The pair value can be a filename for redirection.
You can provide the streams as additional hash options where the key is one of `:in`, `:out`, `:err`, an integer (a file descriptor for the child process), an IO or array. The pair value can be a filename for redirection.

```ruby
cmd.run(:ls, :in => "/dev/null") # read mode
Expand Down
2 changes: 1 addition & 1 deletion lib/tty/command/execute.rb
Expand Up @@ -77,7 +77,7 @@ def fd?(object)
true
when ::IO
true
when ::Fixnum
when ::Integer
object >= 0
when respond_to?(:to_i) && !object.to_io.nil?
true
Expand Down

0 comments on commit cfe2540

Please sign in to comment.