opt-simple 0.9.9 → 0.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/test/test_internals.rb +21 -0
  2. metadata +3 -2
@@ -0,0 +1,21 @@
1
+ require 'opt_simple'
2
+ require 'test/unit'
3
+ require 'test_unit_extensions'
4
+
5
+ class InternalsTest < Test::Unit::TestCase
6
+ def setup
7
+ @args = %w[infile1 -v infile2 -o out.txt infile3 -- -infile4 infile5]
8
+ @os = OptSimple.new({},@args)
9
+ @block = Proc.new {
10
+ flag '-v'
11
+ argument '-o'
12
+ }
13
+ end
14
+
15
+ must "not freeze strings" do
16
+ options = @os.parse_opts! &@block
17
+ assert_nothing_raised do
18
+ options[:o].gsub!('.txt','.out')
19
+ end
20
+ end
21
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: opt-simple
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9
5
+ version: 0.9.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ethan Stryker
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-09 00:00:00 +01:00
13
+ date: 2011-10-24 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -29,6 +29,7 @@ files:
29
29
  - test/test_help.rb
30
30
  - test/test_usage.rb
31
31
  - test/test_arglist.rb
32
+ - test/test_internals.rb
32
33
  - test/test_return.rb
33
34
  - extensions/test_unit_extensions.rb
34
35
  - README