dryrun 1.1.4 → 1.1.5

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: fa5bc7addc6a767c9f117b263ca6696deefa4824
4
- data.tar.gz: ecfa300a2c8469cdd2487a9d92e4a6a33c37b0d2
3
+ metadata.gz: 1862ff6adeb2c92762b43e39c4ce6aac84741bfe
4
+ data.tar.gz: 32d6d6ff45602167fb5d4823b45d593c019023fd
5
5
  SHA512:
6
- metadata.gz: d16b9dd4bacbb84ab390879d2ad77c3f2667998c1ef8233abad1cfa68f48102d0f2b3dc67f628f6e33bd6fa5221e114108c7c5192b963ec78f0f05bba52d2745
7
- data.tar.gz: 1a5c73e5ddbc56fc74bacdc7c9c4c62aea888854133d776573e7122f51ad29bd6d6095bbffcd3ea0ece70a32c658ec36b8c11d419d00e660fc0a91c17e41634f
6
+ metadata.gz: bdaae990fc570470c535d376816bd163466e45022af4bd983cd64ef48193fa63c36d7e7cbe42a3aab34c383ff67bb0fd90d12bddc8b5dd2ccdbc4065ddc92051
7
+ data.tar.gz: 4fb03a38a6113fb2aaac5d237539ba03bf12d786032b9507a3d6b5ebb6052e7d64730cb2285c0a2019001fa729958b595f3473a02f6518781b6982cf829d9b0a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dryrun (1.1.4)
4
+ dryrun (1.1.5)
5
5
  bundler
6
6
  colorize
7
7
  highline
@@ -94,7 +94,7 @@ module Dryrun
94
94
  input = ask "\n#{'Your Dryrun version is outdated, want to update?'.yellow} #{'[Y/n]:'.white}"
95
95
  end until %w(y n s).include?(input.downcase)
96
96
 
97
- DryrunUtils.execute('gem update dryrun') if input.casecmp 'y'
97
+ DryrunUtils.execute('gem update dryrun') if input.casecmp('y') == 0
98
98
  end
99
99
 
100
100
  def pick_device
@@ -89,9 +89,7 @@ module Dryrun
89
89
  Dir.chdir @base_path
90
90
 
91
91
  path = sample_project
92
- manifest_parsed = parse_manifest(path)
93
-
94
- if path == false && manifest_parsed == false or !@launcher_activity
92
+ if path == false or !@launcher_activity
95
93
  puts "Couldn't open or there isnt any sample project, sorry!".red
96
94
  exit 1
97
95
  end
@@ -119,7 +117,7 @@ module Dryrun
119
117
  @modules.each do |child|
120
118
  full_path = File.join(@base_path, child.first)
121
119
  @path_to_sample = full_path
122
- return full_path
120
+ return full_path if parse_manifest(full_path)
123
121
  end
124
122
  end
125
123
  false
@@ -141,10 +139,8 @@ module Dryrun
141
139
  manifest_parser = ManifestParser.new(manifest_file)
142
140
  @package = manifest_parser.package
143
141
  @launcher_activity = manifest_parser.launcher_activity
144
-
145
- return false unless @launcher_activity
146
-
147
142
  manifest_file.close
143
+ @launcher_activity && @package
148
144
  end
149
145
 
150
146
  def get_manifest(path_to_sample)
@@ -1,3 +1,3 @@
1
1
  module Dryrun
2
- VERSION = '1.1.4'.freeze
2
+ VERSION = '1.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryrun
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-11 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake