dryrun 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a1690b7823cf01163ca4ba32b3d8e3cd0f76658
4
- data.tar.gz: 9c79ba6345fda85d6050520197e0cceb7bf93155
3
+ metadata.gz: 60feb498f92bd27070f158c0ece400c76297b0b0
4
+ data.tar.gz: ce1c2c6ebf0b67483084109cfd69520d2d0077da
5
5
  SHA512:
6
- metadata.gz: ffa768f392e25c23544bda9d65ad4da592faca20fb356711263805d84349c4938ca6a91d4b88a356560b1055f50b1dc629358b9e2ae1b6336f280e737f6c1476
7
- data.tar.gz: f92246c5a9a0104a88e270659088b57cc4ae4321e6d4f3f766e477ad278376424b7ac11479e4c4cfe7c788e160aaeede4393229047781c322b8fcbb30f578a7e
6
+ metadata.gz: 7241354674cd00989532f4141c205a23b4f049ff8c32a2816eea15ad527fbb3af562012fe8e81a4c36e46bafeb943c9834f00198788ebd3f058be08ec851c471
7
+ data.tar.gz: b6bd8cb2ecc658b448567aec12021406e5c78d736c1d47495153188d8c9c3edda7a9efafacc89f0b6c4a3e701f87422729027275b53cc591af993c165573de34
data/lib/dryrun.rb CHANGED
@@ -83,6 +83,7 @@ module DryRun
83
83
 
84
84
  if input.downcase.eql? 'y'
85
85
  DryrunUtils.execute('gem update dryrun')
86
+
86
87
  end
87
88
 
88
89
  end
@@ -143,6 +144,8 @@ module DryRun
143
144
  exit 1
144
145
  end
145
146
 
147
+ @url = @url.split("?").first
148
+
146
149
  pick_device()
147
150
 
148
151
  github = Github.new(@url)
@@ -11,7 +11,7 @@ module DryRun
11
11
 
12
12
  @custom_app_path = custom_app_path
13
13
  @custom_module = custom_module
14
- @base_path = path
14
+ @base_path = @custom_app_path? File.join(path, @custom_app_path) : path
15
15
  @flavour = flavour
16
16
  @device = device
17
17
 
@@ -26,11 +26,14 @@ module DryRun
26
26
  def check_custom_app_path
27
27
  return unless @custom_app_path
28
28
 
29
- full_custom_path = File.join(@base_path, @custom_app_path)
29
+ full_custom_path = @base_path
30
30
  settings_path = settings_gradle_file(full_custom_path)
31
- return unless is_valid(settings_path)
31
+ main_gradle_path = main_gradle_file(full_custom_path)
32
+ return unless is_valid(main_gradle_path)
32
33
 
33
34
  @settings_gradle_path = settings_path
35
+ @main_gradle_file = main_gradle_file
36
+
34
37
  @base_path = full_custom_path
35
38
  end
36
39
 
@@ -29,13 +29,12 @@ module DryRun
29
29
  end
30
30
  end
31
31
 
32
-
33
32
  page_string[/#{Regexp.escape('\'')}(.*?)#{Regexp.escape('\'')}/m, 1]
34
33
  end
35
34
 
36
35
  def self.is_up_to_date
37
36
  latest = get_latest_version
38
- latest.eql? DryRun::VERSION
37
+ latest.to_s <= DryRun::VERSION.to_s
39
38
  end
40
39
  end
41
40
  end
@@ -1,3 +1,3 @@
1
1
  module DryRun
2
- VERSION = '0.7.5'
2
+ VERSION = '0.7.6'
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: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-13 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake