cocoapods-binary-matchup 0.0.27 → 0.0.28
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 +4 -4
- metadata +3 -29
- data/.gitignore +0 -32
- data/.travis.yml +0 -23
- data/Gemfile +0 -13
- data/Gemfile.lock +0 -161
- data/LICENSE.txt +0 -22
- data/README.md +0 -83
- data/Rakefile +0 -13
- data/cocoapods-binary-matchup.gemspec +0 -27
- data/lib/cocoapods-binary-matchup/Integration.rb +0 -287
- data/lib/cocoapods-binary-matchup/Integration_cache.rb +0 -320
- data/lib/cocoapods-binary-matchup/Main.rb +0 -386
- data/lib/cocoapods-binary-matchup/Prebuild.rb +0 -249
- data/lib/cocoapods-binary-matchup/gem_version.rb +0 -3
- data/lib/cocoapods-binary-matchup/helper/feature_switches.rb +0 -109
- data/lib/cocoapods-binary-matchup/helper/passer.rb +0 -41
- data/lib/cocoapods-binary-matchup/helper/podfile_options.rb +0 -122
- data/lib/cocoapods-binary-matchup/helper/prebuild_sandbox.rb +0 -53
- data/lib/cocoapods-binary-matchup/helper/target_checker.rb +0 -49
- data/lib/cocoapods-binary-matchup/rome/build_framework.rb +0 -316
- data/lib/cocoapods-binary-matchup/tool/tool.rb +0 -12
- data/lib/cocoapods-binary.rb +0 -1
- data/lib/cocoapods_plugin.rb +0 -2
- data/spec/plugin_spec.rb +0 -43
- data/spec/spec_helper.rb +0 -50
data/lib/cocoapods-binary.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require 'cocoapods-binary-matchup/gem_version'
|
data/lib/cocoapods_plugin.rb
DELETED
data/spec/plugin_spec.rb
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
require File.expand_path('../spec_helper', __FILE__)
|
|
2
|
-
|
|
3
|
-
describe "CocoaPods Binary Matchup Plugin" do
|
|
4
|
-
it "should load the plugin" do
|
|
5
|
-
Pod::Prebuild.keyword.should == :binary
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
it "should load successfully" do
|
|
9
|
-
# 简单验证插件加载成功
|
|
10
|
-
defined?(Pod::Prebuild).should.not.be.nil
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
it "should have basic constants defined" do
|
|
14
|
-
# 验证基本常量存在
|
|
15
|
-
Pod.constants.should.include?(:Prebuild)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
it "should define DSL instance methods" do
|
|
19
|
-
# 验证实例方法存在(这些是在Podfile中使用的方法)
|
|
20
|
-
# instance_methods是反射方法,用于获取所有的实例方法,注意false代表不获取父类
|
|
21
|
-
dsl_methods = Pod::Podfile::DSL.instance_methods(false)
|
|
22
|
-
dsl_methods.should.include?(:all_binary!)
|
|
23
|
-
dsl_methods.should.include?(:enable_bitcode_for_prebuilt_frameworks!)
|
|
24
|
-
dsl_methods.should.include?(:keep_source_code_for_prebuilt_frameworks!)
|
|
25
|
-
dsl_methods.should.include?(:simulator_build_disable!)
|
|
26
|
-
dsl_methods.should.include?(:set_custom_xcodebuild_options_for_prebuilt_frameworks)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
it "should have correct default values for public attributes" do
|
|
30
|
-
# 验证公开的默认配置值
|
|
31
|
-
Pod::Podfile::DSL.simulator_build_enabled.should == true
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
it "should allow toggling simulator build" do
|
|
36
|
-
# 验证可以切换模拟器构建设置
|
|
37
|
-
original_value = Pod::Podfile::DSL.simulator_build_enabled
|
|
38
|
-
Pod::Podfile::DSL.simulator_build_enabled = false
|
|
39
|
-
Pod::Podfile::DSL.simulator_build_enabled.should == false
|
|
40
|
-
# 恢复原值
|
|
41
|
-
Pod::Podfile::DSL.simulator_build_enabled = original_value
|
|
42
|
-
end
|
|
43
|
-
end
|
data/spec/spec_helper.rb
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
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 'bacon'
|
|
8
|
-
require 'mocha-on-bacon'
|
|
9
|
-
require 'pretty_bacon'
|
|
10
|
-
require 'pathname'
|
|
11
|
-
require 'cocoapods'
|
|
12
|
-
|
|
13
|
-
# Mocha::Configuration.prevent(:stubbing_non_existent_method) # 兼容性问题,暂时注释
|
|
14
|
-
|
|
15
|
-
require 'cocoapods_plugin'
|
|
16
|
-
|
|
17
|
-
#-----------------------------------------------------------------------------#
|
|
18
|
-
|
|
19
|
-
module Pod
|
|
20
|
-
|
|
21
|
-
# Disable the wrapping so the output is deterministic in the tests.
|
|
22
|
-
#
|
|
23
|
-
UI.disable_wrap = true
|
|
24
|
-
|
|
25
|
-
# Redirects the messages to an internal store.
|
|
26
|
-
#
|
|
27
|
-
module UI
|
|
28
|
-
@output = ''
|
|
29
|
-
@warnings = ''
|
|
30
|
-
|
|
31
|
-
class << self
|
|
32
|
-
attr_accessor :output
|
|
33
|
-
attr_accessor :warnings
|
|
34
|
-
|
|
35
|
-
def puts(message = '')
|
|
36
|
-
@output << "#{message}\n"
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def warn(message = '', actions = [])
|
|
40
|
-
@warnings << "#{message}\n"
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
def print(message)
|
|
44
|
-
@output << message
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
#-----------------------------------------------------------------------------#
|