danger-android_version_change 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/android_version_change/gem_version.rb +1 -1
- data/lib/android_version_change/plugin.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c25412f173dd61ba56d253876f2ddd23611724bc8850ca384bf7898f1933e784
|
4
|
+
data.tar.gz: fd1b2fc2a2a9b0ebbc844fbc04d2824591a4ada382728ccc9b5d287b471999ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388474269e1640a538169a630cbf46304972e64968a5d99b578e68aa2959c67ae671acc314f0d14e44473608c407f12cdc10e7ebeb63ac7172c3bc2d6e5340c9
|
7
|
+
data.tar.gz: ce1906785be35e8f203d342ad1acaf14f149ae1b93e8c03b2072871553e299f6c855023c48d799a4f4866dfd1d31ce20ebfc9a92a75facd0fe95c3cbe07bab4c
|
data/Gemfile.lock
CHANGED
@@ -43,18 +43,18 @@ module Danger
|
|
43
43
|
|
44
44
|
# (Internal use) Takes path to build.gradle as well as "versionName" or "versionCode" string to check for change.
|
45
45
|
# @return [void]
|
46
|
-
def assert_version_changed(
|
47
|
-
unless File.file?(
|
48
|
-
fail "build.gradle file at path " +
|
46
|
+
def assert_version_changed(build_gradle_file_path, name_or_code)
|
47
|
+
unless File.file?(build_gradle_file_path)
|
48
|
+
fail "build.gradle file at path " + build_gradle_file_path + " does not exist."
|
49
49
|
return # rubocop:disable UnreachableCode
|
50
50
|
end
|
51
51
|
|
52
|
-
unless git.diff_for_file(
|
52
|
+
unless git.diff_for_file(build_gradle_file_path) # No diff found for build.gradle file.
|
53
53
|
fail "You did not edit your build.gradle file at all. Therefore, you did not change the " + name_or_code + "."
|
54
54
|
return # rubocop:disable UnreachableCode
|
55
55
|
end
|
56
56
|
|
57
|
-
git_diff_string = git.diff_for_file(
|
57
|
+
git_diff_string = git.diff_for_file(build_gradle_file_path).patch
|
58
58
|
assert_version_changed_diff(git_diff_string, name_or_code)
|
59
59
|
end
|
60
60
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-android_version_change
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Levi Bostian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|