hab 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -18
- data/bin/hab +1 -1
- data/hab.gemspec +1 -1
- data/lib/hab/version.rb +1 -1
- data/lib/hab.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a8943de9e2351b49249281b15fd18d0962ca853
|
4
|
+
data.tar.gz: 17b643b5ea5de38c0b7cc7a0dc03321c46197ce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9925a4f5eb62d33a2bd9d545f4f6d9a07c4af8cf4848268d10eff7c8f69e3b7be2ac0955309dac3157eb547bbbfd9e9919728669f9a24b1997f5e7289e439902
|
7
|
+
data.tar.gz: 384c500afe2a5a309ea8e26126950556db74851fc43499d72f8ab5786d3ecdb47ba6e46c954b9e593609851cbfc200366670ab49e6b9b222f47c36b3e14e9d57
|
data/README.md
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
#
|
1
|
+
# Hab
|
2
2
|
|
3
3
|
Another command line interface for HabitRPG: Your Life the Role Playing Game.
|
4
4
|
|
5
5
|
Mostly intended to play nice with other unixy programs i.e.
|
6
6
|
|
7
7
|
```sh
|
8
|
-
$
|
8
|
+
$ hab stats | grep HP
|
9
9
|
# HP 47
|
10
10
|
# MAX_HP 50
|
11
11
|
|
12
|
-
$
|
12
|
+
$ hab todos
|
13
13
|
# Feed the fish
|
14
14
|
# Sort mail
|
15
15
|
|
16
|
-
$ echo "Remember the milk" |
|
16
|
+
$ echo "Remember the milk" | hab todos
|
17
17
|
# Remember the milk
|
18
18
|
# Feed the fish
|
19
19
|
# Sort mail
|
@@ -23,14 +23,14 @@ $ echo "Remember the milk" | hrpg todos
|
|
23
23
|
|
24
24
|
Install it with:
|
25
25
|
|
26
|
-
$ gem install
|
26
|
+
$ gem install hab
|
27
27
|
|
28
28
|
## Usage
|
29
29
|
|
30
30
|
To use you need to set up a config file with your settings:
|
31
31
|
|
32
32
|
```yaml
|
33
|
-
# in ~/.
|
33
|
+
# in ~/.habitica
|
34
34
|
user_id: YOUR_HABITRPG_USER_ID
|
35
35
|
api_token: YOUR_HABITRPG_API_TOKEN
|
36
36
|
```
|
@@ -41,14 +41,14 @@ Once your config is set up the following commands should work.
|
|
41
41
|
|
42
42
|
Show your current status (pretty formatted):
|
43
43
|
```sh
|
44
|
-
$
|
44
|
+
$ hab status
|
45
45
|
```
|
46
46
|
|
47
|
-
![
|
47
|
+
![hab status screenshot](https://dl.dropboxusercontent.com/u/443279/hrpg_status.png)
|
48
48
|
|
49
49
|
Show your full stats:
|
50
50
|
```sh
|
51
|
-
$
|
51
|
+
$ hab stats
|
52
52
|
# HP 47.1
|
53
53
|
# MAX_HP 50
|
54
54
|
# MP 44
|
@@ -65,43 +65,43 @@ $ hrpg stats
|
|
65
65
|
|
66
66
|
List your habits:
|
67
67
|
```sh
|
68
|
-
$
|
68
|
+
$ hab habits
|
69
69
|
# Study
|
70
70
|
# Turn out the lights
|
71
71
|
```
|
72
72
|
|
73
73
|
List your dailies:
|
74
74
|
```sh
|
75
|
-
$
|
75
|
+
$ hab dailies
|
76
76
|
# Feed the fish
|
77
77
|
# Sort mail
|
78
78
|
|
79
|
-
$
|
79
|
+
$ hab dailies --completed
|
80
80
|
# Feed the fish
|
81
81
|
|
82
|
-
$
|
82
|
+
$ hab dailies --uncompleted
|
83
83
|
# Sort mail
|
84
84
|
```
|
85
85
|
|
86
86
|
List your todos:
|
87
87
|
```sh
|
88
|
-
$
|
88
|
+
$ hab todos
|
89
89
|
# Remember the milk
|
90
90
|
# Put the bins out
|
91
91
|
|
92
|
-
$
|
92
|
+
$ hab todos --completed
|
93
93
|
# Remember the milk
|
94
94
|
|
95
|
-
$
|
95
|
+
$ hab todos --uncompleted
|
96
96
|
# Put the bins out
|
97
97
|
```
|
98
98
|
|
99
99
|
Add tasks by using STDIN:
|
100
100
|
```sh
|
101
|
-
echo "Remember the milk" |
|
101
|
+
echo "Remember the milk" | hab todos
|
102
102
|
```
|
103
103
|
|
104
104
|
For more information:
|
105
105
|
```sh
|
106
|
-
$
|
106
|
+
$ hab help
|
107
107
|
```
|
data/bin/hab
CHANGED
data/hab.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency 'vcr', '~> 2.9'
|
23
23
|
spec.add_development_dependency 'pry', '~> 0.10'
|
24
24
|
spec.add_development_dependency 'rubocop', '~> 0.32'
|
25
|
-
spec.add_runtime_dependency '
|
25
|
+
spec.add_runtime_dependency 'habitica_client', '0.0.7'
|
26
26
|
spec.add_runtime_dependency 'rumoji', '~> 0.4'
|
27
27
|
spec.add_runtime_dependency 'colorize', '~> 0.7'
|
28
28
|
spec.add_runtime_dependency 'commander', '~> 4.3'
|
data/lib/hab/version.rb
CHANGED
data/lib/hab.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'commander'
|
3
|
-
require '
|
3
|
+
require 'habitica_client'
|
4
4
|
|
5
5
|
module Hab
|
6
6
|
require 'hab/version'
|
@@ -13,7 +13,7 @@ module Hab
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.client
|
16
|
-
@@client ||=
|
16
|
+
@@client ||= HabiticaClient.new(config.user_id, config.api_token)
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.status
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Mckellar
|
@@ -109,19 +109,19 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.32'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: habitica_client
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.0.
|
117
|
+
version: 0.0.7
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.0.
|
124
|
+
version: 0.0.7
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rumoji
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|