main 5.3.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjFhOTg5ZWYyNTlhZjgzYzIxOTBkMWE0YzUyNzEzMGQ0MTc5ZjIzYg==
4
+ NDNiMzU0MjNhZDhjYTJhMzY0OGRlYTZjZWJiNDcwMTFkNjkzNDNlYg==
5
5
  data.tar.gz: !binary |-
6
- MjkyMDA5NTc0MDM3ZjUwMjRmNTY2ODdiNzdkMWZkOWE5N2QyYzU0ZA==
6
+ NTkxZDc1ODQ2ZWQ5NzliYWNjZGY2ZTFkNzU3NDI5ZDYwNDY4Mjk1Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Nzc3M2MyMWQwZjM4NjJlNDlhZjAyZmQ3MjdjMWE1NTJlMTkyNDYzMThlNDE4
10
- YTU3ZTBlZTM5YzlmNjUxYmMwMjU1OTk0Nzg5ZWM0NzdjZTA4ODA0MmM3ZTRm
11
- ZmIzMDlhYzU5MDc5Y2Y5N2M5YmRkODQ5OTAzODNjOGM1NmM1OTI=
9
+ NTg3NjY5NTJmOWE0N2QwYjAyOGY4ODgzNWM3NTVkNDYwZDM0YzNkYmViNmRm
10
+ ZjMxMWE4ZGViNjg5ZGY0ZWRmYmRkZDE4NzFkMjg3YzY5ZWQzZjBhYjRlYjIz
11
+ NmFiMTJjZDY5ZmEzNmFjOWE3MGU4ZjljZjgzYjhlYTVkYTVlNmQ=
12
12
  data.tar.gz: !binary |-
13
- MzYxODA4MmQwNTJhZTM0MDY0ZTQ2ODM2NmMxMTQ1OTgzMjdiZjc0OWY3ZjQ4
14
- Y2E4MDE4NTc0OWI4MWE1YzJiYWYxY2UwNTlhNGI2Y2ZlNDYwMWE4MWUyMTVj
15
- OTY3YzEzNzE4MWZjOGNjMDVhZTc4NWIwZjVlODExMjI4Y2E5YWU=
13
+ YmE1MWU1MmE3MDhiMzhiN2EzZGMxNTEyYjYyZjhiMzRlMWEwNTNkOWIxYWE1
14
+ NzJmODkyNDE3MDY0MmJlOWJiZmFkODhjMmEyYWRjNmM1YTQ4NjY5MmI1MDJh
15
+ YjEzMTFlMTU1MTRjNjM3MjY5ODNmNzZkZjdiZDczODVjNDdkMzY=
@@ -1,7 +1,7 @@
1
1
  module Main
2
2
  # top level constants
3
3
  #
4
- Main::VERSION = '5.3.2' unless
4
+ Main::VERSION = '6.0.0' unless
5
5
  defined? Main::VERSION
6
6
  def Main.version() Main::VERSION end
7
7
 
@@ -26,7 +26,6 @@ module Main
26
26
  'fattr' => [ 'fattr' , '>= 2.2.0' ] ,
27
27
  'arrayfields' => [ 'arrayfields' , '>= 4.7.4' ] ,
28
28
  'map' => [ 'map' , '>= 5.1.0' ] ,
29
- 'pry' => [ 'pry' , '>= 0.9' ] ,
30
29
  }
31
30
  end
32
31
 
@@ -357,7 +357,7 @@ module Main
357
357
  defaults!
358
358
  validate!
359
359
 
360
- argv.push(*ignore[1..-1]) unless ignore.empty?
360
+ argv.push(*ignore) unless ignore.empty?
361
361
 
362
362
  return self
363
363
  ensure
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "main"
6
- spec.version = "5.3.2"
6
+ spec.version = "6.0.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "main"
9
9
  spec.description = "a class factory and dsl for generating command line programs real quick"
@@ -64,8 +64,6 @@ Gem::Specification::new do |spec|
64
64
 
65
65
  spec.add_dependency(*["map", ">= 5.1.0"])
66
66
 
67
- spec.add_dependency(*["pry", ">= 0.9"])
68
-
69
67
 
70
68
  spec.extensions.push(*[])
71
69
 
@@ -935,6 +935,20 @@ class T < Test::Unit::TestCase
935
935
  assert( logger.class==Main::Logger, "setting logger did not work" )
936
936
  assert( logger.device==STDERR, "setting logger did not work" )
937
937
  end
938
+
939
+ # argv with a '--' behavior
940
+ #
941
+ def test_0800
942
+ a = nil
943
+ assert_nothing_raised{
944
+ main(%w[arg --foo=42 -- --bar]){
945
+ argument('arg')
946
+ option('--foo=foo')
947
+ define_method('run'){ a = @argv }
948
+ }
949
+ }
950
+ assert a == ["--", "--bar"]
951
+ end
938
952
  end
939
953
 
940
954
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: main
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.2
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-22 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: 5.1.0
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: '0.9'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: '0.9'
83
69
  description: a class factory and dsl for generating command line programs real quick
84
70
  email: ara.t.howard@gmail.com
85
71
  executables: []