dates 1.0.1 → 1.0.2
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/README.mdown +6 -6
- data/bin/dates +7 -3
- data/lib/version.rb +1 -1
- metadata +7 -7
data/README.mdown
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
Dates keeps track of things you two have been meaning to do, and learns what's been fun and what hasn't along several different dimensions (adventure, romantic, intellectual, athletic).
|
1
|
+
Dates keeps track of things you two have been meaning to do, and learns what's been fun and what hasn't along several different dimensions (i.e., adventure, romantic, intellectual, athletic; though, there aren't actually any assumptions about the dimensions you can use).
|
2
2
|
|
3
3
|
## Usage
|
4
4
|
|
5
|
-
$
|
5
|
+
$ dates --help
|
6
6
|
dates 1.0.0-beta, max & daphne.
|
7
|
-
Usage: dates
|
7
|
+
Usage: dates [command] [options] <ideas-file>
|
8
8
|
|
9
9
|
To see help for a specific command, use the --help switch on that command.
|
10
10
|
|
@@ -18,14 +18,14 @@ Dates keeps track of things you two have been meaning to do, and learns what's b
|
|
18
18
|
|
19
19
|
To run it, the simplest way is just to provide it with an ideas file and nothing else:
|
20
20
|
|
21
|
-
$
|
21
|
+
$ dates ideas.rb
|
22
22
|
watch _serenity_: (intellectual: 5, athletic: 0, adventure: 2, romantic: 4)
|
23
23
|
|
24
24
|
### Commands
|
25
25
|
|
26
26
|
The `choose` command picks a date, and it takes two options:
|
27
27
|
|
28
|
-
$
|
28
|
+
$ dates choose --help
|
29
29
|
dates 1.0.0-beta, max & daphne.
|
30
30
|
Options for `choose` command:
|
31
31
|
--weather, -w <f>: Current weather score [0-9] (default: 5.0)
|
@@ -33,7 +33,7 @@ The `choose` command picks a date, and it takes two options:
|
|
33
33
|
|
34
34
|
The `list` command prints out the contents of an ideas file:
|
35
35
|
|
36
|
-
$
|
36
|
+
$ dates list --help
|
37
37
|
dates 1.0.0-beta, max & daphne.
|
38
38
|
Options for `list` command:
|
39
39
|
--incomplete, -i: Only the incomplete dates
|
data/bin/dates
CHANGED
@@ -8,7 +8,7 @@ global_opts = Trollop::options do
|
|
8
8
|
version VERSION_STR
|
9
9
|
banner <<-EOS
|
10
10
|
#{VERSION_STR}
|
11
|
-
Usage: dates
|
11
|
+
Usage: dates [command] [options] <ideas-file>
|
12
12
|
|
13
13
|
To see help for a specific command, use the --help switch on that command.
|
14
14
|
|
@@ -22,7 +22,11 @@ EOS
|
|
22
22
|
stop_on SUB_COMMANDS
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
if ARGV.length < 2
|
26
|
+
Trollop::die "Usage: dates [command] [opts] <ideas-file>"
|
27
|
+
exit 1
|
28
|
+
end
|
29
|
+
cmd = ARGV.shift
|
26
30
|
|
27
31
|
cmd_opts = case cmd
|
28
32
|
when "list"
|
@@ -42,7 +46,7 @@ cmd_opts = case cmd
|
|
42
46
|
end
|
43
47
|
|
44
48
|
if ARGV.length < 1
|
45
|
-
Trollop::die "
|
49
|
+
Trollop::die "Usage: dates [command] [opts] <ideas-file>"
|
46
50
|
exit 1
|
47
51
|
end
|
48
52
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-15 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: statsample
|
16
|
-
requirement: &
|
16
|
+
requirement: &70210141108340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70210141108340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: colorize
|
27
|
-
requirement: &
|
27
|
+
requirement: &70210141103020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70210141103020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: trollop
|
38
|
-
requirement: &
|
38
|
+
requirement: &70210141102340 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70210141102340
|
47
47
|
description: Dates keeps track of things you two have been meaning to do, and learns
|
48
48
|
to make good suggestions as you teach it.
|
49
49
|
email: maxhodak@gmail.com
|