pictogram 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.jshintrc +4 -0
  4. data/.nojekyll +0 -0
  5. data/.travis.yml +12 -0
  6. data/CODE_OF_CONDUCT.md +50 -0
  7. data/CONTRIBUTING.md +10 -0
  8. data/Gemfile +4 -0
  9. data/LICENSE.txt +22 -0
  10. data/README.md +60 -0
  11. data/Rakefile +1 -0
  12. data/index.html +126 -0
  13. data/index.js +29 -0
  14. data/index.test.js +26 -0
  15. data/lib/pictogram.rb +8 -0
  16. data/lib/pictogram/version.rb +3 -0
  17. data/package.json +24 -0
  18. data/pictogram.css +327 -0
  19. data/pictogram.gemspec +23 -0
  20. data/vendor/assets/images/actionscript/actionscript.json +21 -0
  21. data/vendor/assets/images/actionscript/actionscript.orig.png +0 -0
  22. data/vendor/assets/images/actionscript/actionscript.png +0 -0
  23. data/vendor/assets/images/alcatraz/alcatraz.json +22 -0
  24. data/vendor/assets/images/alcatraz/alcatraz.png +0 -0
  25. data/vendor/assets/images/alcatraz/alcatraz.svg +24 -0
  26. data/vendor/assets/images/apacheconf/apacheconf.gif +0 -0
  27. data/vendor/assets/images/apacheconf/apacheconf.json +18 -0
  28. data/vendor/assets/images/apacheconf/apacheconf.png +0 -0
  29. data/vendor/assets/images/assembly/assembly.json +27 -0
  30. data/vendor/assets/images/assembly/assembly.orig.png +0 -0
  31. data/vendor/assets/images/assembly/assembly.png +0 -0
  32. data/vendor/assets/images/atom/atom.json +32 -0
  33. data/vendor/assets/images/atom/atom.png +0 -0
  34. data/vendor/assets/images/biicode/biicode.json +31 -0
  35. data/vendor/assets/images/biicode/biicode.png +0 -0
  36. data/vendor/assets/images/bower/bower.json +34 -0
  37. data/vendor/assets/images/bower/bower.png +0 -0
  38. data/vendor/assets/images/c#/c#.json +27 -0
  39. data/vendor/assets/images/c#/c#.orig.png +0 -0
  40. data/vendor/assets/images/c#/c#.png +0 -0
  41. data/vendor/assets/images/c++/c++.json +28 -0
  42. data/vendor/assets/images/c++/c++.png +0 -0
  43. data/vendor/assets/images/c/c.json +27 -0
  44. data/vendor/assets/images/c/c.png +0 -0
  45. data/vendor/assets/images/cargo/cargo.json +31 -0
  46. data/vendor/assets/images/cargo/cargo.png +0 -0
  47. data/vendor/assets/images/carthage/carthage.json +33 -0
  48. data/vendor/assets/images/carthage/carthage.png +0 -0
  49. data/vendor/assets/images/clojars/clojars.json +31 -0
  50. data/vendor/assets/images/clojars/clojars.orig.png +0 -0
  51. data/vendor/assets/images/clojars/clojars.png +0 -0
  52. data/vendor/assets/images/clojure/clojure.json +34 -0
  53. data/vendor/assets/images/clojure/clojure.png +0 -0
  54. data/vendor/assets/images/cocoapods/cocoapods.json +35 -0
  55. data/vendor/assets/images/cocoapods/cocoapods.png +0 -0
  56. data/vendor/assets/images/coffeescript/coffeescript.json +18 -0
  57. data/vendor/assets/images/coffeescript/coffeescript.orig.png +0 -0
  58. data/vendor/assets/images/coffeescript/coffeescript.png +0 -0
  59. data/vendor/assets/images/cpan/cpan.json +27 -0
  60. data/vendor/assets/images/cpan/cpan.orig.png +0 -0
  61. data/vendor/assets/images/cpan/cpan.png +0 -0
  62. data/vendor/assets/images/cran/cran.json +28 -0
  63. data/vendor/assets/images/cran/cran.png +0 -0
  64. data/vendor/assets/images/crystal/crystal.json +33 -0
  65. data/vendor/assets/images/crystal/crystal.png +0 -0
  66. data/vendor/assets/images/css/css.json +18 -0
  67. data/vendor/assets/images/css/css.png +0 -0
  68. data/vendor/assets/images/css/css.svg +43 -0
  69. data/vendor/assets/images/d/d.json +34 -0
  70. data/vendor/assets/images/d/d.png +0 -0
  71. data/vendor/assets/images/dart/dart.json +35 -0
  72. data/vendor/assets/images/dart/dart.png +0 -0
  73. data/vendor/assets/images/dub/dub.json +18 -0
  74. data/vendor/assets/images/dub/dub.orig.png +0 -0
  75. data/vendor/assets/images/dub/dub.png +0 -0
  76. data/vendor/assets/images/elixir/elixir.json +34 -0
  77. data/vendor/assets/images/elixir/elixir.png +0 -0
  78. data/vendor/assets/images/elm/elm.json +34 -0
  79. data/vendor/assets/images/elm/elm.png +0 -0
  80. data/vendor/assets/images/emacs/emacs.json +26 -0
  81. data/vendor/assets/images/emacs/emacs.png +0 -0
  82. data/vendor/assets/images/erlang/erlang.json +26 -0
  83. data/vendor/assets/images/erlang/erlang.orig.png +0 -0
  84. data/vendor/assets/images/erlang/erlang.png +0 -0
  85. data/vendor/assets/images/f#/f#.json +35 -0
  86. data/vendor/assets/images/f#/f#.png +0 -0
  87. data/vendor/assets/images/fortran/fortran.json +26 -0
  88. data/vendor/assets/images/fortran/fortran.png +0 -0
  89. data/vendor/assets/images/game maker language/game maker language.json +27 -0
  90. data/vendor/assets/images/game maker language/game maker language.orig.png +0 -0
  91. data/vendor/assets/images/game maker language/game maker language.png +0 -0
  92. data/vendor/assets/images/go/go.json +35 -0
  93. data/vendor/assets/images/go/go.png +0 -0
  94. data/vendor/assets/images/groovy/groovy.json +34 -0
  95. data/vendor/assets/images/groovy/groovy.png +0 -0
  96. data/vendor/assets/images/hack/hack.json +27 -0
  97. data/vendor/assets/images/hack/hack.orig.png +0 -0
  98. data/vendor/assets/images/hack/hack.png +0 -0
  99. data/vendor/assets/images/hackage/hackage.json +34 -0
  100. data/vendor/assets/images/hackage/hackage.png +0 -0
  101. data/vendor/assets/images/handlebars/handlebars.json +27 -0
  102. data/vendor/assets/images/handlebars/handlebars.orig.png +0 -0
  103. data/vendor/assets/images/handlebars/handlebars.png +0 -0
  104. data/vendor/assets/images/haskell/haskell.json +34 -0
  105. data/vendor/assets/images/haskell/haskell.png +0 -0
  106. data/vendor/assets/images/haxe/haxe.json +28 -0
  107. data/vendor/assets/images/haxe/haxe.orig.png +0 -0
  108. data/vendor/assets/images/haxe/haxe.png +0 -0
  109. data/vendor/assets/images/hex/hex.json +33 -0
  110. data/vendor/assets/images/hex/hex.png +0 -0
  111. data/vendor/assets/images/homebrew/homebrew.json +32 -0
  112. data/vendor/assets/images/homebrew/homebrew.png +0 -0
  113. data/vendor/assets/images/html/html.json +18 -0
  114. data/vendor/assets/images/html/html.png +0 -0
  115. data/vendor/assets/images/html/html.svg +43 -0
  116. data/vendor/assets/images/inqlude/inqlude.json +26 -0
  117. data/vendor/assets/images/inqlude/inqlude.png +0 -0
  118. data/vendor/assets/images/jam/jam.json +21 -0
  119. data/vendor/assets/images/jam/jam.orig.png +0 -0
  120. data/vendor/assets/images/jam/jam.png +0 -0
  121. data/vendor/assets/images/java/java.json +26 -0
  122. data/vendor/assets/images/java/java.orig.png +0 -0
  123. data/vendor/assets/images/java/java.png +0 -0
  124. data/vendor/assets/images/javascript/javascript.json +35 -0
  125. data/vendor/assets/images/javascript/javascript.png +0 -0
  126. data/vendor/assets/images/julia/julia.json +34 -0
  127. data/vendor/assets/images/julia/julia.png +0 -0
  128. data/vendor/assets/images/livescript/livescript.json +27 -0
  129. data/vendor/assets/images/livescript/livescript.orig.png +0 -0
  130. data/vendor/assets/images/livescript/livescript.png +0 -0
  131. data/vendor/assets/images/lua/lua.json +34 -0
  132. data/vendor/assets/images/lua/lua.png +0 -0
  133. data/vendor/assets/images/make/make.json +27 -0
  134. data/vendor/assets/images/make/make.orig.png +0 -0
  135. data/vendor/assets/images/make/make.png +0 -0
  136. data/vendor/assets/images/makefile/makefile.json +27 -0
  137. data/vendor/assets/images/makefile/makefile.orig.png +0 -0
  138. data/vendor/assets/images/makefile/makefile.png +0 -0
  139. data/vendor/assets/images/maven/maven.json +26 -0
  140. data/vendor/assets/images/maven/maven.orig.png +0 -0
  141. data/vendor/assets/images/maven/maven.png +0 -0
  142. data/vendor/assets/images/meteor/meteor.json +35 -0
  143. data/vendor/assets/images/meteor/meteor.png +0 -0
  144. data/vendor/assets/images/nimble/nimble.json +35 -0
  145. data/vendor/assets/images/nimble/nimble.png +0 -0
  146. data/vendor/assets/images/nimrod/nimrod.json +35 -0
  147. data/vendor/assets/images/nimrod/nimrod.png +0 -0
  148. data/vendor/assets/images/npm/npm.json +34 -0
  149. data/vendor/assets/images/npm/npm.png +0 -0
  150. data/vendor/assets/images/nuget/nuget.json +34 -0
  151. data/vendor/assets/images/nuget/nuget.png +0 -0
  152. data/vendor/assets/images/packagist/packagist.json +34 -0
  153. data/vendor/assets/images/packagist/packagist.png +0 -0
  154. data/vendor/assets/images/perl/perl.gif +0 -0
  155. data/vendor/assets/images/perl/perl.json +18 -0
  156. data/vendor/assets/images/perl/perl.png +0 -0
  157. data/vendor/assets/images/perl6/perl6.json +26 -0
  158. data/vendor/assets/images/perl6/perl6.png +0 -0
  159. data/vendor/assets/images/php/php.json +34 -0
  160. data/vendor/assets/images/php/php.png +0 -0
  161. data/vendor/assets/images/platformio/platformio.json +32 -0
  162. data/vendor/assets/images/platformio/platformio.png +0 -0
  163. data/vendor/assets/images/powershell/powershell.json +35 -0
  164. data/vendor/assets/images/powershell/powershell.png +0 -0
  165. data/vendor/assets/images/pub/pub.json +35 -0
  166. data/vendor/assets/images/pub/pub.png +0 -0
  167. data/vendor/assets/images/puppet/puppet.json +34 -0
  168. data/vendor/assets/images/puppet/puppet.png +0 -0
  169. data/vendor/assets/images/purescript/purescript.json +35 -0
  170. data/vendor/assets/images/purescript/purescript.png +0 -0
  171. data/vendor/assets/images/pypi/pypi.json +34 -0
  172. data/vendor/assets/images/pypi/pypi.png +0 -0
  173. data/vendor/assets/images/python/python.json +34 -0
  174. data/vendor/assets/images/python/python.png +0 -0
  175. data/vendor/assets/images/r/r.json +28 -0
  176. data/vendor/assets/images/r/r.png +0 -0
  177. data/vendor/assets/images/ruby/ruby.json +34 -0
  178. data/vendor/assets/images/ruby/ruby.orig.png +0 -0
  179. data/vendor/assets/images/ruby/ruby.png +0 -0
  180. data/vendor/assets/images/rubygems/rubygems.json +32 -0
  181. data/vendor/assets/images/rubygems/rubygems.png +0 -0
  182. data/vendor/assets/images/rust/rust.json +34 -0
  183. data/vendor/assets/images/rust/rust.png +0 -0
  184. data/vendor/assets/images/scala/scala.json +35 -0
  185. data/vendor/assets/images/scala/scala.png +0 -0
  186. data/vendor/assets/images/scheme/scheme.json +25 -0
  187. data/vendor/assets/images/scheme/scheme.png +0 -0
  188. data/vendor/assets/images/shards/shards.json +33 -0
  189. data/vendor/assets/images/shards/shards.png +0 -0
  190. data/vendor/assets/images/sublime/sublime.json +26 -0
  191. data/vendor/assets/images/sublime/sublime.png +0 -0
  192. data/vendor/assets/images/swift/swift.json +26 -0
  193. data/vendor/assets/images/swift/swift.png +0 -0
  194. data/vendor/assets/images/tex/tex.json +28 -0
  195. data/vendor/assets/images/tex/tex.orig.png +0 -0
  196. data/vendor/assets/images/tex/tex.png +0 -0
  197. data/vendor/assets/images/typescript/typescript.json +27 -0
  198. data/vendor/assets/images/typescript/typescript.orig.png +0 -0
  199. data/vendor/assets/images/typescript/typescript.png +0 -0
  200. data/vendor/assets/images/wordpress/wordpress.json +34 -0
  201. data/vendor/assets/images/wordpress/wordpress.png +0 -0
  202. data/vendor/assets/images/xml/xml.json +26 -0
  203. data/vendor/assets/images/xml/xml.orig.png +0 -0
  204. data/vendor/assets/images/xml/xml.png +0 -0
  205. data/vendor/assets/stylesheets/pictogram.css +326 -0
  206. metadata +291 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 687706299da98c0674ab00dcaee760e4c248f666
