{"action":"created","issue":{"url":"https://api.github.com/repos/chef/knife-ec2/issues/293","labels_url":"https://api.github.com/repos/chef/knife-ec2/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/chef/knife-ec2/issues/293/comments","events_url":"https://api.github.com/repos/chef/knife-ec2/issues/293/events","html_url":"https://github.com/chef/knife-ec2/pull/293","id":76063479,"number":293,"title":"s3_source: Lazy load fog library","user":{"login":"Igorshp","id":3381045,"avatar_url":"https://avatars.githubusercontent.com/u/3381045?v=3","gravatar_id":"","url":"https://api.github.com/users/Igorshp","html_url":"https://github.com/Igorshp","followers_url":"https://api.github.com/users/Igorshp/followers","following_url":"https://api.github.com/users/Igorshp/following{/other_user}","gists_url":"https://api.github.com/users/Igorshp/gists{/gist_id}","starred_url":"https://api.github.com/users/Igorshp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igorshp/subscriptions","organizations_url":"https://api.github.com/users/Igorshp/orgs","repos_url":"https://api.github.com/users/Igorshp/repos","events_url":"https://api.github.com/users/Igorshp/events{/privacy}","received_events_url":"https://api.github.com/users/Igorshp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/knife-ec2/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-13T17:31:02Z","updated_at":"2015-05-13T22:07:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/knife-ec2/pulls/293","html_url":"https://github.com/chef/knife-ec2/pull/293","diff_url":"https://github.com/chef/knife-ec2/pull/293.diff","patch_url":"https://github.com/chef/knife-ec2/pull/293.patch"},"body":"This speeds up all knife commands on systems where knife-ec2 plugin is\r\ninstalled.\r\n\r\nBenchmarks ( done with 'time' command):\r\n\r\n| Command | Before | After | % Improvement |\r\n|-------|-----|----|----|\r\nknife help | 8.523s | 2.616s  | 69% |\r\nknife search \"chef_environment:prod\" | 20.429s | 15.094 | 26% |\r\nknife search \"chef_environment:prod AND role:admin\" | 10.625   | 5.125s | 51% |\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chef/knife-ec2/issues/comments/101831127","html_url":"https://github.com/chef/knife-ec2/pull/293#issuecomment-101831127","issue_url":"https://api.github.com/repos/chef/knife-ec2/issues/293","id":101831127,"user":{"login":"Igorshp","id":3381045,"avatar_url":"https://avatars.githubusercontent.com/u/3381045?v=3","gravatar_id":"","url":"https://api.github.com/users/Igorshp","html_url":"https://github.com/Igorshp","followers_url":"https://api.github.com/users/Igorshp/followers","following_url":"https://api.github.com/users/Igorshp/following{/other_user}","gists_url":"https://api.github.com/users/Igorshp/gists{/gist_id}","starred_url":"https://api.github.com/users/Igorshp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igorshp/subscriptions","organizations_url":"https://api.github.com/users/Igorshp/orgs","repos_url":"https://api.github.com/users/Igorshp/repos","events_url":"https://api.github.com/users/Igorshp/events{/privacy}","received_events_url":"https://api.github.com/users/Igorshp/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T22:07:42Z","updated_at":"2015-05-13T22:07:42Z","body":"Thanks @btm, i like the idea, but unforunately it doesn't work. \r\nI believe it's because that checks for a method called 'require' on S3Source class and real 'require' is part of ruby kernel? https://github.com/ruby/ruby/blob/ca6b174078fa15f33655be704d9409fdbc4f9929/lib/rubygems/core_ext/kernel_require.rb#L38\r\n\r\nHowever:\r\n``` \r\nexpect(Kernel).not_to receive(:require)\r\n```\r\nalso doesn't seem to work"}}