apu 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apu.rb +9 -0
  3. data/lib/apu/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfeb0f07e238006370713ab074982d933ba5ca65
4
- data.tar.gz: 2c9fa1001be05b543cdbf0478638e7b033f9407f
3
+ metadata.gz: 012a9ffbf86e0340fc232d34d33c895c35047a61
4
+ data.tar.gz: 928cdf01cceb440e9989f6e671b62e1c3353332b
5
5
  SHA512:
6
- metadata.gz: 1ba967870edf2a2e52d58423f07177ee550908fd8723d53f7cf43ff631d82576a59fe22af09e1ab83c41e25196423e1cc4791fd25f4813a27d9d9ef9ba0e55c5
7
- data.tar.gz: 8e40ce9787c3f1f6372e78b88f17278886667e17ac1c39b3556d858558d9650b440b5bf6fc67b99fa045fbfa95809af0a60f652b0b084ecbcf748100cbc6b052
6
+ metadata.gz: b0c23b3c86a4d2e937d30344f99831e1adfa30a9d813066c1b726b9addf2fa0fd3d6ffa011b801ddb2e50b2d3a7c5349550be852db5c45d3986fff4c2b7150d5
7
+ data.tar.gz: ea845265b8603716034660714a282de77181a3e986bbbdb7f40d4a7acc81fe1c456c5c293e0d87ba4b17a01cc5d0a85b600b37870a857469eaabaedcc958eb78
data/lib/apu.rb CHANGED
@@ -18,6 +18,7 @@ module Apu
18
18
  @launcher_flag = false
19
19
  @run_flag = false
20
20
  @clear_flag = false
21
+ @android_studio_flag = false
21
22
 
22
23
  @require_analyses = true
23
24
 
@@ -68,6 +69,10 @@ module Apu
68
69
  puts android_project.get_launchable_activity.green
69
70
  end
70
71
 
72
+ if @android_studio_flag
73
+ system('open -a Android\ Studio ' + @app_path)
74
+ end
75
+
71
76
  if @run_flag
72
77
  #android_project.install
73
78
  system(android_project.get_execute_line)
@@ -114,6 +119,10 @@ module Apu
114
119
  @run_flag = true
115
120
  end
116
121
 
122
+ opts.on('-A', '--android-studio', 'Opens project on android studio') do |flavour|
123
+ @android_studio_flag = true
124
+ end
125
+
117
126
  opts.on('-c', '--clear', 'Clear app data') do |flavour|
118
127
  @clear_flag = true
119
128
  end
@@ -1,3 +1,3 @@
1
1
  module Apu
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake