xcake 0.1.7 → 0.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 546ca9e60245b37c6d7d5c510047d91faee9bac8
4
- data.tar.gz: 54e5ec86e2f95aa4ded68c09b1395fcfea7431da
3
+ metadata.gz: 031c62291636e90389b9bbe0fce236d6c105c579
4
+ data.tar.gz: 9fb958785aee2ac712d4442354934d16017c6d7b
5
5
  SHA512:
6
- metadata.gz: 375bf283c8d67ef3ff9e6bdbe37abdb4887da50f57d2e30705f5cce7d49e0faa1a86c12d9e1c622b57561105cc57a477527f7ac94d4ee7c1369ad9e03b3bc323
7
- data.tar.gz: 5d167875d3a10e71ea0433342d84d1571dce3a4b60af8e6aff46a048512299a5fb83dab193cbcc4bf9f7faf426d0431ac553944a6380e3b62fe50ee942b812b2
6
+ metadata.gz: 29b80cc3cb5b7583f8f0c833606955d49bcbc3e717d0fe88b5ca0fb044d5082ed5c3330c5ba609ffe1319d14ebf3065af1fc444c22645acf424a3be52e16b163
7
+ data.tar.gz: 0582236b48b0108e94daeea9212f4b14733e2fb27ff395ecd619b949f6922bc7d3564373fc753baaa3ea7eba12e73ac1ceec5c1071db3708c0b55cacf40a2b61
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v0.1.8
2
+ ======
3
+ - Add tvOS and Watch OS support (Thanks to @petester42)
4
+
1
5
  v0.1.7
2
6
  ======
3
7
  - Adds ability to set Project Class Prefix and Organization
@@ -9,7 +13,6 @@ v0.1.6
9
13
 
10
14
  v0.1.5
11
15
  ======
12
- - Fixed crash with Unit Tests
13
16
  - Added documentation for Target syntax.
14
17
 
15
18
  v0.1.4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcake (0.1.7)
4
+ xcake (0.1.8)
5
5
  claide
6
6
  xcodeproj (~> 0.28)
7
7
 
