ovaltine 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/CHANGELOG.md +4 -0
- data/Gemfile +3 -0
- data/lib/ovaltine/objc/storyboard_formatter.rb +20 -20
- data/lib/ovaltine/version.rb +1 -1
- metadata +50 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bf29e84c1f9fcf6bf4121916abd32252f21bcf11
|
4
|
+
data.tar.gz: 45c7913c46c4044da01ea1910ac0223177ab63b7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 94aac6bb2aff88696a796823c8a2caf5f9899d63a154da2b93cd354740365a98ad4e725bd9a10a8d5742861314693080439a24c1012fac9613eeecab9f3651c5
|
7
|
+
data.tar.gz: ebf734f231c593d20dbccbaec111744af471beb63524479efe86a2781ec6c1cbc587444d3c3a10cbc83678a9c6fffccc231f596a8a2704300832abb58e0eb9e7
|
data/CHANGELOG.md
CHANGED
data/Gemfile
ADDED
@@ -32,30 +32,30 @@ module Ovaltine
|
|
32
32
|
private
|
33
33
|
|
34
34
|
def generate_header
|
35
|
-
StoryboardTemplates::HEADER_TEMPLATE
|
36
|
-
.gsub('{FILENAME}', "#{classname}.h")
|
37
|
-
.gsub('{CLASS_NAME}', classname)
|
38
|
-
.gsub('{REUSE_IDENTIFIERS}', reuse_identifier_definitions)
|
39
|
-
.gsub('{SEGUE_IDENTIFIERS}', segue_identifier_definitions)
|
35
|
+
StoryboardTemplates::HEADER_TEMPLATE\
|
36
|
+
.gsub('{FILENAME}', "#{classname}.h")\
|
37
|
+
.gsub('{CLASS_NAME}', classname)\
|
38
|
+
.gsub('{REUSE_IDENTIFIERS}', reuse_identifier_definitions)\
|
39
|
+
.gsub('{SEGUE_IDENTIFIERS}', segue_identifier_definitions)\
|
40
40
|
.gsub('{VIEW_CONTROLLERS}', view_controller_definitions)
|
41
41
|
end
|
42
42
|
|
43
43
|
def generate_implementation
|
44
|
-
StoryboardTemplates::IMPLEMENTATION_TEMPLATE
|
45
|
-
.gsub('{FILENAME}', "#{classname}.m")
|
46
|
-
.gsub('{CLASS_NAME}', classname)
|
47
|
-
.gsub('{STATIC_VARIABLES}', static_variables)
|
48
|
-
.gsub('{REUSE_IDENTIFIERS}', reuse_identifier_implementations)
|
49
|
-
.gsub('{SEGUE_IDENTIFIERS}', segue_identifier_implementations)
|
50
|
-
.gsub('{VIEW_CONTROLLERS}', view_controller_implementations)
|
44
|
+
StoryboardTemplates::IMPLEMENTATION_TEMPLATE\
|
45
|
+
.gsub('{FILENAME}', "#{classname}.m")\
|
46
|
+
.gsub('{CLASS_NAME}', classname)\
|
47
|
+
.gsub('{STATIC_VARIABLES}', static_variables)\
|
48
|
+
.gsub('{REUSE_IDENTIFIERS}', reuse_identifier_implementations)\
|
49
|
+
.gsub('{SEGUE_IDENTIFIERS}', segue_identifier_implementations)\
|
50
|
+
.gsub('{VIEW_CONTROLLERS}', view_controller_implementations)\
|
51
51
|
.gsub('{STORYBOARD}', StoryboardTemplates::STORYBOARD_IMPLEMENTATION_TEMPLATE.gsub('{IDENTIFIER_CONSTANT_NAME}', variable_name(storyboard.name)))
|
52
52
|
end
|
53
53
|
|
54
54
|
def static_variables
|
55
55
|
identifiers = (storyboard.cell_reuse_identifiers + storyboard.view_controller_identifiers + storyboard.segue_identifiers + [storyboard.name]).sort
|
56
56
|
identifiers.map do |identifier|
|
57
|
-
StoryboardTemplates::STATIC_IDENTIFIER_TEMPLATE
|
58
|
-
.gsub('{IDENTIFIER}', identifier)
|
57
|
+
StoryboardTemplates::STATIC_IDENTIFIER_TEMPLATE\
|
58
|
+
.gsub('{IDENTIFIER}', identifier)\
|
59
59
|
.gsub('{IDENTIFIER_CONSTANT_NAME}', variable_name(identifier))
|
60
60
|
end.join("\n")
|
61
61
|
end
|
@@ -68,8 +68,8 @@ module Ovaltine
|
|
68
68
|
|
69
69
|
def reuse_identifier_implementations
|
70
70
|
prepend_title(CELL_REUSE_SECTION_TITLE, storyboard.cell_reuse_identifiers.each_with_index.map do |identifier, index|
|
71
|
-
StoryboardTemplates::REUSE_IMPLEMENTATION_TEMPLATE
|
72
|
-
.gsub('{IDENTIFIER}', format_reuse_identifier(identifier))
|
71
|
+
StoryboardTemplates::REUSE_IMPLEMENTATION_TEMPLATE\
|
72
|
+
.gsub('{IDENTIFIER}', format_reuse_identifier(identifier))\
|
73
73
|
.gsub('{IDENTIFIER_CONSTANT_NAME}', variable_name(identifier))
|
74
74
|
end.join("\n"))
|
75
75
|
end
|
@@ -82,8 +82,8 @@ module Ovaltine
|
|
82
82
|
|
83
83
|
def segue_identifier_implementations
|
84
84
|
prepend_title(SEGUE_SECTION_TITLE, storyboard.segue_identifiers.each_with_index.map do |identifier, index|
|
85
|
-
StoryboardTemplates::SEGUE_IMPLEMENTATION_TEMPLATE
|
86
|
-
.gsub('{IDENTIFIER}', format_segue_identifier(identifier))
|
85
|
+
StoryboardTemplates::SEGUE_IMPLEMENTATION_TEMPLATE\
|
86
|
+
.gsub('{IDENTIFIER}', format_segue_identifier(identifier))\
|
87
87
|
.gsub('{IDENTIFIER_CONSTANT_NAME}', variable_name(identifier))
|
88
88
|
end.join("\n"))
|
89
89
|
end
|
@@ -96,8 +96,8 @@ module Ovaltine
|
|
96
96
|
|
97
97
|
def view_controller_implementations
|
98
98
|
prepend_title(VIEW_CONTROLLER_SECTION_TITLE, storyboard.view_controller_identifiers.each_with_index.map do |identifier, index|
|
99
|
-
StoryboardTemplates::VIEW_CONTROLLER_IMPLEMENTATION_TEMPLATE
|
100
|
-
.gsub('{IDENTIFIER}', variable_name(identifier))
|
99
|
+
StoryboardTemplates::VIEW_CONTROLLER_IMPLEMENTATION_TEMPLATE\
|
100
|
+
.gsub('{IDENTIFIER}', variable_name(identifier))\
|
101
101
|
.gsub('{CAPITALIZED_IDENTIFIER}', format_view_controller(identifier))
|
102
102
|
end.join("\n"))
|
103
103
|
end
|
data/lib/ovaltine/version.rb
CHANGED
metadata
CHANGED
@@ -1,67 +1,59 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovaltine
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Delisa Mason
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
|
12
|
+
date: 2014-08-03 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.3'
|
20
|
-
type: :development
|
21
16
|
prerelease: false
|
22
|
-
|
23
|
-
requirements:
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
24
19
|
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '10.0'
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: "1.3"
|
34
22
|
type: :development
|
23
|
+
version_requirements: *id001
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: rake
|
35
26
|
prerelease: false
|
36
|
-
|
37
|
-
requirements:
|
27
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
38
29
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bacon
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.2'
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: "10.0"
|
48
32
|
type: :development
|
33
|
+
version_requirements: *id002
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: bacon
|
49
36
|
prerelease: false
|
50
|
-
|
51
|
-
requirements:
|
37
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
52
39
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version:
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: "1.2"
|
42
|
+
type: :development
|
43
|
+
version_requirements: *id003
|
55
44
|
description: "\n Constant generator for identifiers in Cocoa app storyboards\n "
|
56
|
-
email:
|
45
|
+
email:
|
57
46
|
- iskanamagus@gmail.com
|
58
|
-
executables:
|
47
|
+
executables:
|
59
48
|
- ovaltine
|
60
49
|
extensions: []
|
50
|
+
|
61
51
|
extra_rdoc_files: []
|
62
|
-
|
52
|
+
|
53
|
+
files:
|
63
54
|
- .travis.yml
|
64
55
|
- CHANGELOG.md
|
56
|
+
- Gemfile
|
65
57
|
- LICENSE
|
66
58
|
- README.md
|
67
59
|
- Rakefile
|
@@ -92,30 +84,33 @@ files:
|
|
92
84
|
- specs/storyboard_formatter_spec.rb
|
93
85
|
- specs/storyboard_spec.rb
|
94
86
|
homepage: https://github.com/kattrali/ovaltine
|
95
|
-
licenses:
|
87
|
+
licenses:
|
96
88
|
- MIT
|
97
89
|
metadata: {}
|
90
|
+
|
98
91
|
post_install_message:
|
99
92
|
rdoc_options: []
|
100
|
-
|
93
|
+
|
94
|
+
require_paths:
|
101
95
|
- lib
|
102
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
-
requirements:
|
104
|
-
- -
|
105
|
-
- !ruby/object:Gem::Version
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
106
100
|
version: 1.8.7
|
107
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version:
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: "0"
|
112
106
|
requirements: []
|
107
|
+
|
113
108
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.0.14
|
115
110
|
signing_key:
|
116
111
|
specification_version: 4
|
117
112
|
summary: Cocoa app constant generator
|
118
|
-
test_files:
|
113
|
+
test_files:
|
119
114
|
- features/fixtures/Sample/Sample.xcodeproj/project.pbxproj
|
120
115
|
- features/fixtures/Sample/Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
121
116
|
- features/fixtures/Sample/Sample/Base.lproj/Main.storyboard
|