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 +4 -4
- data/lib/dryrun.rb +0 -6
- data/lib/dryrun/android_project.rb +10 -13
- data/lib/dryrun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 023019aeabb2110eecf5faf785b16724eaa7609f
|
|
4
|
+
data.tar.gz: 0ff9296f3fbb4d6a7df6af464949986814cf7588
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
builder = "gradle"
|
|
44
|
+
|
|
45
|
+
if File.exist?("gradlew")
|
|
51
46
|
system("chmod +x gradlew")
|
|
52
|
-
|
|
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
|
|
data/lib/dryrun/version.rb
CHANGED