Skip to content

Commit

Permalink
Test in ruby 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Oct 27, 2017
1 parent d44a75c commit 49c756e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
sudo: false
language: ruby
rvm:
- "1.9.2"
- "1.9.3"
- "2.0.0"
- jruby-19mode # JRuby in 1.9 mode
# - "1.8.7"
# - jruby-18mode # JRuby in 1.8 mode
script: bundle exec rspec spec
- "2.2"
- "2.3"
- "2.4"
- jruby

script: bundle exec rspec
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.2.0
* Remove ruby Bignum
* Drop support for ruby 1.9.*

# 1.0.2
* Handle numbers with M precision

Expand Down
7 changes: 4 additions & 3 deletions edn.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ Gem::Specification.new do |gem|
gem.license = "MIT"

gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.test_files = gem.files.grep(%r{^(spec)/})
gem.name = "edn"
gem.require_paths = ["lib"]
gem.version = EDN::VERSION
gem.required_ruby_version = '>= 2.0.0'


gem.add_development_dependency 'pry', '~> 0.9.10'
gem.add_development_dependency 'rspec', '~> 2.11.0'
gem.add_development_dependency 'rspec', '~> 2.99'
gem.add_development_dependency 'rantly', '~> 0.3.1'
gem.add_development_dependency 'rake', '~> 10.3'
end
8 changes: 1 addition & 7 deletions lib/edn/core_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ def allows_metadata?
end
end

module Bignum
def to_edn
self.to_s + 'M'
end
end

module BigDecimal
def to_edn
self.to_s('F') + 'M'
Expand Down Expand Up @@ -90,11 +84,11 @@ def to_edn
EDN.tagout("inst", self.xmlschema)
end
end

end
end

Numeric.send(:include, EDN::CoreExt::Unquoted)
Bignum.send(:include, EDN::CoreExt::Bignum)
BigDecimal.send(:include, EDN::CoreExt::BigDecimal)
TrueClass.send(:include, EDN::CoreExt::Unquoted)
FalseClass.send(:include, EDN::CoreExt::Unquoted)
Expand Down
2 changes: 1 addition & 1 deletion lib/edn/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module EDN
VERSION = "1.1.1"
VERSION = "1.2.0"
end
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

RSpec.configure do |c|
c.fail_fast = true
c.filter_run_including :focused => true
c.alias_example_to :fit, :focused => true
c.filter_run_including :focus => true
c.alias_example_to :fit, :focus => true
c.treat_symbols_as_metadata_keys_with_true_values = true
c.run_all_when_everything_filtered = true

Expand Down

0 comments on commit 49c756e

Please sign in to comment.