fedux_org-stdlib 0.11.5 → 0.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fedux_org_stdlib/icon.rb +26 -0
- data/lib/fedux_org_stdlib/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb106f72122b16e48471876622f9d5eb4ddca1ff
|
4
|
+
data.tar.gz: 497f5d1cd191546d87d79f49cce6afae7837d9b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54091ed894cd2d149e98565bf795243ce288c60c9d1bb8c8af838ef2589367eec54a9e008e952ab0782f270394a8cafb191cd73f3b67f90e5db185d09d4876dc
|
7
|
+
data.tar.gz: abeb08782021ef91b33289f542f9be5da693a769924512f53bbec19d1a4f6c01f76c3e23286770ef83db4bf009fdb16db086088fb3e82461d4c80c5837391e82
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require_library %w(geo_pattern)
|
3
|
+
|
4
|
+
module FeduxOrgStdlib
|
5
|
+
class Icon
|
6
|
+
extend Forwardable
|
7
|
+
|
8
|
+
def_delegator :@icon, :uri_image, :to_data_uri
|
9
|
+
|
10
|
+
@patterns = %w(overlapping_rings xes mosaic_squares concentric_circles diamonds tessellation triangles squares)
|
11
|
+
|
12
|
+
# see http://pln.jonas.me/xterm-colors for examples
|
13
|
+
@colors = %w(#080808 #121212 #1c1c1c #262626 #303030 #3a3a3a #444444 #4e4e4e
|
14
|
+
#585858 #626262 #6c6c6c #767676 #808080 #8a8a8a #949494 #9e9e9e
|
15
|
+
#a8a8a8 b2b2b2 #bcbcbc #c6c6c6 #d0d0d0 #dadada #e4e4e4
|
16
|
+
#eeeeee)
|
17
|
+
|
18
|
+
class << self
|
19
|
+
attr_reader :patterns, :colors
|
20
|
+
end
|
21
|
+
|
22
|
+
def initialize(string, color: '#9e9e9e')
|
23
|
+
@icon = GeoPattern.generate(string, color: color, patterns: Icon.patterns)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fedux_org-stdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Meyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- lib/fedux_org_stdlib/gem_plugins/no_plugin.rb
|
95
95
|
- lib/fedux_org_stdlib/gem_plugins/plugin.rb
|
96
96
|
- lib/fedux_org_stdlib/gem_plugins/plugin_manager.rb
|
97
|
+
- lib/fedux_org_stdlib/icon.rb
|
97
98
|
- lib/fedux_org_stdlib/list.rb
|
98
99
|
- lib/fedux_org_stdlib/locale_configurator.rb
|
99
100
|
- lib/fedux_org_stdlib/logging.rb
|