octicons_v2 0.0.0.pre.c49ba32 → 0.0.0.pre.cb6d341
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +116 -2
- data/lib/build/data.json +1 -1
- data/lib/build/svg/alert-16.svg +3 -1
- data/lib/build/svg/alert-24.svg +5 -1
- data/lib/build/svg/archive-16.svg +3 -1
- data/lib/build/svg/archive-24.svg +5 -1
- data/lib/build/svg/arrow-both-16.svg +3 -1
- data/lib/build/svg/arrow-both-24.svg +3 -1
- data/lib/build/svg/arrow-down-16.svg +3 -1
- data/lib/build/svg/arrow-down-24.svg +3 -1
- data/lib/build/svg/arrow-down-left-24.svg +3 -1
- data/lib/build/svg/arrow-down-right-24.svg +3 -1
- data/lib/build/svg/arrow-left-16.svg +3 -1
- data/lib/build/svg/arrow-left-24.svg +3 -1
- data/lib/build/svg/arrow-right-16.svg +3 -1
- data/lib/build/svg/arrow-right-24.svg +3 -1
- data/lib/build/svg/arrow-up-16.svg +3 -1
- data/lib/build/svg/arrow-up-24.svg +3 -1
- data/lib/build/svg/arrow-up-left-24.svg +3 -1
- data/lib/build/svg/arrow-up-right-24.svg +3 -1
- data/lib/build/svg/beaker-16.svg +3 -1
- data/lib/build/svg/beaker-24.svg +3 -1
- data/lib/build/svg/bell-16.svg +4 -1
- data/lib/build/svg/bell-24.svg +3 -1
- data/lib/build/svg/bell-fill-24.svg +3 -1
- data/lib/build/svg/bell-slash-16.svg +3 -1
- data/lib/build/svg/bell-slash-24.svg +4 -1
- data/lib/build/svg/bold-16.svg +3 -1
- data/lib/build/svg/bold-24.svg +3 -1
- data/lib/build/svg/book-16.svg +3 -1
- data/lib/build/svg/book-24.svg +3 -1
- data/lib/build/svg/bookmark-16.svg +3 -1
- data/lib/build/svg/bookmark-24.svg +3 -1
- data/lib/build/svg/bookmark-fill-24.svg +3 -1
- data/lib/build/svg/bookmark-slash-16.svg +3 -1
- data/lib/build/svg/bookmark-slash-24.svg +4 -1
- data/lib/build/svg/bookmark-slash-fill-24.svg +3 -1
- data/lib/build/svg/broadcast-16.svg +3 -1
- data/lib/build/svg/broadcast-24.svg +7 -1
- data/lib/build/svg/calendar-16.svg +3 -1
- data/lib/build/svg/calendar-24.svg +3 -1
- data/lib/build/svg/check-16.svg +3 -1
- data/lib/build/svg/check-24.svg +3 -1
- data/lib/build/svg/check-circle-16.svg +3 -1
- data/lib/build/svg/check-circle-24.svg +4 -1
- data/lib/build/svg/check-circle-fill-16.svg +3 -1
- data/lib/build/svg/check-circle-fill-24.svg +3 -1
- data/lib/build/svg/checklist-16.svg +3 -1
- data/lib/build/svg/checklist-24.svg +6 -1
- data/lib/build/svg/chevron-down-16.svg +3 -1
- data/lib/build/svg/chevron-down-24.svg +3 -1
- data/lib/build/svg/chevron-left-16.svg +3 -1
- data/lib/build/svg/chevron-left-24.svg +3 -1
- data/lib/build/svg/chevron-right-16.svg +3 -1
- data/lib/build/svg/chevron-right-24.svg +3 -1
- data/lib/build/svg/chevron-up-16.svg +3 -1
- data/lib/build/svg/chevron-up-24.svg +3 -1
- data/lib/build/svg/circle-24.svg +3 -1
- data/lib/build/svg/circle-slash-16.svg +3 -1
- data/lib/build/svg/circle-slash-24.svg +3 -1
- data/lib/build/svg/clippy-16.svg +3 -1
- data/lib/build/svg/clippy-24.svg +4 -1
- data/lib/build/svg/clock-16.svg +3 -1
- data/lib/build/svg/clock-24.svg +4 -1
- data/lib/build/svg/code-16.svg +3 -1
- data/lib/build/svg/code-24.svg +4 -1
- data/lib/build/svg/code-review-16.svg +3 -1
- data/lib/build/svg/code-review-24.svg +5 -1
- data/lib/build/svg/code-square-16.svg +3 -1
- data/lib/build/svg/code-square-24.svg +5 -1
- data/lib/build/svg/comment-16.svg +3 -1
- data/lib/build/svg/comment-24.svg +3 -1
- data/lib/build/svg/comment-discussion-16.svg +3 -1
- data/lib/build/svg/comment-discussion-24.svg +4 -1
- data/lib/build/svg/commit-24.svg +5 -1
- data/lib/build/svg/copy-24.svg +3 -1
- data/lib/build/svg/cpu-16.svg +3 -1
- data/lib/build/svg/cpu-24.svg +4 -1
- data/lib/build/svg/credit-card-16.svg +4 -1
- data/lib/build/svg/credit-card-24.svg +4 -1
- data/lib/build/svg/cross-reference-16.svg +3 -1
- data/lib/build/svg/cross-reference-24.svg +4 -1
- data/lib/build/svg/dash-16.svg +3 -1
- data/lib/build/svg/dash-24.svg +3 -1
- data/lib/build/svg/database-16.svg +3 -1
- data/lib/build/svg/database-24.svg +3 -1
- data/lib/build/svg/desktop-device-24.svg +3 -0
- data/lib/build/svg/desktop-download-16.svg +3 -1
- data/lib/build/svg/desktop-download-24.svg +4 -1
- data/lib/build/svg/device-camera-video-16.svg +3 -1
- data/lib/build/svg/device-camera-video-24.svg +3 -1
- data/lib/build/svg/device-desktop-16.svg +3 -1
- data/lib/build/svg/device-mobile-16.svg +3 -1
- data/lib/build/svg/device-mobile-24.svg +5 -1
- data/lib/build/svg/diff-16.svg +3 -1
- data/lib/build/svg/diff-added-16.svg +3 -1
- data/lib/build/svg/diff-ignored-16.svg +3 -1
- data/lib/build/svg/diff-modified-16.svg +3 -1
- data/lib/build/svg/diff-removed-16.svg +3 -1
- data/lib/build/svg/diff-renamed-16.svg +3 -1
- data/lib/build/svg/dot-16.svg +3 -1
- data/lib/build/svg/dot-24.svg +3 -1
- data/lib/build/svg/dot-fill-16.svg +3 -1
- data/lib/build/svg/dot-fill-24.svg +3 -1
- data/lib/build/svg/download-16.svg +3 -1
- data/lib/build/svg/download-24.svg +4 -1
- data/lib/build/svg/eye-16.svg +3 -1
- data/lib/build/svg/eye-24.svg +4 -1
- data/lib/build/svg/eye-closed-16.svg +10 -1
- data/lib/build/svg/eye-slash-24.svg +4 -1
- data/lib/build/svg/file-16.svg +3 -1
- data/lib/build/svg/file-24.svg +3 -1
- data/lib/build/svg/file-binary-16.svg +3 -1
- data/lib/build/svg/file-binary-24.svg +5 -1
- data/lib/build/svg/file-code-16.svg +3 -1
- data/lib/build/svg/file-code-24.svg +5 -1
- data/lib/build/svg/file-diff-16.svg +3 -1
- data/lib/build/svg/file-diff-24.svg +5 -1
- data/lib/build/svg/file-directory-16.svg +3 -1
- data/lib/build/svg/file-directory-24.svg +3 -1
- data/lib/build/svg/file-directory-fill-24.svg +3 -1
- data/lib/build/svg/file-media-24.svg +3 -1
- data/lib/build/svg/file-submodule-16.svg +3 -1
- data/lib/build/svg/file-submodule-24.svg +3 -1
- data/lib/build/svg/file-symlink-24.svg +3 -1
- data/lib/build/svg/file-symlink-file-16.svg +3 -1
- data/lib/build/svg/file-zip-16.svg +3 -1
- data/lib/build/svg/file-zip-24.svg +13 -1
- data/lib/build/svg/filter-16.svg +3 -1
- data/lib/build/svg/filter-24.svg +5 -1
- data/lib/build/svg/fire-24.svg +3 -1
- data/lib/build/svg/flame-16.svg +3 -1
- data/lib/build/svg/fold-16.svg +3 -1
- data/lib/build/svg/fold-24.svg +11 -1
- data/lib/build/svg/fold-down-16.svg +3 -1
- data/lib/build/svg/fold-down-24.svg +9 -1
- data/lib/build/svg/fold-up-16.svg +3 -1
- data/lib/build/svg/fold-up-24.svg +9 -1
- data/lib/build/svg/gear-16.svg +3 -1
- data/lib/build/svg/gear-24.svg +4 -1
- data/lib/build/svg/gift-16.svg +3 -1
- data/lib/build/svg/gift-24.svg +3 -1
- data/lib/build/svg/git-branch-16.svg +3 -1
- data/lib/build/svg/git-branch-24.svg +7 -1
- data/lib/build/svg/git-commit-16.svg +3 -1
- data/lib/build/svg/git-commit-24.svg +3 -1
- data/lib/build/svg/git-compare-16.svg +3 -1
- data/lib/build/svg/git-compare-24.svg +6 -1
- data/lib/build/svg/git-fork-24.svg +7 -1
- data/lib/build/svg/git-merge-16.svg +3 -1
- data/lib/build/svg/git-merge-24.svg +7 -1
- data/lib/build/svg/git-pull-request-16.svg +3 -1
- data/lib/build/svg/git-pull-request-24.svg +7 -1
- data/lib/build/svg/globe-16.svg +3 -1
- data/lib/build/svg/globe-24.svg +3 -1
- data/lib/build/svg/grabber-16.svg +3 -1
- data/lib/build/svg/grabber-24.svg +3 -1
- data/lib/build/svg/grabber-3-24.svg +3 -0
- data/lib/build/svg/graph-16.svg +3 -1
- data/lib/build/svg/graph-24.svg +4 -1
- data/lib/build/svg/heading-16.svg +3 -1
- data/lib/build/svg/heading-24.svg +3 -1
- data/lib/build/svg/heart-16.svg +3 -1
- data/lib/build/svg/heart-24.svg +3 -1
- data/lib/build/svg/heart-fill-16.svg +3 -1
- data/lib/build/svg/heart-fill-24.svg +3 -1
- data/lib/build/svg/history-16.svg +3 -1
- data/lib/build/svg/history-24.svg +4 -1
- data/lib/build/svg/home-16.svg +3 -1
- data/lib/build/svg/home-24.svg +3 -1
- data/lib/build/svg/home-fill-24.svg +3 -1
- data/lib/build/svg/horizontal-rule-16.svg +3 -1
- data/lib/build/svg/horizontal-rule-24.svg +3 -1
- data/lib/build/svg/hourglass-16.svg +3 -1
- data/lib/build/svg/hourglass-24.svg +3 -1
- data/lib/build/svg/hubot-16.svg +3 -1
- data/lib/build/svg/hubot-24.svg +5 -1
- data/lib/build/svg/image-16.svg +3 -1
- data/lib/build/svg/image-24.svg +3 -1
- data/lib/build/svg/inbox-16.svg +3 -1
- data/lib/build/svg/inbox-24.svg +3 -1
- data/lib/build/svg/infinity-16.svg +3 -1
- data/lib/build/svg/infinity-24.svg +3 -1
- data/lib/build/svg/info-16.svg +3 -1
- data/lib/build/svg/info-24.svg +5 -1
- data/lib/build/svg/insights-24.svg +3 -1
- data/lib/build/svg/issue-closed-16.svg +3 -1
- data/lib/build/svg/issue-closed-24.svg +6 -1
- data/lib/build/svg/issue-opened-16.svg +3 -1
- data/lib/build/svg/issue-opened-24.svg +5 -1
- data/lib/build/svg/issue-reopened-16.svg +3 -1
- data/lib/build/svg/issue-reopened-24.svg +6 -1
- data/lib/build/svg/italic-16.svg +3 -1
- data/lib/build/svg/italic-24.svg +3 -1
- data/lib/build/svg/kebab-horizontal-16.svg +5 -1
- data/lib/build/svg/kebab-horizontal-24.svg +3 -1
- data/lib/build/svg/kebab-vertical-24.svg +3 -1
- data/lib/build/svg/key-16.svg +3 -1
- data/lib/build/svg/key-24.svg +4 -1
- data/lib/build/svg/law-16.svg +3 -1
- data/lib/build/svg/law-24.svg +3 -1
- data/lib/build/svg/light-bulb-16.svg +3 -1
- data/lib/build/svg/lightbulb-24.svg +3 -0
- data/lib/build/svg/link-16.svg +3 -1
- data/lib/build/svg/link-24.svg +4 -1
- data/lib/build/svg/link-external-16.svg +3 -1
- data/lib/build/svg/link-external-24.svg +4 -1
- data/lib/build/svg/list-ordered-16.svg +3 -1
- data/lib/build/svg/list-ordered-24.svg +7 -1
- data/lib/build/svg/list-unordered-16.svg +3 -1
- data/lib/build/svg/list-unordered-24.svg +3 -1
- data/lib/build/svg/location-16.svg +3 -1
- data/lib/build/svg/location-24.svg +4 -1
- data/lib/build/svg/lock-16.svg +3 -1
- data/lib/build/svg/lock-24.svg +3 -1
- data/lib/build/svg/mail-16.svg +3 -1
- data/lib/build/svg/mail-24.svg +3 -1
- data/lib/build/svg/mark-github-16.svg +3 -1
- data/lib/build/svg/markdown-16.svg +3 -1
- data/lib/build/svg/megaphone-16.svg +3 -1
- data/lib/build/svg/megaphone-24.svg +3 -1
- data/lib/build/svg/mention-16.svg +3 -1
- data/lib/build/svg/mention-24.svg +3 -1
- data/lib/build/svg/milestone-16.svg +3 -1
- data/lib/build/svg/milestone-24.svg +3 -1
- data/lib/build/svg/mirror-16.svg +3 -1
- data/lib/build/svg/mirror-24.svg +9 -1
- data/lib/build/svg/mortar-board-16.svg +3 -1
- data/lib/build/svg/mortar-board-24.svg +3 -1
- data/lib/build/svg/mute-16.svg +3 -1
- data/lib/build/svg/mute-24.svg +4 -1
- data/lib/build/svg/north-star-16.svg +3 -1
- data/lib/build/svg/north-star-24.svg +3 -1
- data/lib/build/svg/note-16.svg +3 -1
- data/lib/build/svg/note-24.svg +5 -1
- data/lib/build/svg/organization-16.svg +3 -1
- data/lib/build/svg/organization-24.svg +12 -1
- data/lib/build/svg/package-16.svg +3 -1
- data/lib/build/svg/package-24.svg +3 -1
- data/lib/build/svg/package-dependencies-16.svg +3 -1
- data/lib/build/svg/package-dependencies-24.svg +4 -1
- data/lib/build/svg/package-dependents-16.svg +3 -1
- data/lib/build/svg/package-dependents-24.svg +4 -1
- data/lib/build/svg/paper-airplane-16.svg +3 -1
- data/lib/build/svg/paper-airplane-24.svg +3 -1
- data/lib/build/svg/pencil-16.svg +3 -1
- data/lib/build/svg/pencil-24.svg +3 -1
- data/lib/build/svg/people-16.svg +3 -1
- data/lib/build/svg/people-24.svg +3 -1
- data/lib/build/svg/person-16.svg +3 -1
- data/lib/build/svg/person-24.svg +4 -1
- data/lib/build/svg/pin-16.svg +3 -1
- data/lib/build/svg/pin-24.svg +3 -1
- data/lib/build/svg/play-16.svg +3 -1
- data/lib/build/svg/play-24.svg +4 -1
- data/lib/build/svg/plug-16.svg +3 -1
- data/lib/build/svg/plug-24.svg +3 -1
- data/lib/build/svg/plus-16.svg +3 -1
- data/lib/build/svg/plus-24.svg +3 -1
- data/lib/build/svg/plus-circle-16.svg +3 -1
- data/lib/build/svg/plus-circle-24.svg +4 -1
- data/lib/build/svg/project-16.svg +3 -1
- data/lib/build/svg/project-24.svg +6 -1
- data/lib/build/svg/pulse-16.svg +3 -1
- data/lib/build/svg/pulse-24.svg +3 -1
- data/lib/build/svg/question-16.svg +3 -1
- data/lib/build/svg/question-24.svg +5 -1
- data/lib/build/svg/quote-16.svg +3 -1
- data/lib/build/svg/quote-24.svg +3 -1
- data/lib/build/svg/reply-16.svg +3 -1
- data/lib/build/svg/reply-24.svg +3 -1
- data/lib/build/svg/repo-16.svg +3 -1
- data/lib/build/svg/repo-24.svg +4 -1
- data/lib/build/svg/repo-forked-16.svg +3 -1
- data/lib/build/svg/repo-push-16.svg +3 -1
- data/lib/build/svg/repo-push-24.svg +4 -1
- data/lib/build/svg/repo-template-16.svg +3 -1
- data/lib/build/svg/repo-template-24.svg +11 -1
- data/lib/build/svg/request-changes-24.svg +3 -0
- data/lib/build/svg/rocket-16.svg +3 -1
- data/lib/build/svg/rocket-24.svg +3 -1
- data/lib/build/svg/rss-16.svg +3 -1
- data/lib/build/svg/rss-24.svg +3 -1
- data/lib/build/svg/screen-full-16.svg +3 -1
- data/lib/build/svg/screen-full-24.svg +3 -1
- data/lib/build/svg/screen-normal-16.svg +3 -1
- data/lib/build/svg/screen-normal-24.svg +3 -1
- data/lib/build/svg/search-16.svg +3 -1
- data/lib/build/svg/search-24.svg +3 -1
- data/lib/build/svg/server-16.svg +3 -1
- data/lib/build/svg/server-24.svg +7 -1
- data/lib/build/svg/settings-24.svg +3 -1
- data/lib/build/svg/share-16.svg +3 -1
- data/lib/build/svg/share-24.svg +3 -1
- data/lib/build/svg/share-android-16.svg +3 -1
- data/lib/build/svg/share-android-24.svg +3 -1
- data/lib/build/svg/shield-16.svg +3 -1
- data/lib/build/svg/shield-24.svg +5 -1
- data/lib/build/svg/shield-check-16.svg +3 -1
- data/lib/build/svg/shield-check-24.svg +4 -1
- data/lib/build/svg/shield-lock-16.svg +3 -1
- data/lib/build/svg/shield-lock-24.svg +3 -1
- data/lib/build/svg/shield-x-16.svg +3 -1
- data/lib/build/svg/shield-x-24.svg +4 -1
- data/lib/build/svg/sign-in-16.svg +3 -1
- data/lib/build/svg/sign-in-24.svg +3 -1
- data/lib/build/svg/sign-out-16.svg +3 -1
- data/lib/build/svg/sign-out-24.svg +3 -1
- data/lib/build/svg/skip-16.svg +3 -1
- data/lib/build/svg/skip-24.svg +4 -1
- data/lib/build/svg/smiley-16.svg +3 -1
- data/lib/build/svg/smiley-24.svg +6 -1
- data/lib/build/svg/star-16.svg +3 -1
- data/lib/build/svg/star-24.svg +3 -1
- data/lib/build/svg/star-fill-16.svg +3 -1
- data/lib/build/svg/star-fill-24.svg +3 -1
- data/lib/build/svg/stop-16.svg +3 -1
- data/lib/build/svg/stop-24.svg +5 -1
- data/lib/build/svg/stopwatch-16.svg +3 -1
- data/lib/build/svg/stopwatch-24.svg +3 -1
- data/lib/build/svg/sync-16.svg +3 -1
- data/lib/build/svg/sync-24.svg +4 -1
- data/lib/build/svg/tab-24.svg +4 -1
- data/lib/build/svg/tag-16.svg +3 -1
- data/lib/build/svg/tag-24.svg +4 -1
- data/lib/build/svg/tasklist-16.svg +3 -1
- data/lib/build/svg/tasklist-24.svg +4 -1
- data/lib/build/svg/telescope-16.svg +3 -1
- data/lib/build/svg/telescope-24.svg +4 -1
- data/lib/build/svg/terminal-16.svg +3 -1
- data/lib/build/svg/terminal-24.svg +5 -1
- data/lib/build/svg/three-bars-16.svg +3 -1
- data/lib/build/svg/thumbsdown-16.svg +3 -1
- data/lib/build/svg/thumbsdown-24.svg +3 -1
- data/lib/build/svg/thumbsup-16.svg +3 -1
- data/lib/build/svg/thumbsup-24.svg +3 -1
- data/lib/build/svg/tools-16.svg +3 -1
- data/lib/build/svg/tools-24.svg +3 -1
- data/lib/build/svg/trash-24.svg +6 -1
- data/lib/build/svg/trashcan-16.svg +3 -1
- data/lib/build/svg/triangle-down-16.svg +3 -1
- data/lib/build/svg/triangle-down-24.svg +3 -1
- data/lib/build/svg/triangle-left-16.svg +3 -1
- data/lib/build/svg/triangle-left-24.svg +3 -1
- data/lib/build/svg/triangle-right-16.svg +3 -1
- data/lib/build/svg/triangle-right-24.svg +3 -1
- data/lib/build/svg/triangle-up-16.svg +3 -1
- data/lib/build/svg/triangle-up-24.svg +3 -1
- data/lib/build/svg/typography-16.svg +3 -1
- data/lib/build/svg/typography-24.svg +4 -1
- data/lib/build/svg/unfold-16.svg +3 -1
- data/lib/build/svg/unfold-24.svg +11 -1
- data/lib/build/svg/unlock-16.svg +3 -1
- data/lib/build/svg/unlock-24.svg +3 -1
- data/lib/build/svg/unmute-16.svg +3 -1
- data/lib/build/svg/unmute-24.svg +5 -1
- data/lib/build/svg/unverifed-24.svg +5 -1
- data/lib/build/svg/unverified-16.svg +3 -1
- data/lib/build/svg/upload-16.svg +3 -1
- data/lib/build/svg/upload-24.svg +4 -1
- data/lib/build/svg/verified-16.svg +3 -1
- data/lib/build/svg/verified-24.svg +4 -1
- data/lib/build/svg/versions-16.svg +3 -1
- data/lib/build/svg/versions-24.svg +5 -1
- data/lib/build/svg/workflow-16.svg +3 -1
- data/lib/build/svg/workflow-24.svg +3 -1
- data/lib/build/svg/x-16.svg +3 -1
- data/lib/build/svg/x-24.svg +3 -1
- data/lib/build/svg/x-circle-24.svg +4 -1
- data/lib/build/svg/x-circle-fill-24.svg +3 -1
- data/lib/octicons_v2/octicon_v2.rb +14 -16
- data/lib/octicons_v2/version.rb +1 -1
- metadata +6 -12
- data/lib/build/svg/device-desktop-24.svg +0 -1
- data/lib/build/svg/diff-24.svg +0 -1
- data/lib/build/svg/light-bulb-24.svg +0 -1
- data/lib/build/svg/logo-gist-16.svg +0 -1
- data/lib/build/svg/logo-github-16.svg +0 -1
- data/lib/build/svg/no-entry-16.svg +0 -1
- data/lib/build/svg/no-entry-24.svg +0 -1
- data/lib/build/svg/octoface-16.svg +0 -1
- data/lib/build/svg/report-16.svg +0 -1
- data/lib/build/svg/report-24.svg +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aa27e2de9af06b827efb237b9f79185266dcc05c45ebf26de6091e50440acfb
|
4
|
+
data.tar.gz: 3a2131c7680b74062707cdac4a7179a08f1adf66bec97800588160e341b54ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24b1e24ae44e20bbd4458fa9675dc002223838ecba7303d894f66bbcb5a5a274aa9d9a42ee20d7e19cfd9f10df3c323be9470d91da0583e843f171798ec2fb17
|
7
|
+
data.tar.gz: 30489e63c0b50cf951b417ce11a26b731900c93ac650a6fef21e03fa64d9d593d8be40b21a4192bf0429ceba266cccfe0689f824a3441ec8082513cda9c966cd
|
data/README.md
CHANGED
@@ -1,5 +1,119 @@
|
|
1
|
-
#
|
1
|
+
# Octicons gem
|
2
2
|
|
3
3
|
[![Gem version](https://img.shields.io/gem/v/octicons.svg)](https://rubygems.org/gems/octicons)
|
4
|
+
[![Build Status](https://travis-ci.org/primer/octicons.svg?branch=master)](https://travis-ci.org/primer/octicons)
|
4
5
|
|
5
|
-
|
6
|
+
> Octicons gem to distribute octicons svg
|
7
|
+
|
8
|
+
## Install
|
9
|
+
|
10
|
+
Add this to your `Gemfile`
|
11
|
+
|
12
|
+
```rb
|
13
|
+
gem 'octicons'
|
14
|
+
```
|
15
|
+
|
16
|
+
Then `bundle install`.
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
```rb
|
21
|
+
require 'octicons'
|
22
|
+
icon = Octicons::Octicon.new("x")
|
23
|
+
icon.to_svg
|
24
|
+
# <svg class="octicon octicon-x" viewBox="0 0 16 16" width="16" height="16" version="1.1" "aria-hidden"="true"><path d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path></svg>
|
25
|
+
```
|
26
|
+
|
27
|
+
## Documentation
|
28
|
+
|
29
|
+
The `Octicon` class takes two arguments. The first is the symbol of the icon, and the second is a hash of arguments representing html attributes
|
30
|
+
|
31
|
+
#### `symbol` _(required)_
|
32
|
+
|
33
|
+
This is the name of the octicon you want to use. For example `alert`. [Full list of icons][octicons-docs]
|
34
|
+
|
35
|
+
#### Options
|
36
|
+
|
37
|
+
* `:height` - When setting the height to a number, the icon will scale to that size. For example, passing `32`, will calculate the width based on the icon's natural size.
|
38
|
+
* `:width` - When setting the width to a number, the icon will scale to that size. For example, passing `32`, will calculate the width based on the icon's natural size.
|
39
|
+
|
40
|
+
If both `:width, :height` are passed into the options hash, then the icon will be sized exactly at those dimensions.
|
41
|
+
|
42
|
+
#### Attributes
|
43
|
+
|
44
|
+
Once initialized, you can read a few properties from the icon.
|
45
|
+
|
46
|
+
##### `symbol`
|
47
|
+
|
48
|
+
Returns the string of the symbol name
|
49
|
+
|
50
|
+
```rb
|
51
|
+
icon = Octicons::Octicon.new("x")
|
52
|
+
icon.symbol
|
53
|
+
# "x"
|
54
|
+
```
|
55
|
+
|
56
|
+
##### `path`
|
57
|
+
|
58
|
+
Path returns the string representation of the path of the icon.
|
59
|
+
|
60
|
+
```rb
|
61
|
+
icon = Octicons::Octicon.new("x")
|
62
|
+
icon.path
|
63
|
+
# <path d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path>
|
64
|
+
```
|
65
|
+
|
66
|
+
##### `options`
|
67
|
+
|
68
|
+
This is a hash of all the `options` that will be added to the output tag.
|
69
|
+
|
70
|
+
```rb
|
71
|
+
icon = Octicons::Octicon.new("x")
|
72
|
+
icon.options
|
73
|
+
# {:class=>"octicon octicon-x", :viewBox=>"0 0 12 16", :version=>"1.1", :width=>12, :height=>16, :"aria-hidden"=>"true"}
|
74
|
+
```
|
75
|
+
|
76
|
+
##### `width`
|
77
|
+
|
78
|
+
Width is the icon's true width. Based on the svg view box width. _Note, this doesn't change if you scale it up with size options, it only is the natural width of the icon_
|
79
|
+
|
80
|
+
##### `height`
|
81
|
+
|
82
|
+
Height is the icon's true height. Based on the svg view box height. _Note, this doesn't change if you scale it up with size options, it only is the natural height of the icon_
|
83
|
+
|
84
|
+
##### `keywords`
|
85
|
+
|
86
|
+
Returns an array of keywords for the icon. The data comes from the [data file in lib](../data.json). Consider contributing more aliases for the icons.
|
87
|
+
|
88
|
+
```rb
|
89
|
+
icon = Octicons::Octicon.new("x")
|
90
|
+
icon.keywords
|
91
|
+
# ["remove", "close", "delete"]
|
92
|
+
```
|
93
|
+
|
94
|
+
#### Methods
|
95
|
+
|
96
|
+
##### `to_svg`
|
97
|
+
|
98
|
+
Returns a string of the svg tag
|
99
|
+
|
100
|
+
```rb
|
101
|
+
icon = Octicons::Octicon.new("x")
|
102
|
+
icon.to_svg
|
103
|
+
# <svg class="octicon octicon-x" viewBox="0 0 16 16" width="16" height="16" version="1.1" "aria-hidden"="true"><path d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path></svg>
|
104
|
+
```
|
105
|
+
|
106
|
+
## Documentation
|
107
|
+
|
108
|
+
For a full list of options available, see the [octicons_gem documentation](../octicons_gem/#documentation)
|
109
|
+
|
110
|
+
## License
|
111
|
+
|
112
|
+
(c) GitHub, Inc.
|
113
|
+
|
114
|
+
When using the GitHub logos, be sure to follow the [GitHub logo guidelines](https://github.com/logos).
|
115
|
+
|
116
|
+
[MIT](./LICENSE)
|
117
|
+
|
118
|
+
[octicons]: https://github.com/primer/octicons
|
119
|
+
[octicons-docs]: https://octicons.github.com/
|