formotion 1.5.0 → 1.5.1
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 +8 -8
- data/Formotion.gemspec +1 -0
- data/lib/formotion/base.rb +16 -1
- data/lib/formotion/section/section.rb +2 -2
- data/lib/formotion/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzRkYTkxZmM3MzIyMzdkMTBjNzY0MWRjMjNjZjFmNjhhZGUzOTZkOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzZhMmQ3NTQ4YWVjODQ5YjcyOWVkYTJiNGJhYmU0YTE0NjVlNTQ2OQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGUzZTRiODVlMmE3MGY2YjRiNGIzNTBiZjQ2MDI5ZTA3ODBiNzRhZTFmNGFl
|
10
|
+
ZjYwZmQ2NDg4YTMzMDMyZTljZGQ3ZTNkMjc3OTA2OWUxNjVjNWVhOTI3MTQ0
|
11
|
+
NjY2YmQ5ZmE0NGU1NWZlMWI4MTNmMDk1MGRhNGNjZDU0ZDNjZDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODE0MDE1OWU3NzEwMTliNzA1MGIzMzE3NWU0MjIxZGFjYzIwMTg0NjE4ZGIx
|
14
|
+
OWY1ZjlmMmY3YzhiNjg3ZTZiYmYxYTY0MWM5OWViNDE0MGM4MDY0ZDg2MzRj
|
15
|
+
YTEyNTc3ODA2MTAzNzhkOWQ2NjYzZTBmODQ2MzMyMjQyYmYxOTE=
|
data/Formotion.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = `git ls-files`.split($\)
|
14
14
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
15
15
|
s.require_paths = ["lib"]
|
16
|
+
s.license = 'MIT'
|
16
17
|
|
17
18
|
s.add_dependency "bubble-wrap", "~> 1.3.0"
|
18
19
|
s.add_dependency "motion-require", "~> 0.0.3"
|
data/lib/formotion/base.rb
CHANGED
@@ -19,6 +19,21 @@ module Formotion
|
|
19
19
|
h
|
20
20
|
end
|
21
21
|
|
22
|
+
|
23
|
+
# Needed so things like @targets[target] with KVO
|
24
|
+
# (storing Row instances as keys of a hash)
|
25
|
+
def hash
|
26
|
+
"#{self.class.name}-id-#{object_id}".hash
|
27
|
+
end
|
28
|
+
|
29
|
+
def isEqual(other)
|
30
|
+
return true if other == self
|
31
|
+
return false unless other # if other is nil
|
32
|
+
return false unless other.class == self.class
|
33
|
+
|
34
|
+
return other.object_id == self.object_id
|
35
|
+
end
|
36
|
+
|
22
37
|
# NSCoding + NSCopying
|
23
38
|
def encodeWithCoder(encoder)
|
24
39
|
self.class.const_get(:SERIALIZE_PROPERTIES).each {|prop|
|
@@ -43,4 +58,4 @@ module Formotion
|
|
43
58
|
copy
|
44
59
|
end
|
45
60
|
end
|
46
|
-
end
|
61
|
+
end
|
@@ -45,7 +45,7 @@ module Formotion
|
|
45
45
|
if hash.class == Hash
|
46
46
|
row = Formotion::Row.new(hash)
|
47
47
|
end
|
48
|
-
row.section = self
|
48
|
+
row.section = WeakRef.new(self)
|
49
49
|
row.index = self.rows.count
|
50
50
|
row
|
51
51
|
end
|
@@ -127,4 +127,4 @@ module Formotion
|
|
127
127
|
h
|
128
128
|
end
|
129
129
|
end
|
130
|
-
end
|
130
|
+
end
|
data/lib/formotion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formotion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clay Allsopp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bubble-wrap
|
@@ -213,7 +213,8 @@ files:
|
|
213
213
|
- spec/section_spec.rb
|
214
214
|
- spec/support/ui_control_wrap_extension.rb
|
215
215
|
homepage: https://github.com/clayallsopp/Formotion
|
216
|
-
licenses:
|
216
|
+
licenses:
|
217
|
+
- MIT
|
217
218
|
metadata: {}
|
218
219
|
post_install_message:
|
219
220
|
rdoc_options: []
|