Skip to content

Commit

Permalink
fix ordering bug part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mnyrop committed Jun 12, 2021
1 parent 5fab1ac commit 6ea8f02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ It can be used to:
You'll need `Ruby >= 2.4` with `bundler` installed. Check your versions with:
```bash
$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin15]
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin18]

$ bundler -v
Bundler version 1.16.1
Expand Down
9 changes: 6 additions & 3 deletions lib/wax_tasks/record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
module WaxTasks
#
class Record
attr_reader :pid, :hash, :order
attr_reader :pid, :hash

def initialize(hash)
@hash = hash
@pid = @hash.dig 'pid'
@order = @hash.dig 'order'
end

def order
@hash.dig 'order'
end

#
Expand Down Expand Up @@ -42,7 +45,7 @@ def permalink?
#
#
def order?
@order.is_a? String
!order.to_s.empty?
end

#
Expand Down
2 changes: 1 addition & 1 deletion lib/wax_tasks/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module WaxTasks
VERSION = '1.1.3'
VERSION = '1.1.4'
end

0 comments on commit 6ea8f02

Please sign in to comment.