pi 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -0
- data/lib/cli/commands/projects.rb +4 -3
- data/lib/cli/commands/user.rb +1 -2
- data/lib/cli/runner.rb +2 -2
- data/lib/cli/version.rb +1 -1
- metadata +4 -4
data/README
CHANGED
@@ -147,11 +147,11 @@ module PI::Cli::Command
|
|
147
147
|
|
148
148
|
def upload(projectname=nil)
|
149
149
|
file = nil
|
150
|
-
java_projects = nil
|
151
|
-
unless projectname
|
150
|
+
java_projects = nil
|
151
|
+
unless projectname
|
152
152
|
projects = client.projects
|
153
|
-
java_projects = projects.delete_if{ |p| p[:runtime] =~ /^(ruby)/i}
|
154
153
|
err "No Projects" if projects.nil? || projects.empty?
|
154
|
+
java_projects = projects.delete_if{ |p| p[:runtime] =~ /^(ruby)/i}
|
155
155
|
java_projects.sort! {|a, b| a[:name] <=> b[:name] }
|
156
156
|
choose do |menu|
|
157
157
|
display "=============Project Name======="
|
@@ -164,6 +164,7 @@ module PI::Cli::Command
|
|
164
164
|
display "Selected Project: ",false
|
165
165
|
display "#{projectname}".green
|
166
166
|
end
|
167
|
+
|
167
168
|
version = ask("Please enter the version: ")
|
168
169
|
description = ask("Please enter in the description: ")
|
169
170
|
|
data/lib/cli/commands/user.rb
CHANGED
@@ -98,8 +98,7 @@ module PI::Cli::Command
|
|
98
98
|
display "ok".green
|
99
99
|
end
|
100
100
|
|
101
|
-
def github
|
102
|
-
name = @options[:name]
|
101
|
+
def github(name=nil)
|
103
102
|
name = ask("Please input your name: ") unless name
|
104
103
|
email = ask("Please input your email: ")
|
105
104
|
password = ask("Please input your password: ") {|q| q.echo = '*'}
|
data/lib/cli/runner.rb
CHANGED
@@ -107,8 +107,8 @@ class PI::Cli::Runner
|
|
107
107
|
set_cmd(:user, :password, @args.size == 1 ? 1 : 0)
|
108
108
|
|
109
109
|
when 'github'
|
110
|
-
usage ('pi github ')
|
111
|
-
set_cmd(:user, :github)
|
110
|
+
usage ('pi github [name]')
|
111
|
+
set_cmd(:user, :github,@args.size == 1 ? 1 : 0)
|
112
112
|
|
113
113
|
when 'runtimes'
|
114
114
|
usage('pi runtimes')
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 19
|
10
|
+
version: 0.1.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Samsung
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-07-
|
18
|
+
date: 2012-07-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json_pure
|