Skip to content

Commit c33478e

Browse files
committed
stash
1 parent 90889d2 commit c33478e

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Layout/IndentationWidth:
2+
Width: 4

lib/cocoapods-binary/Main.rb

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# encoding: UTF-8
21
require_relative 'helper/podfile_options'
32
require_relative 'tool/tool'
43

5-
module Pod
4+
module Pod
65
class Podfile
76
module DSL
8-
97
# Enable prebuiding for all pods
108
# it has a lower priority to other binary settings
119
def all_binary!
@@ -44,18 +42,17 @@ def keep_source_code_for_prebuilt_frameworks!
4442
# If is a Hash, it should be like this: { :device => "XXXXX", :simulator => "XXXXX" }
4543
#
4644
def set_custom_xcodebuild_options_for_prebuilt_frameworks(options)
47-
if options.kind_of? Hash
48-
DSL.custom_build_options = [ options[:device] ] unless options[:device].nil?
49-
DSL.custom_build_options_simulator = [ options[:simulator] ] unless options[:simulator].nil?
50-
elsif options.kind_of? String
45+
if options.is_a? Hash
46+
DSL.custom_build_options = [options[:device]] if options[:device]
47+
DSL.custom_build_options_simulator = [options[:simulator]] if options[:simulator]
48+
elsif options.is_a? String
5149
DSL.custom_build_options = [options]
5250
DSL.custom_build_options_simulator = [options]
5351
else
5452
raise "Wrong type."
5553
end
5654
end
5755

58-
private
5956
class_attr_accessor :prebuild_all
6057
prebuild_all = false
6158

lib/cocoapods-binary/tool/tool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
#
1010
def class_attr_accessor(symbol)
1111
self.class.send(:attr_accessor, symbol)
12-
end
12+
end

0 commit comments

Comments
 (0)