natsort 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/bin/natsort +17 -0
- data/lib/natsort/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4efb25b2bb58d3696fd6c8bf5e1ebca6553448b
|
4
|
+
data.tar.gz: d0015165e0b249601e2ed2ee96c5ea57b3e3cea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca957e85a31b66ff1b074993bac964377b37e4fbd2188bad1d9e4d1c31864bcc96621c8e25cc2d795df8cb57ce62780680d9ed7ded01855ffc74ffca4850dc3
|
7
|
+
data.tar.gz: 43f157360b0dc51717f54c5b73de78883dbaa5b7aa0a7dc0f4a16c22db20b34289b2338f87dd26bd8f23501f4d4e2df765cfe3d92609bc56e196758a1becba33
|
data/.travis.yml
CHANGED
data/bin/natsort
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "natsort"
|
4
|
+
require "optparse"
|
5
|
+
|
6
|
+
options = {
|
7
|
+
:case_sensitive => true,
|
8
|
+
}
|
9
|
+
|
10
|
+
OptionParser.new do |op|
|
11
|
+
op.banner = "Usage: natsort [<options>] <arg> [<arg>...]"
|
12
|
+
op.on("-i", "--ignore-case") { |v| options[:case_sensitive] = !v }
|
13
|
+
end.parse!(ARGV)
|
14
|
+
|
15
|
+
ARGF.natsort(options[:case_sensitive]).each do |line|
|
16
|
+
puts line
|
17
|
+
end
|
data/lib/natsort/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: natsort
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masato Ikeda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: natcmp
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description: Provides natural sorting methods to Enumerable.
|
70
70
|
email:
|
71
71
|
- masato.ikeda@gmail.com
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- natsort
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -79,6 +80,7 @@ files:
|
|
79
80
|
- LICENSE.txt
|
80
81
|
- README.md
|
81
82
|
- Rakefile
|
83
|
+
- bin/natsort
|
82
84
|
- lib/natsort.rb
|
83
85
|
- lib/natsort/version.rb
|
84
86
|
- natsort.gemspec
|
@@ -105,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
107
|
version: '0'
|
106
108
|
requirements: []
|
107
109
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.4.5
|
109
111
|
signing_key:
|
110
112
|
specification_version: 4
|
111
113
|
summary: Provides natural sorting methods to Enumerable.
|