troo 0.0.13 → 0.0.14

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: 355a88b81a74299dc28bff18c0a914cbcf5afda2
4
- data.tar.gz: 0cacd07a0f2d44cc02809293dcfae5cebbc5bdab
3
+ metadata.gz: cc2cc51307a49287d28d92a71db4c8655328f7b2
4
+ data.tar.gz: 70f29bfe2891c56177bf113a4d9676fddcd02d63
5
5
  SHA512:
6
- metadata.gz: 4f59cc95a9bd5520f7002f6bd580eb58b03dc32ff2c4457248121915a19194246bbcc59cc7e120b00603dc8ed230504f78e5279a06d943b40ab6adb0a40796a2
7
- data.tar.gz: ff15f1ab11fe9b71c3858870727d16d8b251acc1cf1e8fb09a12a6706f7dbe19805555955a86fd702ff2d72a588e0af3c89f132902baf10801479c9266f5f390
6
+ metadata.gz: bea88ff8f5717561581c8d4eadb792328e2901e4282583c301c1e791aed7b053c933c0c1df6e98f6e813cf6a23072280b00ba2bb5f79a0a0f5b6a28c3ce22b7b
7
+ data.tar.gz: 849ffb4ddd66b6458becc00d6cb1e8e8cd7197e2de4aa4195191bb2e6e12bb92940c73d5ea2d6f922b8c71d7af71fb7b4da6ee09d82c93782ec2dfd5c046e850
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- troo (0.0.13)
4
+ troo (0.0.14)
5
5
  addressable
6
6
  curses (= 1.0.1)
7
7
  dispel
@@ -5,7 +5,7 @@ module Troo
5
5
 
6
6
  class << self
7
7
  # @param []
8
- # @param []
8
+ # @param [, NilClass]
9
9
  # @param [Hash]
10
10
  # @return [String]
11
11
  def dispatch(value, id = nil, options = {})
@@ -14,9 +14,9 @@ module Troo
14
14
  end
15
15
 
16
16
  # @param []
17
- # @param []
17
+ # @param [, NilClass]
18
18
  # @param [Hash]
19
- # @return []
19
+ # @return [Troo::Commands::Add]
20
20
  def initialize(value, id = nil, options = {})
21
21
  @value, @id, @options = value, id, options
22
22
  end
@@ -12,7 +12,7 @@ module Troo
12
12
 
13
13
  # @param []
14
14
  # @param []
15
- # @return []
15
+ # @return [Troo::Commands::Default]
16
16
  def initialize(klass, id)
17
17
  @klass, @id = klass, id
18
18
  end
@@ -3,19 +3,19 @@ module Troo
3
3
  module Move
4
4
  class Card
5
5
  class << self
6
- # @param []
7
- # @param []
8
- # @param []
6
+ # @param [String]
7
+ # @param [String]
8
+ # @param [String]
9
9
  # @return [String]
10
10
  def dispatch(card_id, list_id, board_id = nil)
11
11
  new(card_id, list_id, board_id).move
12
12
  end
13
13
  end
14
14
 
15
- # @param []
16
- # @param []
17
- # @param []
18
- # @return []
15
+ # @param [String]
16
+ # @param [String]
17
+ # @param [String]
18
+ # @return [Troo::Commands::Move::Card]
19
19
  def initialize(card_id, list_id, board_id = nil)
20
20
  @card_id, @list_id, @board_id = card_id, list_id, board_id
21
21
  end
@@ -5,7 +5,7 @@ module Troo
5
5
 
6
6
  class << self
7
7
  # @param []
8
- # @param []
8
+ # @param [, NilClass]
9
9
  # @return [String]
10
10
  def dispatch(klass, id = nil)
11
11
  new(klass, id).refresh
@@ -13,8 +13,8 @@ module Troo
13
13
  end
14
14
 
15
15
  # @param []
16
- # @param []
17
- # @return []
16
+ # @param [, NilClass]
17
+ # @return [Troo::Commands::Refresh]
18
18
  def initialize(klass, id = nil)
19
19
  @klass, @id = klass, id
20
20
  end
@@ -29,10 +29,10 @@ module Troo
29
29
  end
30
30
 
31
31
  def resources
32
- @resources ||= external_ids.map do |id|
33
- Retrieval::Remote.fetch(Remote::Board, id, mode: :board)
34
-
35
- Retrieval::Remote.fetch(Remote::Comment, id, mode: :board)
32
+ @resources ||= external_ids.inject([]) do |acc, id|
33
+ acc << Retrieval::Remote.fetch(Remote::Board, id, mode: :board)
34
+ acc << Retrieval::Remote.fetch(Remote::Comment, id, mode: :board)
35
+ acc
36
36
  end
