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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbb788a211786309edbfabcf74f633c26ee5937e
4
- data.tar.gz: 24ba1f7ad37596f04a9bc319cb121479800ce518
3
+ metadata.gz: 6bdd50672bc4cd84f1b904572a5facfc03a93455
4
+ data.tar.gz: d37bf3596619b492d59b98f1596c6e446ed6b809
5
5
  SHA512:
6
- metadata.gz: 67ddb20630d7f425baf71d9f1903b461030d26819993b3bc5deca4edc82e9683c98a5fb985b95da61a1a1b3787f39b605ac8dec27a05b09bfa6df121eefb84b5
7
- data.tar.gz: 85f611a2cd35591fceaf6b9f74010f30f449108cb1af1a3c49b502cc9772de8cec2ab264e9afb51a1d38dffe00fb9a29541c287d684fe6539f0345edf5aefa0b
6
+ metadata.gz: 599b15edb99b14d5d5a54ce60b9a9f4d94e8237ace5a36fd41a02e090c4575c67cabf428443d851d7a2f65acd646c88a22f34c69eec2d6c8622705edb79f1915
7
+ data.tar.gz: 18b84b5473a3e78f3ba68890469c244dfa5f004c4f3f2592527b1245df12e33d12c4a6a804c0d1cce74f2dd2824457c96a2794f01122b1aa0fa5dd35805b7cfb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- climine (0.0.1)
4
+ climine (0.0.2)
5
5
  hashie (~> 2.0.5)
6
6
  hirb (~> 0.7)
7
7
  hirb-unicode (~> 0.0.5)
@@ -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"
@@ -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}=#{URI.encode(value.to_s)}"}.join("&")
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
@@ -1,3 +1,3 @@
1
1
  module Climine
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,4 @@
1
+ <% res.issues.each{|issue| -%>
2
+ * <%= issue.tracker.name %> [<%= issue.status.name %>] #<%= issue.id %> <%= issue.subject %>
3
+ <% } -%>
4
+
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.1
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-12 00:00:00.000000000 Z
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