Commit Graph

145 Commits

Author SHA1 Message Date
Jamon Holmgren
1306b249f9 Merge pull request #242 from forrestgrant/attributed
Allow use of attributed strings in table cell titles/subtitles
2013-07-30 13:54:18 -07:00
Mark Rickert
6ecb4d2752 Add tests for exposing search_text and original_search_text. 2013-07-30 15:20:12 -04:00
Forrest Grant
648c61c886 Rolling back version, cleaning up spec formatting. 2013-07-26 19:29:18 -04:00
Forrest Grant
64510afdf6 Allow use of attributed strings in table cell titles/subtitles 2013-07-26 13:51:21 -04:00
ainame
abc6e5f201 bug fix: update_table_data raise error at on_load 2013-07-24 11:12:17 +09:00
AndrewGertig
abf8ef63fa table_view_controller was missing a loadView implementation 2013-07-16 14:40:05 -04:00
Mark Rickert
24e0a35627 Fix webscreen html method and tests. 2013-07-15 13:49:27 -04:00
Jamon Holmgren
8138d0f9d2 tab_bar_item class method
I know I said that we were in a feature freeze, but this is necessary
due to the on_load changes we made.

Plus:

* Moved module class method inclusions, made possible by loading
ScreenModule in every Screen type. This is cleaner for class method
inclusion, although there's still some room for improvement.
* Added unit tests for the tab bar and tab bar items
* Moved `on_init` after `screen_setup` which makes more sense.
2013-07-14 18:22:17 -07:00
Jamon Holmgren
fa14ca247b Fixed issue #74 reported by @jeanmartin 2013-07-12 17:55:02 -07:00
Jan Schwenzien
5350c07501 added failing test for missing FormotionScreen title 2013-07-12 17:03:39 -07:00
Jamon Holmgren
1eb1d012b7 Changed on_presented to on_present to be more consistent
@silasj review.
2013-07-12 16:27:08 -07:00
Jamon Holmgren
91f4726111 Minor tweak to set_nav_bar_button 2013-07-12 15:03:26 -07:00
Mark Rickert
53ce57f094 Merge pull request #206 from ainame/version-1.0-web_screen_enhance
PM:WebScreen Enhancements and separation of concerns.
2013-07-10 07:05:50 -07:00
Jamon Holmgren
dc2839a954 Merge pull request #208 from clearsightstudio/view_helper_to_styling
on_load changes, renamed PM::ViewHelper to PM::Styling
2013-07-08 23:34:04 -07:00
Jamon Holmgren
cfb28a3e46 Merge pull request #207 from clearsightstudio/table_data_index_class_method
Add `indexable` & `PM::Table::Indexable`
2013-07-08 23:33:07 -07:00
ainame
70467968df add test cases 2013-07-09 01:42:08 +09:00
Jamon Holmgren
94b590c8e9 Renamed PM::ViewHelper to PM::Styling
Iterators gotta iterate.
2013-07-07 23:09:11 -07:00
Jamon Holmgren
588ea4b24f Add indexable & PM::Table::Indexable
* Instead of having to implement `table_data_index`, this will get the
first letter from each group automatically.

207 specifications (358 requirements), 0 failures, 0 errors
2013-07-07 22:58:52 -07:00
Jamon Holmgren
eec8d32d6e Added conversions for symbols to constants, including system_icon
* Most conversions are contained in their modules. I did build a method
that could, in the future, map symbols to constants easily. It doesn't
work right now because RubyMotion doesn't include constants that aren't
present in code at compile time.
* Added a couple tests for set_tab_bar_icon

