• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aws / aws-sdk-ruby / 1117
95%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v2.11.632
DEFAULT BRANCH: master
Ran 18 Mar 2015 05:46PM UTC
Jobs 11
Files 205
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1117

push

travis-ci

trevorrowe
Add a custom block waiter to all resources.

This is a proof-of-concept attempt to provide the following functionality:

    # polls until the block returns a truthy value, or until the
    # max number of attempts
    resource.wait_until do |resource|
      resource.status == 'destired-state'
    end

A more concrete example:

    # waiting for an object in Amazon S3 to change

    s3 = Aws::S3::Resource.new
    obj = s3.bucket('aws-sdk').object('key')
    old_etag = obj.etag

    obj.wait_until { |obj| obj.etag != old_etag }

Like the other waiters you can throw `:success`, or `:failure` from
the block to stop waiting. Supports configuration options such as:

* :max_attempts - defauts to 10 for all resources
* :delay - defauts to 10 for all resources
* :before_request - optional callback to emit before request
* :before_wait - optional callback to emit before waiting between requests

13 of 13 new or added lines in 2 files covered. (100.0%)

5235 of 5514 relevant lines covered (94.94%)

1476.28 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
100.0
aws-sdk-resources/lib/aws-sdk-resources/resource.rb
Jobs
ID Job ID Ran Files Coverage
1 1117.1 (1.9.3, PURE_RUBY=1) 18 Mar 2015 05:46PM UTC 0
95.42
Travis Job 1117.1
2 1117.2 (1.9.3, NOKOGIRI=1) 18 Mar 2015 05:47PM UTC 0
95.48
Travis Job 1117.2
3 1117.3 (1.9.3, OX=1 OJ=1) 18 Mar 2015 05:46PM UTC 0
95.48
Travis Job 1117.3
4 1117.4 (2.0.0, PURE_RUBY=1) 18 Mar 2015 05:46PM UTC 0
95.44
Travis Job 1117.4
5 1117.5 (2.0.0, NOKOGIRI=1) 18 Mar 2015 05:47PM UTC 0
95.44
Travis Job 1117.5
6 1117.6 (2.0.0, OX=1 OJ=1) 18 Mar 2015 05:48PM UTC 0
95.49
Travis Job 1117.6
7 1117.7 (2.1, PURE_RUBY=1) 18 Mar 2015 05:48PM UTC 0
95.49
Travis Job 1117.7
8 1117.8 (2.1, NOKOGIRI=1) 18 Mar 2015 05:49PM UTC 0
95.49
Travis Job 1117.8
9 1117.9 (2.1, OX=1 OJ=1) 18 Mar 2015 05:49PM UTC 0
95.44
Travis Job 1117.9
10 1117.10 (jruby, PURE_RUBY=1) 18 Mar 2015 05:49PM UTC 0
92.69
Travis Job 1117.10
11 1117.11 (jruby, NOKOGIRI=1) 18 Mar 2015 05:50PM UTC 0
92.68
Travis Job 1117.11
Source Files on build 1117
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1117
  • f9e33b4c on github
  • Next Build on custom-waiter (#1139)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc