immutabler 0.1.6 → 0.1.7
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 +4 -4
- data/lib/immutabler/version.rb +1 -1
- data/templates/body_template.hbs +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7425fc0ed01c3d3faf9b25ceb9fe0d3f9a8ea22
|
4
|
+
data.tar.gz: 0a42cdb56e7825c6ffb8664b25152fad4e8476c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 369da6cc00057d6f219708223d371382b2ef6cef5b9eabda053698f3e7de7286a9b6dd778657ee03b16d3239a3369132e10cc6fcc5e87c5d0e7e0c76e7084181
|
7
|
+
data.tar.gz: 725ebaf486509888862e58f6556ae640ff2285e44316c3b0dc633a652d746b109404eb4cf17285a1b66d76cb09928a5614eddf146dcc21476b02c54ad29737fc
|
data/lib/immutabler/version.rb
CHANGED
data/templates/body_template.hbs
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
{{/base_immutable_interface}}
|
11
11
|
|
12
12
|
@implementation {{name}} {
|
13
|
-
|
13
|
+
NSInteger __modelVersion;
|
14
14
|
}
|
15
15
|
|
16
16
|
{{#any_mappings}}
|
@@ -58,7 +58,7 @@
|
|
58
58
|
return [[[self class] alloc] initWithBuilder:builder modelVersion:1];
|
59
59
|
}
|
60
60
|
|
61
|
-
- (instancetype)initWithBuilder:({{name}}Builder*)builder modelVersion:(
|
61
|
+
- (instancetype)initWithBuilder:({{name}}Builder*)builder modelVersion:(NSInteger)modelVersion
|
62
62
|
{
|
63
63
|
{{#init_with_builder .}}
|
64
64
|
{{/init_with_builder}}
|
@@ -122,7 +122,7 @@
|
|
122
122
|
|
123
123
|
- (NSString *)description {
|
124
124
|
NSMutableString *description = [NSMutableString stringWithFormat:@"<%@: ", NSStringFromClass([self class])];
|
125
|
-
[description appendFormat:@"__modelVersion=%
|
125
|
+
[description appendFormat:@"__modelVersion=%ld", __modelVersion];
|
126
126
|
{{#props}}
|
127
127
|
{{#is_ref}}
|
128
128
|
[description appendFormat:@", {{name}}=%@", self.{{name}}];
|
@@ -147,7 +147,7 @@
|
|
147
147
|
_{{name}} = [coder decodeIntForKey:@"_{{name}}"];
|
148
148
|
{{/is_ref}}
|
149
149
|
{{/props}}
|
150
|
-
__modelVersion = [coder
|
150
|
+
__modelVersion = [coder decodeIntegerForKey:@"__modelVersion"];
|
151
151
|
}
|
152
152
|
|
153
153
|
return self;
|
@@ -162,7 +162,7 @@
|
|
162
162
|
[coder encodeInteger:self.{{name}} forKey:@"_{{name}}"];
|
163
163
|
{{/is_ref}}
|
164
164
|
{{/props}}
|
165
|
-
[coder
|
165
|
+
[coder encodeInteger:__modelVersion forKey:@"__modelVersion"];
|
166
166
|
}
|
167
167
|
|
168
168
|
- (id)copyWithZone:(NSZone *)zone {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: immutabler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serhij Korochanskyj
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: handlebars
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.4.8
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Generator of Objective-C immutable models
|