standout-capybara 1.0.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/{master.yml → tests.yml} +2 -9
- data/Gemfile.lock +1 -1
- data/README.md +33 -4
- data/lib/standout/capybara/version.rb +1 -1
- data/lib/standout/capybara.rb +2 -2
- metadata +2 -3
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51af0da969c14bfbcd25d1608c59204972544f6ab8a486332c8453f3b5c82753
|
4
|
+
data.tar.gz: a7f8a44ea22b99b713844441b2fcab10c96ba75c5c0e7a977436b949f82b4188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241f0b1adaac4fd32942dfa5323ec15f633d0a04a220b6aa06674027f954890964fca2ad06304a00854ff99156e51fbd9f1bf005af9e378ed924672f5007f48a
|
7
|
+
data.tar.gz: 04f11f4e9d56b435f033639ea313717ed66cfe237647412519ca1d7d7cb5b492d65bd849c3b0feaa8dd7dee7d9d16169f232464886f56fa6f3e09166d80bdb45
|
@@ -1,10 +1,10 @@
|
|
1
|
-
name:
|
1
|
+
name: Tests
|
2
2
|
|
3
3
|
on: [push, pull_request, release]
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
build:
|
7
|
-
name:
|
7
|
+
name: Tests
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
|
10
10
|
steps:
|
@@ -19,10 +19,3 @@ jobs:
|
|
19
19
|
bundle install
|
20
20
|
- name: Test
|
21
21
|
run: rake
|
22
|
-
- name: Publish to Rubygems
|
23
|
-
if: contains(github.ref, 'refs/tags/v')
|
24
|
-
uses: cadwallion/publish-rubygems-action@v1.0.0
|
25
|
-
env:
|
26
|
-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
27
|
-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
28
|
-
RELEASE_COMMAND: rake release
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -57,6 +57,16 @@ Example:
|
|
57
57
|
$ nanobox run rake
|
58
58
|
```
|
59
59
|
|
60
|
+
### Options
|
61
|
+
|
62
|
+
Options that you can override using environment variables.
|
63
|
+
|
64
|
+
| Environment variable | Description |
|
65
|
+
|:-----------------|:------------|
|
66
|
+
| `CAPYBARA` | Override the driver |
|
67
|
+
| `CAPYBARA_WAIT_TIME` | Override default wait time of capybara |
|
68
|
+
|
69
|
+
|
60
70
|
### Available drivers
|
61
71
|
|
62
72
|
Override the driver using the environment variable `CAPYBARA`.
|
@@ -74,13 +84,23 @@ CAPYBARA=[driver name] test-command
|
|
74
84
|
| nanobox_chrome | Default driver when inside Nanobox. |
|
75
85
|
## Development
|
76
86
|
|
77
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
87
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
88
|
+
`rake spec` to run the tests. You can also run `bin/console` for an interactive
|
89
|
+
prompt that will allow you to experiment.
|
78
90
|
|
79
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To
|
91
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To
|
92
|
+
release a new version, update the version number in `version.rb`, and then run
|
93
|
+
`bundle exec rake release`, which will create a git tag for the version, push
|
94
|
+
git commits and tags, and push the `.gem` file to
|
95
|
+
[rubygems.org](https://rubygems.org).
|
80
96
|
|
81
97
|
## Contributing
|
82
98
|
|
83
|
-
Bug reports and pull requests are welcome on GitHub at
|
99
|
+
Bug reports and pull requests are welcome on GitHub at
|
100
|
+
https://github.com/[USERNAME]/standout-capybara. This project is intended to be
|
101
|
+
a safe, welcoming space for collaboration, and contributors are expected to
|
102
|
+
adhere to the [Contributor Covenant](http://contributor-covenant.org) code of
|
103
|
+
conduct.
|
84
104
|
|
85
105
|
## License
|
86
106
|
|
@@ -88,4 +108,13 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
88
108
|
|
89
109
|
## Code of Conduct
|
90
110
|
|
91
|
-
Everyone interacting in the Standout::Capybara project’s codebases, issue
|
111
|
+
Everyone interacting in the Standout::Capybara project’s codebases, issue
|
112
|
+
trackers, chat rooms and mailing lists is expected to follow the [code of
|
113
|
+
conduct](https://github.com/[USERNAME]/standout-capybara/blob/master/CODE_OF_CONDUCT.md).
|
114
|
+
|
115
|
+
## Release
|
116
|
+
|
117
|
+
To release a new version you should bump the version in the file
|
118
|
+
`lib/standout/capybara/version.rb`, commit the change and push it to GitHub.
|
119
|
+
Then you should create a release in GitHub and it will automatically be built
|
120
|
+
and uploaded to RubyGems and as a GitHub Package.
|
data/lib/standout/capybara.rb
CHANGED
@@ -32,9 +32,9 @@ module Standout
|
|
32
32
|
end
|
33
33
|
|
34
34
|
if ::Capybara.respond_to? :default_max_wait_time
|
35
|
-
::Capybara.default_max_wait_time = 30
|
35
|
+
::Capybara.default_max_wait_time = ENV.fetch('CAPYBARA_WAIT_TIME') { 30 }
|
36
36
|
else
|
37
|
-
::Capybara.default_wait_time = 30
|
37
|
+
::Capybara.default_wait_time = ENV.fetch('CAPYBARA_WAIT_TIME') { 30 }
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standout-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Standout AB
|
@@ -102,10 +102,9 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".github/workflows/gempush.yml"
|
105
|
-
- ".github/workflows/
|
105
|
+
- ".github/workflows/tests.yml"
|
106
106
|
- ".gitignore"
|
107
107
|
- ".rspec"
|
108
|
-
- ".travis.yml"
|
109
108
|
- CODE_OF_CONDUCT.md
|
110
109
|
- Gemfile
|
111
110
|
- Gemfile.lock
|