No commit activity in last 3 years
No release in over 3 years
PageObject stub generator for RubyMine.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.1
>= 1.10.6
>= 0.8.2
>= 0.10.1
>= 10.4.2
>= 3.3.0

Runtime

>= 2.3.1.2
 Project Readme

PageObjectStubs

Gem Version Dependency Status Build Status Coverage Status

PageObject stub generator for RubyMine.

targets = Dir.glob(File.join(__dir__, '..', 'page', '*_page.rb'))
output  = File.join(__dir__, '..', 'stub')
exclude = /#{Regexp.escape('base_page.rb')}/
PageObjectStubs.generate targets: targets, output: output, exclude: exclude
# Creates stubs from target Ruby files in output folder with the format
# target_filename_stub.rb
#
# Note the output folder is **DELETED** each time stubs are generated.
#
# @param [Hash] opts
# @option opts [Array<File>] :targets Array of target files to create stubs from (required)
# @option opts [Dir] :output Folder to create stubs in (required)
# @option opts [Regexp] :exclude Exclusion regex use to reject targets (optional)

Contributing

  1. Fork it ( https://github.com/bootstraponline/page_object_stubs/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request