emojidex-desktop 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/{emojidex-desktop → bin/emojidex} +3 -3
- data/emojidex-desktop.gemspec +3 -1
- data/{ButtonPage.rb → lib/emojidex-desktop/button_page.rb} +1 -1
- data/{EmojiButton.rb → lib/emojidex-desktop/emoji_button.rb} +1 -1
- data/{EmojiManager.rb → lib/emojidex-desktop/emoji_manager.rb} +4 -2
- data/{main_window.glade → lib/emojidex-desktop/main_window.glade} +0 -0
- data/{MainWindow.rb → lib/emojidex-desktop/main_window.rb} +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae86fa97828847ada9b446e6d9e152944fb22937
|
4
|
+
data.tar.gz: 104f0f37e2538f034ae6ae8312074ffdd201e817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca05196fcc63f60ccfb76184ed52ef83a2d05a00ba3074cb71455b4361c0109fd3c2d6ebf8434c43bf012462124f8b299d70f7b2d9d8bc65657983f012f17a80
|
7
|
+
data.tar.gz: 2052ef1a2737d98737d6a727ed8a07baa036f982d7866583cf865a9e171e737600f7c85ec2351654a2b8f293df5621939c1e706e4ebd2e511d850e79d045392f
|
data/.gitignore
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
# Licensed under the GPL v3
|
6
6
|
|
7
7
|
require 'emojidex-toolkit'
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
require_relative '../lib/emojidex-desktop/main_window.rb'
|
9
|
+
require_relative '../lib/emojidex-desktop/button_page.rb'
|
10
|
+
require_relative '../lib/emojidex-desktop/emoji_manager.rb'
|
11
11
|
|
12
12
|
module Events
|
13
13
|
def self.on_mainwindow_create(window)
|
data/emojidex-desktop.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'emojidex-desktop'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.2'
|
4
4
|
s.license = "GNU GPL v3"
|
5
5
|
s.summary = "Desktop client and tools for emojidex"
|
6
6
|
s.description = ""
|
@@ -9,5 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.files = `git ls-files`.split("\n")
|
10
10
|
s.homepage = 'http://emojidex.com/dev'
|
11
11
|
|
12
|
+
s.executables << 'emojidex'
|
13
|
+
|
12
14
|
s.add_dependency 'emojidex-toolkit'
|
13
15
|
end
|
@@ -5,7 +5,9 @@ require 'gtk3'
|
|
5
5
|
require 'emojidex-toolkit'
|
6
6
|
|
7
7
|
class << EMOJI_MANAGER = Object.new
|
8
|
-
|
8
|
+
CACHE_DIRECTORY = ENV['HOME'] + '/.emojidex/cache/' # cache root
|
9
|
+
puts "Cache dir: " + CACHE_DIRECTORY
|
10
|
+
|
9
11
|
attr_reader :categories # { String => [Emojidex::Emoji] }
|
10
12
|
|
11
13
|
def initialize
|
@@ -21,7 +23,7 @@ class << EMOJI_MANAGER = Object.new
|
|
21
23
|
def get_picture(emoji_name)
|
22
24
|
unless @picts[emoji_name]
|
23
25
|
@mutex.synchronize do
|
24
|
-
@converter.convert_from_name! @utf,
|
26
|
+
@converter.convert_from_name! @utf, CACHE_DIRECTORY,
|
25
27
|
emoji_name, { :size => :mdpi }
|
26
28
|
emoji = @utf.where_name(emoji_name)
|
27
29
|
pict = Gdk::Pixbuf.new(emoji.image_paths[0])
|
File without changes
|
@@ -11,7 +11,7 @@ class MainWindow
|
|
11
11
|
def initialize
|
12
12
|
# load .glade file
|
13
13
|
@builder = Gtk::Builder.new
|
14
|
-
@builder.add_from_file 'main_window.glade'
|
14
|
+
@builder.add_from_file File.expand_path('../main_window.glade', __FILE__)
|
15
15
|
|
16
16
|
# quit events
|
17
17
|
@builder['main_window'].signal_connect 'delete_event' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emojidex-desktop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei Kagetsuki
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: emojidex-toolkit
|
@@ -27,21 +27,22 @@ dependencies:
|
|
27
27
|
version: '0'
|
28
28
|
description: ''
|
29
29
|
email: zero@genshin.org
|
30
|
-
executables:
|
30
|
+
executables:
|
31
|
+
- emojidex
|
31
32
|
extensions: []
|
32
33
|
extra_rdoc_files: []
|
33
34
|
files:
|
34
35
|
- .gitignore
|
35
|
-
- ButtonPage.rb
|
36
|
-
- EmojiButton.rb
|
37
|
-
- EmojiManager.rb
|
38
36
|
- Gemfile
|
39
37
|
- LICENSE
|
40
|
-
- MainWindow.rb
|
41
38
|
- README.md
|
42
|
-
- emojidex
|
39
|
+
- bin/emojidex
|
43
40
|
- emojidex-desktop.gemspec
|
44
|
-
-
|
41
|
+
- lib/emojidex-desktop/button_page.rb
|
42
|
+
- lib/emojidex-desktop/emoji_button.rb
|
43
|
+
- lib/emojidex-desktop/emoji_manager.rb
|
44
|
+
- lib/emojidex-desktop/main_window.glade
|
45
|
+
- lib/emojidex-desktop/main_window.rb
|
45
46
|
homepage: http://emojidex.com/dev
|
46
47
|
licenses:
|
47
48
|
- GNU GPL v3
|