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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09b336ba91414843b3ccf3656ac63cdeeeddd0481e9a5d0589957be61e84a0ce'
4
- data.tar.gz: 2248d9755e12f149fb8890c5e04c4d395d02244e7f52985e9ad793930bd0e5f4
3
+ metadata.gz: 51af0da969c14bfbcd25d1608c59204972544f6ab8a486332c8453f3b5c82753
4
+ data.tar.gz: a7f8a44ea22b99b713844441b2fcab10c96ba75c5c0e7a977436b949f82b4188
5
5
  SHA512:
6
- metadata.gz: 5900019412aba565361961af2648d785fd3238fddf8731d42142dcf29d53b71b3cd41045bac1b3d867367daf6855a47a5f05fb672ccc255b3337fa1a666200d5
7
- data.tar.gz: 7201e3511976e8518a5426acb1af001fac61e8d2521700c23dee9ccd4dc4ab1240af556ccd8a1c6c4962695a003ef867bc044fb2f643cf53b07ebed8f302a89a
6
+ metadata.gz: 241f0b1adaac4fd32942dfa5323ec15f633d0a04a220b6aa06674027f954890964fca2ad06304a00854ff99156e51fbd9f1bf005af9e378ed924672f5007f48a
7
+ data.tar.gz: 04f11f4e9d56b435f033639ea313717ed66cfe237647412519ca1d7d7cb5b492d65bd849c3b0feaa8dd7dee7d9d16169f232464886f56fa6f3e09166d80bdb45
@@ -1,10 +1,10 @@
1
- name: Master
1
+ name: Tests
2
2
 
3
3
  on: [push, pull_request, release]
4
4
 
5
5
  jobs:
6
6
  build:
7
- name: Build + Publish
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standout-capybara (1.0.7)
4
+ standout-capybara (1.1.0)
5
5
  capybara
6
6
  capybara-screenshot
7
7
  chromedriver-helper
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 `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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 release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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 https://github.com/[USERNAME]/standout-capybara. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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 trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/standout-capybara/blob/master/CODE_OF_CONDUCT.md).
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Standout
4
4
  module Capybara
5
- VERSION = '1.0.7'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
@@ -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.7
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/master.yml"
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
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.1
7
- before_install: gem install bundler -v 1.17.1