Skip to content

Commit

Permalink
Make library compatible with Ruby 2.4.0 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
tesssie authored and joschi committed Aug 14, 2017
1 parent 9d4427c commit 7cc3cbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rvm:
- 2.1.0
- 2.2.0
- 2.3.0
- 2.4.0
- jruby-19mode
deploy:
provider: rubygems
Expand Down
8 changes: 6 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ GEM
rake
rdoc
semver
json (1.8.3)
json (1.8.6)
json (1.8.6-java)
jwt (1.5.4)
metaclass (0.0.4)
mini_portile2 (2.1.0)
Expand All @@ -38,6 +39,7 @@ GEM
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
nokogiri (1.6.8-java)
oauth2 (1.2.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
Expand All @@ -55,8 +57,10 @@ GEM
test-unit (3.2.1)
power_assert
thread_safe (0.3.5)
thread_safe (0.3.5-java)

PLATFORMS
java
ruby

DEPENDENCIES
Expand All @@ -67,4 +71,4 @@ DEPENDENCIES
test-unit (~> 3.2.0)

BUNDLED WITH
1.12.5
1.14.6
2 changes: 1 addition & 1 deletion lib/gelf/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def max_chunk_size=(size)
end

def level=(new_level)
@level = if new_level.is_a?(Fixnum)
@level = if new_level.is_a?(Integer)
new_level
else
GELF.const_get(new_level.to_s.upcase)
Expand Down

0 comments on commit 7cc3cbb

Please sign in to comment.