37
37
  end
38
38
 
@@ -5,7 +5,7 @@ module Troo
5
5
 
6
6
  class << self
7
7
  # @param []
8
- # @param []
8
+ # @param [, NilClass]
9
9
  # @return [String]
10
10
  def dispatch(klass, id = nil)
11
11
  new(klass, id).render
@@ -13,7 +13,7 @@ module Troo
13
13
  end
14
14
 
15
15
  # @param []
16
- # @param []
16
+ # @param [, NilClass]
17
17
  # @return [Troo::Commands::Show]
18
18
  def initialize(klass, id = nil)
19
19
  @klass, @id = klass, id
@@ -8,6 +8,7 @@ module Troo
8
8
  end
9
9
  end
10
10
 
11
+ # @return [Troo::Commands::ShowBoards]
11
12
  def initialize; end
12
13
 
13
14
  # @return [String]
@@ -4,15 +4,15 @@ module Troo
4
4
  attr_reader :id
5
5
 
6
6
  class << self
7
- # @param []
7
+ # @param [String]
8
8
  # @return [String]
9
9
  def dispatch(id = nil)
10
10
  new(id).render
11
11
  end
12
12
  end
13
13
 
14
- # @param []
15
- # @return []
14
+ # @param [String]
15
+ # @return [Troo::Commands::ShowComments]
16
16
  def initialize(id = nil)
17
17
  @id = id
18
18
  end
@@ -10,7 +10,7 @@ module Troo
10
10
  end
11
11
 
12
12
  # @param []
13
- # @return []
13
+ # @return [Troo::Commands::Status]
14
14
  def initialize(klass)
15
15
  @klass = klass
16
16
  end
@@ -2,8 +2,8 @@ module Troo
2
2
  module CLI
3
3
  class ThorFixes < Thor
4
4
  # @param []
5
- # @param []
6
- # @param []
5
+ # @param [, NilClass]
6
+ # @param [, FalseClass]
7
7
  # @return [String]
8
8
  def self.banner(command, namespace = nil, subcommand = false)
9
9
  [basename, @package_name, command.usage].compact.join(' ')
@@ -4,8 +4,8 @@ module Troo
4
4
  # @param []
5
5
  # @param []
6
6
  # @param []
7
- # @param []
8
- # @return []
7
+ # @param [Kernel]
8
+ # @return [Troo::Launcher]
9
9
  def initialize(argv, stdin = STDIN,
10
10
  stdout = STDOUT,
11
11
  stderr = STDERR,
@@ -37,6 +37,13 @@ module Troo
37
37
  puts "Your Trello access token has expired, please run " \
38
38
  "`troo wizard` for help, or manually renew."
39
39
  end
40
+ rescue EndpointNotFound
41
+ pad do
42
+ puts "An unrecoverable error has occurred due to programmer " \
43
+ "error. Please report this issue at:\n\n" \
44
+ "https://github.com/gavinlaking/troo/issues\n\n" \
45
+ "Thank you.\n"
46
+ end
40
47
  ensure
41
48
  $stdin, $stdout, $stderr = STDIN, STDOUT, STDERR
42
49
  @kernel.exit(@exit_code)
@@ -17,7 +17,7 @@ module Troo
17
17
  end
18
18
 
19
19
  # @param []
20
- # @return []
20
+ # @return [Troo::Behaviours::SetDefault]
21
21
  def initialize(entity)
22
22
  @entity = entity
23
23
  end
@@ -68,7 +68,7 @@ module Troo
68
68
  comments.sort(by: :date, limit: [0, 3])
69
69
  end
70
70
 
71
- # @return []
71
+ # @return [Array]
72
72
  def members
73
73
  return [] if external_member_ids.empty?
74
74
  @members ||= external_member_ids.map do |member_id|
@@ -1,3 +1,3 @@
1
1
  module Troo
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
@@ -3,5 +3,21 @@ require_relative '../../test_helper'
3
3
  module Troo
4
4
  describe Launcher do
5
5
  let(:described_class) { Launcher }
6
+ let(:instance) {
7
+ described_class.new(argv, stdin, stdout, stderr, kernel)
8
+ }
9
+ let(:argv) { [] }
10
+ let(:stdin) { STDIN }
11
+ let(:stdout) { STDOUT }
12
+ let(:stderr) { STDERR }
13
+ let(:kernel) { Kernel }
14
+
15
+ it { instance.must_be_instance_of(Troo::Launcher) }
16
+
17
+ describe '#execute!' do
18
+ subject { instance.execute! }
19
+
20
+ it { skip }
21
+ end
6
22
  end
7
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: troo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Laking
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba