naturally 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5b55ef725bab4abf9e87b176f86ab6c94d1ea4d
4
- data.tar.gz: 2ca443c6027ed127aa570dceb2bdf63aeb060457
3
+ metadata.gz: 2c21d347e9e1658f3ebc10a896f5b96aa5192b00
4
+ data.tar.gz: 0d830b3bbb12d2a6debb452a421ce641f4062f6a
5
5
  SHA512:
6
- metadata.gz: 85d8b14a18c0415b1360ce03a0eabad8e0cdfa07656648d71d251ac9556194aa705ff547b7cf5c6143762e876f425c4c05369047bef7368bdadaff24ce6d3705
7
- data.tar.gz: df7f7705855241de8b0b1f4b26a4996398b90bfc5631088e5bcc9a141d2f98bc149a6192e9a19360b825839106ec06b3c12f586c327736b378eccb3f5c96694a
6
+ metadata.gz: 1ed7567011f553a3bfae3ce97f1d9642bc3f828691a6d6b0a2ad999fd3d72117a4f9736d958e30964ec50304b733ecbe4ed501df142e73c85765e7e0d487203e
7
+ data.tar.gz: 6467f4990f5ba292fb15464de537383d24388634a9509517f803d072c85815fb8de15f1a90cc345f4338a5484970a361bd1cf3d51172e8503c4ecff6f398fab1
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.0
3
4
  - 2.1
4
5
  - 2.2
@@ -1,4 +1,4 @@
1
1
  module Naturally
2
2
  # Gem version
3
- VERSION = '1.4.0'
3
+ VERSION = '1.5.0'
4
4
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.summary = %q{Sorts numbers according to the way people are used to seeing them.}
12
12
  gem.description = %q{Natural Sorting with support for legal numbering, course numbers, and other number/letter mixes.}
13
13
  gem.homepage = "http://github.com/dogweather/naturally"
14
- gem.required_ruby_version = '>= 2.1'
14
+ gem.required_ruby_version = '>= 2.0'
15
15
 
16
16
  gem.files = `git ls-files`.split($/)
17
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,7 +1,10 @@
1
+ # coding: utf-8
1
2
  require 'naturally'
2
3
 
3
4
  describe Naturally do
4
- def it_sorts(this:, to_this:)
5
+ def it_sorts(opts = {})
6
+ this = opts[:this]
7
+ to_this = opts[:to_this]
5
8
  actual = Naturally.sort(this)
6
9
  expect(actual).to eq(to_this)
7
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naturally
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-04 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Natural Sorting with support for legal numbering, course numbers, and
14
14
  other number/letter mixes.
@@ -41,7 +41,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: '2.1'
44
+ version: '2.0'
45
45
  required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="