Skip to content

Commit

Permalink
Fix plugins and update read_me
Browse files Browse the repository at this point in the history
  • Loading branch information
aguspe committed Jul 29, 2024
1 parent ba09bde commit 7425ed9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
19 changes: 8 additions & 11 deletions lib/generators/templates/common/read_me.tt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
<br />
<div align="center">
<a href="https://github.com/RubyRaider/ruby_raider">
<img src="https://rubyraiderdotcom.files.wordpress.com/2022/05/logo_transparent_background-1.png" alt="Logo">
<img src="https://ruby-raider.com/wp-content/uploads/2022/05/logo-160x160.png?w=890" alt="Logo" style="width:600px;">
</a>
<h1 align="center">Ruby Raider</h1>
<p align="center">
This is a gem to make setup and start of UI automation projects easier.
<br />
<a href="https://github.com/RubyRaider/ruby_raider#getting-started"><strong>Explore the docs »</strong></a>
<br />
<br />
Expand Down Expand Up @@ -79,13 +76,13 @@ Select the ones you will like to work with.
If you already know which frameworks you want to use, you can do:

```ruby
raider new [name_of_project] - p framework : [framework] automation : [automation_type] visual : [boolean] axe : [boolean]
raider new [name_of_project] p framework : [framework] automation : [automation_type]
```

An example of the command above would be:

```ruby
raider new test_project -p framework : rspec automation: selenium visual : false axe : true
raider new test_project p framework : rspec automation: selenium
```

Where [frameworks] is a comma separated list of the frameworks you want to use.
Expand Down Expand Up @@ -120,15 +117,15 @@ Ruby Raider also supports scaffolding:
* To create a new steps definition you do: ```raider g steps [STEPS_NAME]```
* To create both a page/spec or a page/feature/steps you do: ```raider g scaffold [SCAFFOLD_NAME]```

It's possible to add the option --path or -p if you want to specify where to create your features, pages, helpers and
It's possible to add the option --path or p if you want to specify where to create your features, pages, helpers and
specs.

If you want to set the default path for the creation of your features, helpers and specs:

```ruby
raider u path [PATH_NAME] - -feature or -f
raider u path [PATH_NAME] - -spec or -s
raider u path [PATH_NAME] - -helper or -h
raider u path [PATH_NAME] - -feature or f
raider u path [PATH_NAME] - -spec or s
raider u path [PATH_NAME] - -helper or h
```

If you don't specify an option, path will assume you want to change the default path for pages.
Expand All @@ -139,4 +136,4 @@ To initialise Appium server run this command:

```ruby
raider u start_appium
```
```
2 changes: 1 addition & 1 deletion lib/plugin/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def last_plugin?
end

def plugins
@plugins ||= YAML.load_file('plugins.yml')
@plugins ||= YAML.load_file(File.expand_path('plugins.yml'))
end

def read_gemfile
Expand Down
2 changes: 1 addition & 1 deletion lib/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.5
0.9.7

0 comments on commit 7425ed9

Please sign in to comment.