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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3b696276dd498d31dea76c7d022db1958adde30
4
- data.tar.gz: ad37996668e96049f8b642a28aa07594dacd259c
3
+ metadata.gz: d4efb25b2bb58d3696fd6c8bf5e1ebca6553448b
4
+ data.tar.gz: d0015165e0b249601e2ed2ee96c5ea57b3e3cea4
5
5
  SHA512:
6
- metadata.gz: bdaf1bc55971aed4d0c55ccbb2da7733bcb532128beb987638783b4d773f7f869d045624d281c2206ec3329ff018f3ef11b8e5cb4b410743c668a00b003c141c
7
- data.tar.gz: 7e0df7a02b9db4d0cda68beb449b5fd8e0db600dfa5c791591a3d14381969339963103675ec5394fb89775cb189d970d618aa8283739979ad2e5add59a5720bd
6
+ metadata.gz: 5ca957e85a31b66ff1b074993bac964377b37e4fbd2188bad1d9e4d1c31864bcc96621c8e25cc2d795df8cb57ce62780680d9ed7ded01855ffc74ffca4850dc3
7
+ data.tar.gz: 43f157360b0dc51717f54c5b73de78883dbaa5b7aa0a7dc0f4a16c22db20b34289b2338f87dd26bd8f23501f4d4e2df765cfe3d92609bc56e196758a1becba33
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
- - 2.1.2
4
+ - 2.1.5
5
+ - 2.2.0
5
6
  notifications:
6
7
  email: false
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Natsort
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: 2014-09-03 00:00:00.000000000 Z
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.2.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.