hab 0.0.6 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7ca5334d97644490d04689636eb2cfa79278425
4
- data.tar.gz: 981e6cbdac2800c5fb09e8352727592ae271571d
3
+ metadata.gz: 9a8943de9e2351b49249281b15fd18d0962ca853
4
+ data.tar.gz: 17b643b5ea5de38c0b7cc7a0dc03321c46197ce5
5
5
  SHA512:
6
- metadata.gz: 8ef7bf36689f2f8aeee7be4ec9a84f6fdd983fc11b29607545a6711c40bbbb473d9fa85397551496b37343fe3cfda478c75f7fb8799e25eacc63d7136bb7304d
7
- data.tar.gz: 0dff99969e099e3c9eb0f8f73efc6f42d2063489c3e444a0e5fb22581c101a398d364909578d7a043fd79332a1b469795764c142fd54a51b83eaa89058d413cb
6
+ metadata.gz: 9925a4f5eb62d33a2bd9d545f4f6d9a07c4af8cf4848268d10eff7c8f69e3b7be2ac0955309dac3157eb547bbbfd9e9919728669f9a24b1997f5e7289e439902
7
+ data.tar.gz: 384c500afe2a5a309ea8e26126950556db74851fc43499d72f8ab5786d3ecdb47ba6e46c954b9e593609851cbfc200366670ab49e6b9b222f47c36b3e14e9d57
data/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # HRPG
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
- $ hrpg stats | grep HP
8
+ $ hab stats | grep HP
9
9
  # HP 47
10
10
  # MAX_HP 50
11
11
 
12
- $ hrpg todos
12
+ $ hab todos
13
13
  # Feed the fish
14
14
  # Sort mail
15
15
 
16
- $ echo "Remember the milk" | hrpg todos
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 hrpg
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 ~/.hrpg
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
- $ hrpg status
44
+ $ hab status
45
45
  ```
46
46
 
47
- ![hrpg status screenshot](https://dl.dropboxusercontent.com/u/443279/hrpg_status.png)
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
- $ hrpg stats
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
- $ hrpg habits
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
- $ hrpg dailies
75
+ $ hab dailies
76
76
  # Feed the fish
77
77
  # Sort mail
78
78
 
79
- $ hrpg dailies --completed
79
+ $ hab dailies --completed
80
80
  # Feed the fish
81
81
 
82
- $ hrpg dailies --uncompleted
82
+ $ hab dailies --uncompleted
83
83
  # Sort mail
84
84
  ```
85
85
 
86
86
  List your todos:
87
87
  ```sh
88
- $ hrpg todos
88
+ $ hab todos
89
89
  # Remember the milk
90
90
  # Put the bins out
91
91
 
92
- $ hrpg todos --completed
92
+ $ hab todos --completed
93
93
  # Remember the milk
94
94
 
95
- $ hrpg todos --uncompleted
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" | hrpg todos
101
+ echo "Remember the milk" | hab todos
102
102
  ```
103
103
 
104
104
  For more information:
105
105
  ```sh
106
- $ hrpg help
106
+ $ hab help
107
107
  ```
data/bin/hab CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'commander/import'
4
4
  require 'hab'
5
5
 
6
- program :version, '0.0.1'
6
+ program :version, Hab::VERSION
7
7
  program :description, <<-BLOCK
8
8
  A command line interface for Habitica: Your Life the Role Playing Game
9
9
 
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 'habit_client', '0.0.6'
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
@@ -1,3 +1,3 @@
1
1
  module Hab
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
data/lib/hab.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'yaml'
2
2
  require 'commander'
3
- require 'habit_client'
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 ||= HabitClient.new(config.user_id, config.api_token)
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.6
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: habit_client
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.6
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.6
124
+ version: 0.0.7
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rumoji
127
127
  requirement: !ruby/object:Gem::Requirement