susanoo 0.12.1 → 0.12.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 813cfde9e3613d73269e86b118ec5684a01fc343
4
- data.tar.gz: d57762963c4490095753fc2139ce0465462bad02
3
+ metadata.gz: a76d12a45d8dbb319e434880c57fea7558a9b62b
4
+ data.tar.gz: 07319c1d17798ddb298de92757e65e94aa219484
5
5
  SHA512:
6
- metadata.gz: c62862f6378e4d106ec724ab2972b74711034b7cad5b3b7a807d0cf4694b37868b9c70db26165aea2074e6bb6d8777d85e19276a06fa06975b31b1da32a87997
7
- data.tar.gz: ab4634a23e411e69cdcdd6d08485a89b517055aa097f735c22065e77791c58725f8bde82178b6f847e09f066ccfe4b78e7af7b36c526d48f0d9c30caf001de01
6
+ metadata.gz: 3d2978e1b46989f5c5e8959395b619b42716df8689fa08668b3a6acd12d4ed61341dfbd64809c822d053abf46097240030ed8b500fffe1de6de3c948b0d5c566
7
+ data.tar.gz: cb35fe2eca4088df99225b2c3d5138eac6b191688879471da6e364157e216bd3d9cf290daedacdfa9f8a1ed6ac9ba147d1cfc527ca2217864d405afc1cea45cc
@@ -9,6 +9,8 @@ module Susanoo::CLI
9
9
  map 'b' => :build
10
10
 
11
11
  desc 'build [PLATFORM]', 'Build the application for given PLATFORM (default=android).'
12
+ method_option :complete, default: false
13
+ method_option :release, default: false
12
14
  def build(platform = 'android')
13
15
 
14
16
  require File.join(project_root, 'config/routes')
@@ -43,6 +45,13 @@ module Susanoo::CLI
43
45
  :yellow
44
46
  end
45
47
  end
48
+
49
+ if options[:complete]
50
+ debug_flag = '--debug'
51
+ debug_flag = '--release' if options[:release]
52
+ system "cordova build #{platform.to_s} #{debug_flag}"
53
+ end
54
+
46
55
  end
47
56
  end
48
57
  end
@@ -9,11 +9,16 @@ module Susanoo::CLI
9
9
  map 'r' => :run_in
10
10
 
11
11
  desc 'run PLATFORM', 'Run application on PLATFORM.'
12
+ method_option :release, default: false
12
13
  def run_in(platform = :android)
13
14
  # Build the project first
14
15
  build
16
+
15
17
  inside Susanoo::Project.path do
16
- system "cordova run #{platform.to_s}"
18
+ debug_flag = '--debug'
19
+ debug_flag = '--release' if options[:release]
20
+
21
+ system "cordova run #{platform.to_s} #{debug_flag}"
17
22
  end
18
23
  end
19
24
 
@@ -1,3 +1,3 @@
1
1
  module Susanoo
2
- VERSION = '0.12.1'
2
+ VERSION = '0.12.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: susanoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Rahmani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2014-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler