{"action":"opened","number":193,"pull_request":{"url":"https://api.github.com/repos/rsl/stringex/pulls/193","id":99294512,"html_url":"https://github.com/rsl/stringex/pull/193","diff_url":"https://github.com/rsl/stringex/pull/193.diff","patch_url":"https://github.com/rsl/stringex/pull/193.patch","issue_url":"https://api.github.com/repos/rsl/stringex/issues/193","number":193,"state":"open","locked":false,"title":"Allow custom sequence to be used to generate unique URLs","user":{"login":"fauxparse","id":530,"avatar_url":"https://avatars.githubusercontent.com/u/530?v=3","gravatar_id":"","url":"https://api.github.com/users/fauxparse","html_url":"https://github.com/fauxparse","followers_url":"https://api.github.com/users/fauxparse/followers","following_url":"https://api.github.com/users/fauxparse/following{/other_user}","gists_url":"https://api.github.com/users/fauxparse/gists{/gist_id}","starred_url":"https://api.github.com/users/fauxparse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fauxparse/subscriptions","organizations_url":"https://api.github.com/users/fauxparse/orgs","repos_url":"https://api.github.com/users/fauxparse/repos","events_url":"https://api.github.com/users/fauxparse/events{/privacy}","received_events_url":"https://api.github.com/users/fauxparse/received_events","type":"User","site_admin":false},"body":"Numbering duplicates sequentially from a known integer (e.g. `document-1`) is a possible attack vector, as it verifies the existence of previous records in the sequence. This PR adds the ability to do the following:\r\n\r\n```ruby\r\nacts_as_url :title, duplicate_sequence: Enum.new { |enum| loop { enum.yield rand(10000..99999) } }\r\n```\r\n\r\nYou could put anything in there: UUID generation, hashing, anything. The only requirements are that the object you pass in behaves like an `Enumerator` insofar as it responds to `rewind` and `next`.\r\n\r\n🎅 Merry Christmas! 🎄","created_at":"2016-12-24T03:58:13Z","updated_at":"2016-12-24T03:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rsl/stringex/pulls/193/commits","review_comments_url":"https://api.github.com/repos/rsl/stringex/pulls/193/comments","review_comment_url":"https://api.github.com/repos/rsl/stringex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rsl/stringex/issues/193/comments","statuses_url":"https://api.github.com/repos/rsl/stringex/statuses/151e91aacba9c4d086760380f190e653c3d16d56","head":{"label":"fauxparse:custom_duplicates","ref":"custom_duplicates","sha":"151e91aacba9c4d086760380f190e653c3d16d56","user":{"login":"fauxparse","id":530,"avatar_url":"https://avatars.githubusercontent.com/u/530?v=3","gravatar_id":"","url":"https://api.github.com/users/fauxparse","html_url":"https://github.com/fauxparse","followers_url":"https://api.github.com/users/fauxparse/followers","following_url":"https://api.github.com/users/fauxparse/following{/other_user}","gists_url":"https://api.github.com/users/fauxparse/gists{/gist_id}","starred_url":"https://api.github.com/users/fauxparse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fauxparse/subscriptions","organizations_url":"https://api.github.com/users/fauxparse/orgs","repos_url":"https://api.github.com/users/fauxparse/repos","events_url":"https://api.github.com/users/fauxparse/events{/privacy}","received_events_url":"https://api.github.com/users/fauxparse/received_events","type":"User","site_admin":false},"repo":{"id":77249323,"name":"stringex","full_name":"fauxparse/stringex","owner":{"login":"fauxparse","id":530,"avatar_url":"https://avatars.githubusercontent.com/u/530?v=3","gravatar_id":"","url":"https://api.github.com/users/fauxparse","html_url":"https://github.com/fauxparse","followers_url":"https://api.github.com/users/fauxparse/followers","following_url":"https://api.github.com/users/fauxparse/following{/other_user}","gists_url":"https://api.github.com/users/fauxparse/gists{/gist_id}","starred_url":"https://api.github.com/users/fauxparse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fauxparse/subscriptions","organizations_url":"https://api.github.com/users/fauxparse/orgs","repos_url":"https://api.github.com/users/fauxparse/repos","events_url":"https://api.github.com/users/fauxparse/events{/privacy}","received_events_url":"https://api.github.com/users/fauxparse/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fauxparse/stringex","description":"Some [hopefully] useful extensions to Ruby’s String class. It is made up of three libraries: ActsAsUrl [permalink solution with better character translation], Unidecoder [Unicode to Ascii transliteration], and StringExtensions [miscellaneous helper methods for the String class].","fork":true,"url":"https://api.github.com/repos/fauxparse/stringex","forks_url":"https://api.github.com/repos/fauxparse/stringex/forks","keys_url":"https://api.github.com/repos/fauxparse/stringex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fauxparse/stringex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fauxparse/stringex/teams","hooks_url":"https://api.github.com/repos/fauxparse/stringex/hooks","issue_events_url":"https://api.github.com/repos/fauxparse/stringex/issues/events{/number}","events_url":"https://api.github.com/repos/fauxparse/stringex/events","assignees_url":"https://api.github.com/repos/fauxparse/stringex/assignees{/user}","branches_url":"https://api.github.com/repos/fauxparse/stringex/branches{/branch}","tags_url":"https://api.github.com/repos/fauxparse/stringex/tags","blobs_url":"https://api.github.com/repos/fauxparse/stringex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fauxparse/stringex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fauxparse/stringex/git/refs{/sha}","trees_url":"https://api.github.com/repos/fauxparse/stringex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fauxparse/stringex/statuses/{sha}","languages_url":"https://api.github.com/repos/fauxparse/stringex/languages","stargazers_url":"https://api.github.com/repos/fauxparse/stringex/stargazers","contributors_url":"https://api.github.com/repos/fauxparse/stringex/contributors","subscribers_url":"https://api.github.com/repos/fauxparse/stringex/subscribers","subscription_url":"https://api.github.com/repos/fauxparse/stringex/subscription","commits_url":"https://api.github.com/repos/fauxparse/stringex/commits{/sha}","git_commits_url":"https://api.github.com/repos/fauxparse/stringex/git/commits{/sha}","comments_url":"https://api.github.com/repos/fauxparse/stringex/comments{/number}","issue_comment_url":"https://api.github.com/repos/fauxparse/stringex/issues/comments{/number}","contents_url":"https://api.github.com/repos/fauxparse/stringex/contents/{+path}","compare_url":"https://api.github.com/repos/fauxparse/stringex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fauxparse/stringex/merges","archive_url":"https://api.github.com/repos/fauxparse/stringex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fauxparse/stringex/downloads","issues_url":"https://api.github.com/repos/fauxparse/stringex/issues{/number}","pulls_url":"https://api.github.com/repos/fauxparse/stringex/pulls{/number}","milestones_url":"https://api.github.com/repos/fauxparse/stringex/milestones{/number}","notifications_url":"https://api.github.com/repos/fauxparse/stringex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fauxparse/stringex/labels{/name}","releases_url":"https://api.github.com/repos/fauxparse/stringex/releases{/id}","deployments_url":"https://api.github.com/repos/fauxparse/stringex/deployments","created_at":"2016-12-23T20:34:23Z","updated_at":"2016-12-23T20:34:26Z","pushed_at":"2016-12-24T03:51:46Z","git_url":"git://github.com/fauxparse/stringex.git","ssh_url":"git@github.com:fauxparse/stringex.git","clone_url":"https://github.com/fauxparse/stringex.git","svn_url":"https://github.com/fauxparse/stringex","homepage":"","size":966,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rsl:master","ref":"master","sha":"25051fe0c9658c2ff1da72382d2110a498357cbe","user":{"login":"rsl","id":92,"avatar_url":"https://avatars.githubusercontent.com/u/92?v=3","gravatar_id":"","url":"https://api.github.com/users/rsl","html_url":"https://github.com/rsl","followers_url":"https://api.github.com/users/rsl/followers","following_url":"https://api.github.com/users/rsl/following{/other_user}","gists_url":"https://api.github.com/users/rsl/gists{/gist_id}","starred_url":"https://api.github.com/users/rsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsl/subscriptions","organizations_url":"https://api.github.com/users/rsl/orgs","repos_url":"https://api.github.com/users/rsl/repos","events_url":"https://api.github.com/users/rsl/events{/privacy}","received_events_url":"https://api.github.com/users/rsl/received_events","type":"User","site_admin":false},"repo":{"id":765,"name":"stringex","full_name":"rsl/stringex","owner":{"login":"rsl","id":92,"avatar_url":"https://avatars.githubusercontent.com/u/92?v=3","gravatar_id":"","url":"https://api.github.com/users/rsl","html_url":"https://github.com/rsl","followers_url":"https://api.github.com/users/rsl/followers","following_url":"https://api.github.com/users/rsl/following{/other_user}","gists_url":"https://api.github.com/users/rsl/gists{/gist_id}","starred_url":"https://api.github.com/users/rsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsl/subscriptions","organizations_url":"https://api.github.com/users/rsl/orgs","repos_url":"https://api.github.com/users/rsl/repos","events_url":"https://api.github.com/users/rsl/events{/privacy}","received_events_url":"https://api.github.com/users/rsl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rsl/stringex","description":"Some [hopefully] useful extensions to Ruby’s String class. It is made up of three libraries: ActsAsUrl [permalink solution with better character translation], Unidecoder [Unicode to Ascii transliteration], and StringExtensions [miscellaneous helper methods for the String class].","fork":false,"url":"https://api.github.com/repos/rsl/stringex","forks_url":"https://api.github.com/repos/rsl/stringex/forks","keys_url":"https://api.github.com/repos/rsl/stringex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsl/stringex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsl/stringex/teams","hooks_url":"https://api.github.com/repos/rsl/stringex/hooks","issue_events_url":"https://api.github.com/repos/rsl/stringex/issues/events{/number}","events_url":"https://api.github.com/repos/rsl/stringex/events","assignees_url":"https://api.github.com/repos/rsl/stringex/assignees{/user}","branches_url":"https://api.github.com/repos/rsl/stringex/branches{/branch}","tags_url":"https://api.github.com/repos/rsl/stringex/tags","blobs_url":"https://api.github.com/repos/rsl/stringex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsl/stringex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsl/stringex/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsl/stringex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsl/stringex/statuses/{sha}","languages_url":"https://api.github.com/repos/rsl/stringex/languages","stargazers_url":"https://api.github.com/repos/rsl/stringex/stargazers","contributors_url":"https://api.github.com/repos/rsl/stringex/contributors","subscribers_url":"https://api.github.com/repos/rsl/stringex/subscribers","subscription_url":"https://api.github.com/repos/rsl/stringex/subscription","commits_url":"https://api.github.com/repos/rsl/stringex/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsl/stringex/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsl/stringex/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsl/stringex/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsl/stringex/contents/{+path}","compare_url":"https://api.github.com/repos/rsl/stringex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsl/stringex/merges","archive_url":"https://api.github.com/repos/rsl/stringex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsl/stringex/downloads","issues_url":"https://api.github.com/repos/rsl/stringex/issues{/number}","pulls_url":"https://api.github.com/repos/rsl/stringex/pulls{/number}","milestones_url":"https://api.github.com/repos/rsl/stringex/milestones{/number}","notifications_url":"https://api.github.com/repos/rsl/stringex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsl/stringex/labels{/name}","releases_url":"https://api.github.com/repos/rsl/stringex/releases{/id}","deployments_url":"https://api.github.com/repos/rsl/stringex/deployments","created_at":"2008-02-19T15:31:07Z","updated_at":"2016-12-18T11:16:14Z","pushed_at":"2016-09-19T21:42:54Z","git_url":"git://github.com/rsl/stringex.git","ssh_url":"git@github.com:rsl/stringex.git","clone_url":"https://github.com/rsl/stringex.git","svn_url":"https://github.com/rsl/stringex","homepage":"","size":966,"stargazers_count":948,"watchers_count":948,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":137,"mirror_url":null,"open_issues_count":12,"forks":137,"open_issues":12,"watchers":948,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rsl/stringex/pulls/193"},"html":{"href":"https://github.com/rsl/stringex/pull/193"},"issue":{"href":"https://api.github.com/repos/rsl/stringex/issues/193"},"comments":{"href":"https://api.github.com/repos/rsl/stringex/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/rsl/stringex/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/rsl/stringex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rsl/stringex/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/rsl/stringex/statuses/151e91aacba9c4d086760380f190e653c3d16d56"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":54,"deletions":3,"changed_files":3}}
{"actor":{"display_login":"fauxparse"}}