motion-form 0.5.1 → 0.5.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: 773a0d0ab805e8057e8a5c8802b8be8fe87471d5
4
- data.tar.gz: 2bc241fd4fb08b752bec77ea0299477aaf5997f9
3
+ metadata.gz: d1e0a173459eca95f67f8ee7b97b7c0b7e454cb7
4
+ data.tar.gz: 3891fd7786fece911d6baf17c9bec9344afe312e
5
5
  SHA512:
6
- metadata.gz: e15deb7f8b6f6fd5aa0ac31e4390f9d6cb24948c1bfc1f0d2801f75eb15ad496afe8c471bc9e0e7b6d90b14de1a0b7eef1030dff21c6fe708c43b0350fabd684
7
- data.tar.gz: e20e4380ad1b893ff8c8a2e49c9118880b4d067ed58f684bb943e18b692b96ef2212bf280096bc2a311f8b35310f0a692c709aa7321a97e57227b44a43403540
6
+ metadata.gz: 779ad23bd967fd5207c7610222b08c50e19adaca7a90fd265895450d29dbcf0918524739c809f02ab2012fe17a082bc6a4cee2b34bd379e24353a9a420b12b34
7
+ data.tar.gz: a4b34777922510dc775bef20c99fec3bb51c4da5a176df61aa7cdad21e608d2d4a610e867709cb50292826aa00e723942d639cb1e47ad297faec36f824264825
@@ -16,6 +16,7 @@ class TextInputCell < BaseCell
16
16
  def setup_constraints
17
17
  [text_label, text_field].each do |subview|
18
18
  subview.translatesAutoresizingMaskIntoConstraints = false
19
+
19
20
  contentView.addSubview(subview)
20
21
  end
21
22
 
@@ -6,7 +6,6 @@ class BaseRow
6
6
  @options = options
7
7
 
8
8
  @label = options.fetch(:label, key.to_s.titleize)
9
- @value = options.fetch(:value, nil)
10
9
  end
11
10
 
12
11
  def notification_center
@@ -28,6 +28,5 @@ class ButtonRow < TextInputRow
28
28
 
29
29
  def update_cell(cell)
30
30
  super
31
-
32
31
  end
33
32
  end
@@ -10,6 +10,8 @@ class TextInputRow < BaseRow
10
10
  def initialize(key, options)
11
11
  super
12
12
 
13
+ @value = options.fetch(:value, nil)
14
+
13
15
  setup_validation
14
16
 
15
17
  listen
@@ -50,18 +52,14 @@ class TextInputRow < BaseRow
50
52
  end
51
53
 
52
54
  def did_end_editing(notification)
53
- self.value = notification.userInfo[:value] if notification.userInfo[:key] == key
54
- end
55
-
56
- def textFieldDidEndEditing(text_field)
57
- self.value = text_field.text
55
+ @value = notification.userInfo[:value] if notification.userInfo[:key] == key
58
56
  end
59
57
 
60
58
  def update_cell(cell)
61
59
  super
62
60
 
63
61
  cell.secure = options[:secure]
64
- cell.value = options[:value]
62
+ cell.value = value
65
63
  cell.capitalize = capitalize?
66
64
  end
67
65
 
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devon Blandin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-07 00:00:00.000000000 Z
11
+ date: 2014-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-keyboard-avoiding
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.0.2
20
20
  type: :runtime
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: 0.0.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: motion-require
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.0.3
34
34
  type: :runtime
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: 0.0.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cocoapods
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.27.1
48
48
  type: :runtime
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: 0.27.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: motion-cocoapods
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.3.7
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.3.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: motion-layout
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.0.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.0.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: RubyMotion Forms made easy.
@@ -128,17 +128,17 @@ require_paths:
128
128
  - lib
129
129
  required_ruby_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.0.3
141
+ rubygems_version: 2.2.0
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Simple DSL for RubyMotion form creation