diff --git a/Gemfile.lock b/Gemfile.lock index 18f4166..5ad0f19 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,7 +4,7 @@ GEM dbt (1.1.5) motion-kit (0.10.5) dbt (~> 1.1.5) - rake (10.3.2) + rake (12.3.1) PLATFORMS ruby @@ -12,3 +12,6 @@ PLATFORMS DEPENDENCIES motion-kit rake + +BUNDLED WITH + 1.16.2 diff --git a/Rakefile b/Rakefile index b8b540f..1a7240b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- $:.unshift("/Library/RubyMotion/lib") +$:.unshift("~/.rubymotion/rubymotion-templates") + require 'motion/project/template/ios' begin diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 9bbe004..174a924 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -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 diff --git a/app/layouts/entry_cell_layout.rb b/app/layouts/entry_cell_layout.rb index 26d84ab..84c10fc 100644 --- a/app/layouts/entry_cell_layout.rb +++ b/app/layouts/entry_cell_layout.rb @@ -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