climine 0.0.5 → 0.0.6

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: 65fcd07b96263bf848c1884078e1a917aaaeee83
4
- data.tar.gz: abc153e244ef0df65f7669f059818d5cc7ba9760
3
+ metadata.gz: 3e48d371cea4e723d3758e767daf4b0228e83ceb
4
+ data.tar.gz: daa899dbb7ac5f030dbda315fcf375daf4bdaa98
5
5
  SHA512:
6
- metadata.gz: 11d495370524d67a9f5dd7bf0b8ba32c2a6e79b4d359331ee328c0c6cf9df7ab09f949dcee4317ce8e71f05c8b5620ef32c050748574dbcaee690b8034f216c4
7
- data.tar.gz: cc9e45d16bed3577c8d3bd41d7670aec31cfb9a71d8617b1082d1e1978040e2b3bcd60e40f2e7445fe1e0e3c092dfe38570aaf0109a520d57c854195ee0a7868
6
+ metadata.gz: 9c54f882dea5d96f3f9afc2b00ee3cb6e379911bbec9d0413997c9adae762fd963530ccc1c5febf23bce6d8e27c91ca13fb50215c2ae974f1d938d2119e20948
7
+ data.tar.gz: 5b3e79a713321206c13d5fb9f5ff8a1d8e06afafe150aca0b4a93efab88d82d203716d031ebd2f6628c9c699f207d89e1f5a4455ba67b238e23c1533741b70e3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- climine (0.0.5)
4
+ climine (0.0.6)
5
5
  hashie (~> 2.0.5)
6
6
  hirb (~> 0.7)
7
7
  hirb-unicode (~> 0.0.5)
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  CLI for Redmine
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/climine.png)](http://badge.fury.io/rb/climine)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -84,7 +84,10 @@ module Climine::Command
84
84
  option :user_id, type: :numeric, aliases: '-u', banner: "USER_ID", desc: "user_id (search by `user` command)"
85
85
  def update(id=nil)
86
86
  say("required ticket number!", :red) and return unless id
87
+
88
+ options[:assigned_to_id] = options.delete(:user_id) if options[:user_id]
87
89
  redmine.update_issue id, options
90
+
88
91
  render :issue, redmine.issue(id)
89
92
  end
90
93
 
@@ -93,7 +96,10 @@ module Climine::Command
93
96
  option :user_id, type: :numeric, aliases: '-u', banner: "USER_ID", desc: "user_id (search by `user` command)"
94
97
  def start(id=nil)
95
98
  say("required ticket number!", :red) and return unless id
96
- redmine.update_issue id, options.merge({status_id: 2})
99
+
100
+ options[:assigned_to_id] = options.delete(:user_id) if options[:user_id]
101
+ redmine.update_issue id, options.merge({status_id: 2}) # id:2 is close
102
+
97
103
  render :issue, redmine.issue(id)
98
104
  end
99
105
 
@@ -1,3 +1,3 @@
1
1
  module Climine
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: climine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - yagince
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-28 00:00:00.000000000 Z
11
+ date: 2014-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor