diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba7d2df..856852e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# HEAD
+# 3.0.0
+
+- Added: `to_svg_use` which will output a `"
end
- # Returns an array of keywords similar to the icon
- def keywords
- Octicons::KEYWORDS[@symbol]["keywords"]
- end
-
- # Returns the decimal codepoint of the character
- def decimal
- Octicons::CODEPOINTS[@symbol]
- end
-
- # Returns the hexidecimal version of the character
- def hexadecimal
- decimal.to_s(16)
- end
-
- # Returns the unicode character
- def character
- [decimal].pack("U")
+ # Returns a string representing a use tag
+ # For use with spritesheets
+ def to_svg_use
+ ""
end
private
diff --git a/lib/octicons/version.rb b/lib/octicons/version.rb
index efd8eaa..f6b6d36 100644
--- a/lib/octicons/version.rb
+++ b/lib/octicons/version.rb
@@ -1,3 +1,3 @@
module Octicons
- VERSION = "2.1.0"
+ VERSION = "3.0.0"
end
diff --git a/lib/sprite.octicons.svg b/lib/sprite.octicons.svg
new file mode 100644
index 0000000..58c0ae1
--- /dev/null
+++ b/lib/sprite.octicons.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/lib/svg/alert.svg b/lib/svg/alert.svg
deleted file mode 100644
index bc2bae3..0000000
--- a/lib/svg/alert.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-down.svg b/lib/svg/arrow-down.svg
deleted file mode 100644
index 8985ffb..0000000
--- a/lib/svg/arrow-down.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-left.svg b/lib/svg/arrow-left.svg
deleted file mode 100644
index dc5f4bf..0000000
--- a/lib/svg/arrow-left.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-right.svg b/lib/svg/arrow-right.svg
deleted file mode 100644
index 286aaa7..0000000
--- a/lib/svg/arrow-right.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-small-down.svg b/lib/svg/arrow-small-down.svg
deleted file mode 100644
index 3c98bfc..0000000
--- a/lib/svg/arrow-small-down.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-small-left.svg b/lib/svg/arrow-small-left.svg
deleted file mode 100644
index fcd8d02..0000000
--- a/lib/svg/arrow-small-left.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-small-right.svg b/lib/svg/arrow-small-right.svg
deleted file mode 100644
index 713d0a1..0000000
--- a/lib/svg/arrow-small-right.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-small-up.svg b/lib/svg/arrow-small-up.svg
deleted file mode 100644
index 3491f94..0000000
--- a/lib/svg/arrow-small-up.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/arrow-up.svg b/lib/svg/arrow-up.svg
deleted file mode 100644
index 7a2511d..0000000
--- a/lib/svg/arrow-up.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/beaker.svg b/lib/svg/beaker.svg
deleted file mode 100644
index 9f5b8f0..0000000
--- a/lib/svg/beaker.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/bell.svg b/lib/svg/bell.svg
deleted file mode 100644
index cd682be..0000000
--- a/lib/svg/bell.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/bold.svg b/lib/svg/bold.svg
deleted file mode 100644
index f03c2ee..0000000
--- a/lib/svg/bold.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/book.svg b/lib/svg/book.svg
deleted file mode 100644
index 3b48a51..0000000
--- a/lib/svg/book.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/bookmark.svg b/lib/svg/bookmark.svg
deleted file mode 100644
index cff4756..0000000
--- a/lib/svg/bookmark.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/briefcase.svg b/lib/svg/briefcase.svg
deleted file mode 100644
index 5c8155c..0000000
--- a/lib/svg/briefcase.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/broadcast.svg b/lib/svg/broadcast.svg
deleted file mode 100644
index e9f65e6..0000000
--- a/lib/svg/broadcast.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/browser.svg b/lib/svg/browser.svg
deleted file mode 100644
index 9a1f895..0000000
--- a/lib/svg/browser.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/bug.svg b/lib/svg/bug.svg
deleted file mode 100644
index 409a571..0000000
--- a/lib/svg/bug.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/calendar.svg b/lib/svg/calendar.svg
deleted file mode 100644
index 8e047fe..0000000
--- a/lib/svg/calendar.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/check.svg b/lib/svg/check.svg
deleted file mode 100644
index 63be193..0000000
--- a/lib/svg/check.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/checklist.svg b/lib/svg/checklist.svg
deleted file mode 100644
index 0a2b7e6..0000000
--- a/lib/svg/checklist.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/chevron-down.svg b/lib/svg/chevron-down.svg
deleted file mode 100644
index 3cd761b..0000000
--- a/lib/svg/chevron-down.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/chevron-left.svg b/lib/svg/chevron-left.svg
deleted file mode 100644
index ad1fbeb..0000000
--- a/lib/svg/chevron-left.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/chevron-right.svg b/lib/svg/chevron-right.svg
deleted file mode 100644
index 3b924ce..0000000
--- a/lib/svg/chevron-right.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/chevron-up.svg b/lib/svg/chevron-up.svg
deleted file mode 100644
index 4490c8e..0000000
--- a/lib/svg/chevron-up.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/circle-slash.svg b/lib/svg/circle-slash.svg
deleted file mode 100644
index ba2698c..0000000
--- a/lib/svg/circle-slash.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/circuit-board.svg b/lib/svg/circuit-board.svg
deleted file mode 100644
index d358510..0000000
--- a/lib/svg/circuit-board.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/clippy.svg b/lib/svg/clippy.svg
deleted file mode 100644
index 532472c..0000000
--- a/lib/svg/clippy.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/clock.svg b/lib/svg/clock.svg
deleted file mode 100644
index b1719b6..0000000
--- a/lib/svg/clock.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/cloud-download.svg b/lib/svg/cloud-download.svg
deleted file mode 100644
index d07db13..0000000
--- a/lib/svg/cloud-download.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/cloud-upload.svg b/lib/svg/cloud-upload.svg
deleted file mode 100644
index 42c99bc..0000000
--- a/lib/svg/cloud-upload.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/code.svg b/lib/svg/code.svg
deleted file mode 100644
index 12c77d4..0000000
--- a/lib/svg/code.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/comment-discussion.svg b/lib/svg/comment-discussion.svg
deleted file mode 100644
index 795c5c1..0000000
--- a/lib/svg/comment-discussion.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/comment.svg b/lib/svg/comment.svg
deleted file mode 100644
index 35b9e8b..0000000
--- a/lib/svg/comment.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/credit-card.svg b/lib/svg/credit-card.svg
deleted file mode 100644
index 79622c4..0000000
--- a/lib/svg/credit-card.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/dash.svg b/lib/svg/dash.svg
deleted file mode 100644
index 30e7ca0..0000000
--- a/lib/svg/dash.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/dashboard.svg b/lib/svg/dashboard.svg
deleted file mode 100644
index 248937a..0000000
--- a/lib/svg/dashboard.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/database.svg b/lib/svg/database.svg
deleted file mode 100644
index 013dfde..0000000
--- a/lib/svg/database.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/desktop-download.svg b/lib/svg/desktop-download.svg
deleted file mode 100644
index 83bc0a0..0000000
--- a/lib/svg/desktop-download.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/device-camera-video.svg b/lib/svg/device-camera-video.svg
deleted file mode 100644
index 6cd3d65..0000000
--- a/lib/svg/device-camera-video.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/device-camera.svg b/lib/svg/device-camera.svg
deleted file mode 100644
index efb890d..0000000
--- a/lib/svg/device-camera.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/device-desktop.svg b/lib/svg/device-desktop.svg
deleted file mode 100644
index 27e9d1f..0000000
--- a/lib/svg/device-desktop.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/device-mobile.svg b/lib/svg/device-mobile.svg
deleted file mode 100644
index 5258dd3..0000000
--- a/lib/svg/device-mobile.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/diff-added.svg b/lib/svg/diff-added.svg
deleted file mode 100644
index a7b00fa..0000000
--- a/lib/svg/diff-added.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/diff-ignored.svg b/lib/svg/diff-ignored.svg
deleted file mode 100644
index d859034..0000000
--- a/lib/svg/diff-ignored.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/diff-modified.svg b/lib/svg/diff-modified.svg
deleted file mode 100644
index 01b86c2..0000000
--- a/lib/svg/diff-modified.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/diff-removed.svg b/lib/svg/diff-removed.svg
deleted file mode 100644
index 7cad33d..0000000
--- a/lib/svg/diff-removed.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/diff-renamed.svg b/lib/svg/diff-renamed.svg
deleted file mode 100644
index 56abd20..0000000
--- a/lib/svg/diff-renamed.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/diff.svg b/lib/svg/diff.svg
deleted file mode 100644
index 5348266..0000000
--- a/lib/svg/diff.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/ellipses.svg b/lib/svg/ellipses.svg
deleted file mode 100644
index 87d905b..0000000
--- a/lib/svg/ellipses.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/ellipsis.svg b/lib/svg/ellipsis.svg
deleted file mode 100644
index 87d905b..0000000
--- a/lib/svg/ellipsis.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/eye.svg b/lib/svg/eye.svg
deleted file mode 100644
index b77d169..0000000
--- a/lib/svg/eye.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-binary.svg b/lib/svg/file-binary.svg
deleted file mode 100644
index dca5155..0000000
--- a/lib/svg/file-binary.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-code.svg b/lib/svg/file-code.svg
deleted file mode 100644
index 2329b2e..0000000
--- a/lib/svg/file-code.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-directory.svg b/lib/svg/file-directory.svg
deleted file mode 100644
index b05db40..0000000
--- a/lib/svg/file-directory.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-media.svg b/lib/svg/file-media.svg
deleted file mode 100644
index ecc9ee8..0000000
--- a/lib/svg/file-media.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-pdf.svg b/lib/svg/file-pdf.svg
deleted file mode 100644
index 7d8e3ac..0000000
--- a/lib/svg/file-pdf.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-submodule.svg b/lib/svg/file-submodule.svg
deleted file mode 100644
index 32c6119..0000000
--- a/lib/svg/file-submodule.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-symlink-directory.svg b/lib/svg/file-symlink-directory.svg
deleted file mode 100644
index 075aeca..0000000
--- a/lib/svg/file-symlink-directory.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-symlink-file.svg b/lib/svg/file-symlink-file.svg
deleted file mode 100644
index 1d0480d..0000000
--- a/lib/svg/file-symlink-file.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-text.svg b/lib/svg/file-text.svg
deleted file mode 100644
index 8b326ca..0000000
--- a/lib/svg/file-text.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file-zip.svg b/lib/svg/file-zip.svg
deleted file mode 100644
index 415f4c4..0000000
--- a/lib/svg/file-zip.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/file.svg b/lib/svg/file.svg
deleted file mode 100644
index 8b326ca..0000000
--- a/lib/svg/file.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/flame.svg b/lib/svg/flame.svg
deleted file mode 100644
index 810a5df..0000000
--- a/lib/svg/flame.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/fold.svg b/lib/svg/fold.svg
deleted file mode 100644
index 1f7aa10..0000000
--- a/lib/svg/fold.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/gear.svg b/lib/svg/gear.svg
deleted file mode 100644
index 8cfe2f8..0000000
--- a/lib/svg/gear.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/gift.svg b/lib/svg/gift.svg
deleted file mode 100644
index 78bbb48..0000000
--- a/lib/svg/gift.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/gist-secret.svg b/lib/svg/gist-secret.svg
deleted file mode 100644
index 3acfea2..0000000
--- a/lib/svg/gist-secret.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/gist.svg b/lib/svg/gist.svg
deleted file mode 100644
index aae8725..0000000
--- a/lib/svg/gist.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/git-branch.svg b/lib/svg/git-branch.svg
deleted file mode 100644
index 2047baa..0000000
--- a/lib/svg/git-branch.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/git-commit.svg b/lib/svg/git-commit.svg
deleted file mode 100644
index b80404c..0000000
--- a/lib/svg/git-commit.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/git-compare.svg b/lib/svg/git-compare.svg
deleted file mode 100644
index 5ea2d18..0000000
--- a/lib/svg/git-compare.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/git-merge.svg b/lib/svg/git-merge.svg
deleted file mode 100644
index 0860da1..0000000
--- a/lib/svg/git-merge.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/git-pull-request.svg b/lib/svg/git-pull-request.svg
deleted file mode 100644
index 15cd134..0000000
--- a/lib/svg/git-pull-request.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/globe.svg b/lib/svg/globe.svg
deleted file mode 100644
index 44a3459..0000000
--- a/lib/svg/globe.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/grabber.svg b/lib/svg/grabber.svg
deleted file mode 100644
index 3c3cc87..0000000
--- a/lib/svg/grabber.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/graph.svg b/lib/svg/graph.svg
deleted file mode 100644
index 5a80851..0000000
--- a/lib/svg/graph.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/heart.svg b/lib/svg/heart.svg
deleted file mode 100644
index 19b9da8..0000000
--- a/lib/svg/heart.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/history.svg b/lib/svg/history.svg
deleted file mode 100644
index f5e704e..0000000
--- a/lib/svg/history.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/home.svg b/lib/svg/home.svg
deleted file mode 100644
index 95750a1..0000000
--- a/lib/svg/home.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/horizontal-rule.svg b/lib/svg/horizontal-rule.svg
deleted file mode 100644
index 7335ea3..0000000
--- a/lib/svg/horizontal-rule.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/hubot.svg b/lib/svg/hubot.svg
deleted file mode 100644
index cf67b3f..0000000
--- a/lib/svg/hubot.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/inbox.svg b/lib/svg/inbox.svg
deleted file mode 100644
index 23b8a56..0000000
--- a/lib/svg/inbox.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/info.svg b/lib/svg/info.svg
deleted file mode 100644
index 94c9294..0000000
--- a/lib/svg/info.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/issue-closed.svg b/lib/svg/issue-closed.svg
deleted file mode 100644
index 67bb00e..0000000
--- a/lib/svg/issue-closed.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/issue-opened.svg b/lib/svg/issue-opened.svg
deleted file mode 100644
index cd363c8..0000000
--- a/lib/svg/issue-opened.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/issue-reopened.svg b/lib/svg/issue-reopened.svg
deleted file mode 100644
index 937f67d..0000000
--- a/lib/svg/issue-reopened.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/italic.svg b/lib/svg/italic.svg
deleted file mode 100644
index 4f2e3b3..0000000
--- a/lib/svg/italic.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/jersey.svg b/lib/svg/jersey.svg
deleted file mode 100644
index 8791b2d..0000000
--- a/lib/svg/jersey.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/key.svg b/lib/svg/key.svg
deleted file mode 100644
index 9749e1b..0000000
--- a/lib/svg/key.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/keyboard.svg b/lib/svg/keyboard.svg
deleted file mode 100644
index 44dd582..0000000
--- a/lib/svg/keyboard.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/law.svg b/lib/svg/law.svg
deleted file mode 100644
index 22261cc..0000000
--- a/lib/svg/law.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/light-bulb.svg b/lib/svg/light-bulb.svg
deleted file mode 100644
index 4b480a0..0000000
--- a/lib/svg/light-bulb.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/link-external.svg b/lib/svg/link-external.svg
deleted file mode 100644
index efa8834..0000000
--- a/lib/svg/link-external.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/link.svg b/lib/svg/link.svg
deleted file mode 100644
index 34067f2..0000000
--- a/lib/svg/link.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/list-ordered.svg b/lib/svg/list-ordered.svg
deleted file mode 100644
index 176a3b7..0000000
--- a/lib/svg/list-ordered.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/list-unordered.svg b/lib/svg/list-unordered.svg
deleted file mode 100644
index e537395..0000000
--- a/lib/svg/list-unordered.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/location.svg b/lib/svg/location.svg
deleted file mode 100644
index 397ac30..0000000
--- a/lib/svg/location.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/lock.svg b/lib/svg/lock.svg
deleted file mode 100644
index a1dafaa..0000000
--- a/lib/svg/lock.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/logo-gist.svg b/lib/svg/logo-gist.svg
deleted file mode 100644
index a496f90..0000000
--- a/lib/svg/logo-gist.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/logo-github.svg b/lib/svg/logo-github.svg
deleted file mode 100644
index e65b202..0000000
--- a/lib/svg/logo-github.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mail-read.svg b/lib/svg/mail-read.svg
deleted file mode 100644
index 05baf5b..0000000
--- a/lib/svg/mail-read.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mail-reply.svg b/lib/svg/mail-reply.svg
deleted file mode 100644
index 381716e..0000000
--- a/lib/svg/mail-reply.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mail.svg b/lib/svg/mail.svg
deleted file mode 100644
index 78332b9..0000000
--- a/lib/svg/mail.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mark-github.svg b/lib/svg/mark-github.svg
deleted file mode 100644
index 6503137..0000000
--- a/lib/svg/mark-github.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/markdown.svg b/lib/svg/markdown.svg
deleted file mode 100644
index 7762b3c..0000000
--- a/lib/svg/markdown.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/megaphone.svg b/lib/svg/megaphone.svg
deleted file mode 100644
index 89f3767..0000000
--- a/lib/svg/megaphone.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mention.svg b/lib/svg/mention.svg
deleted file mode 100644
index d716351..0000000
--- a/lib/svg/mention.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/milestone.svg b/lib/svg/milestone.svg
deleted file mode 100644
index 18fdfa4..0000000
--- a/lib/svg/milestone.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mirror.svg b/lib/svg/mirror.svg
deleted file mode 100644
index 1863d61..0000000
--- a/lib/svg/mirror.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mortar-board.svg b/lib/svg/mortar-board.svg
deleted file mode 100644
index 3535eb4..0000000
--- a/lib/svg/mortar-board.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/mute.svg b/lib/svg/mute.svg
deleted file mode 100644
index e66a152..0000000
--- a/lib/svg/mute.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/no-newline.svg b/lib/svg/no-newline.svg
deleted file mode 100644
index 8e71ccc..0000000
--- a/lib/svg/no-newline.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/octoface.svg b/lib/svg/octoface.svg
deleted file mode 100644
index bf839f4..0000000
--- a/lib/svg/octoface.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/organization.svg b/lib/svg/organization.svg
deleted file mode 100644
index 7351e4a..0000000
--- a/lib/svg/organization.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/package.svg b/lib/svg/package.svg
deleted file mode 100644
index 1a80298..0000000
--- a/lib/svg/package.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/paintcan.svg b/lib/svg/paintcan.svg
deleted file mode 100644
index 5eed372..0000000
--- a/lib/svg/paintcan.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/pencil.svg b/lib/svg/pencil.svg
deleted file mode 100644
index 7434bbc..0000000
--- a/lib/svg/pencil.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/person.svg b/lib/svg/person.svg
deleted file mode 100644
index 8aafcd5..0000000
--- a/lib/svg/person.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/pin.svg b/lib/svg/pin.svg
deleted file mode 100644
index 2389039..0000000
--- a/lib/svg/pin.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/plug.svg b/lib/svg/plug.svg
deleted file mode 100644
index 1e571da..0000000
--- a/lib/svg/plug.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/plus-small.svg b/lib/svg/plus-small.svg
deleted file mode 100644
index 9c3323e..0000000
--- a/lib/svg/plus-small.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/plus.svg b/lib/svg/plus.svg
deleted file mode 100644
index bcc48b2..0000000
--- a/lib/svg/plus.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/primitive-dot.svg b/lib/svg/primitive-dot.svg
deleted file mode 100644
index d0e7981..0000000
--- a/lib/svg/primitive-dot.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/primitive-square.svg b/lib/svg/primitive-square.svg
deleted file mode 100644
index 05c6994..0000000
--- a/lib/svg/primitive-square.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/pulse.svg b/lib/svg/pulse.svg
deleted file mode 100644
index 01e54df..0000000
--- a/lib/svg/pulse.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/question.svg b/lib/svg/question.svg
deleted file mode 100644
index 9992415..0000000
--- a/lib/svg/question.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/quote.svg b/lib/svg/quote.svg
deleted file mode 100644
index c3be3e5..0000000
--- a/lib/svg/quote.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/radio-tower.svg b/lib/svg/radio-tower.svg
deleted file mode 100644
index 258ff3c..0000000
--- a/lib/svg/radio-tower.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/reply.svg b/lib/svg/reply.svg
deleted file mode 100644
index 71e2fbd..0000000
--- a/lib/svg/reply.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/repo-clone.svg b/lib/svg/repo-clone.svg
deleted file mode 100644
index 3b016fe..0000000
--- a/lib/svg/repo-clone.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/repo-force-push.svg b/lib/svg/repo-force-push.svg
deleted file mode 100644
index 4308de2..0000000
--- a/lib/svg/repo-force-push.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/repo-forked.svg b/lib/svg/repo-forked.svg
deleted file mode 100644
index e03e596..0000000
--- a/lib/svg/repo-forked.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/repo-pull.svg b/lib/svg/repo-pull.svg
deleted file mode 100644
index 6274ce3..0000000
--- a/lib/svg/repo-pull.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/repo-push.svg b/lib/svg/repo-push.svg
deleted file mode 100644
index 49b9af8..0000000
--- a/lib/svg/repo-push.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/repo.svg b/lib/svg/repo.svg
deleted file mode 100644
index 336b9da..0000000
--- a/lib/svg/repo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/rocket.svg b/lib/svg/rocket.svg
deleted file mode 100644
index a26b933..0000000
--- a/lib/svg/rocket.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/rss.svg b/lib/svg/rss.svg
deleted file mode 100644
index 4a5b9f5..0000000
--- a/lib/svg/rss.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/ruby.svg b/lib/svg/ruby.svg
deleted file mode 100644
index a2010f4..0000000
--- a/lib/svg/ruby.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/search.svg b/lib/svg/search.svg
deleted file mode 100644
index 40a0e6e..0000000
--- a/lib/svg/search.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/server.svg b/lib/svg/server.svg
deleted file mode 100644
index e63ae7c..0000000
--- a/lib/svg/server.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/settings.svg b/lib/svg/settings.svg
deleted file mode 100644
index 8923d8f..0000000
--- a/lib/svg/settings.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/shield.svg b/lib/svg/shield.svg
deleted file mode 100644
index 8f28fda..0000000
--- a/lib/svg/shield.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/sign-in.svg b/lib/svg/sign-in.svg
deleted file mode 100644
index 4977c3a..0000000
--- a/lib/svg/sign-in.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/sign-out.svg b/lib/svg/sign-out.svg
deleted file mode 100644
index e2cc652..0000000
--- a/lib/svg/sign-out.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/smiley.svg b/lib/svg/smiley.svg
deleted file mode 100644
index f7d4fbd..0000000
--- a/lib/svg/smiley.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/squirrel.svg b/lib/svg/squirrel.svg
deleted file mode 100644
index bc7fe0f..0000000
--- a/lib/svg/squirrel.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/star.svg b/lib/svg/star.svg
deleted file mode 100644
index 1e32835..0000000
--- a/lib/svg/star.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/stop.svg b/lib/svg/stop.svg
deleted file mode 100644
index f06ef1c..0000000
--- a/lib/svg/stop.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/sync.svg b/lib/svg/sync.svg
deleted file mode 100644
index cabeb73..0000000
--- a/lib/svg/sync.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/tag.svg b/lib/svg/tag.svg
deleted file mode 100644
index ef86e78..0000000
--- a/lib/svg/tag.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/tasklist.svg b/lib/svg/tasklist.svg
deleted file mode 100644
index 99ad4a3..0000000
--- a/lib/svg/tasklist.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/telescope.svg b/lib/svg/telescope.svg
deleted file mode 100644
index 030d731..0000000
--- a/lib/svg/telescope.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/terminal.svg b/lib/svg/terminal.svg
deleted file mode 100644
index 6a372fc..0000000
--- a/lib/svg/terminal.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/text-size.svg b/lib/svg/text-size.svg
deleted file mode 100644
index 8d4dfb9..0000000
--- a/lib/svg/text-size.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/three-bars.svg b/lib/svg/three-bars.svg
deleted file mode 100644
index d72c8e5..0000000
--- a/lib/svg/three-bars.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/thumbsdown.svg b/lib/svg/thumbsdown.svg
deleted file mode 100644
index dc551df..0000000
--- a/lib/svg/thumbsdown.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/thumbsup.svg b/lib/svg/thumbsup.svg
deleted file mode 100644
index 7fba232..0000000
--- a/lib/svg/thumbsup.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/tools.svg b/lib/svg/tools.svg
deleted file mode 100644
index caf2a97..0000000
--- a/lib/svg/tools.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/trashcan.svg b/lib/svg/trashcan.svg
deleted file mode 100644
index d3dc1e0..0000000
--- a/lib/svg/trashcan.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/triangle-down.svg b/lib/svg/triangle-down.svg
deleted file mode 100644
index 8b51f9a..0000000
--- a/lib/svg/triangle-down.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/triangle-left.svg b/lib/svg/triangle-left.svg
deleted file mode 100644
index 377d306..0000000
--- a/lib/svg/triangle-left.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/triangle-right.svg b/lib/svg/triangle-right.svg
deleted file mode 100644
index ba640d3..0000000
--- a/lib/svg/triangle-right.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/triangle-up.svg b/lib/svg/triangle-up.svg
deleted file mode 100644
index 6b38754..0000000
--- a/lib/svg/triangle-up.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/unfold.svg b/lib/svg/unfold.svg
deleted file mode 100644
index 204ed68..0000000
--- a/lib/svg/unfold.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/unmute.svg b/lib/svg/unmute.svg
deleted file mode 100644
index 26d5a72..0000000
--- a/lib/svg/unmute.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/unverified.svg b/lib/svg/unverified.svg
deleted file mode 100644
index ded21bf..0000000
--- a/lib/svg/unverified.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/verified.svg b/lib/svg/verified.svg
deleted file mode 100644
index f2c6234..0000000
--- a/lib/svg/verified.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/versions.svg b/lib/svg/versions.svg
deleted file mode 100644
index 6094d42..0000000
--- a/lib/svg/versions.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/watch.svg b/lib/svg/watch.svg
deleted file mode 100644
index 2947b57..0000000
--- a/lib/svg/watch.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/x.svg b/lib/svg/x.svg
deleted file mode 100644
index e43bfb1..0000000
--- a/lib/svg/x.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/svg/zap.svg b/lib/svg/zap.svg
deleted file mode 100644
index 277eb39..0000000
--- a/lib/svg/zap.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/package.json b/package.json
index 104cf2d..4c3d471 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,8 @@
"version": "2.1.0",
"description": "",
"scripts": {
- "data": "cp -f node_modules/octicons/lib/keywords.json lib && cp -f node_modules/octicons/lib/font/codepoints.json lib",
- "svg": "rm -rf lib/svg && cp -rf node_modules/octicons/build/svg lib",
+ "data": "cp -f node_modules/octicons/build/data.json lib",
+ "svg": "cp -f node_modules/octicons/build/sprite.octicons.svg lib",
"update": "npm install octicons && npm run svg && npm run data",
"ship": "gem build octicons.gemspec && gem push octicons-*.gem",
"test": "rake"
diff --git a/test/octicon_test.rb b/test/octicon_test.rb
index a464f99..59e2248 100644
--- a/test/octicon_test.rb
+++ b/test/octicon_test.rb
@@ -31,21 +31,9 @@
assert_equal 16, icon.height
end
- describe "codepoints" do
- it "computes the correct decimal codepoint" do
- icon = octicon("alert")
- assert_equal 61485, icon.decimal
- end
-
- it "computes the correct hexadecimal codepoint" do
- icon = octicon("alert")
- assert_equal "f02d", icon.hexadecimal
- end
-
- it "finds the character code" do
- icon = octicon("alert")
- assert_equal "", icon.character
- end
+ it "has proper use format" do
+ icon = octicon("x")
+ assert_includes icon.to_svg_use, ""
end
describe "viewBox" do
diff --git a/test/octicons_test.rb b/test/octicons_test.rb
index 51791be..921acfb 100644
--- a/test/octicons_test.rb
+++ b/test/octicons_test.rb
@@ -2,22 +2,18 @@
describe Octicons do
- def setup
- @icons_total = Dir[Octicons::OCTICONS_SVG_PATH].length
- end
-
it "loads all icons on initialization" do
+ x_icon = Octicons::OCTICON_SYMBOLS["x"]
refute_equal 0, Octicons::OCTICON_SYMBOLS.length
- assert_equal @icons_total, Octicons::OCTICON_SYMBOLS.length
- end
-
- it "loads all keywords" do
- refute_equal 0, Octicons::KEYWORDS.length
- assert_equal @icons_total, Octicons::KEYWORDS.length
+ assert x_icon["keywords"]
+ assert x_icon["path"]
+ assert x_icon["height"]
+ assert x_icon["width"]
end
- it "loads all codepoints" do
- refute_equal 0, Octicons::CODEPOINTS.length
- assert_equal @icons_total, Octicons::CODEPOINTS.length
+ it "loads the spritesheet" do
+ assert_includes Octicons.sprite_sheet, "