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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ae3cf66485d4fa93c348e916f35e406875d728179b7ffe399f02a0fd4829c30
4
- data.tar.gz: 6f91ba3ae0906c7bdc9bf9da8177fedf112b822874b43063524061fb7c0ea7ca
3
+ metadata.gz: c25412f173dd61ba56d253876f2ddd23611724bc8850ca384bf7898f1933e784
4
+ data.tar.gz: fd1b2fc2a2a9b0ebbc844fbc04d2824591a4ada382728ccc9b5d287b471999ba
5
5
  SHA512:
6
- metadata.gz: 2e89455a45a9768c4c29f66172d06a896762a0a8f7ca8f4ff9144e0e5fbe36e58d4131e40a3d2bb18f4f6e71daf45a0378b8dfdd398b2da440c4b4bc785ffd96
7
- data.tar.gz: 8b81e38663b8fb4856d559006b5a6e3c950791dd4749652612fa057f6cc40f8ed7412683627e62543b254269d441845093b19194ebe6514cbaac68015a5e08df
6
+ metadata.gz: 388474269e1640a538169a630cbf46304972e64968a5d99b578e68aa2959c67ae671acc314f0d14e44473608c407f12cdc10e7ebeb63ac7172c3bc2d6e5340c9
7
+ data.tar.gz: ce1906785be35e8f203d342ad1acaf14f149ae1b93e8c03b2072871553e299f6c855023c48d799a4f4866dfd1d31ce20ebfc9a92a75facd0fe95c3cbe07bab4c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-android_version_change (0.1.1)
4
+ danger-android_version_change (0.1.2)
5
5
  danger-plugin-api (~> 1.0)
6
6
 
7
7
  GEM
@@ -135,4 +135,4 @@ DEPENDENCIES
135
135
  yard (~> 0.9.11)
136
136
 
137
137
  BUNDLED WITH
138
- 1.16.0
138
+ 1.16.1
@@ -1,3 +1,3 @@
1
1
  module AndroidVersionChange
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
@@ -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(override_build_gradle_file_path, name_or_code)
47
- unless File.file?(override_build_gradle_file_path)
48
- fail "build.gradle file at path " + override_build_gradle_file_path + " does not exist."
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(override_build_gradle_file_path) # No diff found for build.gradle 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(info_plist_file_path).patch
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.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-22 00:00:00.000000000 Z
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