calabash/calabash-android — pull request #402 by mgrebenets (2014-05-06 03:16:51+00:00)
Title: Activity Orientation

# Summary
Follow up on closed #390
- More input values to set orientation (consistent with iOS)
- Action to get activity orientation
- Ruby API to work with activity and device orientation

## Activity Orientation
- Modified `set_activity_orientation` action to support "left", "right", "up" and "down" orientations in addition to "landscape" and "portrait".
- This makes it similar to iOS code and makes it easier to write cross-platform code.
- Added `get_activity_orientation` action to return current activity orientation
- Using "bonusInformation" to return orientation
- Added new Ruby APIs in `OrientationHelpers` module
- `device_orientation` is only a stub yet

New file: `actions/activity/GetActivityImplementation.java`.
New file: `orientation_helpers.rb`

## Formatting
In all touched files
- Removed trailing spaces
- Fixed blank lines (removed obsolete spaces)