objc-referee 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a43e807a132fca01c315fe4ea9555e84b02c65e2
4
- data.tar.gz: d7929230cb17672548c5ec9982eed2e75cf265d4
3
+ metadata.gz: e99e7f7b2eab4fb48a2d666adcff8e91d56af991
4
+ data.tar.gz: aeac38db7bf74b867208323faf4bcea186d96dc1
5
5
  SHA512:
6
- metadata.gz: 010b807d124371a02f60eea07cefc88d2d5dd1fac33564b402e442476cc42fc31397f04d5abdd83e414adf9377c4b7d72e35eb081d7d0dabb50579464ddb42e8
7
- data.tar.gz: aea5117d2f79d54958839a996e6eab586347ca208a6c194725e8d05faf9b69b06142ceebcef6e7b490c641decd8eff590490cb657900eeb06ea48d238c4d4f44
6
+ metadata.gz: 60dc33c5065aa8f13bcdaf5ce007c72b2829c0f26eb52804fee196f8105cf3103e411cb9c94fe9a915f8a37177266a8b639a88bb3a61f9f360aae940126b7fb4
7
+ data.tar.gz: a88b9a2e4cb6559a5278840c1e368cf9c0c2bd4db5b484cbf95c841180c1ff3644c4f9e5562a0245325649689e869f1e480cfa310f7a2a4e697ab44afd554191
data/CHANGELOG.md CHANGED
@@ -2,8 +2,9 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/) and this file attempts to follow the guidelines provided by [Keep a CHANGELOG](http://keepachangelog.com/).
4
4
 
5
- ## [Unreleased][unreleased]
6
- Coming soon.
5
+ ## [0.2.3] - 2015-11-19
6
+ ### Fixed
7
+ - Ensures there are no empty `enum`s for Swift language when any cell, etc. types are missing.
7
8
 
8
9
  ## [0.2.2] - 2015-11-17
9
10
  ### Fixed
@@ -26,7 +27,8 @@ Coming soon.
26
27
  ## [0.1.1] - 2015-09-02
27
28
  Initial public release.
28
29
 
29
- [unreleased]: https://github.com/dynamit/referee/compare/v0.2.2...HEAD
30
+ [unreleased]: https://github.com/dynamit/referee/compare/v0.2.3...HEAD
31
+ [0.2.3]: https://github.com/Dynamit/referee/tree/v0.2.3
30
32
  [0.2.2]: https://github.com/Dynamit/referee/tree/v0.2.2
31
33
  [0.2.1]: https://github.com/Dynamit/referee/tree/v0.2.1
32
34
  [0.2.0]: https://github.com/Dynamit/referee/tree/v0.2.0
@@ -64,6 +64,11 @@ module Referee
64
64
  dict[:segues] += group.segues
65
65
  end
66
66
 
67
+ # Build up flags.
68
+ dict[:has_table_cells] = (dict[:table_cells].count > 0)
69
+ dict[:has_collection_cells] = (dict[:collection_cells].count > 0)
70
+ dict[:has_segues] = (dict[:segues].count > 0)
71
+
67
72
  dict
68
73
  end
69
74
 
@@ -1,4 +1,4 @@
1
1
  # Version information.
2
2
  module Referee
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
@@ -14,18 +14,23 @@ struct Resources {
14
14
  {{/ storyboards }}
15
15
  }
16
16
 
17
- {{# table_cells #}}
18
17
  /// UITableViewCell identifier accessors.
18
+ {{# has_table_cells #}}
19
19
  enum TableViewCells: String {
20
+ {{# table_cells #}}
20
21
  {{{ swift_implementation }}}
22
+ {{/ table_cells }}
21
23
  }
22
- {{/ table_cells }}
24
+ {{/ has_table_cells }}
23
25
 
24
- {{# collection_cells #}}
26
+ /// UICollectionViewCell identifier accessors.
27
+ {{# has_collection_cells }}
25
28
  enum CollectionViewCells: String {
29
+ {{# collection_cells #}}
26
30
  {{{ swift_implementation }}}
31
+ {{/ collection_cells }}
27
32
  }
28
- {{/ collection_cells }}
33
+ {{/ has_collection_cells }}
29
34
 
30
35
  /// UIViewController accessors.
31
36
  struct _ViewControllers {
@@ -35,9 +40,11 @@ struct Resources {
35
40
  }
36
41
 
37
42
  /// Segue accessors.
43
+ {{# has_segues }}
38
44
  enum Segues: String {
39
45
  {{# segues #}}
40
46
  {{{ swift_implementation }}}
41
47
  {{/ segues }}
42
48
  }
49
+ {{/ has_segues }}
43
50
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objc-referee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Drake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler