danger-xcprofiler 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4517483c48363b161682735098cb155421e85f2a
4
+ data.tar.gz: 1d83c34b91abe07910c18828b5995146c69106a3
5
+ SHA512:
6
+ metadata.gz: 834d6a44e9f21f0822392719f81b8bb81714ab624a07df1f47bbaf2771a9cb0080b09a0b355553bf2f3c5da4f2cd2822716f497e8cfda64b79108e3ee8ee13d4
7
+ data.tar.gz: a22b24a903276c06eeaad1b36d2f363cec26b5c5c74875456678b2f8c49d73253191c9c6d406962cfbd91e519031bf8b1d8eb97ede8bb2994f45dfab6dba7119
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ pkg
3
+ .idea/
4
+ Gemfile.lock
5
+ .yardoc/*
data/.rubocop.yml ADDED
@@ -0,0 +1,14 @@
1
+ Metrics/MethodLength:
2
+ Enabled: false
3
+
4
+ Metrics/LineLength:
5
+ Max: 120
6
+
7
+ Metrics/BlockLength:
8
+ Exclude:
9
+ - spec/**/*.rb
10
+
11
+ Style/Documentation:
12
+ Enabled: false
13
+
14
+
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ cache:
3
+ directories:
4
+ - bundle
5
+
6
+ rvm:
7
+ - 2.0
8
+ - 2.1.3
9
+ - 2.3.1
10
+
11
+ script:
12
+ - bundle exec rake spec
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in danger-xcprofiler.gemspec
4
+ gemspec
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) 2017 Kohki Miki <koki-miki@cookpad.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,49 @@
1
+ # danger-xcprofiler
2
+ [![Build Status](https://travis-ci.org/giginet/danger-xcprofiler.svg?branch=master)](https://travis-ci.org/giginet/danger-xcprofiler)
3
+
4
+ [danger](https://github.com/danger/danger) plugin for asserting Swift compilation time.
5
+
6
+ See detail for README of [xcprofiler](https://github.com/giginet/xcprofiler).
7
+
8
+ ![](assets/warning.png)
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Gemfile:
13
+
14
+ ```sh
15
+ gem 'danger-xcprofiler'
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ Just add this line to your Dangerfile:
21
+
22
+ ```ruby
23
+ xcprofiler.report 'MyApp'
24
+ ```
25
+
26
+ If compilation times of each methods are exceeded the thresholds, `danger` adds inline comment to your PR.
27
+
28
+ Default thresholds is 50ms for warning, 100ms for failure.
29
+
30
+ If you want to change thresholds see the following:
31
+
32
+ ```ruby
33
+ # Defines inline_mode
34
+ xcprofiler.inline_mode = false
35
+ # Defines thresholds (ms)
36
+ xcprofiler.thresholds = {
37
+ warn: 100,
38
+ fail: 500
39
+ }
40
+ xcprofiler.report 'MyApp'
41
+ ```
42
+
43
+ ## Development
44
+
45
+ 1. Clone this repo
46
+ 2. Run `bundle install` to setup dependencies.
47
+ 3. Run `bundle exec rake spec` to run the tests.
48
+ 4. Use `bundle exec guard` to automatically have tests run as you make changes.
49
+ 5. Make your changes.
data/Rakefile ADDED
@@ -0,0 +1,23 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:specs)
6
+
7
+ task default: :specs
8
+
9
+ task :spec do
10
+ Rake::Task['specs'].invoke
11
+ Rake::Task['rubocop'].invoke
12
+ Rake::Task['spec_docs'].invoke
13
+ end
14
+
15
+ desc 'Run RuboCop on the lib/specs directory'
16
+ RuboCop::RakeTask.new(:rubocop) do |task|
17
+ task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
18
+ end
19
+
20
+ desc 'Ensure that the plugin passes `danger plugins lint`'
21
+ task :spec_docs do
22
+ sh 'bundle exec danger plugins lint'
23
+ end
Binary file
@@ -0,0 +1,51 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'xcprofiler/gem_version.rb'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'danger-xcprofiler'
9
+ spec.version = DangerXcprofiler::VERSION
10
+ spec.authors = ['giginet']
11
+ spec.email = ['giginet.net@gmail.com']
12
+ spec.description = 'danger plugin for asserting Swift compilation time.'
13
+ spec.summary = spec.description
14
+ spec.homepage = 'https://github.com/giginet/danger-xcprofiler'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_dependency 'xcprofiler'
23
+ spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
24
+
25
+ # General ruby development
26
+ spec.add_development_dependency 'bundler', '~> 1.3'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+
29
+ # Testing support
30
+ spec.add_development_dependency 'rspec', '~> 3.4'
31
+
32
+ # Linting code and docs
33
+ spec.add_development_dependency 'rubocop', '~> 0.41'
34
+ spec.add_development_dependency 'yard', '~> 0.8'
35
+
36
+ # Makes testing easy via `bundle exec guard`
37
+ spec.add_development_dependency 'guard', '~> 2.14'
38
+ spec.add_development_dependency 'guard-rspec', '~> 4.7'
39
+
40
+ # If you want to work on older builds of ruby
41
+ spec.add_development_dependency 'listen', '3.0.7'
42
+
43
+ # This gives you the chance to run a REPL inside your tests
44
+ # via:
45
+ #
46
+ # require 'pry'
47
+ # binding.pry
48
+ #
49
+ # This will stop test execution and let you inspect the results
50
+ spec.add_development_dependency 'pry'
51
+ end
@@ -0,0 +1 @@
1
+ require 'xcprofiler/plugin'
@@ -0,0 +1 @@
1
+ require 'xcprofiler/gem_version'
@@ -0,0 +1,37 @@
1
+ require 'xcprofiler'
2
+ require 'pathname'
3
+
4
+ module Danger
5
+ class DangerReporter < Xcprofiler::AbstractReporter
6
+ def initialize(dangerfile, thresholds, inline_mode, working_dir)
7
+ super({})
8
+ @dangerfile = dangerfile
9
+ @thresholds = thresholds
10
+ @inline_mode = inline_mode
11
+ @working_dir = working_dir
12
+ end
13
+
14
+ def report!(executions)
15
+ executions.each do |execution|
16
+ options = {}
17
+ if @inline_mode
18
+ options[:file] = relative_path(execution.path)
19
+ options[:line] = execution.line
20
+ end
21
+ message = "`#{execution.method_name}` takes #{execution.time} ms to build"
22
+ if execution.time >= @thresholds[:fail]
23
+ @dangerfile.fail(message, options)
24
+ elsif execution.time >= @thresholds[:warn]
25
+ @dangerfile.warn(message, options)
26
+ end
27
+ end
28
+ end
29
+
30
+ private
31
+
32
+ def relative_path(path)
33
+ working_dir = Pathname.new(@working_dir)
34
+ Pathname.new(path).relative_path_from(working_dir).to_s
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,3 @@
1
+ module DangerXcprofiler
2
+ VERSION = '0.1.0'.freeze
3
+ end
@@ -0,0 +1,64 @@
1
+ require 'xcprofiler'
2
+ require_relative 'danger_reporter'
3
+
4
+ module Danger
5
+ # Asserts compilation time of each methods if these are exceeded the specified thresholds
6
+ # @example Asserting compilation time of 'MyApp'
7
+ #
8
+ # xcprofiler.report 'MyApp'
9
+ #
10
+ # @example Define thresholds (ms)
11
+ #
12
+ # xcprofiler.thresholds = { warn: 100, fail: 500 }
13
+ # xcprofiler.report 'MyApp'
14
+ #
15
+ # @see giginet/danger-xcprofiler
16
+ # @tags xcode, ios, danger
17
+ class DangerXcprofiler < Plugin
18
+ # Defines path for working directory
19
+ # Default value is `Dir.pwd`
20
+ # @param [String] value
21
+ # @return [String]
22
+ attr_accessor :working_dir
23
+
24
+ # Defines threshold of compilation time (ms) to assert warning/failure
25
+ # Default value is `{ warn: 100, fail: 500 }`
26
+ # @param [Hash<String, String>] value
27
+ # @return [Hash<String, String>]
28
+ attr_accessor :thresholds
29
+
30
+ # Defines if using inline comment to assert
31
+ # Default value is `true`
32
+ # @param [Boolean] value
33
+ # @return [Boolean]
34
+ attr_accessor :inline_mode
35
+
36
+ # Search the latest .xcactivitylog by the passing product_name and profile compilation time
37
+ # @param [String] product_name Product name for the target project.
38
+ # @return [void]
39
+ def report(product_name)
40
+ profiler = Xcprofiler::Profiler.by_product_name(product_name)
41
+ profiler.reporters = [
42
+ DangerReporter.new(@dangerfile, thresholds, inline_mode, working_dir)
43
+ ]
44
+ profiler.report!
45
+ rescue Xcprofiler::DerivedDataNotFound, Xcprofiler::BuildFlagIsNotEnabled => e
46
+ warn(e.message)
47
+ end
48
+
49
+ private
50
+
51
+ def working_dir
52
+ @working_dir || Dir.pwd
53
+ end
54
+
55
+ def thresholds
56
+ @thresholds || { warn: 50, fail: 100 }
57
+ end
58
+
59
+ def inline_mode
60
+ return false if @inline_mode.nil? == false
61
+ true
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,59 @@
1
+ require 'pathname'
2
+ ROOT = Pathname.new(File.expand_path('../../', __FILE__))
3
+ $LOAD_PATH.unshift((ROOT + 'lib').to_s)
4
+ $LOAD_PATH.unshift((ROOT + 'spec').to_s)
5
+
6
+ require 'bundler/setup'
7
+ require 'pry'
8
+
9
+ require 'rspec'
10
+ require 'danger'
11
+
12
+ # Use coloured output, it's the best.
13
+ RSpec.configure do |config|
14
+ config.filter_gems_from_backtrace 'bundler'
15
+ config.color = true
16
+ config.tty = true
17
+ end
18
+
19
+ require 'danger_plugin'
20
+
21
+ # These functions are a subset of https://github.com/danger/danger/blob/master/spec/spec_helper.rb
22
+ # If you are expanding these files, see if it's already been done ^.
23
+
24
+ # A silent version of the user interface,
25
+ # it comes with an extra function `.string` which will
26
+ # strip all ANSI colours from the string.
27
+
28
+ # rubocop:disable Lint/NestedMethodDefinition
29
+ def testing_ui
30
+ @output = StringIO.new
31
+ def @output.winsize
32
+ [20, 9999]
33
+ end
34
+
35
+ cork = Cork::Board.new(out: @output)
36
+ def cork.string
37
+ out.string.gsub(/\e\[([;\d]+)?m/, '')
38
+ end
39
+ cork
40
+ end
41
+ # rubocop:enable Lint/NestedMethodDefinition
42
+
43
+ # Example environment (ENV) that would come from
44
+ # running a PR on TravisCI
45
+ def testing_env
46
+ {
47
+ 'HAS_JOSH_K_SEAL_OF_APPROVAL' => 'true',
48
+ 'TRAVIS_PULL_REQUEST' => '800',
49
+ 'TRAVIS_REPO_SLUG' => 'artsy/eigen',
50
+ 'TRAVIS_COMMIT_RANGE' => '759adcbd0d8f...13c4dc8bb61d',
51
+ 'DANGER_GITHUB_API_TOKEN' => '123sbdq54erfsd3422gdfio'
52
+ }
53
+ end
54
+
55
+ # A stubbed out Dangerfile for use in tests
56
+ def testing_dangerfile
57
+ env = Danger::EnvironmentManager.new(testing_env)
58
+ Danger::Dangerfile.new(env, testing_ui)
59
+ end
@@ -0,0 +1,114 @@
1
+ require File.expand_path('../spec_helper', __FILE__)
2
+ require 'xcprofiler'
3
+
4
+ module Danger
5
+ describe Danger::DangerXcprofiler do
6
+ it 'should be a plugin' do
7
+ expect(Danger::DangerXcprofiler.new(nil)).to be_a Danger::Plugin
8
+ end
9
+
10
+ describe 'with Dangerfile' do
11
+ let(:product_name) { 'MyApp' }
12
+ let(:derived_data) { double('derived_data') }
13
+ let(:profiler) { Xcprofiler::Profiler.new(derived_data) }
14
+ let(:location) { 'path/to/Source.swift:20:30' }
15
+ let(:method_name) { 'doSomething()' }
16
+ let(:time0) { 0 }
17
+ let(:time1) { 0 }
18
+ let(:execution0) { Xcprofiler::Execution.new(time0, location, method_name) }
19
+ let(:execution1) { Xcprofiler::Execution.new(time1, location, method_name) }
20
+
21
+ before do
22
+ @dangerfile = testing_dangerfile
23
+ @xcprofiler = @dangerfile.xcprofiler
24
+ @xcprofiler.working_dir = ''
25
+ allow(@dangerfile).to receive(:warn)
26
+ allow(@dangerfile).to receive(:fail)
27
+ allow(Xcprofiler::Profiler).to receive(:by_product_name).with(product_name).and_return(profiler)
28
+ allow(derived_data).to receive(:flag_enabled?).and_return(true)
29
+ allow(derived_data).to receive(:executions).and_return([execution0, execution1])
30
+ [execution0, execution1].each do |execution|
31
+ allow(execution).to receive(:invalid?).and_return(false)
32
+ allow(execution).to receive(:location).and_return(location)
33
+ end
34
+ end
35
+
36
+ context 'with slow execution' do
37
+ let(:time0) { 49.9 }
38
+ let(:time1) { 50 }
39
+ it 'asserts warning' do
40
+ @xcprofiler.report(product_name)
41
+ expect(@dangerfile).to have_received(:warn).with('`doSomething()` takes 50.0 ms to build',
42
+ file: 'path/to/Source.swift',
43
+ line: 20)
44
+ end
45
+ end
46
+
47
+ context 'with very slow execution' do
48
+ let(:time0) { 99.9 }
49
+ let(:time1) { 100 }
50
+ it 'asserts failure' do
51
+ @xcprofiler.report(product_name)
52
+ expect(@dangerfile).to have_received(:fail).with('`doSomething()` takes 100.0 ms to build',
53
+ file: 'path/to/Source.swift',
54
+ line: 20)
55
+ end
56
+ end
57
+
58
+ context 'with threshold' do
59
+ before do
60
+ @xcprofiler.thresholds = {
61
+ warn: 10,
62
+ fail: 20
63
+ }
64
+ end
65
+
66
+ context 'with slow execution' do
67
+ let(:time0) { 100 }
68
+ let(:time1) { 10 }
69
+ it 'asserts warning' do
70
+ @xcprofiler.report(product_name)
71
+ expect(@dangerfile).to have_received(:warn).with('`doSomething()` takes 10.0 ms to build',
72
+ file: 'path/to/Source.swift',
73
+ line: 20)
74
+ end
75
+ end
76
+
77
+ context 'with very slow execution' do
78
+ let(:time0) { 9.9 }
79
+ let(:time1) { 20 }
80
+ it 'asserts failure' do
81
+ @xcprofiler.report(product_name)
82
+ expect(@dangerfile).to have_received(:fail).with('`doSomething()` takes 20.0 ms to build',
83
+ file: 'path/to/Source.swift',
84
+ line: 20)
85
+ end
86
+ end
87
+ end
88
+
89
+ context 'with inline_mode = false' do
90
+ before do
91
+ @xcprofiler.inline_mode = false
92
+ end
93
+
94
+ context 'with slow execution' do
95
+ let(:time0) { 49.9 }
96
+ let(:time1) { 50 }
97
+ it 'asserts warning' do
98
+ @xcprofiler.report(product_name)
99
+ expect(@dangerfile).to have_received(:warn).with('`doSomething()` takes 50.0 ms to build', {})
100
+ end
101
+ end
102
+
103
+ context 'with very slow execution' do
104
+ let(:time0) { 99.9 }
105
+ let(:time1) { 100 }
106
+ it 'asserts failure' do
107
+ @xcprofiler.report(product_name)
108
+ expect(@dangerfile).to have_received(:fail).with('`doSomething()` takes 100.0 ms to build', {})
109
+ end
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
metadata ADDED
@@ -0,0 +1,217 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: danger-xcprofiler
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - giginet
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: xcprofiler
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
+ - !ruby/object:Gem::Dependency
28
+ name: danger-plugin-api
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.41'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.41'
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.8'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.8'
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: danger plugin for asserting Swift compilation time.
168
+ email:
169
+ - giginet.net@gmail.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".gitignore"
175
+ - ".rubocop.yml"
176
+ - ".travis.yml"
177
+ - Gemfile
178
+ - Guardfile
179
+ - LICENSE.txt
180
+ - README.md
181
+ - Rakefile
182
+ - assets/warning.png
183
+ - danger-xcprofiler.gemspec
184
+ - lib/danger_plugin.rb
185
+ - lib/danger_xcprofiler.rb
186
+ - lib/xcprofiler/danger_reporter.rb
187
+ - lib/xcprofiler/gem_version.rb
188
+ - lib/xcprofiler/plugin.rb
189
+ - spec/spec_helper.rb
190
+ - spec/xcprofiler_spec.rb
191
+ homepage: https://github.com/giginet/danger-xcprofiler
192
+ licenses:
193
+ - MIT
194
+ metadata: {}
195
+ post_install_message:
196
+ rdoc_options: []
197
+ require_paths:
198
+ - lib
199
+ required_ruby_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ required_rubygems_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ requirements: []
210
+ rubyforge_project:
211
+ rubygems_version: 2.5.2
212
+ signing_key:
213
+ specification_version: 4
214
+ summary: danger plugin for asserting Swift compilation time.
215
+ test_files:
216
+ - spec/spec_helper.rb
217
+ - spec/xcprofiler_spec.rb