https://github.com/appium/appium_thor
Appium Thor helpers for appium's gems
https://github.com/appium/appium_thor
Last synced: about 1 year ago
JSON representation
Appium Thor helpers for appium's gems
- Host: GitHub
- URL: https://github.com/appium/appium_thor
- Owner: appium
- License: apache-2.0
- Created: 2014-07-30T15:17:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-01-26T07:32:41.000Z (over 1 year ago)
- Last Synced: 2025-05-06T20:55:44.653Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 85 KB
- Stars: 1
- Watchers: 13
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# appium_thor
[](https://badge.fury.io/rb/appium_thor)
Appium Thor helpers for appium's gems (appium_lib, appium_capybara).
--
# Example configuration
```ruby
Appium::Thor::Config.set do
gem_name 'appium_thor'
github_owner 'appium'
github_name 'appium_thor'
branch 'master'
version_file 'lib/appium_thor/version.rb'
end
# Must use '::' otherwise Default will point to Thor::Sandbox::Default
# Debug by calling Thor::Base.subclass_files via Pry
#
# https://github.com/erikhuda/thor/issues/484
#
class ::Default < Thor
desc 'spec', 'Run RSpec tests'
def spec
exec 'rspec spec'
end
end
```
# Defaults
|Option | Default|
|---:|:---|
|gem_name | must be provided|
|github_owner | `appium`|
|github_name | `#{gem_name}`|
|branch | `master`|
|version_file | `lib/#{gem_name}/version.rb`|
`branch` customises the target branch to push changes.
Defaults to `master`
--
# Available tasks
Note to see gem warnings, run `gem build your_gem_name.gemspec`
```
thor build # Build a new gem
thor bump # Bump the z version number and update the date.
thor bumpx # Bump the x version number, set y & z to zero, update the date.
thor bumpy # Bump the y version number, set z to zero, update the date.
thor byte # Remove non-ascii bytes from all *.rb files in the current dir
thor gem_install # Install gem
thor gem_uninstall # Uninstall gem
thor info # prints config info for this gem
thor notes # Update release notes
thor publish # Build and release a new gem to rubygems.org
thor release # Build and release a new gem to rubygems.org (same as publish)
```