dryrun 0.2.1 → 0.2.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: ca486cb2e2a7d3e857950f165602a2dcc9250d48
4
- data.tar.gz: a82c615ae248f5ebc4a10dc79a5505ed0bec26b4
3
+ metadata.gz: 023019aeabb2110eecf5faf785b16724eaa7609f
4
+ data.tar.gz: 0ff9296f3fbb4d6a7df6af464949986814cf7588
5
5
  SHA512:
6
- metadata.gz: 617020127650fbede45c17bae6fa43f7e3ef96c8da738b52c63b55df2875e41d603889773d2fe1836dc9a66557cf52202889604f9dcf81b4b5fa5e20ddc7a44e
7
- data.tar.gz: de3d3e3679c9a5354a798ac5f61464b1507734365378985b13c2e8ebbd87a6c8fdd0bb339e42ace8a40fe372318b5fdb849563baa7c3e9e3b4565378fcdd4a2b
6
+ metadata.gz: 1887bb8914ff9cd18a06ac08b0fa908aa79dfde77358cc8936624ad50d904c2694a24f27bb6335f016c202bbc676d6c95c9da3c757d8a2eb6b4e86c30068637d
7
+ data.tar.gz: b5cd854e0a02d2f80a2cfdbf5c3ae90a688216c1f0e3ee5c99cbccf8cca3f406ccba2bc7b8424117934d9757c1be9f0555846a758eccb7130ac1aa6c046bc01b
data/lib/dryrun.rb CHANGED
@@ -26,11 +26,8 @@ module DryRun
26
26
  exit 1
27
27
  end
28
28
 
29
- # puts "\nLets work this one out: #{url.green}\n\n"
30
-
31
29
  # clone the repository
32
30
  clonable = github.clonable_url
33
- #puts "git clone #{clonable.yellow}.....\n\n"
34
31
 
35
32
  repository = github.clone
36
33
 
@@ -46,9 +43,6 @@ module DryRun
46
43
 
47
44
  project.clean_install
48
45
 
49
-
50
- puts "\nOpened #{url.green}!\n"
51
-
52
46
  end
53
47
  end
54
48
  end
@@ -33,25 +33,24 @@ module DryRun
33
33
 
34
34
  Dir.chdir @base_path
35
35
 
36
- #self.uninstall
37
-
38
- # clean assemble and install
39
-
40
36
  path, execute_line = self.sample_project
41
37
 
42
-
43
38
  if path == false and execute_line==false
44
39
  puts "Couldn't open, sorry!".red
45
40
  exit 1
46
41
  end
47
42
 
48
- if !File.exist?("gradlew")
49
- system("gradle clean assembleDebug installDebug")
50
- else
43
+ builder = "gradle"
44
+
45
+ if File.exist?("gradlew")
51
46
  system("chmod +x gradlew")
52
- system("./gradlew clean assembleDebug installDebug")
47
+ builder = "./gradlew"
53
48
  end
54
49
 
50
+ self.uninstall
51
+
52
+ system("#{builder} clean assembleDebug installDebug")
53
+
55
54
 
56
55
  puts "Installing #{@package.green}...\n"
57
56
  puts "executing: #{execute_line}"
@@ -67,10 +66,8 @@ module DryRun
67
66
  execute_line = get_execute_line("#{full_path}/src/main/AndroidManifest.xml")
68
67
 
69
68
  if execute_line
70
- puts "\nTHE SAMPLE IS HERE #{full_path.green}:\n"
71
-
72
- system("tree #{full_path}")
73
-
69
+ #puts "\nTHE SAMPLE IS HERE #{full_path.green}:\n"
70
+ #system("tree #{full_path}")
74
71
  return full_path, execute_line
75
72
  end
76
73
 
@@ -1,3 +1,3 @@
1
1
  module DryRun
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryrun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira