acclaim 0.3.0 → 0.3.1
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.
- data/Gemfile +5 -1
- data/lib/acclaim/option/type/pathname.rb +22 -0
- data/lib/acclaim/version.rb +1 -1
- metadata +6 -5
data/Gemfile
CHANGED
@@ -2,7 +2,11 @@ source :rubygems
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
{
|
5
|
+
{
|
6
|
+
ribbon: '~/projects/ribbon',
|
7
|
+
rookie: '~/projects/rookie',
|
8
|
+
jewel: '~/projects/jewel'
|
9
|
+
}.each do |project, path|
|
6
10
|
path = File.expand_path path
|
7
11
|
gem project.to_s, path: path if Dir.exists? path
|
8
12
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'acclaim/option/type'
|
2
|
+
require 'uri'
|
3
|
+
|
4
|
+
module Acclaim
|
5
|
+
class Option
|
6
|
+
module Type
|
7
|
+
|
8
|
+
# Handles URIs given as arguments in the command line.
|
9
|
+
module Pathname
|
10
|
+
|
11
|
+
# Parses an +URI+ from the string.
|
12
|
+
def self.handle(str)
|
13
|
+
::Pathname.new str
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
self.accept ::Pathname, &Pathname.method(:handle)
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/acclaim/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acclaim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ribbon
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/acclaim/option/type/date_time.rb
|
92
92
|
- lib/acclaim/option/type/float.rb
|
93
93
|
- lib/acclaim/option/type/integer.rb
|
94
|
+
- lib/acclaim/option/type/pathname.rb
|
94
95
|
- lib/acclaim/option/type/rational.rb
|
95
96
|
- lib/acclaim/option/type/string.rb
|
96
97
|
- lib/acclaim/option/type/symbol.rb
|
@@ -116,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
117
|
version: '0'
|
117
118
|
segments:
|
118
119
|
- 0
|
119
|
-
hash:
|
120
|
+
hash: 2220657270614023543
|
120
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
122
|
none: false
|
122
123
|
requirements:
|
@@ -125,10 +126,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
126
|
version: '0'
|
126
127
|
segments:
|
127
128
|
- 0
|
128
|
-
hash:
|
129
|
+
hash: 2220657270614023543
|
129
130
|
requirements: []
|
130
131
|
rubyforge_project:
|
131
|
-
rubygems_version: 1.8.
|
132
|
+
rubygems_version: 1.8.24
|
132
133
|
signing_key:
|
133
134
|
specification_version: 3
|
134
135
|
summary: Command-line option parser and command interface.
|