troo 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -3
- data/README.md +6 -1
- data/configuration.yml.example +1 -1
- data/features/version.feature +1 -1
- data/lib/troo/troo.rb +1 -0
- data/lib/troo/version.rb +1 -1
- data/lib/troo.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed2c82d721d51141713465e09bf5650ec5f3df0f
|
4
|
+
data.tar.gz: 3b8887b0a6ad8a980cd4693e8107d31c026c7486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3cf035b86140d83819485280299e56efbe6d2de9406a88d3b4b179730e6ad05c4ab970eee37b7ce49bb70bfd1dab0f1756dcf8c043c7aa95f3133c1de48a3c4
|
7
|
+
data.tar.gz: c21f92f094a490059d4292fc736a4bf744916921528d052d4022f8ffc7f030508cea31b875042c4bccbfc703cd6e05c86e03ccdd1dc9425cc13347e5fc3f5c85
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Code Climate](https://codeclimate.com/github/gavinlaking/troo.png)](https://codeclimate.com/github/gavinlaking/troo)
|
2
|
+
|
1
3
|
# Troo
|
2
4
|
|
3
5
|
CLI interface for Trello. Named after Trello's mascot 'Roo'.
|
@@ -26,6 +28,7 @@ CLI interface for Trello. Named after Trello's mascot 'Roo'.
|
|
26
28
|
## Requirements
|
27
29
|
|
28
30
|
- A Trello account with API key/secret.
|
31
|
+
- MacOSX/Linux (I've not tested with Windows, sorry.)
|
29
32
|
- Ruby 2.1.0 (>= 1.9.3 should be fine.)
|
30
33
|
- Redis.
|
31
34
|
|
@@ -55,7 +58,9 @@ You will need user authentication tokens to access your Trello account.
|
|
55
58
|
|
56
59
|
https://trello.com/1/connect?key=your_key_here&name=troo&response_type=token&scope=read,write
|
57
60
|
|
58
|
-
3)
|
61
|
+
3) Add your authentication tokens to the configuration file `.trooconf` in your home directory. (This file will be created for you the first time you run `troo`)
|
62
|
+
|
63
|
+
4) Have fun, and tweet me @gavinlaking if you like it.
|
59
64
|
|
60
65
|
## Todo
|
61
66
|
|
data/configuration.yml.example
CHANGED
data/features/version.feature
CHANGED
data/lib/troo/troo.rb
CHANGED
data/lib/troo/version.rb
CHANGED
data/lib/troo.rb
CHANGED
@@ -5,9 +5,13 @@ module Troo
|
|
5
5
|
class InvalidAccessToken < StandardError; end
|
6
6
|
|
7
7
|
def self.config
|
8
|
-
@config ||= OpenStruct.new(YAML.load_file(
|
8
|
+
@config ||= OpenStruct.new(YAML.load_file(Dir.home + "/.trooconf"))
|
9
9
|
rescue Errno::ENOENT
|
10
|
-
warn "
|
10
|
+
warn "No configuration file found..."
|
11
|
+
src = File.dirname(__FILE__) + "/../configuration.yml.example"
|
12
|
+
dst = Dir.home + "/.trooconf"
|
13
|
+
FileUtils.cp(src, dst)
|
14
|
+
warn "New configuration file created at '#{Dir.home}/.trooconf'"
|
11
15
|
exit!
|
12
16
|
end
|
13
17
|
|