danger-xcodeproj 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.travis.yml +12 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +133 -0
- data/Guardfile +19 -0
- data/LICENSE.txt +22 -0
- data/README.md +21 -0
- data/Rakefile +16 -0
- data/danger-xcodeproj.gemspec +50 -0
- data/lib/danger_plugin.rb +1 -0
- data/lib/danger_xcodeproj.rb +1 -0
- data/lib/xcodeproj/gem_version.rb +3 -0
- data/lib/xcodeproj/plugin.rb +64 -0
- data/spec/spec_helper.rb +65 -0
- data/spec/xcodeproj_spec.rb +42 -0
- metadata +214 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: af9ad3506743b475ae4ed5f99888f0852387b5828c5e5b383f3103e396637480
|
|
4
|
+
data.tar.gz: 983261354062c1e70a5044bb007b64ed28fb9a31e5c4fb9c2632a04d914ea955
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: aa6cd3c202925c48829db42aba3f4fb7cfa0376958e15be629afb91d7e9a0cfa8b8168a4f2f4a6de5d8d35f17bb1738d0f641a2ed79605c17ec112e620b24627
|
|
7
|
+
data.tar.gz: eba9d743f5a5ef6a8f56d57e7e13e9741272903d46d6e0216b7f0932830f15809e04a6935dfde4ea1cb8ad80cecf7902893cb91ff921e26cf9db6d835b3f223d
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
danger-xcodeproj (0.0.1)
|
|
5
|
+
danger
|
|
6
|
+
danger-plugin-api (~> 1.0)
|
|
7
|
+
rake (> 10)
|
|
8
|
+
xcodeproj (~> 1.11.0)
|
|
9
|
+
|
|
10
|
+
GEM
|
|
11
|
+
remote: https://rubygems.org/
|
|
12
|
+
specs:
|
|
13
|
+
CFPropertyList (3.0.0)
|
|
14
|
+
addressable (2.6.0)
|
|
15
|
+
public_suffix (>= 2.0.2, < 4.0)
|
|
16
|
+
atomos (0.1.3)
|
|
17
|
+
claide (1.0.2)
|
|
18
|
+
claide-plugins (0.9.2)
|
|
19
|
+
cork
|
|
20
|
+
nap
|
|
21
|
+
open4 (~> 1.3)
|
|
22
|
+
coderay (1.1.2)
|
|
23
|
+
colored2 (3.1.2)
|
|
24
|
+
cork (0.3.0)
|
|
25
|
+
colored2 (~> 3.1)
|
|
26
|
+
danger (6.0.9)
|
|
27
|
+
claide (~> 1.0)
|
|
28
|
+
claide-plugins (>= 0.9.2)
|
|
29
|
+
colored2 (~> 3.1)
|
|
30
|
+
cork (~> 0.1)
|
|
31
|
+
faraday (~> 0.9)
|
|
32
|
+
faraday-http-cache (~> 2.0)
|
|
33
|
+
git (~> 1.5)
|
|
34
|
+
kramdown (~> 2.0)
|
|
35
|
+
kramdown-parser-gfm (~> 1.0)
|
|
36
|
+
no_proxy_fix
|
|
37
|
+
octokit (~> 4.7)
|
|
38
|
+
terminal-table (~> 1)
|
|
39
|
+
danger-plugin-api (1.0.0)
|
|
40
|
+
danger (> 2.0)
|
|
41
|
+
diff-lcs (1.3)
|
|
42
|
+
faraday (0.15.4)
|
|
43
|
+
multipart-post (>= 1.2, < 3)
|
|
44
|
+
faraday-http-cache (2.0.0)
|
|
45
|
+
faraday (~> 0.8)
|
|
46
|
+
ffi (1.11.1)
|
|
47
|
+
formatador (0.2.5)
|
|
48
|
+
git (1.5.0)
|
|
49
|
+
guard (2.15.0)
|
|
50
|
+
formatador (>= 0.2.4)
|
|
51
|
+
listen (>= 2.7, < 4.0)
|
|
52
|
+
lumberjack (>= 1.0.12, < 2.0)
|
|
53
|
+
nenv (~> 0.1)
|
|
54
|
+
notiffany (~> 0.0)
|
|
55
|
+
pry (>= 0.9.12)
|
|
56
|
+
shellany (~> 0.0)
|
|
57
|
+
thor (>= 0.18.1)
|
|
58
|
+
guard-compat (1.2.1)
|
|
59
|
+
guard-rspec (4.7.3)
|
|
60
|
+
guard (~> 2.1)
|
|
61
|
+
guard-compat (~> 1.1)
|
|
62
|
+
rspec (>= 2.99.0, < 4.0)
|
|
63
|
+
kramdown (2.1.0)
|
|
64
|
+
kramdown-parser-gfm (1.1.0)
|
|
65
|
+
kramdown (~> 2.0)
|
|
66
|
+
listen (3.0.7)
|
|
67
|
+
rb-fsevent (>= 0.9.3)
|
|
68
|
+
rb-inotify (>= 0.9.7)
|
|
69
|
+
lumberjack (1.0.13)
|
|
70
|
+
method_source (0.9.2)
|
|
71
|
+
multipart-post (2.1.1)
|
|
72
|
+
nanaimo (0.2.6)
|
|
73
|
+
nap (1.1.0)
|
|
74
|
+
nenv (0.3.0)
|
|
75
|
+
no_proxy_fix (0.1.2)
|
|
76
|
+
notiffany (0.1.1)
|
|
77
|
+
nenv (~> 0.1)
|
|
78
|
+
shellany (~> 0.0)
|
|
79
|
+
octokit (4.14.0)
|
|
80
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
|
81
|
+
open4 (1.3.4)
|
|
82
|
+
pry (0.12.2)
|
|
83
|
+
coderay (~> 1.1.0)
|
|
84
|
+
method_source (~> 0.9.0)
|
|
85
|
+
public_suffix (3.1.1)
|
|
86
|
+
rake (12.3.3)
|
|
87
|
+
rb-fsevent (0.10.3)
|
|
88
|
+
rb-inotify (0.10.0)
|
|
89
|
+
ffi (~> 1.0)
|
|
90
|
+
rspec (3.8.0)
|
|
91
|
+
rspec-core (~> 3.8.0)
|
|
92
|
+
rspec-expectations (~> 3.8.0)
|
|
93
|
+
rspec-mocks (~> 3.8.0)
|
|
94
|
+
rspec-core (3.8.2)
|
|
95
|
+
rspec-support (~> 3.8.0)
|
|
96
|
+
rspec-expectations (3.8.4)
|
|
97
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
98
|
+
rspec-support (~> 3.8.0)
|
|
99
|
+
rspec-mocks (3.8.1)
|
|
100
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
101
|
+
rspec-support (~> 3.8.0)
|
|
102
|
+
rspec-support (3.8.2)
|
|
103
|
+
sawyer (0.8.2)
|
|
104
|
+
addressable (>= 2.3.5)
|
|
105
|
+
faraday (> 0.8, < 2.0)
|
|
106
|
+
shellany (0.0.1)
|
|
107
|
+
terminal-table (1.8.0)
|
|
108
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
|
109
|
+
thor (0.20.3)
|
|
110
|
+
unicode-display_width (1.6.0)
|
|
111
|
+
xcodeproj (1.11.0)
|
|
112
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
|
113
|
+
atomos (~> 0.1.3)
|
|
114
|
+
claide (>= 1.0.2, < 2.0)
|
|
115
|
+
colored2 (~> 3.1)
|
|
116
|
+
nanaimo (~> 0.2.6)
|
|
117
|
+
yard (0.9.20)
|
|
118
|
+
|
|
119
|
+
PLATFORMS
|
|
120
|
+
ruby
|
|
121
|
+
|
|
122
|
+
DEPENDENCIES
|
|
123
|
+
bundler (~> 1.3)
|
|
124
|
+
danger-xcodeproj!
|
|
125
|
+
guard (~> 2.14)
|
|
126
|
+
guard-rspec (~> 4.7)
|
|
127
|
+
listen (= 3.0.7)
|
|
128
|
+
pry
|
|
129
|
+
rspec (~> 3.4)
|
|
130
|
+
yard
|
|
131
|
+
|
|
132
|
+
BUNDLED WITH
|
|
133
|
+
1.17.3
|
data/Guardfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# A guardfile for making Danger Plugins
|
|
2
|
+
# For more info see https://github.com/guard/guard#readme
|
|
3
|
+
|
|
4
|
+
# To run, use `bundle exec guard`.
|
|
5
|
+
|
|
6
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
|
7
|
+
require 'guard/rspec/dsl'
|
|
8
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
|
9
|
+
|
|
10
|
+
# RSpec files
|
|
11
|
+
rspec = dsl.rspec
|
|
12
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
|
13
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
|
14
|
+
watch(rspec.spec_files)
|
|
15
|
+
|
|
16
|
+
# Ruby files
|
|
17
|
+
ruby = dsl.ruby
|
|
18
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
|
19
|
+
end
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2019 Manoj <gmanojbabu@gmail.com>
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# danger-xcodeproj
|
|
2
|
+
|
|
3
|
+
A Danger plugin for xcodeproj ruby gem
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
$ gem install danger-xcodeproj
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Methods and attributes from this plugin are available in
|
|
12
|
+
your `Dangerfile` under the `xcodeproj` namespace.
|
|
13
|
+
|
|
14
|
+
## Development
|
|
15
|
+
|
|
16
|
+
1. Clone this repo
|
|
17
|
+
2. Run `bundle install` to setup dependencies.
|
|
18
|
+
3. Run `bundle exec rake spec` to run the tests.
|
|
19
|
+
4. Use `bundle exec guard` to automatically have tests run as you make changes.
|
|
20
|
+
5. Make your changes.
|
|
21
|
+
# danger-xcodeproj
|
data/Rakefile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'bundler/gem_tasks'
|
|
2
|
+
require 'rspec/core/rake_task'
|
|
3
|
+
|
|
4
|
+
RSpec::Core::RakeTask.new(:specs)
|
|
5
|
+
|
|
6
|
+
task default: :specs
|
|
7
|
+
|
|
8
|
+
task :spec do
|
|
9
|
+
Rake::Task['specs'].invoke
|
|
10
|
+
Rake::Task['spec_docs'].invoke
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
desc 'Ensure that the plugin passes `danger plugins lint`'
|
|
14
|
+
task :spec_docs do
|
|
15
|
+
sh 'bundle exec danger plugins lint'
|
|
16
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'xcodeproj/gem_version.rb'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = 'danger-xcodeproj'
|
|
8
|
+
spec.version = Xcodeproj::VERSION
|
|
9
|
+
spec.authors = ['Manoj']
|
|
10
|
+
spec.email = ['gmanojbabu@gmail.com']
|
|
11
|
+
spec.description = "A Danger pulgin for xcodeproj ruby gem."
|
|
12
|
+
spec.summary = "A Danger pulgin for xcodeproj ruby gem."
|
|
13
|
+
spec.homepage = 'https://github.com/gmanojbabu/danger-xcodeproj'
|
|
14
|
+
spec.license = 'MIT'
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ['lib']
|
|
20
|
+
spec.add_dependency 'rake', '> 10'
|
|
21
|
+
spec.add_dependency 'danger'
|
|
22
|
+
|
|
23
|
+
spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
|
|
24
|
+
spec.add_runtime_dependency 'xcodeproj', '~> 1.11.0'
|
|
25
|
+
|
|
26
|
+
# General ruby development
|
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
|
28
|
+
|
|
29
|
+
# Testing support
|
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3.4'
|
|
31
|
+
|
|
32
|
+
# Linting code and docs
|
|
33
|
+
spec.add_development_dependency "yard"
|
|
34
|
+
|
|
35
|
+
# Makes testing easy via `bundle exec guard`
|
|
36
|
+
spec.add_development_dependency 'guard', '~> 2.14'
|
|
37
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
|
38
|
+
|
|
39
|
+
# If you want to work on older builds of ruby
|
|
40
|
+
spec.add_development_dependency 'listen', '3.0.7'
|
|
41
|
+
|
|
42
|
+
# This gives you the chance to run a REPL inside your tests
|
|
43
|
+
# via:
|
|
44
|
+
#
|
|
45
|
+
# require 'pry'
|
|
46
|
+
# binding.pry
|
|
47
|
+
#
|
|
48
|
+
# This will stop test execution and let you inspect the results
|
|
49
|
+
spec.add_development_dependency 'pry'
|
|
50
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "xcodeproj/plugin"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "xcodeproj/gem_version"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'xcodeproj'
|
|
4
|
+
|
|
5
|
+
module Danger
|
|
6
|
+
# This is your plugin class. Any attributes or methods you expose here will
|
|
7
|
+
# be available from within your Dangerfile.
|
|
8
|
+
#
|
|
9
|
+
# To be published on the Danger plugins site, you will need to have
|
|
10
|
+
# the public interface documented. Danger uses [YARD](http://yardoc.org/)
|
|
11
|
+
# for generating documentation from your plugin source, and you can verify
|
|
12
|
+
# by running `danger plugins lint` or `bundle exec rake spec`.
|
|
13
|
+
#
|
|
14
|
+
# You should replace these comments with a public description of your library.
|
|
15
|
+
#
|
|
16
|
+
# @example Ensure people are well warned about merging on Mondays
|
|
17
|
+
#
|
|
18
|
+
# my_plugin.warn_on_mondays
|
|
19
|
+
#
|
|
20
|
+
# @see Manoj/danger-xcodeproj
|
|
21
|
+
# @tags monday, weekends, time, rattata
|
|
22
|
+
#
|
|
23
|
+
class DangerXcodeproj < Plugin
|
|
24
|
+
|
|
25
|
+
# Xcode project object
|
|
26
|
+
# @return [Project] Xcode project object
|
|
27
|
+
attr_accessor :project
|
|
28
|
+
|
|
29
|
+
# Opens Xcode project file using the given path
|
|
30
|
+
#
|
|
31
|
+
# @return [void]
|
|
32
|
+
#
|
|
33
|
+
def open(path=nil)
|
|
34
|
+
# Fails if Xcode project file path is not provided
|
|
35
|
+
raise "Xcode project file path in not set!" unless !path.nil?
|
|
36
|
+
|
|
37
|
+
@project = Xcodeproj::Project.open(path)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Targets in Xcode Project file
|
|
41
|
+
#
|
|
42
|
+
# @return [Array<Target>]
|
|
43
|
+
#
|
|
44
|
+
def targets
|
|
45
|
+
raise "Xcode project is not opened!" if @project.nil?
|
|
46
|
+
|
|
47
|
+
puts "Targets:"
|
|
48
|
+
puts @project.targets
|
|
49
|
+
@project.targets
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Targets Attributes in Xcode Project file
|
|
53
|
+
#
|
|
54
|
+
# @return [Array<TargetAttributes>]
|
|
55
|
+
#
|
|
56
|
+
def target_attributes
|
|
57
|
+
raise "Xcode project is not opened!" if project.nil?
|
|
58
|
+
|
|
59
|
+
puts "Project Attributes:"
|
|
60
|
+
puts @project.root_object.attributes["TargetAttributes"]
|
|
61
|
+
@project.root_object.attributes["TargetAttributes"]
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
require "pathname"
|
|
2
|
+
ROOT = Pathname.new(File.expand_path("../../", __FILE__))
|
|
3
|
+
$:.unshift((ROOT + "lib").to_s)
|
|
4
|
+
$:.unshift((ROOT + "spec").to_s)
|
|
5
|
+
|
|
6
|
+
require "bundler/setup"
|
|
7
|
+
require "pry"
|
|
8
|
+
|
|
9
|
+
require "rspec"
|
|
10
|
+
require "danger"
|
|
11
|
+
|
|
12
|
+
if `git remote -v` == ''
|
|
13
|
+
puts "You cannot run tests without setting a local git remote on this repo"
|
|
14
|
+
puts "It's a weird side-effect of Danger's internals."
|
|
15
|
+
exit(0)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Use coloured output, it's the best.
|
|
19
|
+
RSpec.configure do |config|
|
|
20
|
+
config.filter_gems_from_backtrace "bundler"
|
|
21
|
+
config.color = true
|
|
22
|
+
config.tty = true
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
require "danger_plugin"
|
|
26
|
+
|
|
27
|
+
# These functions are a subset of https://github.com/danger/danger/blob/master/spec/spec_helper.rb
|
|
28
|
+
# If you are expanding these files, see if it's already been done ^.
|
|
29
|
+
|
|
30
|
+
# A silent version of the user interface,
|
|
31
|
+
# it comes with an extra function `.string` which will
|
|
32
|
+
# strip all ANSI colours from the string.
|
|
33
|
+
|
|
34
|
+
# rubocop:disable Lint/NestedMethodDefinition
|
|
35
|
+
def testing_ui
|
|
36
|
+
@output = StringIO.new
|
|
37
|
+
def @output.winsize
|
|
38
|
+
[20, 9999]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
cork = Cork::Board.new(out: @output)
|
|
42
|
+
def cork.string
|
|
43
|
+
out.string.gsub(/\e\[([;\d]+)?m/, "")
|
|
44
|
+
end
|
|
45
|
+
cork
|
|
46
|
+
end
|
|
47
|
+
# rubocop:enable Lint/NestedMethodDefinition
|
|
48
|
+
|
|
49
|
+
# Example environment (ENV) that would come from
|
|
50
|
+
# running a PR on TravisCI
|
|
51
|
+
def testing_env
|
|
52
|
+
{
|
|
53
|
+
"HAS_JOSH_K_SEAL_OF_APPROVAL" => "true",
|
|
54
|
+
"TRAVIS_PULL_REQUEST" => "800",
|
|
55
|
+
"TRAVIS_REPO_SLUG" => "artsy/eigen",
|
|
56
|
+
"TRAVIS_COMMIT_RANGE" => "759adcbd0d8f...13c4dc8bb61d",
|
|
57
|
+
"DANGER_GITHUB_API_TOKEN" => "123sbdq54erfsd3422gdfio"
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# A stubbed out Dangerfile for use in tests
|
|
62
|
+
def testing_dangerfile
|
|
63
|
+
env = Danger::EnvironmentManager.new(testing_env)
|
|
64
|
+
Danger::Dangerfile.new(env, testing_ui)
|
|
65
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require File.expand_path("../spec_helper", __FILE__)
|
|
4
|
+
|
|
5
|
+
module Danger
|
|
6
|
+
describe Danger::DangerXcodeproj do
|
|
7
|
+
it "should be a plugin" do
|
|
8
|
+
expect(Danger::DangerXcodeproj.new(nil)).to be_a Danger::Plugin
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
#
|
|
12
|
+
# You should test your custom attributes and methods here
|
|
13
|
+
#
|
|
14
|
+
describe "with Dangerfile" do
|
|
15
|
+
before do
|
|
16
|
+
@dangerfile = testing_dangerfile
|
|
17
|
+
@my_plugin = @dangerfile.xcodeproj
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "Open Xcode project file" do
|
|
21
|
+
|
|
22
|
+
@my_plugin.open('spec/fixtures/danger-xcodeproj/danger-xcodeproj.xcodeproj')
|
|
23
|
+
expect(@my_plugin.project).to_not be_nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
it "Targets exists in opened project" do
|
|
27
|
+
|
|
28
|
+
@my_plugin.open('spec/fixtures/danger-xcodeproj/danger-xcodeproj.xcodeproj')
|
|
29
|
+
expect(@my_plugin.project).to_not be_nil
|
|
30
|
+
expect(@my_plugin.targets).to_not be_nil
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
it "Target Attributes exists in opened project" do
|
|
34
|
+
|
|
35
|
+
@my_plugin.open('spec/fixtures/danger-xcodeproj/danger-xcodeproj.xcodeproj')
|
|
36
|
+
expect(@my_plugin.project).to_not be_nil
|
|
37
|
+
expect(@my_plugin.target_attributes).to_not be_nil
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: danger-xcodeproj
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Manoj
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rake
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '10'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '10'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: danger
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: danger-plugin-api
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '1.0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '1.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: xcodeproj
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 1.11.0
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 1.11.0
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: bundler
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '1.3'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '1.3'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rspec
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '3.4'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '3.4'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: yard
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: guard
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - "~>"
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '2.14'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - "~>"
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '2.14'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: guard-rspec
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '4.7'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - "~>"
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '4.7'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: listen
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - '='
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: 3.0.7
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - '='
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: 3.0.7
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: pry
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - ">="
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: '0'
|
|
160
|
+
type: :development
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - ">="
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '0'
|
|
167
|
+
description: A Danger pulgin for xcodeproj ruby gem.
|
|
168
|
+
email:
|
|
169
|
+
- gmanojbabu@gmail.com
|
|
170
|
+
executables: []
|
|
171
|
+
extensions: []
|
|
172
|
+
extra_rdoc_files: []
|
|
173
|
+
files:
|
|
174
|
+
- ".gitignore"
|
|
175
|
+
- ".travis.yml"
|
|
176
|
+
- Gemfile
|
|
177
|
+
- Gemfile.lock
|
|
178
|
+
- Guardfile
|
|
179
|
+
- LICENSE.txt
|
|
180
|
+
- README.md
|
|
181
|
+
- Rakefile
|
|
182
|
+
- danger-xcodeproj.gemspec
|
|
183
|
+
- lib/danger_plugin.rb
|
|
184
|
+
- lib/danger_xcodeproj.rb
|
|
185
|
+
- lib/xcodeproj/gem_version.rb
|
|
186
|
+
- lib/xcodeproj/plugin.rb
|
|
187
|
+
- spec/spec_helper.rb
|
|
188
|
+
- spec/xcodeproj_spec.rb
|
|
189
|
+
homepage: https://github.com/gmanojbabu/danger-xcodeproj
|
|
190
|
+
licenses:
|
|
191
|
+
- MIT
|
|
192
|
+
metadata: {}
|
|
193
|
+
post_install_message:
|
|
194
|
+
rdoc_options: []
|
|
195
|
+
require_paths:
|
|
196
|
+
- lib
|
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - ">="
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0'
|
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
|
+
requirements:
|
|
204
|
+
- - ">="
|
|
205
|
+
- !ruby/object:Gem::Version
|
|
206
|
+
version: '0'
|
|
207
|
+
requirements: []
|
|
208
|
+
rubygems_version: 3.0.4
|
|
209
|
+
signing_key:
|
|
210
|
+
specification_version: 4
|
|
211
|
+
summary: A Danger pulgin for xcodeproj ruby gem.
|
|
212
|
+
test_files:
|
|
213
|
+
- spec/spec_helper.rb
|
|
214
|
+
- spec/xcodeproj_spec.rb
|