emojidex 0.0.14 → 0.0.15

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: 9597942e4abdd2d2c58714ec62de141f64d15032
4
- data.tar.gz: ec8347cf5f7357fb97bbce433c8668d5c08c15fb
3
+ metadata.gz: a5aa5a571100c978758792040b7a4e933beb44a3
4
+ data.tar.gz: 58eaaaf75a50398b004a4a6bf16a88fc79790a0d
5
5
  SHA512:
6
- metadata.gz: f2aa7880af07bb3f956478628cd5e66b454002cdca6480356e5cab3994f0c2a031f4738ef7cc17efb9f91aa91f92e3847cea7224b09309f44cf44ac989f65878
7
- data.tar.gz: e168e9cfb48f065b033d9278e9659245080847550ec5d169124a1ca9698aa04d61977ced907c35dcab04e19e8324a462d82ced25e74d0ee4449666f965312c51
6
+ metadata.gz: 84d1bd53eb541fe4c8709c01c6365f90d4cb3bbce664efe7b9fe201d92367b09fe7d4564e7324c678a436c1b1a541eb2f616846e643ae5d2acdd189e38cce26b
7
+ data.tar.gz: 085df57fe2961ef41e3565bf486b3feaa7aae87e088b0295c54e8cfff5dd70ec4ec0acdadfb5d9e523761232e1c0852d88ca76ba771e056277677d83cb075ece
data/README.md CHANGED
@@ -9,24 +9,6 @@ emojidex core tools and scripts in Ruby. Provides a set of tools to utilize emoj
9
9
 
10
10
  License
11
11
  =======
12
- There are three choices for licensing of emojidex libraries and assets. In each case emoji assets are Copyright Genshin Souzou Kabushiki Kaisha [Phantom Creation Inc.]. Emoji images may be used under the terms of the emojidex emoji use license. Use in digital distrobution is subject to the terms and conditions below. Emoji may not be used on commercial printed material or in any commercial physical production without a separate license.
12
+ emojidex and emojidex tools are licensed under the [emoji Open License](https://www.emojidex.com/emojidex/emojidex_open_license).
13
13
 
14
- Closed or Open Source Software with emojidex service:
15
- -----------------------------------------------------
16
- When used in conjuction with the emojidex service and without disabling or obstructing features or connectivity emojidex-toolkit may be used in commercial or closed source applications. In this situation all sources are considered to be licensed under the LGPL version 3. Emoji assets are not subject to the LGPL and remain copyrighted licensed works.
17
-
18
- Closed Source software without emojidex service:
19
- ------------------------------------------------
20
- A separate license is required. Please contact info@genshin.org .
21
-
22
- Open Source Software without emojidex service:
23
- -------------------------------------------
24
- When used with features disabled or modified to circumvent emojidex services in any way this software is dual licensed under the GPLv3 and AGPLv3 and as such you software must be licensed under the GPL v3 or your service must be licensed under the AGPL v3. Including images in any format without sources is equivilent to including sources; such that the inclusion of any image assets from emojidex will require you to apply the GPL v3 and AGPL v3 to your software/project.
25
-
26
- Licensing of Images:
27
- --------------------
28
- All image assets are copyright 2013 Genshin Souzou Kabushiki Kaisha and a copyright notice must be included. Usage of these assets in printed material requires a separate license. Usage of images in software requires compliance to the licensing conditions above. Usage of images in virtual form outside of the context of software projects requires written permission from Genshin Souzou K.K. and may require a separate license.
29
-
30
- License fees may be wholly waived for non-religiously affiliated educational institutions and parties who are working for greater social or scientific benefit. Please inquire.
31
-
32
- For all license requests please contact info@genshin.org
14
+ ©2013 Genshin Souzou K.K. [Phantom Creation Inc.]
data/emojidex.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'emojidex'
3
- s.version = '0.0.14'
4
- s.license = 'GPL-3, AGPL-3'
3
+ s.version = '0.0.15'
4
+ s.license = 'emojiOL'
5
5
  s.summary = 'emojidex Ruby tools'
6
6
  s.description = 'emojidex emoji handling, search and lookup, listing and caching functionality' \
7
7
  ' and user info (favorites/etc).'
@@ -13,6 +13,27 @@ module Emojidex
13
13
  end
14
14
  end
15
15
 
16
+ # each override to map each functionality to the categories hash
17
+ def each(&block)
18
+ @categories.values.each(&block)
19
+ end
20
+
21
+ # select override to map select functionality to the categories hash
22
+ def select(&block)
23
+ @categories.values.select(&block)
24
+ end
25
+
26
+ # map override to map each functionality to the categories hash
27
+ def map(&block)
28
+ @categories.values.map(&block)
29
+ end
30
+
31
+ # collect override to map each functionality to the categories hash
32
+ def collect(&block)
33
+ @categories.values.collect(&block)
34
+ end
35
+
36
+ # loads categories from a JSON hash object / JSON text
16
37
  def load_categories(json)
17
38
  raw = JSON.parse(json, symbolize_names: true)
18
39
  raw = raw[:categories]
@@ -24,6 +45,8 @@ module Emojidex
24
45
  end
25
46
  end
26
47
 
48
+ # loads standard categories local to the emojidex package
49
+ # *automatically called on initialize if no options are passed
27
50
  def load_standard_categories
28
51
  load_categories(IO.read(
29
52
  File.expand_path('../../../emoji/categories.json', __FILE__)))
@@ -11,8 +11,9 @@ module Emojidex
11
11
  class Collection
12
12
  include Emojidex::CollectionCache
13
13
  include Emojidex::CollectionAssetInformation
14
- attr_accessor :emoji, :categories
15
- attr_reader :source_path, :vector_source_path, :raster_source_path
14
+ attr_accessor :emoji, :categories,
15
+ :source_path, :vector_source_path, :raster_source_path
16
+
16
17
  # Initialize Collection. You can pass a list of emoji to seed the collection
17
18
  def initialize(emoji_list = nil, local_load_path = nil)
18
19
  @emoji = {}
data/spec/utf_spec.rb CHANGED
@@ -31,7 +31,7 @@ describe Emojidex::UTF do
31
31
 
32
32
  describe '.find_by_code' do
33
33
  it 'finds and returns an emoji by code' do
34
- ss = utf.find_by_code('shooting_star')
34
+ ss = utf.find_by_code('stars')
35
35
  expect(ss).to be_an_instance_of(Emojidex::Emoji)
36
36
  end
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emojidex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-10-03 00:00:00.000000000 Z
14
+ date: 2014-10-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faraday
@@ -138,7 +138,7 @@ files:
138
138
  - spec/utf_spec.rb
139
139
  homepage: http://developer.emojidex.com
140
140
  licenses:
141
- - GPL-3, AGPL-3
141
+ - emojiOL
142
142
  metadata: {}
143
143
  post_install_message:
144
144
  rdoc_options: []
@@ -161,4 +161,3 @@ signing_key:
161
161
  specification_version: 4
162
162
  summary: emojidex Ruby tools
163
163
  test_files: []
164
- has_rdoc: