pi 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -15,6 +15,8 @@ _Copyright 2010-2012, Samsung.
15
15
  Linux:
16
16
  Install the full Ruby package and RubyGems:
17
17
  $ apt-get install ruby-full rubygems
18
+ $ ruby -v
19
+ $ gem -v
18
20
 
19
21
  1.2 Installing pi
20
22
 
@@ -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
 
@@ -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 = '*'}
@@ -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')
@@ -1,5 +1,5 @@
1
1
  module PI
2
2
  module Cli
3
- VERSION = '0.1.18'
3
+ VERSION = '0.1.19'
4
4
  end
5
5
  end
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: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 18
10
- version: 0.1.18
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-10 00:00:00 Z
18
+ date: 2012-07-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json_pure