Skip to content

Commit

Permalink
Merge pull request #62 from makimoto/unified-integer
Browse files Browse the repository at this point in the history
Use Integer class for checking integer instead of Fixnum
  • Loading branch information
lfittl authored Feb 10, 2017
2 parents 0fdf673 + ddfb982 commit fc5d01c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ rvm:
- 2.1.8
- 2.2.4
- 2.3.0
- 2.4.0
script: bundle exec rake
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GEM
astrolabe (1.3.0)
parser (>= 2.2.0.pre.3, < 3.0)
diff-lcs (1.2.5)
json (1.8.3)
json (2.0.3)
parser (2.2.2.5)
ast (>= 1.1, < 3.0)
powerpack (0.1.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/pg_query/deparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def from(item)

def deparse_item(item, context = nil) # rubocop:disable Metrics/CyclomaticComplexity
return if item.nil?
return item if item.is_a?(Fixnum)
return item if item.is_a?(Integer)

type = item.keys[0]
node = item.values[0]
Expand Down

0 comments on commit fc5d01c

Please sign in to comment.