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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc427727280e467a41cb572e2f9bcb7a6cc6bacd
4
- data.tar.gz: 8f4fe1b5a4dfec824b8d3522bc8ee3e741a8a034
3
+ metadata.gz: bb106f72122b16e48471876622f9d5eb4ddca1ff
4
+ data.tar.gz: 497f5d1cd191546d87d79f49cce6afae7837d9b0
5
5
  SHA512:
6
- metadata.gz: a5979eb7ca3a7adfb24bc104127ddad9337ee9d47374d10744b4b17feb7b9d3fd4d2dc1abba807d30587d54c40370442960df7e0ec50adb1c656f17ad3edc219
7
- data.tar.gz: 30004823eb995f781e8c547f2a4d62cc7d0e656b6c6ab897b99be338b1a87ef589c30814f029ddffcdd89befd35cec95c1005d565bbb829b68ee6ac6abde41a9
6
+ metadata.gz: 54091ed894cd2d149e98565bf795243ce288c60c9d1bb8c8af838ef2589367eec54a9e008e952ab0782f270394a8cafb191cd73f3b67f90e5db185d09d4876dc
7
+ data.tar.gz: abeb08782021ef91b33289f542f9be5da693a769924512f53bbec19d1a4f6c01f76c3e23286770ef83db4bf009fdb16db086088fb3e82461d4c80c5837391e82
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fedux_org-stdlib (0.11.4)
4
+ fedux_org-stdlib (0.11.5)
5
5
  activesupport
6
6
 
7
7
  PATH
@@ -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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.11.5'
4
+ VERSION = '0.11.6'
5
5
  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.5
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-22 00:00:00.000000000 Z
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