{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/bitters/pulls/comments/22832989","id":22832989,"diff_hunk":"@@ -76,5 +85,28 @@ def stylesheets_directory\n     def top_level_directory\n       File.dirname(File.dirname(File.dirname(__FILE__)))\n     end\n+\n+    def command_exists?(command)\n+      `which #{command}` != \"\"\n+    end\n+\n+    def change_file_ext(file, ext)\n+      no_ext = File.join(File.dirname(file), File.basename(file,\".*\"))\n+      \"#{no_ext}.#{ext}\"\n+    end\n+\n+    def convert_syntax_to_sass\n+      if command_exists?(\"sass-convert\")\n+        Dir.glob(File.join(install_path, \"**/*.scss\")).each do |file|\n+          from = file.to_s\n+          to = change_file_ext(file, \"sass\")\n+          `sass-convert #{from} #{to}`\n+          File.delete(from)\n+        end\n+      else\n+        puts \"Could not convert because sass-convert is not present.\"\n+      end\n+    end\n+","path":"lib/bitters/generator.rb","position":108,"original_position":108,"commit_id":"139986ba3329871477ee5f45a18e660d5953a6ad","original_commit_id":"139986ba3329871477ee5f45a18e660d5953a6ad","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at body end.","created_at":"2015-01-12T23:42:05Z","updated_at":"2015-01-12T23:42:05Z","html_url":"https://github.com/thoughtbot/bitters/pull/138#discussion_r22832989","pull_request_url":"https://api.github.com/repos/thoughtbot/bitters/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/bitters/pulls/comments/22832989"},"html":{"href":"https://github.com/thoughtbot/bitters/pull/138#discussion_r22832989"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/bitters/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/bitters/pulls/138","id":26022253,"html_url":"https://github.com/thoughtbot/bitters/pull/138","diff_url":"https://github.com/thoughtbot/bitters/pull/138.diff","patch_url":"https://github.com/thoughtbot/bitters/pull/138.patch","issue_url":"https://api.github.com/repos/thoughtbot/bitters/issues/138","number":138,"state":"open","locked":false,"title":"Add --syntax=sass option to Install task","user":{"login":"ryanburnette","id":2252601,"avatar_url":"https://avatars.githubusercontent.com/u/2252601?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanburnette","html_url":"https://github.com/ryanburnette","followers_url":"https://api.github.com/users/ryanburnette/followers","following_url":"https://api.github.com/users/ryanburnette/following{/other_user}","gists_url":"https://api.github.com/users/ryanburnette/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanburnette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanburnette/subscriptions","organizations_url":"https://api.github.com/users/ryanburnette/orgs","repos_url":"https://api.github.com/users/ryanburnette/repos","events_url":"https://api.github.com/users/ryanburnette/events{/privacy}","received_events_url":"https://api.github.com/users/ryanburnette/received_events","type":"User","site_admin":false},"body":"I submit this update for review. It adds a `--syntax=[syntax]` option to `bitters install` which defaults to `scss` but allows a user to specify the `sass` syntax if they wish. It works by globbing for `scss` files in the newly created directory, running Sass's `sass-convert` command and deleting the leftover `scss` files. Sass comes with `sass-convert` so I felt okay about relying on its presence.\r\n\r\nOn the other hand, if someone were only using [libsass](https://github.com/sass/libsass) perhaps that `sass-convert` might not be available.\r\n\r\nI'm also happy to fix the style matters mentioned by the @houndci bot.\r\n\r\nThanks in advance for feedback on this idea.","created_at":"2014-12-13T14:50:02Z","updated_at":"2015-01-12T23:42:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c1ebfa1e930392e768e45b47685e2bbb1c93342","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/bitters/pulls/138/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/bitters/pulls/138/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/bitters/pulls/comments/{number}","comments_url":"https://api.github.com/repos/thoughtbot/bitters/issues/138/comments","statuses_url":"https://api.github.com/repos/thoughtbot/bitters/statuses/139986ba3329871477ee5f45a18e660d5953a6ad","head":{"label":"ryanburnette:syntax_option","ref":"syntax_option","sha":"139986ba3329871477ee5f45a18e660d5953a6ad","user":{"login":"ryanburnette","id":2252601,"avatar_url":"https://avatars.githubusercontent.com/u/2252601?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanburnette","html_url":"https://github.com/ryanburnette","followers_url":"https://api.github.com/users/ryanburnette/followers","following_url":"https://api.github.com/users/ryanburnette/following{/other_user}","gists_url":"https://api.github.com/users/ryanburnette/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanburnette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanburnette/subscriptions","organizations_url":"https://api.github.com/users/ryanburnette/orgs","repos_url":"https://api.github.com/users/ryanburnette/repos","events_url":"https://api.github.com/users/ryanburnette/events{/privacy}","received_events_url":"https://api.github.com/users/ryanburnette/received_events","type":"User","site_admin":false},"repo":{"id":27312476,"name":"bitters","full_name":"ryanburnette/bitters","owner":{"login":"ryanburnette","id":2252601,"avatar_url":"https://avatars.githubusercontent.com/u/2252601?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanburnette","html_url":"https://github.com/ryanburnette","followers_url":"https://api.github.com/users/ryanburnette/followers","following_url":"https://api.github.com/users/ryanburnette/following{/other_user}","gists_url":"https://api.github.com/users/ryanburnette/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanburnette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanburnette/subscriptions","organizations_url":"https://api.github.com/users/ryanburnette/orgs","repos_url":"https://api.github.com/users/ryanburnette/repos","events_url":"https://api.github.com/users/ryanburnette/events{/privacy}","received_events_url":"https://api.github.com/users/ryanburnette/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanburnette/bitters","description":"Add a dash of pre-defined style to your Bourbon.","fork":true,"url":"https://api.github.com/repos/ryanburnette/bitters","forks_url":"https://api.github.com/repos/ryanburnette/bitters/forks","keys_url":"https://api.github.com/repos/ryanburnette/bitters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanburnette/bitters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanburnette/bitters/teams","hooks_url":"https://api.github.com/repos/ryanburnette/bitters/hooks","issue_events_url":"https://api.github.com/repos/ryanburnette/bitters/issues/events{/number}","events_url":"https://api.github.com/repos/ryanburnette/bitters/events","assignees_url":"https://api.github.com/repos/ryanburnette/bitters/assignees{/user}","branches_url":"https://api.github.com/repos/ryanburnette/bitters/branches{/branch}","tags_url":"https://api.github.com/repos/ryanburnette/bitters/tags","blobs_url":"https://api.github.com/repos/ryanburnette/bitters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanburnette/bitters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanburnette/bitters/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanburnette/bitters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanburnette/bitters/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanburnette/bitters/languages","stargazers_url":"https://api.github.com/repos/ryanburnette/bitters/stargazers","contributors_url":"https://api.github.com/repos/ryanburnette/bitters/contributors","subscribers_url":"https://api.github.com/repos/ryanburnette/bitters/subscribers","subscription_url":"https://api.github.com/repos/ryanburnette/bitters/subscription","commits_url":"https://api.github.com/repos/ryanburnette/bitters/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanburnette/bitters/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanburnette/bitters/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanburnette/bitters/issues/comments/{number}","contents_url":"https://api.github.com/repos/ryanburnette/bitters/contents/{+path}","compare_url":"https://api.github.com/repos/ryanburnette/bitters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanburnette/bitters/merges","archive_url":"https://api.github.com/repos/ryanburnette/bitters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanburnette/bitters/downloads","issues_url":"https://api.github.com/repos/ryanburnette/bitters/issues{/number}","pulls_url":"https://api.github.com/repos/ryanburnette/bitters/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanburnette/bitters/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanburnette/bitters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanburnette/bitters/labels{/name}","releases_url":"https://api.github.com/repos/ryanburnette/bitters/releases{/id}","created_at":"2014-11-29T19:20:55Z","updated_at":"2014-11-29T19:20:56Z","pushed_at":"2015-01-12T23:42:00Z","git_url":"git://github.com/ryanburnette/bitters.git","ssh_url":"git@github.com:ryanburnette/bitters.git","clone_url":"https://github.com/ryanburnette/bitters.git","svn_url":"https://github.com/ryanburnette/bitters","homepage":"http://bitters.bourbon.io","size":3508,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"6ae3710efcbd3a0e5647235430b500daa3dadc23","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":8143643,"name":"bitters","full_name":"thoughtbot/bitters","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/bitters","description":"Add a dash of pre-defined style to your Bourbon.","fork":false,"url":"https://api.github.com/repos/thoughtbot/bitters","forks_url":"https://api.github.com/repos/thoughtbot/bitters/forks","keys_url":"https://api.github.com/repos/thoughtbot/bitters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/bitters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/bitters/teams","hooks_url":"https://api.github.com/repos/thoughtbot/bitters/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/bitters/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/bitters/events","assignees_url":"https://api.github.com/repos/thoughtbot/bitters/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/bitters/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/bitters/tags","blobs_url":"https://api.github.com/repos/thoughtbot/bitters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/bitters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/bitters/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/bitters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/bitters/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/bitters/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/bitters/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/bitters/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/bitters/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/bitters/subscription","commits_url":"https://api.github.com/repos/thoughtbot/bitters/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/bitters/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/bitters/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/bitters/issues/comments/{number}","contents_url":"https://api.github.com/repos/thoughtbot/bitters/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/bitters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/bitters/merges","archive_url":"https://api.github.com/repos/thoughtbot/bitters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/bitters/downloads","issues_url":"https://api.github.com/repos/thoughtbot/bitters/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/bitters/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/bitters/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/bitters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/bitters/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/bitters/releases{/id}","created_at":"2013-02-11T18:24:43Z","updated_at":"2015-01-12T02:42:19Z","pushed_at":"2015-01-12T14:29:04Z","git_url":"git://github.com/thoughtbot/bitters.git","ssh_url":"git@github.com:thoughtbot/bitters.git","clone_url":"https://github.com/thoughtbot/bitters.git","svn_url":"https://github.com/thoughtbot/bitters","homepage":"http://bitters.bourbon.io","size":6665,"stargazers_count":787,"watchers_count":787,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":93,"mirror_url":null,"open_issues_count":10,"forks":93,"open_issues":10,"watchers":787,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/bitters/pulls/138"},"html":{"href":"https://github.com/thoughtbot/bitters/pull/138"},"issue":{"href":"https://api.github.com/repos/thoughtbot/bitters/issues/138"},"comments":{"href":"https://api.github.com/repos/thoughtbot/bitters/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/bitters/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/bitters/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/bitters/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/bitters/statuses/139986ba3329871477ee5f45a18e660d5953a6ad"}}}}