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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b625aae48b254cf382ba5fbd8a15632cd196d60
4
- data.tar.gz: 0e93d32a02dd9188393fc40c0e0f7547799e0881
3
+ metadata.gz: ed2c82d721d51141713465e09bf5650ec5f3df0f
4
+ data.tar.gz: 3b8887b0a6ad8a980cd4693e8107d31c026c7486
5
5
  SHA512:
6
- metadata.gz: 60663bb433fbdb7dba0b4e7c7328349c256921d2060390484937c6c6a842ca6ab3b69e9c044b417f740b4ffd855eddd1e046ed4e4e133fe05fc6442f78ac3918
7
- data.tar.gz: dff68ad0407bca257694e0d4a2eb877abd7d364aa0e0c874dabd1711a8d690727a2392d31bd8ac08201be9e06a6f9a23f5ab1d64800ac3d618f6e36b7c5ac3ee
6
+ metadata.gz: a3cf035b86140d83819485280299e56efbe6d2de9406a88d3b4b179730e6ad05c4ab970eee37b7ce49bb70bfd1dab0f1756dcf8c043c7aa95f3133c1de48a3c4
7
+ data.tar.gz: c21f92f094a490059d4292fc736a4bf744916921528d052d4022f8ffc7f030508cea31b875042c4bccbfc703cd6e05c86e03ccdd1dc9425cc13347e5fc3f5c85
data/.gitignore CHANGED
@@ -16,9 +16,6 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
 
19
- configuration.yml
20
- configuration.yml.otb
21
- configuration.yml.personal
22
19
  logs/*.log
23
20
  troo.db
24
21
  tags
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) Have fun, and tweet me @gavinlaking if you like it.
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
 
@@ -1,7 +1,7 @@
1
1
  key: some_key
2
2
  secret: some_secret
3
3
  oauth_token: some_oauth_token
4
- oauth_token_secret: some_oauth_token_secret
4
+ oauth_token_secret:
5
5
  main_db: 1
6
6
  test_db: 2
7
7
 
@@ -4,5 +4,5 @@ Scenario:
4
4
  When I run `troo version`
5
5
  Then the output should contain:
6
6
  """
7
- troo 0.0.2
7
+ troo 0.0.3
8
8
  """
data/lib/troo/troo.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "date"
2
2
  require "erb"
3
+ require "fileutils"
3
4
  require "logger"
4
5
  require "json"
5
6
  require "ohm"
data/lib/troo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Troo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
4
4
 
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(File.dirname(__FILE__) + "/../configuration.yml"))
8
+ @config ||= OpenStruct.new(YAML.load_file(Dir.home + "/.trooconf"))
9
9
  rescue Errno::ENOENT
10
- warn "Cannot continue, no configuration file."
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: troo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Laking