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 `` tag for svg spritesheets +- Added: Ability to output the spritesheet with `Octicons.sprite_sheet` +- Updating to new version of [octicons@5.0.0](https://github.com/primer/octicons/blob/master/CHANGELOG.md#500) +- Removed: api endpoints for `decimal`, `hexadecimal`, and `character` +- Removed: svg directory from `/lib/` this isn't necessary anymore with the updated `data.json` from 5.0.0 +- Removed: `Octicons::KEYWORDS` and `Octicons::CODEPOINTS`, Codepoints is deprecated and Keywords can be accessed via `Octicons::OCTICON_SYMBOLS` + # 2.1.0 - Updating to new version of [octicons@4.3.0](https://github.com/primer/octicons/blob/master/CHANGELOG.md#430) diff --git a/Gemfile b/Gemfile index 921a8a0..eb97f5d 100644 --- a/Gemfile +++ b/Gemfile @@ -2,8 +2,6 @@ source 'https://rubygems.org' gemspec -gem 'nokogiri' - group :development, :test do gem 'rake' gem 'minitest' diff --git a/README.md b/README.md index f55b972..f059dc5 100644 --- a/README.md +++ b/README.md @@ -81,18 +81,6 @@ Width is the icon's true width. Based on the svg view box width. _Note, this doe 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_ -#### Methods - -##### `to_svg` - -Returns a string of the svg tag - -```rb -icon = Octicons::Octicon.new("x") -icon.to_svg -# -``` - ##### `keywords` Returns an array of keywords for the icon. The data [comes from the octicons repository](https://github.com/primer/octicons/blob/master/lib/keywords.json). Consider contributing more aliases for the icons. @@ -103,34 +91,35 @@ icon.keywords # ["remove", "close", "delete"] ``` -##### `decimal` +#### Methods -Returns an `Integer` representing the codepoint of the character within the font file. +##### `to_svg` + +Returns a string of the svg tag ```rb -icon = Octicons::Octicon.new("alert") -icon.decimal -# 61485 +icon = Octicons::Octicon.new("x") +icon.to_svg +# ``` -##### `hexadecimal` +##### `to_svg_use` -Returns an `String` representing the hexadecimal codepoint of the character within the font file. +Returns a string of the svg tag ```rb -icon = Octicons::Octicon.new("alert") -icon.hexadecimal -# "f02d" +icon = Octicons::Octicon.new("x") +icon.to_svg_use +# ``` -##### `character` +##### `sprite_sheet` -Returns the unicode character of the icon. When placing this with the octicons font turned on, you'll see the icon. +The Octicons class has a method that will output the svg sprite sheet that you can inline in your app. ```rb -icon = Octicons::Octicon.new("alert") -icon.character -# "" +Octicons.sprite_sheet +# ... ``` ## Publishing diff --git a/lib/codepoints.json b/lib/codepoints.json deleted file mode 100644 index 21a0bd7..0000000 --- a/lib/codepoints.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "alert": 61485, - "arrow-down": 61503, - "arrow-left": 61504, - "arrow-right": 61502, - "arrow-small-down": 61600, - "arrow-small-left": 61601, - "arrow-small-right": 61553, - "arrow-small-up": 61599, - "arrow-up": 61501, - "beaker": 61661, - "bell": 61662, - "bold": 61666, - "book": 61447, - "bookmark": 61563, - "briefcase": 61651, - "broadcast": 61512, - "browser": 61637, - "bug": 61585, - "calendar": 61544, - "check": 61498, - "checklist": 61558, - "chevron-down": 61603, - "chevron-left": 61604, - "chevron-right": 61560, - "chevron-up": 61602, - "circle-slash": 61572, - "circuit-board": 61654, - "clippy": 61493, - "clock": 61510, - "cloud-download": 61451, - "cloud-upload": 61452, - "code": 61535, - "comment": 61483, - "comment-discussion": 61519, - "credit-card": 61509, - "dash": 61642, - "dashboard": 61565, - "database": 61590, - "device-camera": 61526, - "device-camera-video": 61527, - "device-desktop": 62076, - "device-mobile": 61496, - "desktop-download": 61660, - "diff": 61517, - "diff-added": 61547, - "diff-ignored": 61593, - "diff-modified": 61549, - "diff-removed": 61548, - "diff-renamed": 61550, - "ellipsis": 61594, - "eye": 61518, - "file-binary": 61588, - "file-code": 61456, - "file-directory": 61462, - "file-media": 61458, - "file-pdf": 61460, - "file-submodule": 61463, - "file-symlink-directory": 61617, - "file-symlink-file": 61616, - "file-text": 61457, - "file-zip": 61459, - "flame": 61650, - "fold": 61644, - "gear": 61487, - "gift": 61506, - "gist": 61454, - "gist-secret": 61580, - "git-branch": 61472, - "git-commit": 61471, - "git-compare": 61612, - "git-merge": 61475, - "git-pull-request": 61449, - "globe": 61622, - "graph": 61507, - "heart": 9829, - "history": 61566, - "home": 61581, - "horizontal-rule": 61552, - "hubot": 61597, - "inbox": 61647, - "info": 61529, - "issue-closed": 61480, - "issue-opened": 61478, - "issue-reopened": 61479, - "italic": 61668, - "jersey": 61465, - "key": 61513, - "keyboard": 61453, - "law": 61656, - "light-bulb": 61440, - "link": 61532, - "link-external": 61567, - "list-ordered": 61538, - "list-unordered": 61537, - "location": 61536, - "lock": 61546, - "logo-gist": 61613, - "logo-github": 61586, - "mail": 61499, - "mail-read": 61500, - "mail-reply": 61521, - "mark-github": 61450, - "markdown": 61641, - "megaphone": 61559, - "mention": 61630, - "milestone": 61557, - "mirror": 61476, - "mortar-board": 61655, - "mute": 61568, - "no-newline": 61596, - "octoface": 61448, - "organization": 61495, - "package": 61636, - "paintcan": 61649, - "pencil": 61528, - "person": 61464, - "pin": 61505, - "plug": 61652, - "plus": 61533, - "primitive-dot": 61522, - "primitive-square": 61523, - "pulse": 61573, - "question": 61484, - "quote": 61539, - "radio-tower": 61488, - "repo": 61441, - "repo-clone": 61516, - "repo-force-push": 61514, - "repo-forked": 61442, - "repo-pull": 61446, - "repo-push": 61445, - "rocket": 61491, - "rss": 61492, - "ruby": 61511, - "search": 61486, - "server": 61591, - "settings": 61564, - "shield": 61665, - "sign-in": 61494, - "sign-out": 61490, - "smiley": 61671, - "squirrel": 61618, - "star": 61482, - "stop": 61583, - "sync": 61575, - "tag": 61461, - "tasklist": 61669, - "telescope": 61576, - "terminal": 61640, - "text-size": 61667, - "three-bars": 61534, - "thumbsup": 61658, - "thumbsdown": 61659, - "tools": 61489, - "trashcan": 61648, - "triangle-down": 61531, - "triangle-left": 61508, - "triangle-right": 61530, - "triangle-up": 61610, - "unfold": 61497, - "unmute": 61626, - "unverified": 61672, - "verified": 61670, - "versions": 61540, - "watch": 61664, - "x": 61569, - "zap": 9889, - "ellipses": 61697, - "file": 61698, - "grabber": 61699, - "plus-small": 61700, - "reply": 61701 -} \ No newline at end of file diff --git a/lib/data.json b/lib/data.json new file mode 100644 index 0000000..0c76119 --- /dev/null +++ b/lib/data.json @@ -0,0 +1 @@ +{"alert":{"keywords":["warning","triangle","exclamation","point"],"path":"","height":"16","width":"16"},"arrow-down":{"keywords":["point","direction"],"path":"","height":"16","width":"10"},"arrow-left":{"keywords":["point","direction"],"path":"","height":"16","width":"10"},"arrow-right":{"keywords":["point","direction"],"path":"","height":"16","width":"10"},"arrow-small-down":{"keywords":["point","direction"],"path":"","height":"16","width":"6"},"arrow-small-left":{"keywords":["point","direction","little","tiny"],"path":"","height":"16","width":"6"},"arrow-small-right":{"keywords":["point","direction","little","tiny"],"path":"","height":"16","width":"6"},"arrow-small-up":{"keywords":["point","direction","little","tiny"],"path":"","height":"16","width":"6"},"arrow-up":{"keywords":["point","direction"],"path":"","height":"16","width":"10"},"beaker":{"keywords":["experiment","labs","experimental","feature","test","science","education","study","development","testing"],"path":"","height":"16","width":"16"},"bell":{"keywords":["notification"],"path":"","height":"16","width":"14"},"bold":{"keywords":["bold"],"path":"","height":"16","width":"10"},"book":{"keywords":["book","journal","wiki","readme"],"path":"","height":"16","width":"16"},"bookmark":{"keywords":["tabbard"],"path":"","height":"16","width":"10"},"briefcase":{"keywords":["suitcase","business"],"path":"","height":"16","width":"14"},"broadcast":{"keywords":["rss","radio","signal"],"path":"","height":"16","width":"16"},"browser":{"keywords":["window","web"],"path":"","height":"16","width":"14"},"bug":{"keywords":["insect"],"path":"","height":"16","width":"16"},"calendar":{"keywords":["time","day","month","year"],"path":"","height":"16","width":"14"},"check":{"keywords":["mark","yes","confirm","accept","ok","success"],"path":"","height":"16","width":"12"},"checklist":{"keywords":["todo"],"path":"","height":"16","width":"16"},"chevron-down":{"keywords":["triangle","arrow"],"path":"","height":"16","width":"10"},"chevron-left":{"keywords":["triangle","arrow"],"path":"","height":"16","width":"8"},"chevron-right":{"keywords":["triangle","arrow"],"path":"","height":"16","width":"8"},"chevron-up":{"keywords":["triangle","arrow"],"path":"","height":"16","width":"10"},"circle-slash":{"keywords":["no","deny","fail","failure","error","bad"],"path":"","height":"16","width":"14"},"circuit-board":{"keywords":["developer","hardware","electricity"],"path":"","height":"16","width":"14"},"clippy":{"keywords":["copy","paste","save","capture"],"path":"","height":"16","width":"14"},"clock":{"keywords":["time","hour","minute","second"],"path":"","height":"16","width":"14"},"cloud-download":{"keywords":["save","install","get"],"path":"","height":"16","width":"16"},"cloud-upload":{"keywords":["put","export"],"path":"","height":"16","width":"16"},"code":{"keywords":["brackets"],"path":"","height":"16","width":"14"},"comment":{"keywords":["speak","bubble"],"path":"","height":"16","width":"16"},"comment-discussion":{"keywords":["converse","talk"],"path":"","height":"16","width":"16"},"credit-card":{"keywords":["money","billing","payments","transactions"],"path":"","height":"16","width":"16"},"dash":{"keywords":["hyphen","range"],"path":"","height":"16","width":"8"},"dashboard":{"keywords":["speed","dial"],"path":"","height":"16","width":"16"},"database":{"keywords":["disks","data"],"path":"","height":"16","width":"12"},"desktop-download":{"keywords":["clone","download"],"path":"","height":"16","width":"16"},"device-camera":{"keywords":["photo","picture","image","snapshot"],"path":"","height":"16","width":"16"},"device-camera-video":{"keywords":["watch","view","media","stream"],"path":"","height":"16","width":"16"},"device-desktop":{"keywords":["computer","monitor"],"path":"","height":"16","width":"16"},"device-mobile":{"keywords":["phone","iphone","cellphone"],"path":"","height":"16","width":"10"},"diff":{"keywords":["difference","changes","compare"],"path":"","height":"16","width":"13"},"diff-added":{"keywords":["new","addition"],"path":"","height":"16","width":"14"},"diff-ignored":{"keywords":["slash"],"path":"","height":"16","width":"14"},"diff-modified":{"keywords":["dot","changed","updated"],"path":"","height":"16","width":"14"},"diff-removed":{"keywords":["deleted","subtracted","dash"],"path":"","height":"16","width":"14"},"diff-renamed":{"keywords":["moved","arrow"],"path":"","height":"16","width":"14"},"ellipses":{"keywords":["dot","more"],"path":"","height":"16","width":"12"},"ellipsis":{"keywords":["read","more","hidden","expand"],"path":"","height":"16","width":"12"},"eye":{"keywords":["look","watch","see"],"path":"","height":"16","width":"16"},"file":{"keywords":["file"],"path":"","height":"16","width":"12"},"file-binary":{"keywords":["image","video","word","powerpoint","excel"],"path":"","height":"16","width":"12"},"file-code":{"keywords":["text","javascript","html","css","php","ruby","coffeescript","sass","scss"],"path":"","height":"16","width":"12"},"file-directory":{"keywords":["folder"],"path":"","height":"16","width":"14"},"file-media":{"keywords":["image","video","audio"],"path":"","height":"16","width":"12"},"file-pdf":{"keywords":["adobe"],"path":"","height":"16","width":"12"},"file-submodule":{"keywords":["folder"],"path":"","height":"16","width":"14"},"file-symlink-directory":{"keywords":["folder","subfolder","link","alias"],"path":"","height":"16","width":"14"},"file-symlink-file":{"keywords":["link","alias"],"path":"","height":"16","width":"12"},"file-text":{"keywords":["document"],"path":"","height":"16","width":"12"},"file-zip":{"keywords":["compress","archive"],"path":"","height":"16","width":"12"},"flame":{"keywords":["fire","hot","burn","trending"],"path":"","height":"16","width":"12"},"fold":{"keywords":["unfold","hide","collapse"],"path":"","height":"16","width":"14"},"gear":{"keywords":["settings"],"path":"","height":"16","width":"14"},"gift":{"keywords":["package","present","skill","craft","freebie"],"path":"","height":"16","width":"14"},"gist":{"keywords":["gist","github"],"path":"","height":"16","width":"12"},"gist-secret":{"keywords":["gist","secret","private"],"path":"","height":"16","width":"14"},"git-branch":{"keywords":["branch","git"],"path":"","height":"16","width":"10"},"git-commit":{"keywords":["save"],"path":"","height":"16","width":"14"},"git-compare":{"keywords":["difference","changes"],"path":"","height":"16","width":"14"},"git-merge":{"keywords":["join"],"path":"","height":"16","width":"12"},"git-pull-request":{"keywords":["review"],"path":"","height":"16","width":"12"},"globe":{"keywords":["world"],"path":"","height":"16","width":"14"},"grabber":{"keywords":["mover","drap","drop"],"path":"","height":"16","width":"8"},"graph":{"keywords":["trend","stats","statistics"],"path":"","height":"16","width":"16"},"heart":{"keywords":["love"],"path":"","height":"16","width":"12"},"history":{"keywords":["time","past","revert","back"],"path":"","height":"16","width":"14"},"home":{"keywords":["welcome","index","house","building"],"path":"","height":"16","width":"16"},"horizontal-rule":{"keywords":["hr"],"path":"","height":"16","width":"10"},"hubot":{"keywords":["robot"],"path":"","height":"16","width":"14"},"inbox":{"keywords":["mail","todo","new","messages"],"path":"","height":"16","width":"14"},"info":{"keywords":["help"],"path":"","height":"16","width":"14"},"issue-closed":{"keywords":["done","complete"],"path":"","height":"16","width":"16"},"issue-opened":{"keywords":["new"],"path":"","height":"16","width":"14"},"issue-reopened":{"keywords":["regression"],"path":"","height":"16","width":"14"},"italic":{"keywords":["font","italic","style"],"path":"","height":"16","width":"6"},"jersey":{"keywords":["team","game","basketball"],"path":"","height":"16","width":"14"},"key":{"keywords":["key","lock","secure","safe"],"path":"","height":"16","width":"14"},"keyboard":{"keywords":["type","keys","write","shortcuts"],"path":"","height":"16","width":"16"},"law":{"keywords":["legal","bill"],"path":"","height":"16","width":"14"},"light-bulb":{"keywords":["idea"],"path":"","height":"16","width":"12"},"link":{"keywords":["connect","hyperlink"],"path":"","height":"16","width":"16"},"link-external":{"keywords":["out","see","more","go","to"],"path":"","height":"16","width":"12"},"list-ordered":{"keywords":["numbers","tasks","todo","items"],"path":"","height":"16","width":"12"},"list-unordered":{"keywords":["bullet","point","tasks","todo","items"],"path":"","height":"16","width":"12"},"location":{"keywords":["here","marker"],"path":"","height":"16","width":"12"},"lock":{"keywords":["secure","safe","protected"],"path":"","height":"16","width":"12"},"logo-gist":{"keywords":["logo","gist"],"path":"","height":"16","width":"25"},"logo-github":{"keywords":["brand"],"path":"","height":"16","width":"45"},"mail":{"keywords":["email","unread"],"path":"","height":"16","width":"14"},"mail-read":{"keywords":["email","open"],"path":"","height":"16","width":"14"},"mail-reply":{"keywords":["email"],"path":"","height":"16","width":"12"},"mark-github":{"keywords":["octocat"],"path":"","height":"16","width":"16"},"markdown":{"keywords":["markup","style"],"path":"","height":"16","width":"16"},"megaphone":{"keywords":["bullhorn","loud","shout","broadcast"],"path":"","height":"16","width":"16"},"mention":{"keywords":["at","ping"],"path":"","height":"16","width":"14"},"milestone":{"keywords":["marker"],"path":"","height":"16","width":"14"},"mirror":{"keywords":["reflect"],"path":"","height":"16","width":"16"},"mortar-board":{"keywords":["education","learn","teach"],"path":"","height":"16","width":"16"},"mute":{"keywords":["quiet","sound","audio","turn","off"],"path":"","height":"16","width":"16"},"no-newline":{"keywords":["return"],"path":"","height":"16","width":"16"},"note":{"keywords":["card","paper","ticket"],"path":"","height":"16","width":"14"},"octoface":{"keywords":["octocat"],"path":"","height":"16","width":"16"},"organization":{"keywords":["people","group","team"],"path":"","height":"16","width":"16"},"package":{"keywords":["box","ship"],"path":"","height":"16","width":"16"},"paintcan":{"keywords":["style","theme","art","color"],"path":"","height":"16","width":"12"},"pencil":{"keywords":["edit","change","update","write"],"path":"","height":"16","width":"14"},"person":{"keywords":["people","man","woman","human"],"path":"","height":"16","width":"12"},"pin":{"keywords":["people","save","star","bookmark"],"path":"","height":"16","width":"16"},"plug":{"keywords":["hook","webhook"],"path":"","height":"16","width":"14"},"plus":{"keywords":["add","new","more"],"path":"","height":"16","width":"12"},"plus-small":{"keywords":["add","new","more","small"],"path":"","height":"16","width":"7"},"primitive-dot":{"keywords":["circle"],"path":"","height":"16","width":"8"},"primitive-square":{"keywords":["box"],"path":"","height":"16","width":"8"},"project":{"keywords":["board","kanban","columns","scrum"],"path":"","height":"16","width":"15"},"pulse":{"keywords":["graph","trend","line"],"path":"","height":"16","width":"14"},"question":{"keywords":["help","explain"],"path":"","height":"16","width":"14"},"quote":{"keywords":["quotation"],"path":"","height":"16","width":"14"},"radio-tower":{"keywords":["broadcast"],"path":"","height":"16","width":"16"},"reply":{"keywords":["reply all","back"],"path":"","height":"16","width":"14"},"repo":{"keywords":["book","journal"],"path":"","height":"16","width":"12"},"repo-clone":{"keywords":["book","journal"],"path":"","height":"16","width":"16"},"repo-force-push":{"keywords":["book","journal","put"],"path":"","height":"16","width":"12"},"repo-forked":{"keywords":["book","journal","copy"],"path":"","height":"16","width":"10"},"repo-pull":{"keywords":["book","journal","get"],"path":"","height":"16","width":"16"},"repo-push":{"keywords":["book","journal","put"],"path":"","height":"16","width":"12"},"rocket":{"keywords":["staff","stafftools","blast","off","space"],"path":"","height":"16","width":"16"},"rss":{"keywords":["broadcast","feed"],"path":"","height":"16","width":"10"},"ruby":{"keywords":["code"],"path":"","height":"16","width":"16"},"screen-full":{"keywords":["fullscreen","expand"],"path":"","height":"16","width":"14"},"screen-normal":{"keywords":["fullscreen","expand","exit"],"path":"","height":"16","width":"14"},"search":{"keywords":["magnifying","glass"],"path":"","height":"16","width":"16"},"server":{"keywords":["computers","racks","ops"],"path":"","height":"16","width":"12"},"settings":{"keywords":["sliders","filters"],"path":"","height":"16","width":"16"},"shield":{"keywords":["protect","shield","lock"],"path":"","height":"16","width":"14"},"sign-in":{"keywords":["door","arrow","direction","enter"],"path":"","height":"16","width":"14"},"sign-out":{"keywords":["door","arrow","direction","leave"],"path":"","height":"16","width":"16"},"smiley":{"keywords":["emoji","smile","mood","emotion"],"path":"","height":"16","width":"16"},"squirrel":{"keywords":["ship","shipit"],"path":"","height":"16","width":"16"},"star":{"keywords":["save","remember","like"],"path":"","height":"16","width":"14"},"stop":{"keywords":["block","spam"],"path":"","height":"16","width":"14"},"sync":{"keywords":["cycle","refresh","loop"],"path":"","height":"16","width":"12"},"tag":{"keywords":["release"],"path":"","height":"16","width":"14"},"tasklist":{"keywords":["todo"],"path":"","height":"16","width":"16"},"telescope":{"keywords":["science","space","look","view","explore"],"path":"","height":"16","width":"14"},"terminal":{"keywords":["code","ops","shell"],"path":"","height":"16","width":"14"},"text-size":{"keywords":["font","size","text"],"path":"","height":"16","width":"18"},"three-bars":{"keywords":["hamburger"],"path":"","height":"16","width":"12"},"thumbsdown":{"keywords":["thumb","thumbsdown","rejected"],"path":"","height":"16","width":"16"},"thumbsup":{"keywords":["thumb","thumbsup","prop","ship"],"path":"","height":"16","width":"16"},"tools":{"keywords":["screwdriver","wrench","settings"],"path":"","height":"16","width":"16"},"trashcan":{"keywords":["garbage","rubbish","recycle","delete"],"path":"","height":"16","width":"12"},"triangle-down":{"keywords":["arrow","point","direction"],"path":"","height":"16","width":"12"},"triangle-left":{"keywords":["arrow","point","direction"],"path":"","height":"16","width":"6"},"triangle-right":{"keywords":["arrow","point","direction"],"path":"","height":"16","width":"6"},"triangle-up":{"keywords":["arrow","point","direction"],"path":"","height":"16","width":"12"},"unfold":{"keywords":["expand","open","reveal"],"path":"","height":"16","width":"14"},"unmute":{"keywords":["loud","volume","audio","sound","play"],"path":"","height":"16","width":"16"},"unverified":{"keywords":["insecure","untrusted"],"path":"","height":"16","width":"16"},"verified":{"keywords":["trusted","secure","trustworthy"],"path":"","height":"16","width":"16"},"versions":{"keywords":["history"],"path":"","height":"16","width":"14"},"watch":{"keywords":["wait","hourglass"],"path":"","height":"16","width":"12"},"x":{"keywords":["remove","close","delete"],"path":"","height":"16","width":"12"},"zap":{"keywords":["electricity","lightning","props","like","star","save"],"path":"","height":"16","width":"10"}} \ No newline at end of file diff --git a/lib/keywords.json b/lib/keywords.json deleted file mode 100644 index 50964d0..0000000 --- a/lib/keywords.json +++ /dev/null @@ -1,1146 +0,0 @@ -{ - "alert": { - "keywords": [ - "warning", - "triangle", - "exclamation", - "point" - ] - }, - "arrow-down": { - "keywords": [ - "point", - "direction" - ] - }, - "arrow-left": { - "keywords": [ - "point", - "direction" - ] - }, - "arrow-right": { - "keywords": [ - "point", - "direction" - ] - }, - "arrow-small-down": { - "keywords": [ - "point", - "direction" - ] - }, - "arrow-small-left": { - "keywords": [ - "point", - "direction", - "little", - "tiny" - ] - }, - "arrow-small-right": { - "keywords": [ - "point", - "direction", - "little", - "tiny" - ] - }, - "arrow-small-up": { - "keywords": [ - "point", - "direction", - "little", - "tiny" - ] - }, - "arrow-up": { - "keywords": [ - "point", - "direction" - ] - }, - "beaker": { - "keywords": [ - "experiment", - "labs", - "experimental", - "feature", - "test", - "science", - "education", - "study", - "development", - "testing" - ] - }, - "bell": { - "keywords": [ - "notification" - ] - }, - "bold": { - "keywords": [ - "bold" - ] - }, - "book": { - "keywords": [ - "book", - "journal", - "wiki", - "readme" - ] - }, - "bookmark": { - "keywords": [ - "tabbard" - ] - }, - "briefcase": { - "keywords": [ - "suitcase", - "business" - ] - }, - "broadcast": { - "keywords": [ - "rss", - "radio", - "signal" - ] - }, - "browser": { - "keywords": [ - "window", - "web" - ] - }, - "bug": { - "keywords": [ - "insect" - ] - }, - "calendar": { - "keywords": [ - "time", - "day", - "month", - "year" - ] - }, - "check": { - "keywords": [ - "mark", - "yes", - "confirm", - "accept", - "ok", - "success" - ] - }, - "checklist": { - "keywords": [ - "todo" - ] - }, - "chevron-down": { - "keywords": [ - "triangle", - "arrow" - ] - }, - "chevron-left": { - "keywords": [ - "triangle", - "arrow" - ] - }, - "chevron-right": { - "keywords": [ - "triangle", - "arrow" - ] - }, - "chevron-up": { - "keywords": [ - "triangle", - "arrow" - ] - }, - "circle-slash": { - "keywords": [ - "no", - "deny", - "fail", - "failure", - "error", - "bad" - ] - }, - "circuit-board": { - "keywords": [ - "developer", - "hardware", - "electricity" - ] - }, - "clippy": { - "keywords": [ - "copy", - "paste", - "save", - "capture" - ] - }, - "clock": { - "keywords": [ - "time", - "hour", - "minute", - "second" - ] - }, - "cloud-download": { - "keywords": [ - "save", - "install", - "get" - ] - }, - "cloud-upload": { - "keywords": [ - "put", - "export" - ] - }, - "code": { - "keywords": [ - "brackets" - ] - }, - "comment": { - "keywords": [ - "speak", - "bubble" - ] - }, - "comment-discussion": { - "keywords": [ - "converse", - "talk" - ] - }, - "credit-card": { - "keywords": [ - "money", - "billing", - "payments", - "transactions" - ] - }, - "dash": { - "keywords": [ - "hyphen", - "range" - ] - }, - "dashboard": { - "keywords": [ - "speed", - "dial" - ] - }, - "database": { - "keywords": [ - "disks", - "data" - ] - }, - "desktop-download": { - "keywords": [ - "clone", - "download" - ] - }, - "device-camera": { - "keywords": [ - "photo", - "picture", - "image", - "snapshot" - ] - }, - "device-camera-video": { - "keywords": [ - "watch", - "view", - "media", - "stream" - ] - }, - "device-desktop": { - "keywords": [ - "computer", - "monitor" - ] - }, - "device-mobile": { - "keywords": [ - "phone", - "iphone", - "cellphone" - ] - }, - "diff": { - "keywords": [ - "difference", - "changes", - "compare" - ] - }, - "diff-added": { - "keywords": [ - "new", - "addition" - ] - }, - "diff-ignored": { - "keywords": [ - "slash" - ] - }, - "diff-modified": { - "keywords": [ - "dot", - "changed", - "updated" - ] - }, - "diff-removed": { - "keywords": [ - "deleted", - "subtracted", - "dash" - ] - }, - "diff-renamed": { - "keywords": [ - "moved", - "arrow" - ] - }, - "ellipsis": { - "keywords": [ - "read", - "more", - "hidden", - "expand" - ] - }, - "eye": { - "keywords": [ - "look", - "watch", - "see" - ] - }, - "file-binary": { - "keywords": [ - "image", - "video", - "word", - "powerpoint", - "excel" - ] - }, - "file-code": { - "keywords": [ - "text", - "javascript", - "html", - "css", - "php", - "ruby", - "coffeescript", - "sass", - "scss" - ] - }, - "file-directory": { - "keywords": [ - "folder" - ] - }, - "file-media": { - "keywords": [ - "image", - "video", - "audio" - ] - }, - "file-pdf": { - "keywords": [ - "adobe" - ] - }, - "file-submodule": { - "keywords": [ - "folder" - ] - }, - "file-symlink-directory": { - "keywords": [ - "folder", - "subfolder", - "link", - "alias" - ] - }, - "file-symlink-file": { - "keywords": [ - "link", - "alias" - ] - }, - "file-text": { - "keywords": [ - "document" - ] - }, - "file-zip": { - "keywords": [ - "compress", - "archive" - ] - }, - "flame": { - "keywords": [ - "fire", - "hot", - "burn", - "trending" - ] - }, - "fold": { - "keywords": [ - "unfold", - "hide", - "collapse" - ] - }, - "gear": { - "keywords": [ - "settings" - ] - }, - "gift": { - "keywords": [ - "package", - "present", - "skill", - "craft", - "freebie" - ] - }, - "gist": { - "keywords": [ - "gist", - "github" - ] - }, - "gist-secret": { - "keywords": [ - "gist", - "secret", - "private" - ] - }, - "git-branch": { - "keywords": [ - "branch", - "git" - ] - }, - "git-commit": { - "keywords": [ - "save" - ] - }, - "git-compare": { - "keywords": [ - "difference", - "changes" - ] - }, - "git-merge": { - "keywords": [ - "join" - ] - }, - "git-pull-request": { - "keywords": [ - "review" - ] - }, - "globe": { - "keywords": [ - "world" - ] - }, - "graph": { - "keywords": [ - "trend", - "stats", - "statistics" - ] - }, - "heart": { - "keywords": [ - "love" - ] - }, - "history": { - "keywords": [ - "time", - "past", - "revert", - "back" - ] - }, - "home": { - "keywords": [ - "welcome", - "index", - "house", - "building" - ] - }, - "horizontal-rule": { - "keywords": [ - "hr" - ] - }, - "hubot": { - "keywords": [ - "robot" - ] - }, - "inbox": { - "keywords": [ - "mail", - "todo", - "new", - "messages" - ] - }, - "info": { - "keywords": [ - "help" - ] - }, - "issue-closed": { - "keywords": [ - "done", - "complete" - ] - }, - "issue-opened": { - "keywords": [ - "new" - ] - }, - "issue-reopened": { - "keywords": [ - "regression" - ] - }, - "italic": { - "keywords": [ - "font", - "italic", - "style" - ] - }, - "jersey": { - "keywords": [ - "team", - "game", - "basketball" - ] - }, - "key": { - "keywords": [ - "key", - "lock", - "secure", - "safe" - ] - }, - "keyboard": { - "keywords": [ - "type", - "keys", - "write", - "shortcuts" - ] - }, - "law": { - "keywords": [ - "legal", - "bill" - ] - }, - "light-bulb": { - "keywords": [ - "idea" - ] - }, - "link": { - "keywords": [ - "connect", - "hyperlink" - ] - }, - "link-external": { - "keywords": [ - "out", - "see", - "more", - "go", - "to" - ] - }, - "list-ordered": { - "keywords": [ - "numbers", - "tasks", - "todo", - "items" - ] - }, - "list-unordered": { - "keywords": [ - "bullet", - "point", - "tasks", - "todo", - "items" - ] - }, - "location": { - "keywords": [ - "here", - "marker" - ] - }, - "lock": { - "keywords": [ - "secure", - "safe", - "protected" - ] - }, - "logo-gist": { - "keywords": [ - "logo", - "gist" - ] - }, - "logo-github": { - "keywords": [ - "brand" - ] - }, - "mail": { - "keywords": [ - "email", - "unread" - ] - }, - "mail-read": { - "keywords": [ - "email", - "open" - ] - }, - "mail-reply": { - "keywords": [ - "email" - ] - }, - "mark-github": { - "keywords": [ - "octocat" - ] - }, - "markdown": { - "keywords": [ - "markup", - "style" - ] - }, - "megaphone": { - "keywords": [ - "bullhorn", - "loud", - "shout", - "broadcast" - ] - }, - "mention": { - "keywords": [ - "at", - "ping" - ] - }, - "milestone": { - "keywords": [ - "marker" - ] - }, - "mirror": { - "keywords": [ - "reflect" - ] - }, - "mortar-board": { - "keywords": [ - "education", - "learn", - "teach" - ] - }, - "mute": { - "keywords": [ - "quiet", - "sound", - "audio", - "turn", - "off" - ] - }, - "no-newline": { - "keywords": [ - "return" - ] - }, - "octoface": { - "keywords": [ - "octocat" - ] - }, - "organization": { - "keywords": [ - "people", - "group", - "team" - ] - }, - "package": { - "keywords": [ - "box", - "ship" - ] - }, - "paintcan": { - "keywords": [ - "style", - "theme", - "art", - "color" - ] - }, - "pencil": { - "keywords": [ - "edit", - "change", - "update", - "write" - ] - }, - "person": { - "keywords": [ - "people", - "man", - "woman", - "human" - ] - }, - "pin": { - "keywords": [ - "people", - "save", - "star", - "bookmark" - ] - }, - "plug": { - "keywords": [ - "hook", - "webhook" - ] - }, - "plus": { - "keywords": [ - "add", - "new", - "more" - ] - }, - "plus-small": { - "keywords": [ - "add", - "new", - "more", - "small" - ] - }, - "primitive-dot": { - "keywords": [ - "circle" - ] - }, - "primitive-square": { - "keywords": [ - "box" - ] - }, - "pulse": { - "keywords": [ - "graph", - "trend", - "line" - ] - }, - "question": { - "keywords": [ - "help", - "explain" - ] - }, - "quote": { - "keywords": [ - "quotation" - ] - }, - "radio-tower": { - "keywords": [ - "broadcast" - ] - }, - "repo": { - "keywords": [ - "book", - "journal" - ] - }, - "repo-clone": { - "keywords": [ - "book", - "journal" - ] - }, - "repo-force-push": { - "keywords": [ - "book", - "journal", - "put" - ] - }, - "repo-forked": { - "keywords": [ - "book", - "journal", - "copy" - ] - }, - "repo-pull": { - "keywords": [ - "book", - "journal", - "get" - ] - }, - "repo-push": { - "keywords": [ - "book", - "journal", - "put" - ] - }, - "rocket": { - "keywords": [ - "staff", - "stafftools", - "blast", - "off", - "space" - ] - }, - "rss": { - "keywords": [ - "broadcast", - "feed" - ] - }, - "ruby": { - "keywords": [ - "code" - ] - }, - "search": { - "keywords": [ - "magnifying", - "glass" - ] - }, - "server": { - "keywords": [ - "computers", - "racks", - "ops" - ] - }, - "settings": { - "keywords": [ - "sliders", - "filters" - ] - }, - "shield": { - "keywords": [ - "protect", - "shield", - "lock" - ] - }, - "sign-in": { - "keywords": [ - "door", - "arrow", - "direction", - "enter" - ] - }, - "sign-out": { - "keywords": [ - "door", - "arrow", - "direction", - "leave" - ] - }, - "smiley": { - "keywords": [ - "emoji", - "smile", - "mood", - "emotion" - ] - }, - "squirrel": { - "keywords": [ - "ship", - "shipit" - ] - }, - "star": { - "keywords": [ - "save", - "remember", - "like" - ] - }, - "stop": { - "keywords": [ - "block", - "spam" - ] - }, - "sync": { - "keywords": [ - "cycle", - "refresh", - "loop" - ] - }, - "tag": { - "keywords": [ - "release" - ] - }, - "tasklist": { - "keywords": [ - "todo" - ] - }, - "telescope": { - "keywords": [ - "science", - "space", - "look", - "view", - "explore" - ] - }, - "terminal": { - "keywords": [ - "code", - "ops", - "shell" - ] - }, - "text-size": { - "keywords": [ - "font", - "size", - "text" - ] - }, - "three-bars": { - "keywords": [ - "hamburger" - ] - }, - "thumbsdown": { - "keywords": [ - "thumb", - "thumbsdown", - "rejected" - ] - }, - "thumbsup": { - "keywords": [ - "thumb", - "thumbsup", - "prop", - "ship" - ] - }, - "tools": { - "keywords": [ - "screwdriver", - "wrench", - "settings" - ] - }, - "trashcan": { - "keywords": [ - "garbage", - "rubbish", - "recycle", - "delete" - ] - }, - "triangle-down": { - "keywords": [ - "arrow", - "point", - "direction" - ] - }, - "triangle-left": { - "keywords": [ - "arrow", - "point", - "direction" - ] - }, - "triangle-right": { - "keywords": [ - "arrow", - "point", - "direction" - ] - }, - "triangle-up": { - "keywords": [ - "arrow", - "point", - "direction" - ] - }, - "unfold": { - "keywords": [ - "expand", - "open", - "reveal" - ] - }, - "unmute": { - "keywords": [ - "loud", - "volume", - "audio", - "sound", - "play" - ] - }, - "unverified": { - "keywords": [ - "insecure", - "untrusted" - ] - }, - "verified": { - "keywords": [ - "trusted", - "secure", - "trustworthy" - ] - }, - "versions": { - "keywords": [ - "history" - ] - }, - "watch": { - "keywords": [ - "wait", - "hourglass" - ] - }, - "x": { - "keywords": [ - "remove", - "close", - "delete" - ] - }, - "zap": { - "keywords": [ - "electricity", - "lightning", - "props", - "like", - "star", - "save" - ] - }, - "ellipses": { - "keywords": [ - "dot", - "more" - ] - }, - "file": { - "keywords": [ - "file" - ] - }, - "grabber": { - "keywords": [ - "mover", - "drap", - "drop" - ] - }, - "reply": { - "keywords": [ - "reply all", - "back" - ] - } -} diff --git a/lib/octicons.rb b/lib/octicons.rb index 0bfa33d..3e9e3fb 100644 --- a/lib/octicons.rb +++ b/lib/octicons.rb @@ -1,22 +1,12 @@ require "octicons/version" require "octicons/octicon" -require "nokogiri" require "json" module Octicons - OCTICONS_SVG_PATH = File.join(File.dirname(__FILE__), "svg/*.svg") + SPRITE_SHEET = File.read(File.join(File.dirname(__FILE__), "sprite.octicons.svg")).freeze + OCTICON_SYMBOLS = JSON.parse(File.read(File.join(File.dirname(__FILE__), "data.json"))).freeze - KEYWORDS = JSON.parse(File.read(File.join(File.dirname(__FILE__), "keywords.json"))) - CODEPOINTS = JSON.parse(File.read(File.join(File.dirname(__FILE__), "codepoints.json"))) - - OCTICON_SYMBOLS = {} - Dir[OCTICONS_SVG_PATH].each do |svg_path| - id = File.basename(svg_path, ".svg") - svg = Nokogiri::XML(File.read(svg_path)) - OCTICON_SYMBOLS[id] = { - :path => "", - :height => svg.css("svg").first["height"].to_i, - :width => svg.css("svg").first["width"].to_i - } + def self.sprite_sheet + SPRITE_SHEET.sub(">#{@path}" 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, "