4
+ data.tar.gz: e8a2dcb3709c2d899057dec8e68ca327a05ef877
5
+ SHA512:
6
+ metadata.gz: a1ecb5b604f0e21b4540eb87320f18693a5f0fcc8e019585e0f898689a01920ed6f6351d010c5d3148da1f3718a3e9ce1f113e55dff820c964ec63636997db59
7
+ data.tar.gz: 4238a1901dfe5518e47fc510032be0de1fa018da463de8c5e5ee0f7a42a1fd4323b93ebc2a479397655a6c1953ee065ff0e9bce9ace8271e5383faaee242da13
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ node_modules
2
+ /.bundle/
3
+ /.yardoc
4
+ /Gemfile.lock
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /pkg/
9
+ /spec/reports/
10
+ /tmp/
data/.jshintrc ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "asi":true,
3
+ "esnext": true
4
+ }
data/.nojekyll ADDED
File without changes
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+
2
+ language: node_js
3
+ node_js:
4
+ - "5.2"
5
+ - "4.1"
6
+ - "4.0"
7
+ - "0.12"
8
+ - "0.11"
9
+ - "0.10"
10
+ - "0.8"
11
+ - "0.6"
12
+ - "iojs"
@@ -0,0 +1,50 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This Code of Conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at andrewnez@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+
45
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
46
+ version 1.3.0, available at
47
+ [http://contributor-covenant.org/version/1/3/0/][version]
48
+
49
+ [homepage]: http://contributor-covenant.org
50
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,10 @@
1
+ # Contributing
2
+
3
+ * Fork the project.
4
+ * Make your feature addition or bug fix.
5
+ * Add tests for it. This is important so I don't break it in a future version unintentionally.
6
+ * Send a pull request. Bonus points for topic branches.
7
+
8
+ ## Code of Conduct
9
+
10
+ Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pictogram.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Oli Evans
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+
2
+ _ __
3
+ ___ (_) ____ / /_ ___ ___ _ ____ ___ _ __ _
4
+ / _ \ / / / __// __// _ \ / _ `/ / __// _ `/ / ' \
5
+ / .__//_/ \__/ \__/ \___/ \_, / /_/ \_,_/ /_/_/_/
6
+ /_/ /___/
7
+
8
+ A pictorial symbol for a word or phrase.
9
+
10
+ A libraries.io project.
11
+
12
+
13
+ # [Pictogram](http://libraries.io/npm/pictogram)
14
+
15
+ A simple service to map human concepts to pictures.
16
+
17
+ **Install via npm**
18
+ ```sh
19
+ npm install pictogram
20
+ ```
21
+
22
+ **Grab the metadata for a pictogram**
23
+
24
+ ```js
25
+ var ruby = pictogram.meta('ruby')
26
+ console.log(ruby)
27
+ ```
28
+
29
+ ```json
30
+ {
31
+ "name": "ruby",
32
+ "file": "ruby/ruby.png",
33
+ "source": {
34
+ "url": "https://avatars0.githubusercontent.com/u/210414?v=3&s=200",
35
+ "referrer": "https://github.com/ruby",
36
+ "headers": {
37
+ "date": "Sat, 14 Mar 2015 10:15:13 GMT",
38
+ "content-type": "image/png",
39
+ "last-modified": "Wed, 19 Oct 2011 12:21:53 GMT",
40
+ }
41
+ }
42
+ }
43
+ ```
44
+
45
+ **Grab a stream to a pictogram for a given word**
46
+
47
+ ```js
48
+ var ruby = pictogram('ruby')
49
+ ```
50
+ ![ruby pictogram](https://avatars0.githubusercontent.com/u/210414?v=3&s=200)
51
+
52
+
53
+ ## picto - the pictogram wrangling cli
54
+
55
+ ```sh
56
+ npm install -g picto
57
+ picto show haskell
58
+ ```
59
+
60
+ ![picto show haskell](https://cloud.githubusercontent.com/assets/58871/6697281/78d00dbe-cce7-11e4-9399-7ff7095be34d.png)
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/index.html ADDED
@@ -0,0 +1,126 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <title>Pictogram - a libraries.io project</title>
5
+ <link rel="stylesheet" href="pictogram.css" charset="utf-8">
6
+ <style>
7
+ body{
8
+ background:white;
9
+ font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
10
+ margin:0;
11
+ }
12
+ header{
13
+ display:block;
14
+ background: #222;
15
+ border-image: linear-gradient(90deg, #1abc9c 15%, #2ecc71 15%, #2ecc71 12%, #3498db 12%, #3498db 32%, #9b59b6 32%, #9b59b6 35%, #34495e 35%, #34495e 55%, #f1c40f 55%, #f1c40f 59%, #e67e22 59%, #e67e22 63%, #e74c3c 63%, #e74c3c 82%, #ecf0f1 82%, #ecf0f1 92%, #95a5a6 92%);
16
+ border-image-slice: 1;
17
+ border-top:0 none;
18
+ border-left: 0 none;
19
+ border-right: 0 none;
20
+ }
21
+ h1{
22
+ color: #eee;
23
+ font-size: 18px;
24
+ font-weight:200;
25
+ letter-spacing:1px;
26
+ padding: 8px 0 8px 1em;
27
+ margin:0;
28
+
29
+ }
30
+ .pictograms{
31
+ text-align:center;
32
+ }
33
+ .pictogram {
34
+ display:inline-block;
35
+ width:100px;
36
+ height:100px;
37
+ margin:40px;
38
+ }
39
+ </style>
40
+ </head>
41
+ <body>
42
+ <header>
43
+ <h1>Pictogram</h1>
44
+ </header>
45
+ <div class="pictograms">
46
+ <div title="actionscript" class="pictogram pictogram-actionscript"></div>
47
+ <div title="alcatraz" class="pictogram pictogram-alcatraz"></div>
48
+ <div title="apacheconf" class="pictogram pictogram-apacheconf"></div>
49
+ <div title="assembly" class="pictogram pictogram-assembly"></div>
50
+ <div title="atom" class="pictogram pictogram-atom"></div>
51
+ <div title="biicode" class="pictogram pictogram-biicode"></div>
52
+ <div title="bower" class="pictogram pictogram-bower"></div>
53
+ <div title="c" class="pictogram pictogram-c"></div>
54
+ <div title="c#" class="pictogram pictogram-c#"></div>
55
+ <div title="c++" class="pictogram pictogram-c++"></div>
56
+ <div title="cargo" class="pictogram pictogram-cargo"></div>
57
+ <div title="carthage" class="pictogram pictogram-carthage"></div>
58
+ <div title="clojars" class="pictogram pictogram-clojars"></div>
59
+ <div title="clojure" class="pictogram pictogram-clojure"></div>
60
+ <div title="cocoapods" class="pictogram pictogram-cocoapods"></div>
61
+ <div title="coffeescript" class="pictogram pictogram-coffeescript"></div>
62
+ <div title="cpan" class="pictogram pictogram-cpan"></div>
63
+ <div title="cran" class="pictogram pictogram-cran"></div>
64
+ <div title="css" class="pictogram pictogram-css"></div>
65
+ <div title="d" class="pictogram pictogram-d"></div>
66
+ <div title="dart" class="pictogram pictogram-dart"></div>
67
+ <div title="dub" class="pictogram pictogram-dub"></div>
68
+ <div title="elixir" class="pictogram pictogram-elixir"></div>
69
+ <div title="elm" class="pictogram pictogram-elm"></div>
70
+ <div title="emacs" class="pictogram pictogram-emacs"></div>
71
+ <div title="erlang" class="pictogram pictogram-erlang"></div>
72
+ <div title="f#" class="pictogram pictogram-f#"></div>
73
+ <div title="fortran" class="pictogram pictogram-fortran"></div>
74
+ <div title="game maker language" class="pictogram pictogram-game maker language"></div>
75
+ <div title="go" class="pictogram pictogram-go"></div>
76
+ <div title="groovy" class="pictogram pictogram-groovy"></div>
77
+ <div title="hack" class="pictogram pictogram-hack"></div>
78
+ <div title="hackage" class="pictogram pictogram-hackage"></div>
79
+ <div title="handlebars" class="pictogram pictogram-handlebars"></div>
80
+ <div title="haskell" class="pictogram pictogram-haskell"></div>
81
+ <div title="haxe" class="pictogram pictogram-haxe"></div>
82
+ <div title="hex" class="pictogram pictogram-hex"></div>
83
+ <div title="homebrew" class="pictogram pictogram-homebrew"></div>
84
+ <div title="html" class="pictogram pictogram-html"></div>
85
+ <div title="inqlude" class="pictogram pictogram-inqlude"></div>
86
+ <div title="jam" class="pictogram pictogram-jam"></div>
87
+ <div title="java" class="pictogram pictogram-java"></div>
88
+ <div title="javascript" class="pictogram pictogram-javascript"></div>
89
+ <div title="julia" class="pictogram pictogram-julia"></div>
90
+ <div title="livescript" class="pictogram pictogram-livescript"></div>
91
+ <div title="lua" class="pictogram pictogram-lua"></div>
92
+ <div title="make" class="pictogram pictogram-make"></div>
93
+ <div title="makefile" class="pictogram pictogram-makefile"></div>
94
+ <div title="maven" class="pictogram pictogram-maven"></div>
95
+ <div title="meteor" class="pictogram pictogram-meteor"></div>
96
+ <div title="nimble" class="pictogram pictogram-nimble"></div>
97
+ <div title="nimrod" class="pictogram pictogram-nimrod"></div>
98
+ <div title="npm" class="pictogram pictogram-npm"></div>
99
+ <div title="nuget" class="pictogram pictogram-nuget"></div>
100
+ <div title="packagist" class="pictogram pictogram-packagist"></div>
101
+ <div title="perl" class="pictogram pictogram-perl"></div>
102
+ <div title="perl6" class="pictogram pictogram-perl6"></div>
103
+ <div title="php" class="pictogram pictogram-php"></div>
104
+ <div title="platformio" class="pictogram pictogram-platformio"></div>
105
+ <div title="powershell" class="pictogram pictogram-powershell"></div>
106
+ <div title="pub" class="pictogram pictogram-pub"></div>
107
+ <div title="puppet" class="pictogram pictogram-puppet"></div>
108
+ <div title="purescript" class="pictogram pictogram-purescript"></div>
109
+ <div title="pypi" class="pictogram pictogram-pypi"></div>
110
+ <div title="python" class="pictogram pictogram-python"></div>
111
+ <div title="r" class="pictogram pictogram-r"></div>
112
+ <div title="ruby" class="pictogram pictogram-ruby"></div>
113
+ <div title="rubygems" class="pictogram pictogram-rubygems"></div>
114
+ <div title="rust" class="pictogram pictogram-rust"></div>
115
+ <div title="scala" class="pictogram pictogram-scala"></div>
116
+ <div title="scheme" class="pictogram pictogram-scheme"></div>
117
+ <div title="sublime" class="pictogram pictogram-sublime"></div>
118
+ <div title="swift" class="pictogram pictogram-swift"></div>
119
+ <div title="tex" class="pictogram pictogram-tex"></div>
120
+ <div title="typescript" class="pictogram pictogram-typescript"></div>
121
+ <div title="wordpress" class="pictogram pictogram-wordpress"></div>
122
+ <div title="xml" class="pictogram pictogram-xml"></div>
123
+ </div>
124
+ </body>
125
+ </html>
126
+
data/index.js ADDED
@@ -0,0 +1,29 @@
1
+ const fs = require('fs')
2
+ const path = require('path')
3
+
4
+ module.exports = function (name, dir) {
5
+ return fs.createReadStream(pathTo(name, 'png', dir))
6
+ }
7
+
8
+ module.exports.meta = function (name, dir) {
9
+ return require(pathTo(name, 'json', dir))
10
+ }
11
+
12
+ module.exports.url = function (name, dir) {
13
+ return require(pathTo(name, 'json', dir)).source.url
14
+ }
15
+
16
+ module.exports.list = function (dir) {
17
+ dir = dir || __dirname
18
+ return fs.readdirSync(path.join(dir, 'vendor', 'assets', 'images'))
19
+ .filter(function (item) {
20
+ return item.indexOf('.') === -1
21
+ })
22
+ }
23
+
24
+ function pathTo(name, ext, dir) {
25
+ dir = dir || __dirname
26
+ if (!ext) return path.join(dir, 'vendor', 'assets', 'images', name)
27
+ var file = name + '.' + ext
28
+ return path.join(dir, 'vendor', 'assets', 'images', name, file)
29
+ }
data/index.test.js ADDED
@@ -0,0 +1,26 @@
1
+ var test = require('tape')
2
+ var pictorgram = require('./index.js')
3
+
4
+ test('pictorgram.meta', function (t){
5
+ t.plan(1)
6
+ var ruby = pictorgram.meta('ruby')
7
+ var expected = require('./vendor/assets/images/ruby/ruby.json')
8
+ t.equals(ruby, expected)
9
+ })
10
+
11
+ test('pictorgram.url', function (t){
12
+ t.plan(1)
13
+ var ruby = pictorgram.url('ruby')
14
+ var expected = require('./vendor/assets/images/ruby/ruby.json').source.url
15
+ t.equals(ruby, expected)
16
+ })
17
+
18
+ test('pictorgram.list', function (t){
19
+ t.plan(5)
20
+ var list = pictorgram.list()
21
+ t.equals(list[0], 'actionscript', 'actionscript is first alphabetically.')
22
+ t.equals(list[list.length - 1], 'xml', 'xml is last alphabetically.')
23
+ t.equals(list.indexOf('LICENSE'), -1, 'No LICENSE')
24
+ t.equals(list.indexOf('package.json'), -1, 'No files with dots in the name')
25
+ t.equals(list.indexOf('.gitignore'), -1, 'No files with dots at the front')
26
+ })
data/lib/pictogram.rb ADDED
@@ -0,0 +1,8 @@
1
+ require "pictogram/version"
2
+
3
+ module Pictogram
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ module Pictogram
2
+ VERSION = "2.0.0"
3
+ end
data/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "pictogram",
3
+ "version": "2.0.0",
4
+ "description": "Mapping human concepts to pictures.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/olizilla/pictogram"
9
+ },
10
+ "author": {
11
+ "name": "olizilla",
12
+ "email": "oli@zilla.org.uk"
13
+ },
14
+ "main": "index.js",
15
+ "scripts": {
16
+ "test": "node index.test.js",
17
+ "deref": "find . -type l -exec cp '{}' '{}'.deref \\; -exec mv -f '{}'.deref '{}' \\;",
18
+ "optipng": "find . -name '*.png' \\! -name '*.orig.png' -exec optipng -o5 {} \\;"
19
+ },
20
+ "devDependencies": {
21
+ "tape": "^4.3.0"
22
+ },
23
+ "dependencies": {}
24
+ }
data/pictogram.css ADDED
@@ -0,0 +1,327 @@
1
+ .pictogram {
2
+ width:40px;
3
+ height:40px;
4
+ background: rgba(200,200,200,0.1) no-repeat;
5
+ background-size: 100%;
6
+ }
7
+ .pictogram-lg {
8
+ width:60px;
9
+ height:60px;
10
+ }
11
+ .pictogram-actionscript {
12
+ background-image: url(https://librariesio.github.io/pictogram/actionscript/actionscript.png);
13
+ background-color: transparent;
14
+ }
15
+ .pictogram-alcatraz {
16
+ background-image: url(https://librariesio.github.io/pictogram/alcatraz/alcatraz.png);
17
+ background-color: transparent;
18
+ }
19
+ .pictogram-apacheconf {
20
+ background-image: url(https://librariesio.github.io/pictogram/apacheconf/apacheconf.png);
21
+ background-color: transparent;
22
+ }
23
+ .pictogram-assembly {
24
+ background-image: url(https://librariesio.github.io/pictogram/assembly/assembly.png);
25
+ background-color: transparent;
26
+ }
27
+ .pictogram-atom {
28
+ background-image: url(https://librariesio.github.io/pictogram/atom/atom.png);
29
+ background-color: transparent;
30
+ }
31
+ .pictogram-biicode {
32
+ background-image: url(https://librariesio.github.io/pictogram/biicode/biicode.png);
33
+ background-color: transparent;
34
+ }
35
+ .pictogram-bower {
36
+ background-image: url(https://librariesio.github.io/pictogram/bower/bower.png);
37
+ background-color: transparent;
38
+ }
39
+ .pictogram-c {
40
+ background-image: url(https://librariesio.github.io/pictogram/c/c.png);
41
+ background-color: transparent;
42
+ }
43
+ .pictogram-c\# {
44
+ background-image: url(https://librariesio.github.io/pictogram/c%23/c%23.png);
45
+ background-color: transparent;
46
+ }
47
+ .pictogram-c\+\+ {
48
+ background-image: url(https://librariesio.github.io/pictogram/c%2B%2B/c%2B%2B.png);
49
+ background-color: transparent;
50
+ }
51
+ .pictogram-cargo {
52
+ background-image: url(https://librariesio.github.io/pictogram/cargo/cargo.png);
53
+ background-color: transparent;
54
+ }
55
+ .pictogram-carthage {
56
+ background-image: url(https://librariesio.github.io/pictogram/carthage/carthage.png);
57
+ background-color: transparent;
58
+ }
59
+ .pictogram-clojars {
60
+ background-image: url(https://librariesio.github.io/pictogram/clojars/clojars.png);
61
+ background-color: transparent;
62
+ }
63
+ .pictogram-clojure {
64
+ background-image: url(https://librariesio.github.io/pictogram/clojure/clojure.png);
65
+ background-color: transparent;
66
+ }
67
+ .pictogram-cocoapods {
68
+ background-image: url(https://librariesio.github.io/pictogram/cocoapods/cocoapods.png);
69
+ background-color: transparent;
70
+ }
71
+ .pictogram-coffeescript {
72
+ background-image: url(https://librariesio.github.io/pictogram/coffeescript/coffeescript.png);
73
+ background-color: transparent;
74
+ }
75
+ .pictogram-cpan {
76
+ background-image: url(https://librariesio.github.io/pictogram/cpan/cpan.png);
77
+ background-color: transparent;
78
+ }
79
+ .pictogram-cran {
80
+ background-image: url(https://librariesio.github.io/pictogram/cran/cran.png);
81
+ background-color: transparent;
82
+ }
83
+ .pictogram-crystal {
84
+ background-image: url(https://librariesio.github.io/pictogram/crystal/crystal.png);
85
+ background-color: transparent;
86
+ }
87
+ .pictogram-css {
88
+ background-image: url(https://librariesio.github.io/pictogram/css/css.png);
89
+ background-color: transparent;
90
+ }
91
+ .pictogram-d {
92
+ background-image: url(https://librariesio.github.io/pictogram/d/d.png);
93
+ background-color: transparent;
94
+ }
95
+ .pictogram-dart {
96
+ background-image: url(https://librariesio.github.io/pictogram/dart/dart.png);
97
+ background-color: transparent;
98
+ }
99
+ .pictogram-dub {
100
+ background-image: url(https://librariesio.github.io/pictogram/dub/dub.png);
101
+ background-color: transparent;
102
+ }
103
+ .pictogram-elixir {
104
+ background-image: url(https://librariesio.github.io/pictogram/elixir/elixir.png);
105
+ background-color: transparent;
106
+ }
107
+ .pictogram-elm {
108
+ background-image: url(https://librariesio.github.io/pictogram/elm/elm.png);
109
+ background-color: transparent;
110
+ }
111
+ .pictogram-emacs {
112
+ background-image: url(https://librariesio.github.io/pictogram/emacs/emacs.png);
113
+ background-color: transparent;
114
+ }
115
+ .pictogram-erlang {
116
+ background-image: url(https://librariesio.github.io/pictogram/erlang/erlang.png);
117
+ background-color: transparent;
118
+ }
119
+ .pictogram-f\# {
120
+ background-image: url(https://librariesio.github.io/pictogram/f%23/f%23.png);
121
+ background-color: transparent;
122
+ }
123
+ .pictogram-fortran {
124
+ background-image: url(https://librariesio.github.io/pictogram/fortran/fortran.png);
125
+ background-color: transparent;
126
+ }
127
+ .pictogram-game\ maker\ language {
128
+ background-image: url(https://librariesio.github.io/pictogram/game%20maker%20language/game%20maker%20language.png);
129
+ background-color: transparent;
130
+ }
131
+ .pictogram-go {
132
+ background-image: url(https://librariesio.github.io/pictogram/go/go.png);
133
+ background-color: transparent;
134
+ }
135
+ .pictogram-groovy {
136
+ background-image: url(https://librariesio.github.io/pictogram/groovy/groovy.png);
137
+ background-color: transparent;
138
+ }
139
+ .pictogram-hack {
140
+ background-image: url(https://librariesio.github.io/pictogram/hack/hack.png);
141
+ background-color: transparent;
142
+ }
143
+ .pictogram-hackage {
144
+ background-image: url(https://librariesio.github.io/pictogram/hackage/hackage.png);
145
+ background-color: transparent;
146
+ }
147
+ .pictogram-handlebars {
148
+ background-image: url(https://librariesio.github.io/pictogram/handlebars/handlebars.png);
149
+ background-color: transparent;
150
+ }
151
+ .pictogram-haskell {
152
+ background-image: url(https://librariesio.github.io/pictogram/haskell/haskell.png);
153
+ background-color: transparent;
154
+ }
155
+ .pictogram-haxe {
156
+ background-image: url(https://librariesio.github.io/pictogram/haxe/haxe.png);
157
+ background-color: transparent;
158
+ }
159
+ .pictogram-hex {
160
+ background-image: url(https://librariesio.github.io/pictogram/hex/hex.png);
161
+ background-color: transparent;
162
+ }
163
+ .pictogram-homebrew {
164
+ background-image: url(https://librariesio.github.io/pictogram/homebrew/homebrew.png);
165
+ background-color: transparent;
166
+ }
167
+ .pictogram-html {
168
+ background-image: url(https://librariesio.github.io/pictogram/html/html.png);
169
+ background-color: transparent;
170
+ }
171
+ .pictogram-inqlude {
172
+ background-image: url(https://librariesio.github.io/pictogram/inqlude/inqlude.png);
173
+ background-color: transparent;
174
+ }
175
+ .pictogram-jam {
176
+ background-image: url(https://librariesio.github.io/pictogram/jam/jam.png);
177
+ background-color: transparent;
178
+ }
179
+ .pictogram-java {
180
+ background-image: url(https://librariesio.github.io/pictogram/java/java.png);
181
+ background-color: transparent;
182
+ }
183
+ .pictogram-javascript {
184
+ background-image: url(https://librariesio.github.io/pictogram/javascript/javascript.png);
185
+ background-color: transparent;
186
+ }
187
+ .pictogram-julia {
188
+ background-image: url(https://librariesio.github.io/pictogram/julia/julia.png);
189
+ background-color: transparent;
190
+ }
191
+ .pictogram-livescript {
192
+ background-image: url(https://librariesio.github.io/pictogram/livescript/livescript.png);
193
+ background-color: transparent;
194
+ }
195
+ .pictogram-lua {
196
+ background-image: url(https://librariesio.github.io/pictogram/lua/lua.png);
197
+ background-color: transparent;
198
+ }
199
+ .pictogram-make {
200
+ background-image: url(https://librariesio.github.io/pictogram/make/make.png);
201
+ background-color: transparent;
202
+ }
203
+ .pictogram-makefile {
204
+ background-image: url(https://librariesio.github.io/pictogram/makefile/makefile.png);
205
+ background-color: transparent;
206
+ }
207
+ .pictogram-maven {
208
+ background-image: url(https://librariesio.github.io/pictogram/maven/maven.png);
209
+ background-color: transparent;
210
+ }
211
+ .pictogram-meteor {
212
+ background-image: url(https://librariesio.github.io/pictogram/meteor/meteor.png);
213
+ background-color: transparent;
214
+ }
215
+ .pictogram-nimble {
216
+ background-image: url(https://librariesio.github.io/pictogram/nimble/nimble.png);
217
+ background-color: transparent;
218
+ }
219
+ .pictogram-nimrod {
220
+ background-image: url(https://librariesio.github.io/pictogram/nimrod/nimrod.png);
221
+ background-color: transparent;
222
+ }
223
+ .pictogram-npm {
224
+ background-image: url(https://librariesio.github.io/pictogram/npm/npm.png);
225
+ background-color: transparent;
226
+ }
227
+ .pictogram-nuget {
228
+ background-image: url(https://librariesio.github.io/pictogram/nuget/nuget.png);
229
+ background-color: transparent;
230
+ }
231
+ .pictogram-packagist {
232
+ background-image: url(https://librariesio.github.io/pictogram/packagist/packagist.png);
233
+ background-color: transparent;
234
+ }
235
+ .pictogram-perl {
236
+ background-image: url(https://librariesio.github.io/pictogram/perl/perl.png);
237
+ background-color: transparent;
238
+ }
239
+ .pictogram-perl6 {
240
+ background-image: url(https://librariesio.github.io/pictogram/perl6/perl6.png);
241
+ background-color: transparent;
242
+ }
243
+ .pictogram-php {
244
+ background-image: url(https://librariesio.github.io/pictogram/php/php.png);
245
+ background-color: transparent;
246
+ }
247
+ .pictogram-platformio {
248
+ background-image: url(https://librariesio.github.io/pictogram/platformio/platformio.png);
249
+ background-color: transparent;
250
+ }
251
+ .pictogram-powershell {
252
+ background-image: url(https://librariesio.github.io/pictogram/powershell/powershell.png);
253
+ background-color: transparent;
254
+ }
255
+ .pictogram-pub {
256
+ background-image: url(https://librariesio.github.io/pictogram/pub/pub.png);
257
+ background-color: transparent;
258
+ }
259
+ .pictogram-puppet {
260
+ background-image: url(https://librariesio.github.io/pictogram/puppet/puppet.png);
261
+ background-color: transparent;
262
+ }
263
+ .pictogram-purescript {
264
+ background-image: url(https://librariesio.github.io/pictogram/purescript/purescript.png);
265
+ background-color: transparent;
266
+ }
267
+ .pictogram-pypi {
268
+ background-image: url(https://librariesio.github.io/pictogram/pypi/pypi.png);
269
+ background-color: transparent;
270
+ }
271
+ .pictogram-python {
272
+ background-image: url(https://librariesio.github.io/pictogram/python/python.png);
273
+ background-color: transparent;
274
+ }
275
+ .pictogram-r {
276
+ background-image: url(https://librariesio.github.io/pictogram/r/r.png);
277
+ background-color: transparent;
278
+ }
279
+ .pictogram-ruby {
280
+ background-image: url(https://librariesio.github.io/pictogram/ruby/ruby.png);
281
+ background-color: transparent;
282
+ }
283
+ .pictogram-rubygems {
284
+ background-image: url(https://librariesio.github.io/pictogram/rubygems/rubygems.png);
285
+ background-color: transparent;
286
+ }
287
+ .pictogram-rust {
288
+ background-image: url(https://librariesio.github.io/pictogram/rust/rust.png);
289
+ background-color: transparent;
290
+ }
291
+ .pictogram-scala {
292
+ background-image: url(https://librariesio.github.io/pictogram/scala/scala.png);
293
+ background-color: transparent;
294
+ }
295
+ .pictogram-scheme {
296
+ background-image: url(https://librariesio.github.io/pictogram/scheme/scheme.png);
297
+ background-color: transparent;
298
+ }
299
+ .pictogram-shards {
300
+ background-image: url(https://librariesio.github.io/pictogram/shards/shards.png);
301
+ background-color: transparent;
302
+ }
303
+ .pictogram-sublime {
304
+ background-image: url(https://librariesio.github.io/pictogram/sublime/sublime.png);
305
+ background-color: transparent;
306
+ }
307
+ .pictogram-swift {
308
+ background-image: url(https://librariesio.github.io/pictogram/swift/swift.png);
309
+ background-color: transparent;
310
+ }
311
+ .pictogram-tex {
312
+ background-image: url(https://librariesio.github.io/pictogram/tex/tex.png);
313
+ background-color: transparent;
314
+ }
315
+ .pictogram-typescript {
316
+ background-image: url(https://librariesio.github.io/pictogram/typescript/typescript.png);
317
+ background-color: transparent;
318
+ }
319
+ .pictogram-wordpress {
320
+ background-image: url(https://librariesio.github.io/pictogram/wordpress/wordpress.png);
321
+ background-color: transparent;
322
+ }
323
+ .pictogram-xml {
324
+ background-image: url(https://librariesio.github.io/pictogram/xml/xml.png);
325
+ background-color: transparent;
326
+ }
327
+