danger-ios_version_change 0.1.5 → 0.1.6

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: 6476adf48ebe82561ac94fa833f0aa8d6beaad900d1e19dfb691bb07c2bcb50b
4
- data.tar.gz: d574233236b1f962f5aa3411c85bc55064cf082fb5363a7ce12b5e4ef3df8ad5
3
+ metadata.gz: a42cbb12e8a4cfdbeb80a12be4a0557be64cc0409e01fb1a2f03edf940e22c62
4
+ data.tar.gz: bbcad655b57118612d55e8625cec69389b61cfffc14255bda393a624d9ce24f2
5
5
  SHA512:
6
- metadata.gz: e4849ee27a658b600b5507e54d4d0ff942d40101749607b8f2dbc8c2dbe4d403b0ef5ed58749b2166703e4db4480fcedea1fbc967267165a2ff68f175c7298c6
7
- data.tar.gz: 4769d47ed24e8fa411655664d774f4380fa87b1d3160e0f6e8b8b172b2091ecf9fec75e5f9564c978addb55a7023d4055ef956ebc36d1c14b11b8c65e6ea54bc
6
+ metadata.gz: 5d7847f12f439a542bb3e9cdd412f62262e5a92ae48742f00a45794612ea24ff7726ef058737e8cc994e16fa3efe01e86aa285f78cd93d5eb8e65d8058b66b0b
7
+ data.tar.gz: 8b3fa404ad4bbea327f05bb3436f0bb276d0d597e0acd5dcf841fb155b3c4da6b0aa099a48a677146dd176fa6389619c53e3f3528104aee48fb42f4db1cc2639
data/Gemfile CHANGED
@@ -3,8 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in danger-ios_version_change.gemspec
4
4
  gemspec
5
5
 
6
- # Added at 2017-12-01 15:36:57 -0600 by levibostian:
7
- gem "git", "~> 1.3"
8
-
9
6
  # Added at 2017-12-04 17:20:03 -0600 by levibostian:
10
7
  gem "rspec_junit_formatter", "~> 0.3.0"
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-ios_version_change (0.1.5)
4
+ danger-ios_version_change (0.1.6)
5
5
  danger-plugin-api (~> 1.0)
6
- git
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -125,7 +124,6 @@ PLATFORMS
125
124
  DEPENDENCIES
126
125
  bundler (~> 1.3)
127
126
  danger-ios_version_change!
128
- git (~> 1.3)
129
127
  guard (~> 2.14)
130
128
  guard-rspec (~> 4.7)
131
129
  listen (= 3.0.7)
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'git'
21
+ # spec.add_runtime_dependency 'git'
22
22
 
23
23
  spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
24
24
 
@@ -1,3 +1,3 @@
1
1
  module IosVersionChange
2
- VERSION = "0.1.5".freeze
2
+ VERSION = "0.1.6".freeze
3
3
  end
@@ -1,4 +1,3 @@
1
- require "git"
2
1
 
3
2
  module Danger
4
3
  # Asserts the version string has been changed in your iOS XCode project.
@@ -20,9 +19,6 @@ module Danger
20
19
 
21
20
  def initialize(dangerfile)
22
21
  super(dangerfile)
23
- raise unless dangerfile.env.scm.class == Danger::GitRepo
24
-
25
- @git = dangerfile.env.scm
26
22
  end
27
23
 
28
24
  # Ignore. Pass the git diff string here to see if the version string has been updated. Use `ios_version_change.assert_version_changed("ProjectName/Info.plist")` instead as it's more convenient sending the path to the Info.plist file.
@@ -55,12 +51,12 @@ module Danger
55
51
  return # rubocop:disable UnreachableCode
56
52
  end
57
53
 
58
- unless @git.diff.include?(info_plist_file_path) # No diff found for Info.plist file.
59
- fail "You did not change the iOS version."
54
+ unless git.diff_for_file(info_plist_file_path) # No diff found for Info.plist file.
55
+ fail "You did not edit your Info.plist file at all. Therefore, you did not change the iOS version."
60
56
  return # rubocop:disable UnreachableCode
61
57
  end
62
58
 
63
- git_diff_string = @git.diff[info_plist_file_path].patch
59
+ git_diff_string = git.diff_for_file(info_plist_file_path).patch
64
60
  assert_version_changed_diff(git_diff_string)
65
61
  end
66
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-ios_version_change
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levi Bostian
@@ -10,20 +10,6 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2017-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: git
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: danger-plugin-api
29
15
  requirement: !ruby/object:Gem::Requirement