dryrun 0.4.0 → 0.4.1

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: 10d011b7a25d63325257ca136b7cc4ab0c0c91c9
4
- data.tar.gz: e1748d67462043c41fc210b32332e04708bebdbf
3
+ metadata.gz: 92d0abafd075fd962dd9c35b2e1c9db58142236e
4
+ data.tar.gz: d779470e1f72f0e6ad67aa44aa562cfb7e9b11d4
5
5
  SHA512:
6
- metadata.gz: b2f560b1066b631ecc531dd601b40b176b739e03329177b65d42818021ef629975cc5313c30d442afc6d8b4f4ed4dd2b2114cbe467babf29e207be3cdfce8c4e
7
- data.tar.gz: e4f679f242bd348c6f9a19c2e4f7a02b9ac38bae414a06d33a4045b01443734cbb4d83682c42a360958e8780349a31861451316e8070bdb0962cb9db56eebec9
6
+ metadata.gz: 98e0e03f5c01c1d80b9ad7961d4c5c1fde2b499099542cad51121a396527b8a92d48e1979e3e9c885e83c86643e56418c8299eb30eb8a1eeec9a5b769d7f362d
7
+ data.tar.gz: cacd365dbb561db1b5e26531610872bf9471c8df199b308a53cc576cbe4a7e9b6a95bcbd1f4f16128415d3b7c916d97fe479fd8243b66fdb8e9595d6199156ed
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  > A dry run is a testing process where the effects of a possible failure are intentionally mitigated. For example, an aerospace company may conduct a "dry run" test of a jet's new pilot ejection seat while the jet is parked on the ground, rather than while it is in flight.
7
7
 
8
8
  <p align="center">
9
- <img src="https://raw.githubusercontent.com/cesarferreira/dryrun/master/extras/usage.gif" width="100%" />
9
+ <img src="https://raw.githubusercontent.com/cesarferreira/dryrun/master/extras/usage_v2.gif" width="100%" />
10
10
  </p>
11
11
 
12
12
 
Binary file
@@ -29,8 +29,6 @@ module DryRun
29
29
 
30
30
  # Write good lines to temporary file
31
31
  open(file, 'r').each { |l| tmp << l unless l.include? 'applicationId' }
32
-
33
- # Close tmp, or troubles ahead
34
32
  tmp.close
35
33
 
36
34
  # Move temp file to origin
@@ -76,9 +74,8 @@ module DryRun
76
74
  builder = 'sh gradlew'
77
75
  end
78
76
 
79
-
80
77
  # Generate the gradle/ folder
81
- if File.exist?('gradlew') and !File.directory?('gradle/')
78
+ if File.exist?('gradlew') and !is_gradle_wrapped
82
79
  system('gradle wrap')
83
80
  end
84
81
 
@@ -94,6 +91,15 @@ module DryRun
94
91
 
95
92
  end
96
93
 
94
+ def is_gradle_wrapped
95
+
96
+ if !File.directory?('gradle/')
97
+ return false
98
+ end
99
+ #binding.pry
100
+ File.exist?('gradle/wrapper/gradle-wrapper.properties') and File.exist?('gradle/wrapper/gradle-wrapper.jar')
101
+ end
102
+
97
103
  def sample_project
98
104
 
99
105
  @modules.each do |child|
@@ -1,3 +1,3 @@
1
1
  module DryRun
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-22 00:00:00.000000000 Z
11
+ date: 2015-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -113,6 +113,7 @@ files:
113
113
  - dryrun.gemspec
114
114
  - extras/thumb.png
115
115
  - extras/usage.gif
116
+ - extras/usage_v2.gif
116
117
  - lib/dryrun.rb
117
118
  - lib/dryrun/android_project.rb
118
119
  - lib/dryrun/github.rb