danger-ios_version_change 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +29 -9
- data/Dangerfile +11 -4
- data/Gemfile +3 -0
- data/Gemfile.lock +3 -2
- data/PULL_REQUEST_TEMPLATE.md +1 -3
- data/README.md +1 -1
- data/README_header.md +1 -1
- data/bin/gem-release.sh +7 -0
- data/danger-ios_version_change.gemspec +1 -1
- data/lib/ios_version_change/gem_version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4afcab7df45b395e3a68d252bb7d3f832d9a2df504997faa98ca88ec2c37e031
|
4
|
+
data.tar.gz: 628eec5f76263fee3be8552c1592a2cd000de6bcd61a8fd32a8da6356f71e41f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a73cda3a18439867ae26efe88f9868cff6bc7b0fc2cf8b73b5bc64d225b8fbf04a932ea40d1106dce0f301f058e759d8075c63c74b976b4d22232ddcdcd7349
|
7
|
+
data.tar.gz: e783befb9f181dfaa0999d60ca46e6e8525d8ef8eed6d338de10013440fd9ed12cb055ce897b84857e9a63affaf2e308c137c6a9723abc0632fa75fdd657182c
|
data/.travis.yml
CHANGED
@@ -1,12 +1,32 @@
|
|
1
|
+
# To verify this file, call `travis lint .travis.yml` with travis-cli gem installed. To install, call `bundle install` in this directory.
|
2
|
+
# To make life easier, I made a git commit hook to run this after each commit for reference. Create a file: `.git/hooks/pre-commit` and put inside (without the '#' before the line):
|
3
|
+
# echo "----linting .travis.yml----"
|
4
|
+
# travis lint .travis.yml
|
5
|
+
# exit 0
|
6
|
+
|
7
|
+
sudo: false
|
1
8
|
language: ruby
|
9
|
+
rvm:
|
10
|
+
- "2.4"
|
11
|
+
install:
|
12
|
+
- bundle install --path vendor/bundle
|
2
13
|
cache:
|
3
14
|
directories:
|
4
|
-
- bundle
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
script:
|
12
|
-
|
15
|
+
- vendor/bundle
|
16
|
+
jobs:
|
17
|
+
include:
|
18
|
+
- stage: danger
|
19
|
+
script: bundle exec danger --fail-on-errors=true
|
20
|
+
- stage: lint-tests
|
21
|
+
script: bundle exec rake spec
|
22
|
+
script: bundle exec danger plugins lint
|
23
|
+
script: gem build danger-ios_version_change.gemspec
|
24
|
+
- stage: prod-release
|
25
|
+
script: ./bin/gem-release.sh
|
26
|
+
stages:
|
27
|
+
- name: danger
|
28
|
+
if: type IN (pull_request)
|
29
|
+
- name: lint-tests
|
30
|
+
if: branch = development AND type IN (pull_request)
|
31
|
+
- name: prod-release
|
32
|
+
if: branch = production AND type IN (pull_request)
|
data/Dangerfile
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
if github.branch_for_base
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
if github.branch_for_base != "development" && github.pr_author != "levibostian"
|
2
|
+
fail "Sorry, wrong branch. Create a PR into the `development` branch instead."
|
3
|
+
end
|
4
|
+
|
5
|
+
if github.branch_for_base == "production" && github.branch_for_head != "development"
|
6
|
+
fail "You must merge from the `development` branch into `production`."
|
7
|
+
end
|
8
|
+
|
9
|
+
if github.branch_for_base == "production"
|
10
|
+
if !git.diff_for_file("lib/ios_version_change/gem_version.rb")
|
11
|
+
fail 'You did not update the plugion version in lib/ios_version_change/gem_version.rb'
|
5
12
|
end
|
6
13
|
end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-ios_version_change (0.1.
|
4
|
+
danger-ios_version_change (0.1.7)
|
5
5
|
danger-plugin-api (~> 1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -123,6 +123,7 @@ PLATFORMS
|
|
123
123
|
|
124
124
|
DEPENDENCIES
|
125
125
|
bundler (~> 1.3)
|
126
|
+
danger (~> 5.5)
|
126
127
|
danger-ios_version_change!
|
127
128
|
guard (~> 2.14)
|
128
129
|
guard-rspec (~> 4.7)
|
@@ -132,7 +133,7 @@ DEPENDENCIES
|
|
132
133
|
rspec (~> 3.4)
|
133
134
|
rspec_junit_formatter (~> 0.3.0)
|
134
135
|
rubocop (~> 0.49)
|
135
|
-
yard (~> 0.
|
136
|
+
yard (~> 0.9.11)
|
136
137
|
|
137
138
|
BUNDLED WITH
|
138
139
|
1.16.0
|
data/PULL_REQUEST_TEMPLATE.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
![https://
|
1
|
+
[![Build Status](https://travis-ci.org/levibostian/danger-ios_version_change.svg?branch=master)](https://travis-ci.org/levibostian/danger-ios_version_change)
|
2
2
|
|
3
3
|
|
4
4
|
### ios_version_change
|
data/README_header.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
![https://
|
1
|
+
[![Build Status](https://travis-ci.org/levibostian/danger-ios_version_change.svg?branch=master)](https://travis-ci.org/levibostian/danger-ios_version_change)
|
data/bin/gem-release.sh
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
rm README.md; cat README_header.md > README.md; bundle exec danger plugins readme >> README.md; cat README_footer.md >> README.md
|
6
|
+
printf "%s\n%s " "---" ":rubygems_api_key:" > ~/.gem/credentials; printf $RUBYGEMS_KEY >> ~/.gem/credentials;chmod 0600 ~/.gem/credentials
|
7
|
+
gem build danger-ios_version_change.gemspec; gem push danger-ios_version_change*.gem
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
# Linting code and docs
|
33
33
|
spec.add_development_dependency "rubocop", "~> 0.49"
|
34
|
-
spec.add_development_dependency "yard", "~> 0.
|
34
|
+
spec.add_development_dependency "yard", "~> 0.9.11"
|
35
35
|
|
36
36
|
# Makes testing easy via `bundle exec guard`
|
37
37
|
spec.add_development_dependency 'guard', '~> 2.14'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-ios_version_change
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Levi Bostian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.9.11
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 0.9.11
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: guard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,7 +153,8 @@ dependencies:
|
|
153
153
|
description: Assert iOS version string updated. Danger plugin.
|
154
154
|
email:
|
155
155
|
- levi.bostian@gmail.com
|
156
|
-
executables:
|
156
|
+
executables:
|
157
|
+
- gem-release.sh
|
157
158
|
extensions: []
|
158
159
|
extra_rdoc_files: []
|
159
160
|
files:
|
@@ -172,6 +173,7 @@ files:
|
|
172
173
|
- README_header.md
|
173
174
|
- Rakefile
|
174
175
|
- assert_danger_running_on_pr.sh
|
176
|
+
- bin/gem-release.sh
|
175
177
|
- danger-ios_version_change.gemspec
|
176
178
|
- lib/danger_ios_version_change.rb
|
177
179
|
- lib/danger_plugin.rb
|
@@ -202,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
204
|
version: '0'
|
203
205
|
requirements: []
|
204
206
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.7.
|
207
|
+
rubygems_version: 2.7.4
|
206
208
|
signing_key:
|
207
209
|
specification_version: 4
|
208
210
|
summary: Assert your iOS project has changed it's version number in the XCode project.
|