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.
@@ -1,12 +0,0 @@
1
- # attr_accessor for class variable.
2
- # usage:
3
- #
4
- # ```
5
- # class Pod
6
- # class_attr_accessor :is_prebuild_stage
7
- # end
8
- # ```
9
- #
10
- def class_attr_accessor(symbol)
11
- self.class.send(:attr_accessor, symbol)
12
- end
@@ -1 +0,0 @@
1
- require 'cocoapods-binary-matchup/gem_version'
@@ -1,2 +0,0 @@
1
- require 'cocoapods-binary-matchup/Main'
2
-
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
- #-----------------------------------------------------------------------------#