ame 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ Expectations do
4
+ expect Ame::Help::Console.new.to.receive.for_dispatch(:method, :subclass) do |o|
5
+ Class.new(Ame::Root){
6
+ help o
7
+ }.help_for_dispatch :method, :subclass
8
+ end
9
+
10
+ expect Ame::Help::Console.new.to.receive.for_method(:method) do |o|
11
+ Class.new(Ame::Root){
12
+ help o
13
+ }.help_for_method :method
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ Expectations do
4
+ expect Ame::MissingArgument do Ame::Splat.new('a', 'd').process({}, [], []) end
5
+
6
+ expect(-1) do Ame::Splat.new('a', 'd').arity end
7
+
8
+ expect [] do Ame::Splat.new('a', 'd', :optional => true).process({}, [], []) end
9
+ expect ['arg'] do Ame::Splat.new('a', 'd').process({}, [], %w[arg]) end
10
+ expect [1, 2] do Ame::Splat.new('a', 'd', :type => Integer).process({}, [], %w[1 2]) end
11
+ end
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ame
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Nikolai Weibull
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-09-05 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: lookout
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 2
32
+ - 0
33
+ version: "2.0"
34
+ type: :development
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rbtags
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 27
45
+ segments:
46
+ - 0
47
+ - 1
48
+ - 0
49
+ version: 0.1.0
50
+ type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: yard
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ hash: 7
61
+ segments:
62
+ - 0
63
+ - 6
64
+ - 0
65
+ version: 0.6.0
66
+ type: :development
67
+ version_requirements: *id003
68
+ description: |
69
+ # Ame #
70
+
71
+ Ame is a simple command-line parser and build system. Its aim is to replace
72
+ the need for other command-line parsers and Rake.
73
+
74
+ email: now@bitwi.se
75
+ executables: []
76
+
77
+ extensions: []
78
+
79
+ extra_rdoc_files: []
80
+
81
+ files:
82
+ - lib/ame/argument.rb
83
+ - lib/ame/arguments.rb
84
+ - lib/ame/class.rb
85
+ - lib/ame/help/console.rb
86
+ - lib/ame/help.rb
87
+ - lib/ame/method.rb
88
+ - lib/ame/methods.rb
89
+ - lib/ame/option.rb
90
+ - lib/ame/options.rb
91
+ - lib/ame/root.rb
92
+ - lib/ame/splat.rb
93
+ - lib/ame/types/array.rb
94
+ - lib/ame/types/boolean.rb
95
+ - lib/ame/types/integer.rb
96
+ - lib/ame/types/string.rb
97
+ - lib/ame/types.rb
98
+ - lib/ame/version.rb
99
+ - lib/ame.rb
100
+ - test/ame/types/array.rb
101
+ - test/ame/types/boolean.rb
102
+ - test/ame/types/integer.rb
103
+ - test/ame/types/string.rb
104
+ - test/unit/ame/argument.rb
105
+ - test/unit/ame/arguments.rb
106
+ - test/unit/ame/help/console.rb
107
+ - test/unit/ame/method.rb
108
+ - test/unit/ame/methods.rb
109
+ - test/unit/ame/option.rb
110
+ - test/unit/ame/options.rb
111
+ - test/unit/ame/root.rb
112
+ - test/unit/ame/splat.rb
113
+ - README
114
+ - Rakefile
115
+ has_rdoc: true
116
+ homepage: http://github.com/now/ame
117
+ licenses: []
118
+
119
+ post_install_message:
120
+ rdoc_options: []
121
+
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ hash: 3
139
+ segments:
140
+ - 0
141
+ version: "0"
142
+ requirements: []
143
+
144
+ rubyforge_project:
145
+ rubygems_version: 1.3.7
146
+ signing_key:
147
+ specification_version: 3
148
+ summary: Ame is a simple command-line parser and build system.
149
+ test_files: []
150
+