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 759ec02
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
@@ -1,8 +1,11 @@
sudo: false
language: ruby
rvm:
- "1.9.2"
- "1.9.3"
- "2.0.0"
- "2.2"
- "2.3"
- "2.4"
- jruby-19mode # JRuby in 1.9 mode
# - "1.8.7"
# - jruby-18mode # JRuby in 1.8 mode
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
# 1.2.0
* Remove ruby Bignum

# 1.0.2
* Handle numbers with M precision

Expand Down
3 changes: 1 addition & 2 deletions edn.gemspec
Expand Up @@ -10,14 +10,13 @@ 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.name = "edn"
gem.require_paths = ["lib"]
gem.version = EDN::VERSION

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
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
@@ -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
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 759ec02

Please sign in to comment.