{"id":16549584,"url":"https://github.com/uiur/poltergeist-suppressor","last_synced_at":"2025-10-28T16:32:11.668Z","repository":{"id":16573422,"uuid":"19327441","full_name":"uiur/poltergeist-suppressor","owner":"uiur","description":"A noisy warnings suppressor for capybara/poltergeist","archived":false,"fork":false,"pushed_at":"2014-04-30T21:58:22.000Z","size":140,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T11:10:09.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uiur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-30T21:13:06.000Z","updated_at":"2016-10-31T20:05:54.000Z","dependencies_parsed_at":"2022-09-24T08:01:02.767Z","dependency_job_id":null,"html_url":"https://github.com/uiur/poltergeist-suppressor","commit_stats":null,"previous_names":["uiureo/poltergeist-suppressor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fpoltergeist-suppressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fpoltergeist-suppressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fpoltergeist-suppressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fpoltergeist-suppressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiur","download_url":"https://codeload.github.com/uiur/poltergeist-suppressor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238681883,"owners_count":19512863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T19:29:56.904Z","updated_at":"2025-10-28T16:32:11.278Z","avatar_url":"https://github.com/uiur.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Poltergeist::Suppressor\n\nA noisy warnings suppressor for capybara/poltergeist.\n\nThis gem silences noisy phantomjs warnings such as 'CoreText performance note...'.\n\nExample before using:\n\n```\n% rspec ./spec/example_spec.rb\n2014-05-01 05:26:27.380 phantomjs[92529:507] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.\n2014-05-01 05:26:27.927 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Helvetica Neue\" and got font with PostScript name \"HelveticaNeue\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:27.927 phantomjs[92529:507] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.\n2014-05-01 05:26:27.931 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:27.932 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:27.934 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:27.934 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:27.935 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:28.184 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:28.184 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:28.184 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Lucida Grande\" and got font with PostScript name \"LucidaGrande\". For best performance, only use PostScript names when calling this API.\n2014-05-01 05:26:28.470 phantomjs[92529:507] CoreText performance note: Client called CTFontCreateWithName() using name \"Helvetica Neue\" and got font with PostScript name \"HelveticaNeue\". For best performance, only use PostScript names when calling this API.\n.\n\nFinished in 3.7 seconds\n1 example, 0 failures\n\n```\n\n\nAfter:\n\n```\n% rspec ./spec/example_spec.rb\n.\n\nFinished in 3.7 seconds\n1 example, 0 failures\n\n```\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'poltergeist-suppressor'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install poltergeist-suppressor\n\n## Usage\n\nAdd these lines to spec_helper.rb:\n``` ruby\nrequire 'capybara/poltergeist'\nrequire 'poltergeist/suppressor'\n```\n\nThis gem automatically set a suppressed driver to `:poltergeist`.\n\nYou can manually add a suppressor to your driver.\n``` ruby\nCapybara.register_driver :poltergeist do |app|\n  Capybara::Poltergeist::Driver.new(app,\n    phantomjs_logger: Capybara::Poltergeist::Suppressor.new\n  )\nend\n```\n\nAnd you can specify ignore patterns in regexp.\n\n``` ruby\nsuppressor = Capybara::Poltergeist::Suppressor.new(patterns: [\n  /spam spam spam spam/,\n  /spamspamspamspam/\n])\n\nCapybara.register_driver :poltergeist do |app|\n  Capybara::Poltergeist::Driver.new(app, phantomjs_logger: suppressor)\nend\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Fpoltergeist-suppressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiur%2Fpoltergeist-suppressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Fpoltergeist-suppressor/lists"}