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

shakacode / react_on_rails / 3240
0%

Build:
DEFAULT BRANCH: master
Ran 30 Mar 2017 09:11AM UTC
Jobs 2
Files 36
Run time 55s
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
3240

push

travis-ci

justin808
Use <script type="application/json"> for props and store (#775) for performance

Initial implementation started by https://github.com/eliaslopezgt and then https://github.com/squadette
* Refactor console output to use <script> tag with a certain ID
* Use <script type="application/json"> with JSON content instead of attribute
* Pretty-print JSON in development and testing
* getAttribute() is better, because it handles attributes which are not present.
* Return skip display none to react on rails configuration
* Extract data-js-react-on-rails-store attribute to the const
* Return to_json method call to app_props_server_render to ensure handling the both cases
* Delete unnecessary style method and HIDDEN constant from react component module
* Improve jsonEl parsing to handle props as already converted from JSON to a string
* Move handling props already converted to json string to ruby code
* Escape json from props as json string
* Add test to ensure that even json string props are sanitezed
* Delete test json props because we parse all props to a hash now

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

748 of 764 relevant lines covered (97.91%)

82.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3240.1 (2.2.6, spec/dummy/Gemfile) 30 Mar 2017 09:11AM UTC 0
97.91
Travis Job 3240.1
2 3240.2 (2.3.1, spec/dummy/Gemfile) 30 Mar 2017 09:12AM UTC 0
97.91
Travis Job 3240.2
Source Files on build 3240
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3240
  • 7ccd6036 on github
  • Prev Build on master (#3216)
  • Next Build on master (#3241)
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