{"action":"created","comment":{"url":"https://api.github.com/repos/gocardless/ice_cube/pulls/comments/27875176","id":27875176,"diff_hunk":"@@ -0,0 +1,207 @@\n+\n+require File.dirname(__FILE__) + '/../spec_helper'\n+\n+describe IceCube::Schedule, 'to_s' do\n+\n+  before :each do\n+    I18n.locale = :de\n+  end\n+\n+  it 'should represent its start time by default' do\n+    t0 = Time.local(2013, 2, 14)\n+    IceCube::Schedule.new(t0).to_s.should == 'Februar 14, 2013'\n+  end\n+\n+  it 'should have a useful base to_s representation for a secondly rule' do\n+    IceCube::Rule.secondly.to_s.should == 'Sekündlich'\n+    IceCube::Rule.secondly(2).to_s.should == 'Alle 2 Sekunden'\n+  end\n+\n+  it 'should have a useful base to_s representation for a minutely rule' do\n+    IceCube::Rule.minutely.to_s.should == 'Minütlich'\n+    IceCube::Rule.minutely(2).to_s.should == 'Alle 2 Minuten'\n+  end\n+\n+  it 'should have a useful base to_s representation for a hourly rule' do\n+    IceCube::Rule.hourly.to_s.should == 'Stündlich'\n+    IceCube::Rule.hourly(2).to_s.should == 'Alle 2 Stunden'\n+  end\n+\n+  it 'should have a useful base to_s representation for a daily rule' do\n+    IceCube::Rule.daily.to_s.should == 'Täglich'\n+    IceCube::Rule.daily(2).to_s.should == 'Jeden 2 Tag'\n+  end\n+\n+  it 'should have a useful base to_s representation for a weekly rule' do\n+    IceCube::Rule.weekly.to_s.should == 'Wöchentlich'\n+    IceCube::Rule.weekly(2).to_s.should == 'Alle 2 Wochen'\n+  end\n+\n+  it 'should have a useful base to_s representation for a monthly rule' do\n+    IceCube::Rule.monthly.to_s.should == 'Monatlich'\n+    IceCube::Rule.monthly(2).to_s.should == 'Alle 2 Monate'\n+  end\n+\n+  it 'should have a useful base to_s representation for a yearly rule' do\n+    IceCube::Rule.yearly.to_s.should == 'Jährlich'\n+    IceCube::Rule.yearly(2).to_s.should == 'Alle 2 Jahre'\n+  end\n+\n+  it 'should work with various sentence types properly' do\n+    IceCube::Rule.weekly.to_s.should == 'Wöchentlich'\n+    IceCube::Rule.weekly.day(:monday).to_s.should == 'Wöchentlich an Montags'\n+    IceCube::Rule.weekly.day(:monday, :tuesday).to_s.should == 'Wöchentlich an Montags und Diensags'\n+    IceCube::Rule.weekly.day(:monday, :tuesday, :wednesday).to_s.should == 'Wöchentlich an Montags, Diensags, und Mittwochs'","path":"spec/examples/to_s_de_spec.rb","position":54,"original_position":54,"commit_id":"7d08334b9c93a6b856195c2dacd7070d1ae7d852","original_commit_id":"7d08334b9c93a6b856195c2dacd7070d1ae7d852","user":{"login":"georg911","id":11558092,"avatar_url":"https://avatars.githubusercontent.com/u/11558092?v=3","gravatar_id":"","url":"https://api.github.com/users/georg911","html_url":"https://github.com/georg911","followers_url":"https://api.github.com/users/georg911/followers","following_url":"https://api.github.com/users/georg911/following{/other_user}","gists_url":"https://api.github.com/users/georg911/gists{/gist_id}","starred_url":"https://api.github.com/users/georg911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georg911/subscriptions","organizations_url":"https://api.github.com/users/georg911/orgs","repos_url":"https://api.github.com/users/georg911/repos","events_url":"https://api.github.com/users/georg911/events{/privacy}","received_events_url":"https://api.github.com/users/georg911/received_events","type":"User","site_admin":false},"body":"remove \"an\", add comma","created_at":"2015-04-07T13:05:16Z","updated_at":"2015-04-07T13:05:16Z","html_url":"https://github.com/gocardless/ice_cube/pull/3#discussion_r27875176","pull_request_url":"https://api.github.com/repos/gocardless/ice_cube/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/gocardless/ice_cube/pulls/comments/27875176"},"html":{"href":"https://github.com/gocardless/ice_cube/pull/3#discussion_r27875176"},"pull_request":{"href":"https://api.github.com/repos/gocardless/ice_cube/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/gocardless/ice_cube/pulls/3","id":32758437,"html_url":"https://github.com/gocardless/ice_cube/pull/3","diff_url":"https://github.com/gocardless/ice_cube/pull/3.diff","patch_url":"https://github.com/gocardless/ice_cube/pull/3.patch","issue_url":"https://api.github.com/repos/gocardless/ice_cube/issues/3","number":3,"state":"open","locked":false,"title":"German translation","user":{"login":"isaacseymour","id":1834049,"avatar_url":"https://avatars.githubusercontent.com/u/1834049?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacseymour","html_url":"https://github.com/isaacseymour","followers_url":"https://api.github.com/users/isaacseymour/followers","following_url":"https://api.github.com/users/isaacseymour/following{/other_user}","gists_url":"https://api.github.com/users/isaacseymour/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacseymour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacseymour/subscriptions","organizations_url":"https://api.github.com/users/isaacseymour/orgs","repos_url":"https://api.github.com/users/isaacseymour/repos","events_url":"https://api.github.com/users/isaacseymour/events{/privacy}","received_events_url":"https://api.github.com/users/isaacseymour/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T12:20:32Z","updated_at":"2015-04-07T13:05:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7552e3dddcc145368f733b4c3d60ca7764bb39d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gocardless/ice_cube/pulls/3/commits","review_comments_url":"https://api.github.com/repos/gocardless/ice_cube/pulls/3/comments","review_comment_url":"https://api.github.com/repos/gocardless/ice_cube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gocardless/ice_cube/issues/3/comments","statuses_url":"https://api.github.com/repos/gocardless/ice_cube/statuses/7d08334b9c93a6b856195c2dacd7070d1ae7d852","head":{"label":"gocardless:german","ref":"german","sha":"7d08334b9c93a6b856195c2dacd7070d1ae7d852","user":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"repo":{"id":32339253,"name":"ice_cube","full_name":"gocardless/ice_cube","owner":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gocardless/ice_cube","description":"Ruby Date Recurrence Library - Allows easy creation of recurrence rules and fast querying","fork":true,"url":"https://api.github.com/repos/gocardless/ice_cube","forks_url":"https://api.github.com/repos/gocardless/ice_cube/forks","keys_url":"https://api.github.com/repos/gocardless/ice_cube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gocardless/ice_cube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gocardless/ice_cube/teams","hooks_url":"https://api.github.com/repos/gocardless/ice_cube/hooks","issue_events_url":"https://api.github.com/repos/gocardless/ice_cube/issues/events{/number}","events_url":"https://api.github.com/repos/gocardless/ice_cube/events","assignees_url":"https://api.github.com/repos/gocardless/ice_cube/assignees{/user}","branches_url":"https://api.github.com/repos/gocardless/ice_cube/branches{/branch}","tags_url":"https://api.github.com/repos/gocardless/ice_cube/tags","blobs_url":"https://api.github.com/repos/gocardless/ice_cube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gocardless/ice_cube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gocardless/ice_cube/git/refs{/sha}","trees_url":"https://api.github.com/repos/gocardless/ice_cube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gocardless/ice_cube/statuses/{sha}","languages_url":"https://api.github.com/repos/gocardless/ice_cube/languages","stargazers_url":"https://api.github.com/repos/gocardless/ice_cube/stargazers","contributors_url":"https://api.github.com/repos/gocardless/ice_cube/contributors","subscribers_url":"https://api.github.com/repos/gocardless/ice_cube/subscribers","subscription_url":"https://api.github.com/repos/gocardless/ice_cube/subscription","commits_url":"https://api.github.com/repos/gocardless/ice_cube/commits{/sha}","git_commits_url":"https://api.github.com/repos/gocardless/ice_cube/git/commits{/sha}","comments_url":"https://api.github.com/repos/gocardless/ice_cube/comments{/number}","issue_comment_url":"https://api.github.com/repos/gocardless/ice_cube/issues/comments{/number}","contents_url":"https://api.github.com/repos/gocardless/ice_cube/contents/{+path}","compare_url":"https://api.github.com/repos/gocardless/ice_cube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gocardless/ice_cube/merges","archive_url":"https://api.github.com/repos/gocardless/ice_cube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gocardless/ice_cube/downloads","issues_url":"https://api.github.com/repos/gocardless/ice_cube/issues{/number}","pulls_url":"https://api.github.com/repos/gocardless/ice_cube/pulls{/number}","milestones_url":"https://api.github.com/repos/gocardless/ice_cube/milestones{/number}","notifications_url":"https://api.github.com/repos/gocardless/ice_cube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gocardless/ice_cube/labels{/name}","releases_url":"https://api.github.com/repos/gocardless/ice_cube/releases{/id}","created_at":"2015-03-16T16:49:17Z","updated_at":"2015-03-16T20:56:35Z","pushed_at":"2015-04-07T12:41:34Z","git_url":"git://github.com/gocardless/ice_cube.git","ssh_url":"git@github.com:gocardless/ice_cube.git","clone_url":"https://github.com/gocardless/ice_cube.git","svn_url":"https://github.com/gocardless/ice_cube","homepage":"http://seejohnrun.github.com/ice_cube","size":4540,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"gocardless:master","ref":"master","sha":"0256c0e680902263c59eb95fb7dd14a6880f86a3","user":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"repo":{"id":32339253,"name":"ice_cube","full_name":"gocardless/ice_cube","owner":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gocardless/ice_cube","description":"Ruby Date Recurrence Library - Allows easy creation of recurrence rules and fast querying","fork":true,"url":"https://api.github.com/repos/gocardless/ice_cube","forks_url":"https://api.github.com/repos/gocardless/ice_cube/forks","keys_url":"https://api.github.com/repos/gocardless/ice_cube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gocardless/ice_cube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gocardless/ice_cube/teams","hooks_url":"https://api.github.com/repos/gocardless/ice_cube/hooks","issue_events_url":"https://api.github.com/repos/gocardless/ice_cube/issues/events{/number}","events_url":"https://api.github.com/repos/gocardless/ice_cube/events","assignees_url":"https://api.github.com/repos/gocardless/ice_cube/assignees{/user}","branches_url":"https://api.github.com/repos/gocardless/ice_cube/branches{/branch}","tags_url":"https://api.github.com/repos/gocardless/ice_cube/tags","blobs_url":"https://api.github.com/repos/gocardless/ice_cube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gocardless/ice_cube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gocardless/ice_cube/git/refs{/sha}","trees_url":"https://api.github.com/repos/gocardless/ice_cube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gocardless/ice_cube/statuses/{sha}","languages_url":"https://api.github.com/repos/gocardless/ice_cube/languages","stargazers_url":"https://api.github.com/repos/gocardless/ice_cube/stargazers","contributors_url":"https://api.github.com/repos/gocardless/ice_cube/contributors","subscribers_url":"https://api.github.com/repos/gocardless/ice_cube/subscribers","subscription_url":"https://api.github.com/repos/gocardless/ice_cube/subscription","commits_url":"https://api.github.com/repos/gocardless/ice_cube/commits{/sha}","git_commits_url":"https://api.github.com/repos/gocardless/ice_cube/git/commits{/sha}","comments_url":"https://api.github.com/repos/gocardless/ice_cube/comments{/number}","issue_comment_url":"https://api.github.com/repos/gocardless/ice_cube/issues/comments{/number}","contents_url":"https://api.github.com/repos/gocardless/ice_cube/contents/{+path}","compare_url":"https://api.github.com/repos/gocardless/ice_cube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gocardless/ice_cube/merges","archive_url":"https://api.github.com/repos/gocardless/ice_cube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gocardless/ice_cube/downloads","issues_url":"https://api.github.com/repos/gocardless/ice_cube/issues{/number}","pulls_url":"https://api.github.com/repos/gocardless/ice_cube/pulls{/number}","milestones_url":"https://api.github.com/repos/gocardless/ice_cube/milestones{/number}","notifications_url":"https://api.github.com/repos/gocardless/ice_cube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gocardless/ice_cube/labels{/name}","releases_url":"https://api.github.com/repos/gocardless/ice_cube/releases{/id}","created_at":"2015-03-16T16:49:17Z","updated_at":"2015-03-16T20:56:35Z","pushed_at":"2015-04-07T12:41:34Z","git_url":"git://github.com/gocardless/ice_cube.git","ssh_url":"git@github.com:gocardless/ice_cube.git","clone_url":"https://github.com/gocardless/ice_cube.git","svn_url":"https://github.com/gocardless/ice_cube","homepage":"http://seejohnrun.github.com/ice_cube","size":4540,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gocardless/ice_cube/pulls/3"},"html":{"href":"https://github.com/gocardless/ice_cube/pull/3"},"issue":{"href":"https://api.github.com/repos/gocardless/ice_cube/issues/3"},"comments":{"href":"https://api.github.com/repos/gocardless/ice_cube/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/gocardless/ice_cube/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/gocardless/ice_cube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gocardless/ice_cube/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/gocardless/ice_cube/statuses/7d08334b9c93a6b856195c2dacd7070d1ae7d852"}}}}