data/_hound.yml ADDED
@@ -0,0 +1,2 @@
1
+ ruby:
2
+ config_file: .rubocop.yml
data/_rubocop.yml ADDED
@@ -0,0 +1,177 @@
1
+ ##################
2
+ # All rules specific to this repo
3
+ ##################
4
+
5
+ inherit_from: .rubocop_general.yml
6
+
7
+ # e.g.
8
+ # def self.is_supported?(platform)
9
+ # we may never use `platform`
10
+ Lint/UnusedMethodArgument:
11
+ Enabled: false
12
+
13
+ # the let(:key) { ... }
14
+ Lint/ParenthesesAsGroupedExpression:
15
+ Exclude:
16
+ - 'spec/**/*'
17
+
18
+ # We use `is_supported?` everywhere already
19
+ Style/PredicateName:
20
+ Enabled: false
21
+
22
+ # Disable '+ should be surrounded with a single space' for xcodebuild_spec.rb
23
+ Style/SpaceAroundOperators:
24
+ Exclude:
25
+ - 'spec/actions_specs/xcodebuild_spec.rb'
26
+
27
+ Metrics/MethodLength:
28
+ Exclude:
29
+ - 'lib/fastlane/actions/*.rb'
30
+ - 'bin/fastlane'
31
+
32
+ AllCops:
33
+ Include:
34
+ - 'fastlane/Fastfile'
35
+ Exclude:
36
+ - 'lib/assets/custom_action_template.rb'
37
+
38
+ ##################
39
+ # TODO
40
+ ##################
41
+
42
+ # Offense count: 20
43
+ Metrics/AbcSize:
44
+ Max: 63
45
+
46
+ # Offense count: 7
47
+ # Configuration parameters: CountComments.
48
+ Metrics/ClassLength:
49
+ Max: 320
50
+
51
+ # Offense count: 4
52
+ Metrics/CyclomaticComplexity:
53
+ Max: 17
54
+
55
+ # Offense count: 489
56
+ # Configuration parameters: AllowURI, URISchemes.
57
+ Metrics/LineLength:
58
+ Max: 372
59
+
60
+ # Offense count: 5
61
+ # Configuration parameters: CountKeywordArgs.
62
+ Metrics/ParameterLists:
63
+ Max: 17
64
+
65
+ # Offense count: 3
66
+ Metrics/PerceivedComplexity:
67
+ Max: 18
68
+
69
+ # Offense count: 1
70
+ # Cop supports --auto-correct.
71
+ Style/Alias:
72
+ Enabled: false
73
+
74
+ # Offense count: 14
75
+ # Cop supports --auto-correct.
76
+ # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
77
+ Style/AlignHash:
78
+ Enabled: false
79
+
80
+ # Offense count: 22
81
+ # Cop supports --auto-correct.
82
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
83
+ Style/AndOr:
84
+ Enabled: false
85
+
86
+ # Offense count: 1
87
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
88
+ Style/ClassAndModuleChildren:
89
+ Enabled: false
90
+
91
+ # Offense count: 19
92
+ Style/Documentation:
93
+ Enabled: false
94
+
95
+ # Offense count: 112
96
+ # Cop supports --auto-correct.
97
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
98
+ Style/DotPosition:
99
+ Enabled: false
100
+
101
+ # Offense count: 12
102
+ # Cop supports --auto-correct.
103
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
104
+ Style/EmptyLinesAroundClassBody:
105
+ Enabled: false
106
+
107
+ # Configuration parameters: MinBodyLength.
108
+ Style/GuardClause:
109
+ Enabled: false
110
+
111
+ # Offense count: 4
112
+ # Cop supports --auto-correct.
113
+ # Configuration parameters: MaxLineLength.
114
+ Style/IfUnlessModifier:
115
+ Enabled: false
116
+
117
+ # Offense count: 74
118
+ # Cop supports --auto-correct.
119
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
120
+ Style/MultilineOperationIndentation:
121
+ Enabled: false
122
+
123
+ # Offense count: 10
124
+ # Cop supports --auto-correct.
125
+ Style/NumericLiterals:
126
+ MinDigits: 14
127
+
128
+ # Offense count: 2
129
+ # Cop supports --auto-correct.
130
+ Style/PerlBackrefs:
131
+ Enabled: false
132
+
133
+ # Offense count: 19
134
+ # Cop supports --auto-correct.
135
+ # Configuration parameters: AllowMultipleReturnValues.
136
+ Style/RedundantReturn:
137
+ Enabled: false
138
+
139
+ # Offense count: 77
140
+ # Cop supports --auto-correct.
141
+ Style/RedundantSelf:
142
+ Enabled: false
143
+
144
+ # Offense count: 38
145
+ # Cop supports --auto-correct.
146
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
147
+ Style/SignalException:
148
+ Enabled: false
149
+
150
+ # Offense count: 5
151
+ # Cop supports --auto-correct.
152
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
153
+ Style/SpaceInsideBlockBraces:
154
+ Enabled: false
155
+
156
+ # Offense count: 291
157
+ # Cop supports --auto-correct.
158
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
159
+ Style/SpaceInsideHashLiteralBraces:
160
+ Enabled: false
161
+
162
+ # Offense count: 8
163
+ # Cop supports --auto-correct.
164
+ Style/SpaceInsideParens:
165
+ Enabled: false
166
+
167
+ # Offense count: 881
168
+ # Cop supports --auto-correct.
169
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
170
+ Style/StringLiterals:
171
+ Enabled: false
172
+
173
+ # Offense count: 9
174
+ # Cop supports --auto-correct.
175
+ # Configuration parameters: WordRegex.
176
+ Style/WordArray:
177
+ MinSize: 19
@@ -0,0 +1,113 @@
1
+
2
+ Style/ClassCheck:
3
+ EnforcedStyle: kind_of?
4
+
5
+ # Cop supports --auto-correct.
6
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
7
+ Style/BracesAroundHashParameters:
8
+ Enabled: false
9
+
10
+ Lint/UselessAssignment:
11
+ Exclude:
12
+ - 'spec/**/*'
13
+
14
+ # Cop supports --auto-correct.
15
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
16
+ Style/IndentHash:
17
+ Enabled: false
18
+
19
+ Style/RaiseArgs:
20
+ EnforcedStyle: exploded
21
+
22
+ Style/DoubleNegation:
23
+ Enabled: false
24
+
25
+ Lint/HandleExceptions:
26
+ Enabled: false
27
+
28
+ # Cop supports --auto-correct.
29
+ Lint/UnusedBlockArgument:
30
+ Enabled: false
31
+
32
+ # Needed for $verbose
33
+ Style/GlobalVars:
34
+ Enabled: false
35
+
36
+ Style/FileName:
37
+ Enabled: false
38
+
39
+ # $? Exit
40
+ Style/SpecialGlobalVars:
41
+ Enabled: false
42
+
43
+ # the let(:key) { ... } should be allowed in tests
44
+ Lint/ParenthesesAsGroupedExpression:
45
+ Exclude:
46
+ - 'spec/**/*'
47
+
48
+ # options.rb might be large, we know that
49
+ Metrics/MethodLength:
50
+ Max: 60
51
+ Exclude:
52
+ - 'lib/*/options.rb'
53
+
54
+ Metrics/AbcSize:
55
+ Max: 60
56
+ Exclude:
57
+ - 'lib/*/options.rb'
58
+
59
+ # Both string notations are okay
60
+ Style/StringLiterals:
61
+ Enabled: false
62
+
63
+ # The %w might be confusing for new users
64
+ Style/WordArray:
65
+ MinSize: 19
66
+
67
+ # Not a good thing
68
+ Style/RedundantSelf:
69
+ Enabled: false
70
+
71
+ # raise and fail are both okay
72
+ Style/SignalException:
73
+ Enabled: false
74
+
75
+ # Better too much 'return' than one missing
76
+ Style/RedundantReturn:
77
+ Enabled: false
78
+
79
+ # Having if in the same line might not always be good
80
+ Style/IfUnlessModifier:
81
+ Enabled: false
82
+
83
+ # That looks wrong
84
+ Style/AlignHash:
85
+ Enabled: false
86
+
87
+ # and and or is okay
88
+ Style/AndOr:
89
+ Enabled: false
90
+
91
+ # Configuration parameters: CountComments.
92
+ Metrics/ClassLength:
93
+ Max: 320
94
+
95
+ Metrics/CyclomaticComplexity:
96
+ Max: 17
97
+
98
+ # Configuration parameters: AllowURI, URISchemes.
99
+ Metrics/LineLength:
100
+ Max: 370
101
+
102
+ # Configuration parameters: CountKeywordArgs.
103
+ Metrics/ParameterLists:
104
+ Max: 17
105
+
106
+ Metrics/PerceivedComplexity:
107
+ Max: 18
108
+
109
+ Style/DotPosition:
110
+ Enabled: false
111
+
112
+ Style/GuardClause:
113
+ Enabled: false
data/docs/Cakefile.md CHANGED
@@ -58,7 +58,7 @@ There are two main ways you can customize a Project, Targets and Configurations.
58
58
 
