{"action":"created","issue":{"url":"https://api.github.com/repos/RestKit/RestKit/issues/2310","labels_url":"https://api.github.com/repos/RestKit/RestKit/issues/2310/labels{/name}","comments_url":"https://api.github.com/repos/RestKit/RestKit/issues/2310/comments","events_url":"https://api.github.com/repos/RestKit/RestKit/issues/2310/events","html_url":"https://github.com/RestKit/RestKit/pull/2310","id":108228414,"number":2310,"title":"Use framework-style import statements","user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-09-24T22:47:48Z","updated_at":"2015-11-03T19:00:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RestKit/RestKit/pulls/2310","html_url":"https://github.com/RestKit/RestKit/pull/2310","diff_url":"https://github.com/RestKit/RestKit/pull/2310.diff","patch_url":"https://github.com/RestKit/RestKit/pull/2310.patch"},"body":"Closes #2288.\r\n\r\nDone almost entirely with the following script:\r\n\r\n```ruby\r\nrequire 'pathname'\r\n\r\nfiles_by_name = Pathname.glob('Code/**/*.{h,m}').group_by(&:basename)\r\nfiles_by_name.each_value do |files|\r\n  files.each do |file|\r\n    content = file.read\r\n    content.gsub!(/#import \"([^\"]*)\"/) {\r\n      p $1\r\n      path = Array(files_by_name[Pathname($1)]).first\r\n      if path\r\n        path = path.each_filename.drop_while { |c| c != 'Code' }.drop(1).join('/')\r\n        \"#import <RestKit/#{path}>\"\r\n      else\r\n        %(#import \"#{$1}\")\r\n      end\r\n    }\r\n    file.open('w') { |f| f.write content }\r\n  end\r\nend\r\n```\r\n\r\n\\c @0xced "},"comment":{"url":"https://api.github.com/repos/RestKit/RestKit/issues/comments/153454751","html_url":"https://github.com/RestKit/RestKit/pull/2310#issuecomment-153454751","issue_url":"https://api.github.com/repos/RestKit/RestKit/issues/2310","id":153454751,"user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T19:00:53Z","updated_at":"2015-11-03T19:00:53Z","body":"@agoldoor It's failing at the moment and I don't know why. I don't personally use RestKit any more, and I maintain it in my free time. I'll get around to it when I can, otherwise other people are more than welcome to make pull requests."}}