{"action":"created","issue":{"url":"https://api.github.com/repos/realm/jazzy/issues/167","labels_url":"https://api.github.com/repos/realm/jazzy/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/realm/jazzy/issues/167/comments","events_url":"https://api.github.com/repos/realm/jazzy/issues/167/events","html_url":"https://github.com/realm/jazzy/pull/167","id":59113193,"number":167,"title":"RubyGem install: fix SourceKitten symlinks","user":{"login":"beltex","id":2666961,"avatar_url":"https://avatars.githubusercontent.com/u/2666961?v=3","gravatar_id":"","url":"https://api.github.com/users/beltex","html_url":"https://github.com/beltex","followers_url":"https://api.github.com/users/beltex/followers","following_url":"https://api.github.com/users/beltex/following{/other_user}","gists_url":"https://api.github.com/users/beltex/gists{/gist_id}","starred_url":"https://api.github.com/users/beltex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beltex/subscriptions","organizations_url":"https://api.github.com/users/beltex/orgs","repos_url":"https://api.github.com/users/beltex/repos","events_url":"https://api.github.com/users/beltex/events{/privacy}","received_events_url":"https://api.github.com/users/beltex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-26T18:09:07Z","updated_at":"2015-02-26T18:11:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realm/jazzy/pulls/167","html_url":"https://github.com/realm/jazzy/pull/167","diff_url":"https://github.com/realm/jazzy/pull/167.diff","patch_url":"https://github.com/realm/jazzy/pull/167.patch"},"body":"I built the gem locally using below and tested by running jazzy on a sample project.\r\n\r\n```bash\r\ngem build jazzy.gemspec\r\nsudo gem install ./jazzy-0.1.1.gem\r\n```\r\n\r\nNow we have (which matches what SourceKitten creates standalone)\r\n\r\n```bash\r\n$ pwd\r\n/Library/Ruby/Gems/2.0.0/gems/jazzy-0.1.1/lib/jazzy/SourceKitten/SourceKittenFramework.framework\r\n$ tree -L 3\r\n.\r\n├── Modules -> Versions/Current/Modules\r\n├── Resources -> Versions/Current/Resources\r\n├── SourceKittenFramework -> Versions/Current/SourceKittenFramework\r\n└── Versions\r\n    ├── A\r\n    │   ├── Frameworks\r\n    │   ├── Modules\r\n    │   ├── Resources\r\n    │   └── SourceKittenFramework\r\n    └── Current -> A\r\n\r\n8 directories, 2 files\r\n```\r\n\r\nTwo things to note:\r\n\r\n- Line 8: `.framework` extension was not being removed from name\r\n- Line 9: Since the symlinks fail to download, the destination file is swapped in place of the symlink, so we have a duplicate of the file. To allow us to once again create the symlink with the proper name, remove the duplicate file first\r\n\r\nRef: https://github.com/realm/jazzy/issues/159"},"comment":{"url":"https://api.github.com/repos/realm/jazzy/issues/comments/76232361","html_url":"https://github.com/realm/jazzy/pull/167#issuecomment-76232361","issue_url":"https://api.github.com/repos/realm/jazzy/issues/167","id":76232361,"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-02-26T18:11:53Z","updated_at":"2015-02-26T18:11:53Z","body":"Thanks so much for stepping and helping to fix this, @beltex !"}}