climine 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/climine/command/issue.rb +1 -0
- data/lib/climine/redmine.rb +2 -1
- data/lib/climine/version.rb +1 -1
- data/templates/#issue.erb# +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bdd50672bc4cd84f1b904572a5facfc03a93455
|
4
|
+
data.tar.gz: d37bf3596619b492d59b98f1596c6e446ed6b809
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 599b15edb99b14d5d5a54ce60b9a9f4d94e8237ace5a36fd41a02e090c4575c67cabf428443d851d7a2f65acd646c88a22f34c69eec2d6c8622705edb79f1915
|
7
|
+
data.tar.gz: 18b84b5473a3e78f3ba68890469c244dfa5f004c4f3f2592527b1245df12e33d12c4a6a804c0d1cce74f2dd2824457c96a2794f01122b1aa0fa5dd35805b7cfb
|
data/Gemfile.lock
CHANGED
@@ -8,6 +8,7 @@ module Climine::Command
|
|
8
8
|
option :limit, type: :numeric, aliases: '-l', banner: "LIMIT", desc: "limit of search result (default: 25)", deafult: 25
|
9
9
|
option :offset, type: :numeric, aliases: '-o', banner: "OFFSET", desc: "page of seach result(0 origin) (default: 0)"
|
10
10
|
option :project_id, type: :numeric, aliases: '-p', banner: "PROJECT_ID", desc: "id of RedmineProject ( Please search by `climine project` ) (default: all project)"
|
11
|
+
option :status_id, type: :numeric, banner: "STATUS_ID", desc: "id of issue status. ( Please search by `climine status` ) (default: all status)", default: "*"
|
11
12
|
option :assigned_to_id, type: :numeric, aliases: '-u', banner: "USER_ID", desc: "ID of the user being assigned ( Please search by `climine user` )"
|
12
13
|
option :created_on, type: :string, aliases: '-c', banner: "CREATED_DATE", desc: "ex) >=2013-10-01, >2013-10-01, <2013-10-01, 2013-10-01"
|
13
14
|
option :updated_on, type: :string, aliases: '-r', banner: "LAST_UPDATED_DATE", desc: "ex) >=2013-10-01, >2013-10-01, <2013-10-01, 2013-10-01"
|
data/lib/climine/redmine.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
require 'uri'
|
3
|
+
require 'cgi'
|
3
4
|
require 'json'
|
4
5
|
require "hashie"
|
5
6
|
|
@@ -73,7 +74,7 @@ class Climine::Redmine
|
|
73
74
|
|
74
75
|
def build_url path, query={}
|
75
76
|
query[:key] = config.apikey
|
76
|
-
params = query.map{|(key, value)| "#{key}=#{
|
77
|
+
params = query.map{|(key, value)| "#{key}=#{CGI.escape(value.to_s)}"}.join("&")
|
77
78
|
"#{config.url}#{path}?#{params}"
|
78
79
|
end
|
79
80
|
end
|
data/lib/climine/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yagince
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- LICENSE.txt
|
163
163
|
- Rakefile
|
164
164
|
- README.md
|
165
|
+
- templates/#issue.erb#
|
165
166
|
- templates/issue.erb
|
166
167
|
- vendor/bundle/ruby/2.0.0/bin/climine
|
167
168
|
- vendor/bundle/ruby/2.0.0/bin/httpclient
|