59
59
  ###Properties
60
60
 
61
- #### Clas Prefix
61
+ #### Class Prefix
62
62
 
63
63
  Sets the class prefix for the project
64
64
 
@@ -39,7 +39,7 @@ module Xcake
39
39
  end
40
40
 
41
41
  def self.is_supported?(platform)
42
- [:ios, :mac].include?(platform)
42
+ [:ios, :mac, :tvos, :watchos].include?(platform)
43
43
  end
44
44
  end
45
45
  end
data/lib/xcake/project.rb CHANGED
@@ -74,7 +74,7 @@ module Xcake
74
74
  # Defines a new application target.
75
75
  #
76
76
  # @param [Symbol] platform
77
- # platform for the application, can be either `:ios` or `:osx`.
77
+ # platform for the application, can be either `:ios`, `:osx`, `:tvos` or `:watchos`.
78
78
  #
79
79
  # @param [Float] deployment_target
80
80
  # the minimum deployment version for the platform.
data/lib/xcake/target.rb CHANGED
@@ -18,7 +18,7 @@ module Xcake
18
18
  attr_accessor :type
19
19
 
20
20
  # @return [String] the platform for the target.
21
- # Can be `:ios`, `:osx`.
21
+ # Can be `:ios`, `:osx`, `:tvos`, `:watchos`.
22
22
  #
23
23
  attr_accessor :platform
24
24
 
@@ -165,7 +165,18 @@ module Xcake
165
165
  protected
166
166
 
167
167
  def default_system_frameworks_for(platform)
168
- (platform == :ios) ? ['Foundation', 'UIKit'] : ['Cocoa']
168
+ case platform
169
+ when :ios
170
+ ['Foundation', 'UIKit']
171
+ when :osx
172
+ ['Cocoa']
173
+ when :tvos
174
+ ['Foundation', 'UIKit']
175
+ when :watchos
176
+ ['Foundation', 'UIKit', 'WatchKit']
177
+ else
178
+ abort "Platform not supported!"
179
+ end
169
180
  end
170
181
 
171
182
  #Configurable
data/lib/xcake/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xcake
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Campbell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,6 +132,9 @@ files:
132
132
  - LICENSE.txt
133
133
  - README.md
134
134
  - Rakefile
135
+ - _hound.yml
136
+ - _rubocop.yml
137
+ - _rubocop_general.yml
135
138
  - bin/console
136
139
  - bin/setup
137
140
  - bin/xcake