{"action":"created","comment":{"url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/comments/52576948","id":52576948,"diff_hunk":"@@ -12,10 +13,43 @@ All notable changes to this project will be documented in this file.\n - `0.2.x` Releases - [0.2.0](#020) | [0.2.1](#021)\n - `0.1.x` Releases - [0.1.0](#010) | [0.1.3](#013) | [0.1.5](#015) | [0.1.6](#016)\n \n-## [1.6.0](https://github.com/JudoPay/Judo-Swift/releases/tag/1.6.0)\n+## [2.0.0](https://github.com/JudoPay/Judo-Swift/releases/tag/2.0.0)\n to be Released on 2016-02-18\n \n #### Added\n+- Brazilien Real static accessor in `Currency`\n+\n+#### Changed\n+- removed static accessors in favor of creating a session var in each project\n+\n+all functions and properties in `Judo` are not `static` anymore\n+\n+- We moved the endpoint method from `Judo` and placed it into the `Session` class which makes more sense as an origin for this variable\n+\n+- A new init() method that initializes your Judo session with a given token and secret\n+```swift\n+let myJudoSession = Judo(\"your token\", secret: \"your secret\")\n+```\n+- in light of creating the Judo session the method which checks if a device is jailbroken has been moved into the initializer. It throws an exception in case the code is executed on a jailbroken device. If you need to restrict usage on Jailbroken devices, use the following method instead\n+\n+```swift\n+let myJudoSession = try Judo(\"your token\", secret: \"your secret\", allowJailbrokenDevices: true)\n+```\n+\n+you can except that the only exception that is thrown is the `JailbrokenDeviceDisallowedError` so you could also do the following.","path":"CHANGELOG.md","position":36,"original_position":36,"commit_id":"bd6dc49559a5254e2eec8fbf1e6e65ced826c94d","original_commit_id":"bd6dc49559a5254e2eec8fbf1e6e65ced826c94d","user":{"login":"JamesGoodwin","id":251963,"avatar_url":"https://avatars.githubusercontent.com/u/251963?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesGoodwin","html_url":"https://github.com/JamesGoodwin","followers_url":"https://api.github.com/users/JamesGoodwin/followers","following_url":"https://api.github.com/users/JamesGoodwin/following{/other_user}","gists_url":"https://api.github.com/users/JamesGoodwin/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesGoodwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesGoodwin/subscriptions","organizations_url":"https://api.github.com/users/JamesGoodwin/orgs","repos_url":"https://api.github.com/users/JamesGoodwin/repos","events_url":"https://api.github.com/users/JamesGoodwin/events{/privacy}","received_events_url":"https://api.github.com/users/JamesGoodwin/received_events","type":"User","site_admin":false},"body":"should be expect","created_at":"2016-02-11T09:19:34Z","updated_at":"2016-02-11T09:19:34Z","html_url":"https://github.com/JudoPay/Judo-Swift/pull/51#discussion_r52576948","pull_request_url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/comments/52576948"},"html":{"href":"https://github.com/JudoPay/Judo-Swift/pull/51#discussion_r52576948"},"pull_request":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51","id":58927046,"html_url":"https://github.com/JudoPay/Judo-Swift/pull/51","diff_url":"https://github.com/JudoPay/Judo-Swift/pull/51.diff","patch_url":"https://github.com/JudoPay/Judo-Swift/pull/51.patch","issue_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/51","number":51,"state":"open","locked":false,"title":"V2.0 regression","user":{"login":"Ryce","id":7098796,"avatar_url":"https://avatars.githubusercontent.com/u/7098796?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryce","html_url":"https://github.com/Ryce","followers_url":"https://api.github.com/users/Ryce/followers","following_url":"https://api.github.com/users/Ryce/following{/other_user}","gists_url":"https://api.github.com/users/Ryce/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryce/subscriptions","organizations_url":"https://api.github.com/users/Ryce/orgs","repos_url":"https://api.github.com/users/Ryce/repos","events_url":"https://api.github.com/users/Ryce/events{/privacy}","received_events_url":"https://api.github.com/users/Ryce/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-10T17:48:04Z","updated_at":"2016-02-11T09:19:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5de3e018ed8a9db9c020e3c5cd9b9eea6b80a6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51/commits","review_comments_url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51/comments","review_comment_url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/51/comments","statuses_url":"https://api.github.com/repos/JudoPay/Judo-Swift/statuses/bd6dc49559a5254e2eec8fbf1e6e65ced826c94d","head":{"label":"JudoPay:v2.0-regression","ref":"v2.0-regression","sha":"bd6dc49559a5254e2eec8fbf1e6e65ced826c94d","user":{"login":"JudoPay","id":3963274,"avatar_url":"https://avatars.githubusercontent.com/u/3963274?v=3","gravatar_id":"","url":"https://api.github.com/users/JudoPay","html_url":"https://github.com/JudoPay","followers_url":"https://api.github.com/users/JudoPay/followers","following_url":"https://api.github.com/users/JudoPay/following{/other_user}","gists_url":"https://api.github.com/users/JudoPay/gists{/gist_id}","starred_url":"https://api.github.com/users/JudoPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JudoPay/subscriptions","organizations_url":"https://api.github.com/users/JudoPay/orgs","repos_url":"https://api.github.com/users/JudoPay/repos","events_url":"https://api.github.com/users/JudoPay/events{/privacy}","received_events_url":"https://api.github.com/users/JudoPay/received_events","type":"Organization","site_admin":false},"repo":{"id":40115057,"name":"Judo-Swift","full_name":"JudoPay/Judo-Swift","owner":{"login":"JudoPay","id":3963274,"avatar_url":"https://avatars.githubusercontent.com/u/3963274?v=3","gravatar_id":"","url":"https://api.github.com/users/JudoPay","html_url":"https://github.com/JudoPay","followers_url":"https://api.github.com/users/JudoPay/followers","following_url":"https://api.github.com/users/JudoPay/following{/other_user}","gists_url":"https://api.github.com/users/JudoPay/gists{/gist_id}","starred_url":"https://api.github.com/users/JudoPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JudoPay/subscriptions","organizations_url":"https://api.github.com/users/JudoPay/orgs","repos_url":"https://api.github.com/users/JudoPay/repos","events_url":"https://api.github.com/users/JudoPay/events{/privacy}","received_events_url":"https://api.github.com/users/JudoPay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JudoPay/Judo-Swift","description":"Judo Swift SDK for Swift 2.0/Xcode 7","fork":false,"url":"https://api.github.com/repos/JudoPay/Judo-Swift","forks_url":"https://api.github.com/repos/JudoPay/Judo-Swift/forks","keys_url":"https://api.github.com/repos/JudoPay/Judo-Swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JudoPay/Judo-Swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JudoPay/Judo-Swift/teams","hooks_url":"https://api.github.com/repos/JudoPay/Judo-Swift/hooks","issue_events_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/events{/number}","events_url":"https://api.github.com/repos/JudoPay/Judo-Swift/events","assignees_url":"https://api.github.com/repos/JudoPay/Judo-Swift/assignees{/user}","branches_url":"https://api.github.com/repos/JudoPay/Judo-Swift/branches{/branch}","tags_url":"https://api.github.com/repos/JudoPay/Judo-Swift/tags","blobs_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JudoPay/Judo-Swift/statuses/{sha}","languages_url":"https://api.github.com/repos/JudoPay/Judo-Swift/languages","stargazers_url":"https://api.github.com/repos/JudoPay/Judo-Swift/stargazers","contributors_url":"https://api.github.com/repos/JudoPay/Judo-Swift/contributors","subscribers_url":"https://api.github.com/repos/JudoPay/Judo-Swift/subscribers","subscription_url":"https://api.github.com/repos/JudoPay/Judo-Swift/subscription","commits_url":"https://api.github.com/repos/JudoPay/Judo-Swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/JudoPay/Judo-Swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/JudoPay/Judo-Swift/contents/{+path}","compare_url":"https://api.github.com/repos/JudoPay/Judo-Swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JudoPay/Judo-Swift/merges","archive_url":"https://api.github.com/repos/JudoPay/Judo-Swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JudoPay/Judo-Swift/downloads","issues_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues{/number}","pulls_url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls{/number}","milestones_url":"https://api.github.com/repos/JudoPay/Judo-Swift/milestones{/number}","notifications_url":"https://api.github.com/repos/JudoPay/Judo-Swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JudoPay/Judo-Swift/labels{/name}","releases_url":"https://api.github.com/repos/JudoPay/Judo-Swift/releases{/id}","deployments_url":"https://api.github.com/repos/JudoPay/Judo-Swift/deployments","created_at":"2015-08-03T08:58:23Z","updated_at":"2016-01-11T16:58:52Z","pushed_at":"2016-02-10T17:48:04Z","git_url":"git://github.com/JudoPay/Judo-Swift.git","ssh_url":"git@github.com:JudoPay/Judo-Swift.git","clone_url":"https://github.com/JudoPay/Judo-Swift.git","svn_url":"https://github.com/JudoPay/Judo-Swift","homepage":"https://judopay.com","size":2169,"stargazers_count":10,"watchers_count":10,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":10,"default_branch":"master"}},"base":{"label":"JudoPay:master","ref":"master","sha":"f755c33d427d515ac90d806dda436a3da7b9557c","user":{"login":"JudoPay","id":3963274,"avatar_url":"https://avatars.githubusercontent.com/u/3963274?v=3","gravatar_id":"","url":"https://api.github.com/users/JudoPay","html_url":"https://github.com/JudoPay","followers_url":"https://api.github.com/users/JudoPay/followers","following_url":"https://api.github.com/users/JudoPay/following{/other_user}","gists_url":"https://api.github.com/users/JudoPay/gists{/gist_id}","starred_url":"https://api.github.com/users/JudoPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JudoPay/subscriptions","organizations_url":"https://api.github.com/users/JudoPay/orgs","repos_url":"https://api.github.com/users/JudoPay/repos","events_url":"https://api.github.com/users/JudoPay/events{/privacy}","received_events_url":"https://api.github.com/users/JudoPay/received_events","type":"Organization","site_admin":false},"repo":{"id":40115057,"name":"Judo-Swift","full_name":"JudoPay/Judo-Swift","owner":{"login":"JudoPay","id":3963274,"avatar_url":"https://avatars.githubusercontent.com/u/3963274?v=3","gravatar_id":"","url":"https://api.github.com/users/JudoPay","html_url":"https://github.com/JudoPay","followers_url":"https://api.github.com/users/JudoPay/followers","following_url":"https://api.github.com/users/JudoPay/following{/other_user}","gists_url":"https://api.github.com/users/JudoPay/gists{/gist_id}","starred_url":"https://api.github.com/users/JudoPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JudoPay/subscriptions","organizations_url":"https://api.github.com/users/JudoPay/orgs","repos_url":"https://api.github.com/users/JudoPay/repos","events_url":"https://api.github.com/users/JudoPay/events{/privacy}","received_events_url":"https://api.github.com/users/JudoPay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JudoPay/Judo-Swift","description":"Judo Swift SDK for Swift 2.0/Xcode 7","fork":false,"url":"https://api.github.com/repos/JudoPay/Judo-Swift","forks_url":"https://api.github.com/repos/JudoPay/Judo-Swift/forks","keys_url":"https://api.github.com/repos/JudoPay/Judo-Swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JudoPay/Judo-Swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JudoPay/Judo-Swift/teams","hooks_url":"https://api.github.com/repos/JudoPay/Judo-Swift/hooks","issue_events_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/events{/number}","events_url":"https://api.github.com/repos/JudoPay/Judo-Swift/events","assignees_url":"https://api.github.com/repos/JudoPay/Judo-Swift/assignees{/user}","branches_url":"https://api.github.com/repos/JudoPay/Judo-Swift/branches{/branch}","tags_url":"https://api.github.com/repos/JudoPay/Judo-Swift/tags","blobs_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JudoPay/Judo-Swift/statuses/{sha}","languages_url":"https://api.github.com/repos/JudoPay/Judo-Swift/languages","stargazers_url":"https://api.github.com/repos/JudoPay/Judo-Swift/stargazers","contributors_url":"https://api.github.com/repos/JudoPay/Judo-Swift/contributors","subscribers_url":"https://api.github.com/repos/JudoPay/Judo-Swift/subscribers","subscription_url":"https://api.github.com/repos/JudoPay/Judo-Swift/subscription","commits_url":"https://api.github.com/repos/JudoPay/Judo-Swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/JudoPay/Judo-Swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/JudoPay/Judo-Swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/JudoPay/Judo-Swift/contents/{+path}","compare_url":"https://api.github.com/repos/JudoPay/Judo-Swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JudoPay/Judo-Swift/merges","archive_url":"https://api.github.com/repos/JudoPay/Judo-Swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JudoPay/Judo-Swift/downloads","issues_url":"https://api.github.com/repos/JudoPay/Judo-Swift/issues{/number}","pulls_url":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls{/number}","milestones_url":"https://api.github.com/repos/JudoPay/Judo-Swift/milestones{/number}","notifications_url":"https://api.github.com/repos/JudoPay/Judo-Swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JudoPay/Judo-Swift/labels{/name}","releases_url":"https://api.github.com/repos/JudoPay/Judo-Swift/releases{/id}","deployments_url":"https://api.github.com/repos/JudoPay/Judo-Swift/deployments","created_at":"2015-08-03T08:58:23Z","updated_at":"2016-01-11T16:58:52Z","pushed_at":"2016-02-10T17:48:04Z","git_url":"git://github.com/JudoPay/Judo-Swift.git","ssh_url":"git@github.com:JudoPay/Judo-Swift.git","clone_url":"https://github.com/JudoPay/Judo-Swift.git","svn_url":"https://github.com/JudoPay/Judo-Swift","homepage":"https://judopay.com","size":2169,"stargazers_count":10,"watchers_count":10,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51"},"html":{"href":"https://github.com/JudoPay/Judo-Swift/pull/51"},"issue":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/51"},"comments":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/JudoPay/Judo-Swift/statuses/bd6dc49559a5254e2eec8fbf1e6e65ced826c94d"}}}}