Stage.rb: added methods for handling 2nd stage status

- `is_second_stage_required()` and `second_stage_required()` methods
- 3.1.3