ovaltine 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/Gemfile.lock +1 -1
- data/features/fixtures/Sample/Sample.xcodeproj/project.pbxproj +6 -0
- data/features/fixtures/Sample/Sample/Base.lproj/Main.storyboard +4 -4
- data/lib/ovaltine/objc/storyboard_formatter.rb +4 -4
- data/lib/ovaltine/version.rb +2 -2
- data/specs/storyboard_spec.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17913bea23bc27b8cf26fc7d1cbc6bc23f8d554a
|
4
|
+
data.tar.gz: bf435cec082a0e2ee162bbf84713a615871d75c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2985bdcca394c6632e35745cbb70769a51f815a668dab9c76b2bd00dd7e8a0796e3dc411f42510f58729648f85833054e34d5d84bcc50f841999661d10c8db68
|
7
|
+
data.tar.gz: aeca46ecadb98352c86dff751ad671c5a34c7ee3f8cbfe638dcbbb3265b54dd00b630cad2364bcbf863376c3d7e0351ae72facc8d10d75e93ff0918b9589b16d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
# 1.1.1
|
2
|
+
|
3
|
+
- Fix runtime error when segue generated selector name and implementation name differ
|
4
|
+
|
1
5
|
# 1.1.0
|
2
6
|
|
3
|
-
- [Breaking Change] Allow 'segue' as a segue identifier suffix. Segue names
|
7
|
+
- [Breaking Change] Allow 'segue' as a segue identifier suffix. Segue names
|
4
8
|
ending with 'segue' will not have 'SegueIdentifier' appended to them.
|
5
9
|
- Hotfix for cached constant names generating duplicates
|
6
10
|
- Remove casting from view controller convenience selectors, instead returning 'id'
|
@@ -36,4 +40,4 @@
|
|
36
40
|
|
37
41
|
# 1.0.0
|
38
42
|
|
39
|
-
- Initial release!
|
43
|
+
- Initial release!
|
data/Gemfile.lock
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
8AB8CD50198D6B6500CEA0CD /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8AB8CD32198D6B6400CEA0CD /* UIKit.framework */; };
|
22
22
|
8AB8CD58198D6B6500CEA0CD /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8AB8CD56198D6B6500CEA0CD /* InfoPlist.strings */; };
|
23
23
|
8AB8CD5A198D6B6500CEA0CD /* SampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AB8CD59198D6B6500CEA0CD /* SampleTests.m */; };
|
24
|
+
8AE89ADF1A52738E0057ADDC /* Testboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8AE89ADE1A52738E0057ADDC /* Testboard.storyboard */; };
|
24
25
|
/* End PBXBuildFile section */
|
25
26
|
|
26
27
|
/* Begin PBXContainerItemProxy section */
|
@@ -53,6 +54,7 @@
|
|
53
54
|
8AB8CD55198D6B6500CEA0CD /* SampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SampleTests-Info.plist"; sourceTree = "<group>"; };
|
54
55
|
8AB8CD57198D6B6500CEA0CD /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
55
56
|
8AB8CD59198D6B6500CEA0CD /* SampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SampleTests.m; sourceTree = "<group>"; };
|
57
|
+
8AE89ADE1A52738E0057ADDC /* Testboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Testboard.storyboard; sourceTree = "<group>"; };
|
56
58
|
/* End PBXFileReference section */
|
57
59
|
|
58
60
|
/* Begin PBXFrameworksBuildPhase section */
|
@@ -119,6 +121,7 @@
|
|
119
121
|
8AB8CD44198D6B6400CEA0CD /* DMMViewController.m */,
|
120
122
|
8AB8CD46198D6B6400CEA0CD /* Images.xcassets */,
|
121
123
|
8AB8CD35198D6B6400CEA0CD /* Supporting Files */,
|
124
|
+
8AE89ADE1A52738E0057ADDC /* Testboard.storyboard */,
|
122
125
|
);
|
123
126
|
path = Sample;
|
124
127
|
sourceTree = "<group>";
|
@@ -232,6 +235,7 @@
|
|
232
235
|
8AB8CD47198D6B6400CEA0CD /* Images.xcassets in Resources */,
|
233
236
|
8AB8CD39198D6B6400CEA0CD /* InfoPlist.strings in Resources */,
|
234
237
|
8AB8CD42198D6B6400CEA0CD /* Main.storyboard in Resources */,
|
238
|
+
8AE89ADF1A52738E0057ADDC /* Testboard.storyboard in Resources */,
|
235
239
|
);
|
236
240
|
runOnlyForDeploymentPostprocessing = 0;
|
237
241
|
};
|
@@ -457,6 +461,7 @@
|
|
457
461
|
8AB8CD5F198D6B6500CEA0CD /* Release */,
|
458
462
|
);
|
459
463
|
defaultConfigurationIsVisible = 0;
|
464
|
+
defaultConfigurationName = Release;
|
460
465
|
};
|
461
466
|
8AB8CD60198D6B6500CEA0CD /* Build configuration list for PBXNativeTarget "SampleTests" */ = {
|
462
467
|
isa = XCConfigurationList;
|
@@ -465,6 +470,7 @@
|
|
465
470
|
8AB8CD62198D6B6500CEA0CD /* Release */,
|
466
471
|
);
|
467
472
|
defaultConfigurationIsVisible = 0;
|
473
|
+
defaultConfigurationName = Release;
|
468
474
|
};
|
469
475
|
/* End XCConfigurationList section */
|
470
476
|
};
|
@@ -1,7 +1,8 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="Rge-Ae-WFm">
|
3
3
|
<dependencies>
|
4
|
-
<
|
4
|
+
<deployment identifier="iOS"/>
|
5
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
|
5
6
|
</dependencies>
|
6
7
|
<scenes>
|
7
8
|
<!--View Controller-->
|
@@ -18,12 +19,11 @@
|
|
18
19
|
<subviews>
|
19
20
|
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="yMY-0R-ijt">
|
20
21
|
<rect key="frame" x="137" y="359" width="46" height="30"/>
|
21
|
-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
22
22
|
<state key="normal" title="Button">
|
23
23
|
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
24
24
|
</state>
|
25
25
|
<connections>
|
26
|
-
<segue destination="5au-Nw-4lc" kind="push" identifier="
|
26
|
+
<segue destination="5au-Nw-4lc" kind="push" identifier="starterSegue" id="1Jc-Bc-ntv"/>
|
27
27
|
</connections>
|
28
28
|
</button>
|
29
29
|
</subviews>
|
@@ -63,8 +63,8 @@ module Ovaltine
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def static_variables
|
66
|
-
identifiers = (storyboard.cell_reuse_identifiers +
|
67
|
-
storyboard.view_controller_identifiers +
|
66
|
+
identifiers = (storyboard.cell_reuse_identifiers +
|
67
|
+
storyboard.view_controller_identifiers +
|
68
68
|
storyboard.segue_identifiers + [storyboard.name]).sort.uniq
|
69
69
|
identifiers.map do |identifier|
|
70
70
|
StoryboardTemplates::STATIC_IDENTIFIER_TEMPLATE\
|
@@ -89,7 +89,7 @@ module Ovaltine
|
|
89
89
|
|
90
90
|
def segue_identifier_definitions
|
91
91
|
prepend_title(SEGUE_SECTION_TITLE, storyboard.segue_identifiers.sort.each_with_index.map do |identifier, index|
|
92
|
-
StoryboardTemplates::SEGUE_DEFINITION_TEMPLATE.gsub('{IDENTIFIER}',
|
92
|
+
StoryboardTemplates::SEGUE_DEFINITION_TEMPLATE.gsub('{IDENTIFIER}', format_segue_identifier(identifier))
|
93
93
|
end.join("\n"))
|
94
94
|
end
|
95
95
|
|
@@ -148,4 +148,4 @@ module Ovaltine
|
|
148
148
|
end
|
149
149
|
end
|
150
150
|
end
|
151
|
-
end
|
151
|
+
end
|
data/lib/ovaltine/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Ovaltine
|
2
|
-
VERSION = "1.1.
|
3
|
-
end
|
2
|
+
VERSION = "1.1.1"
|
3
|
+
end
|
data/specs/storyboard_spec.rb
CHANGED
@@ -27,7 +27,7 @@ describe 'Storyboard' do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'caches identifiers for named segues' do
|
30
|
-
@storyboard.segue_identifiers.should.include "
|
30
|
+
@storyboard.segue_identifiers.should.include "starterSegue"
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'caches cell reuse identifiers for table view cells' do
|
@@ -37,4 +37,4 @@ describe 'Storyboard' do
|
|
37
37
|
it 'caches cell reuse identifiers for collection view cells' do
|
38
38
|
@storyboard.cell_reuse_identifiers.should.include "squareCellIdentifier"
|
39
39
|
end
|
40
|
-
end
|
40
|
+
end
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovaltine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delisa Mason
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bacon
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.2'
|
55
55
|
description: "\n Constant generator for identifiers in Cocoa app storyboards\n "
|
@@ -60,7 +60,7 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
-
|
63
|
+
- .travis.yml
|
64
64
|
- CHANGELOG.md
|
65
65
|
- Gemfile
|
66
66
|
- Gemfile.lock
|
@@ -112,12 +112,12 @@ require_paths:
|
|
112
112
|
- lib
|
113
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 1.8.7
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - '>='
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|