pivo 0.0.10 → 0.0.11

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: a0c22fc0e3eb5d1946f5419d969b60f3a890b778
4
- data.tar.gz: b46e4c1726162364a8d656c783a76cdc2a17b679
3
+ metadata.gz: 24f69b007d7386b756f554c462226fe122ff5b66
4
+ data.tar.gz: 61116879c0485d617142e59e1e671030a37cfd02
5
5
  SHA512:
6
- metadata.gz: 1aeba5b748bb7c22514df2dd6421e0d0dbb52ffd2ec92887476c198c504e22d8a0ba002b5bcad2b8b0879af628840023fc6fb0f7cbfabe523bbc814f894f2f55
7
- data.tar.gz: 14fbb3559af97ff2292cf036ffe8e076019b4e9f1849ea4ed9a9a4c4b6e08ea64c3a7d6b506f00f184eaa55649d5cbce9c89a26c42a83bea9e6faff843fcce2b
6
+ metadata.gz: bb8d69facbba03b2cfd53c5e95ffca89d6ec299eee6a54be5b20b0a315b147799520286ff77bc27e628743fc52b2e6bc16bb9e6e09d3b04d78e0d00ce08bf929
7
+ data.tar.gz: 19502cdf31b561351663da25ee85da3c3467554cdb55799b7c9f04d9a0f8341b49c118256e9bfb9cd5fb01f703ac9c4a9b5925b3218e75d8650553187729b098
data/lib/pivo/commands.rb CHANGED
@@ -9,16 +9,12 @@ require 'pivo/formatters'
9
9
  module Pivo
10
10
  class Stories < Thor
11
11
  desc "all PROJECT_NAME", "listing all stories"
12
- option :status, type: 'string', desc: "unscheduled, unstarted, planned, rejected, started, finished, delivered, accepted"
13
- option :mywork, type: 'string', desc: "listing mywork storeis of the specified user"
12
+ option :query, type: 'string', desc: "query for searching stories"
14
13
  option :format, type: 'string', desc: "default, md, kanban"
15
14
  def all(project_name)
16
15
  project = Resource::Project.find_by_name(project_name)
17
16
  filtering_options = []
18
- filtering_options << "state:#{options[:status]}" if options[:status]
19
- if options[:mywork]
20
- filtering_options << "mywork:#{options[:mywork]}" if options[:mywork]
21
- end
17
+ filtering_options << options[:query] if options[:query]
22
18
  request_params = filtering_options.empty? ? {} : {filter: filtering_options.join(" ")}
23
19
  case options[:format]
24
20
  when 'md'
@@ -8,7 +8,7 @@ module Pivo
8
8
 
9
9
  def to_s
10
10
  @stories.map {|story|
11
- "[#{story.name}](#{story.url})"
11
+ "[#{story.estimate}][#{story.name}](#{story.url})"
12
12
  }.join("\n")
13
13
  end
14
14
  end
data/lib/pivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pivo
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKAMATSU Yuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-03 00:00:00.000000000 Z
11
+ date: 2015-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler