Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ GEM
dbt (1.1.5)
motion-kit (0.10.5)
dbt (~> 1.1.5)
rake (10.3.2)
rake (12.3.1)

PLATFORMS
ruby

DEPENDENCIES
motion-kit
rake

BUNDLED WITH
1.16.2
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
$:.unshift("~/.rubymotion/rubymotion-templates")

require 'motion/project/template/ios'

begin
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/list_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ def loadView
setTitle 'Entries'
end

def tableView(table_view, numberOfRowsInSection: section)
def tableView(_, numberOfRowsInSection: _)
data.count
end

def tableView(table_view, cellForRowAtIndexPath: index_path)
def tableView(table_view, cellForRowAtIndexPath: _)
cell = table_view.dequeueReusableCellWithIdentifier(EntryCell::ID) || begin
c = EntryCell.alloc.initWithStyle(UITableViewCellStyleDefault, reuseIdentifier: EntryCell::ID)
EntryCellLayout.new(root: c).build.view
Expand Down
6 changes: 3 additions & 3 deletions app/layouts/entry_cell_layout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def layout

constraints do
x 0; y 0
size.equals(:superview)
# width.equals(:superview)
# height.equals(:superview)
# size.equals(:superview)
width.equals(:superview)
height 50
end
end
end
Expand Down