208 specifications (363 requirements), 0 failures, 0 errors
2013-07-07 16:18:08 -07:00
Mark Rickert
3b19f152fa Added tests for new app delegate helper methods. 2013-07-07 10:15:27 -04:00
Matt Green
8a5dead435 Use WebStub to test WebScreen 2013-07-07 08:54:40 -04:00
Jamon Holmgren
6923447b17 Merge pull request #201 from clearsightstudio/auto-call-update_annotation_data
Call update_annotation_data automatically on MapScreens.
2013-07-05 13:06:50 -07:00
Mark Rickert
36fc90c845 Call update_annotation_data automatically on MapScreens. 2013-07-05 15:15:51 -04:00
Mark Rickert
49a511dcfb Define the MapScreen select_annotation_at test a bit better to make sure the selected annotation is really actually the correct annotation. 2013-07-05 13:25:54 -04:00
Mark Rickert
5c9b55a120 Allow selecting an annotation by its position in the data array. 2013-07-05 13:14:12 -04:00
Jamon Holmgren
68dc1bab41 Merge pull request #194 from silasj/version-1.0
Make PushNotification object a bit smarter
2013-07-03 10:30:48 -07:00
Jamon Holmgren
7c0b194c9f Changed cell_deleted to on_cell_deleted, allowed returning false to prevent deletion 2013-07-03 10:09:34 -07:00
Silas J. Matson
a413af830f Add sim_close rake task; fix specs 2013-07-03 09:54:14 -07:00
Mark Rickert
bbdd065d2d Add cell_deleted callback if implemented in the class with tests. 2013-07-02 22:07:32 -04:00
Mark Rickert
89fb30b42b Add tests for deleting with a swipe and hitting the delete button. 2013-07-02 19:46:27 -04:00
Jamon Holmgren
0b6a158fb0 Merge pull request #187 from clearsightstudio/robustify-map-tests
Don't require that the latitude and longitude matches be so strict.
2013-07-01 18:29:36 -07:00
Mark Rickert
a8e7889e1d Don't require that the latitude and longitude matches be so strict. 2013-07-01 18:03:52 -04:00
Jamon Holmgren
3deae749ac Going back to wait x.x …works better 2013-07-01 14:50:49 -07:00
Jamon Holmgren
28edbaf8ad Fixing unit tests 2013-07-01 14:35:50 -07:00
Jamon Holmgren
399cfc9d44 Refactored table folder and modules
* Moved formotion_screen into thirdparty
* Simplified GroupedTable
* Removed PM::PlainTable
* Moved RefreshableTable and SearchableTable into
PM::Table::<modulename>
* Combined table.rb and table_screen_module.rb which were similarily
focused
* Removed extraneous/redundant module SectionedTableScreen (it's just a
TableScreen)
* Moved searchable/refreshable into /extensions folder

All tests passing: 197 specifications (334 requirements), 0 failures, 0
errors
2013-07-01 13:49:25 -07:00
Jamon Holmgren
7ca041dfab PM::DelegateParent added. Removed set_background_color.
* Fixes issue #116 (custom delegate parent)
* Fixes issue #181 (table cell background)
* Renamed DelegateHelper to DelegateModule
2013-07-01 00:16:12 -07:00
Mark Rickert
19f2151e70 implemented and tested "close to_screen: :root"
Also accepts other close parameters like animated:true|false
2013-06-29 00:03:04 -07:00
Mark Rickert
92e2d7a52e Not sure why these changes aren't in my code. 2013-06-29 00:03:04 -07:00
Mark Rickert
a2c6bca354 Scope test better so it actually passes. 2013-06-29 00:02:23 -07:00
Mark Rickert
ed862648bb Allow popping to the root view controller in the nav stack. 2013-06-29 00:02:22 -07:00
Jamon Holmgren
2da5fe93df Merge pull request #179 from clearsightstudio/feature_tabs_for_all
PR: Tab bar refactor
2013-06-28 23:52:41 -07:00
Jamon Holmgren
66505be537 Merge pull request #180 from toshiwo/change_open_screen_return_a_screen
change open_screen return a screen
2013-06-28 23:51:01 -07:00
toshiwo
6172209643 change open_screen return a screen 2013-06-29 04:25:29 +09:00
Jamon Holmgren
c2b096ef93 Merge pull request #177 from clearsightstudio/webscreen-test-reliability
Use KVO for WebScreen tests instead of arbitrary timeouts.
2013-06-28 11:59:34 -07:00
Jamon Holmgren
cb88e225fe Tab bar refactor
* Fixes issue #167
* Added PM::TabBarController
* Moved some PM::Tab methods into PM::TabBarController
* Moved some tab-related accessors into PM::Tab
* Allowed `open_tab` from AppDelegate and on the PM::TabBarController
directly
* Added tests
* Added a method: set_tab_bar_badge(number)
* Also fixed an error in the cell identifier creation code that was
creating too many identifiers

75 specifications (144 requirements), 0 failures, 0 errors
2013-06-28 11:58:05 -07:00
Mark Rickert
a6c847a1f2 Merge pull request #168 from clearsightstudio/feature/map_look_up_address
PR: Added a look_up_address convenience method
2013-06-28 11:29:44 -07:00
Mark Rickert
b253b88c17 Use KVO for WebScreen tests instead of arbitrary timeouts. 2013-06-28 14:20:15 -04:00
Mark Rickert
8faafef4ba Working test for geocoding an address using MapScreen 2013-06-28 14:11:47 -04:00
Silas J. Matson
e80a6e46ec Added a few more requirements to improve tests. 2013-06-27 13:34:46 -07:00
Silas J. Matson
e20433afb4 Add specs for will_present, on_presented, will_dismiss, and on_dismiss. 2013-06-27 13:14:35 -07:00