Skip to content

Commit 124c254

Browse files
committed
fix cli command
1 parent ae9bcef commit 124c254

File tree

8 files changed

+34
-31
lines changed

8 files changed

+34
-31
lines changed

Gemfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
terjira (0.1.0)
5-
activesupport (~> 4.0)
4+
terjira (0.1.1)
5+
activesupport (= 4.0.13)
66
jira-ruby (~> 1.1)
77
pastel (~> 0.6.1)
88
thor (~> 0.19)
@@ -13,12 +13,12 @@ PATH
1313
GEM
1414
remote: https://rubygems.org/
1515
specs:
16-
activesupport (4.2.7.1)
17-
i18n (~> 0.7)
18-
json (~> 1.7, >= 1.7.7)
19-
minitest (~> 5.1)
20-
thread_safe (~> 0.3, >= 0.3.4)
21-
tzinfo (~> 1.1)
16+
activesupport (4.0.13)
17+
i18n (~> 0.6, >= 0.6.9)
18+
minitest (~> 4.2)
19+
multi_json (~> 1.3)
20+
thread_safe (~> 0.1)
21+
tzinfo (~> 0.3.37)
2222
codeclimate-test-reporter (1.0.3)
2323
simplecov
2424
coderay (1.1.1)
@@ -31,7 +31,8 @@ GEM
3131
oauth (~> 0.5, >= 0.5.0)
3232
json (1.8.3)
3333
method_source (0.8.2)
34-
minitest (5.10.1)
34+
minitest (4.7.5)
35+
multi_json (1.12.1)
3536
necromancer (0.3.0)
3637
oauth (0.5.1)
3738
pastel (0.6.1)
@@ -79,8 +80,7 @@ GEM
7980
tty-screen (~> 0.5.0)
8081
unicode-display_width (~> 1.1.0)
8182
verse (~> 0.5.0)
82-
tzinfo (1.2.2)
83-
thread_safe (~> 0.1)
83+
tzinfo (0.3.52)
8484
unicode-display_width (1.1.2)
8585
unicode_utils (1.4.0)
8686
verse (0.5.0)
@@ -93,11 +93,11 @@ PLATFORMS
9393

9494
DEPENDENCIES
9595
bundler (~> 1.11)
96-
codeclimate-test-reporter (~> 1.0.0)
96+
codeclimate-test-reporter (~> 1.0)
9797
pry (~> 0.10.0)
9898
rake (~> 10.0)
9999
rspec (~> 3.5)
100-
simplecov
100+
simplecov (~> 0)
101101
terjira!
102102

103103
BUNDLED WITH

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![Gem Version](https://badge.fury.io/rb/terjira.svg)](https://badge.fury.io/rb/terjira)
12
[![Build Status](https://travis-ci.org/keepcosmos/terjira.svg?branch=master)](https://travis-ci.org/keepcosmos/terjira)
23
[![Test Coverage](https://codeclimate.com/github/keepcosmos/terjira/badges/coverage.svg)](https://codeclimate.com/github/keepcosmos/terjira/coverage)
34
[![Code Climate](https://codeclimate.com/github/keepcosmos/terjira/badges/gpa.svg)](https://codeclimate.com/github/keepcosmos/terjira)

bin/console

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/usr/bin/env ruby
2-
3-
require "bundler/setup"
2+
# Do I need bundler setup?
3+
# require "bundler/setup"
44
require "terjira"
55

66
# You can add fixtures and/or initialization code here to make experimenting
77
# with your gem easier. You can also use a different console, if you like.
88

99
# (If you use this, don't forget to add pry to your Gemfile!)
10-
# require "pry"
11-
# Pry.start
12-
13-
require "irb"
14-
IRB.start
10+
begin
11+
require "pry"
12+
Pry.start
13+
rescue
14+
require "irb"
15+
IRB.start
16+
end

bin/jira

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env ruby
2-
require 'bundler/setup'
2+
# Do I need bundler setup?
3+
# require 'bundler/setup'
34
require 'terjira'
45
require 'json'
56

lib/terjira.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'pry'
21
require_relative 'terjira/ext/jira_ruby'
32
require_relative 'terjira/ext/tty_prompt'
43
require 'terjira/version'

lib/terjira/presenters/issue_presenter.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ def issue_sutats_bar(issue)
116116
def colorize_issue_type(issue_type)
117117
title = " #{issue_type.name} "
118118
if title =~ /bug/i
119-
pastel.on_red.bold(title)
119+
pastel.on_red.white.bold(title)
120120
elsif title =~ /task/i
121-
pastel.on_blue.bold(title)
121+
pastel.on_blue.white.bold(title)
122122
elsif title =~ /story/i
123-
pastel.on_green.bold(title)
123+
pastel.on_green.white.bold(title)
124124
elsif title =~ /epic/i
125-
pastel.on_magenta.bold(title)
125+
pastel.on_magenta.white.bold(title)
126126
else
127-
pastel.on_cyan.bold(title)
127+
pastel.on_cyan.white.bold(title)
128128
end
129129
end
130130

lib/terjira/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Terjira
2-
VERSION = '0.1.0'
2+
VERSION = '0.1.1'.freeze
33
end

terjira.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222

2323
spec.add_dependency "thor", "~> 0.19"
2424
spec.add_dependency "jira-ruby", "~> 1.1"
25-
spec.add_dependency "activesupport", "~> 4.0"
25+
spec.add_dependency "activesupport", "4.0.13"
2626

2727
spec.add_dependency "tty-table", "~> 0.6.0"
2828
spec.add_dependency "tty-prompt", "~> 0.8.0"
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
3232
spec.add_development_dependency "bundler", "~> 1.11"
3333
spec.add_development_dependency "rake", "~> 10.0"
3434
spec.add_development_dependency "rspec", "~> 3.5"
35-
spec.add_development_dependency "simplecov"
36-
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
35+
spec.add_development_dependency "simplecov", "~> 0"
36+
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0"
3737
spec.add_development_dependency "pry", "~> 0.10.0"
3838
end

0 commit comments

Comments
 (0)