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

jgraichen / acfs / 276
97%

Build:
DEFAULT BRANCH: master
Ran 27 Feb 2014 10:36PM UTC
Jobs 11
Files 45
Run time –
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
276

push

travis-ci

jgraichen
Add support for storing unknown attributes.

Assigning or receiving unknown attribute not longer raises an error
or silently drop the attributes. Instead they will be assigned to
the attributes hash an can be assessed through #attributes as well
as the attribute read/write helpers. If a public setter method
exists the method will be called. The #create class method uses this
to create a new object e.g. to kick in validations as well as
support unregistered attributes send to server. Also #save behaves
the same way, it will serialize all #attributes, even unknown.
The #initialize method will also assign unknown attributes. An
error will be raised if a private attribute setter with matching
name exists.

Example:
  class Session
    attribute :id, :integer
    attribute :user_id, :integer
  end

  session = Session.new login: 'js@example.com', password: 'secret'
  session.attributes #=> {"login"=>"js@example.com",
                     #    "password":"secret"}
  session.save       # Sends "login" and "password" as well as
                     # "id" and "user_id" attributes with default
                     # values.
                     # The server returns "id", "user_id" and
                     # "last_login".
  session.id         #=> 574658
  session.user_id    #=> 234
  session.attributes #=> {"login"=>"js@example.com",
                     #    "password":"secret",
                     #    "id":574658,
                     #    "user_id":234,
                     #    "last_login":"today"}

30 of 30 new or added lines in 5 files covered. (100.0%)

921 of 954 relevant lines covered (96.54%)

422.47 hits per line

Jobs
ID Job ID Ran Files Coverage
5 276.5 (2.0.0, gemfiles/Gemfile.rails-3-2) 27 Feb 2014 10:36PM UTC 0
97.72
Travis Job 276.5
6 276.6 (2.0.0, gemfiles/Gemfile.rails-3-1) 27 Feb 2014 10:39PM UTC 0
97.72
Travis Job 276.6
7 276.7 (1.9.3, gemfiles/Gemfile.rails-4-0) 27 Feb 2014 10:40PM UTC 0
97.39
Travis Job 276.7
8 276.8 (1.9.3, gemfiles/Gemfile.rails-3-2) 27 Feb 2014 10:40PM UTC 0
97.72
Travis Job 276.8
9 276.9 (1.9.3, gemfiles/Gemfile.rails-3-1) 27 Feb 2014 10:40PM UTC 0
97.72
Travis Job 276.9
10 276.10 (jruby, gemfiles/Gemfile.rails-4-0) 27 Feb 2014 10:41PM UTC 0
95.9
Travis Job 276.10
11 276.11 (jruby, gemfiles/Gemfile.rails-3-2) 27 Feb 2014 10:43PM UTC 0
95.98
Travis Job 276.11
12 276.12 (jruby, gemfiles/Gemfile.rails-3-1) 27 Feb 2014 10:44PM UTC 0
96.53
Travis Job 276.12
13 276.13 (rbx, gemfiles/Gemfile.rails-4-0) 27 Feb 2014 10:46PM UTC 0
97.44
Travis Job 276.13
14 276.14 (rbx, gemfiles/Gemfile.rails-3-2) 27 Feb 2014 10:47PM UTC 0
98.21
Travis Job 276.14
15 276.15 (rbx, gemfiles/Gemfile.rails-3-1) 27 Feb 2014 10:47PM UTC 0
98.21
Travis Job 276.15
Source Files on build 276
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #276
  • f9b6d7cf on github
  • Prev Build on master (#275)
  • Next Build on master (#277)
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

© 2026 Coveralls, Inc