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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01500ca5d178c667411efd65498e0dbd4cfe6840
4
- data.tar.gz: 815db9d6d42de7c70f02247fee8533b3ff718d0f
3
+ metadata.gz: ae86fa97828847ada9b446e6d9e152944fb22937
4
+ data.tar.gz: 104f0f37e2538f034ae6ae8312074ffdd201e817
5
5
  SHA512:
6
- metadata.gz: 38d706fb1bebacb7c448556fc4c6ee5d954319e5f69f28d4e23a2ec5c98e9982034f7bf27de53d2ee733029b29b60085dcdbf2e89f92c24c30cdaf0014dfb3c2
7
- data.tar.gz: 1ecde96112990f9f244a1526a1e49069a54ca39ab80eecc1ef400613f6f7a9f819459fa90cc49276eff7128df96d96fca2b4f822a688485c3c9f3cbde1e8b3f2
6
+ metadata.gz: ca05196fcc63f60ccfb76184ed52ef83a2d05a00ba3074cb71455b4361c0109fd3c2d6ebf8434c43bf012462124f8b299d70f7b2d9d8bc65657983f012f17a80
7
+ data.tar.gz: 2052ef1a2737d98737d6a727ed8a07baa036f982d7866583cf865a9e171e737600f7c85ec2351654a2b8f293df5621939c1e706e4ebd2e511d850e79d045392f
data/.gitignore CHANGED
@@ -5,4 +5,4 @@
5
5
  .DS_Store
6
6
  .project
7
7
  Gemfile.lock
8
- png/
8
+ *.gem
@@ -5,9 +5,9 @@
5
5
  # Licensed under the GPL v3
6
6
 
7
7
  require 'emojidex-toolkit'
8
- require './MainWindow.rb'
9
- require './ButtonPage.rb'
10
- require './EmojiManager.rb'
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)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'emojidex-desktop'
3
- s.version = '0.0.1'
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
@@ -1,6 +1,6 @@
1
1
  # buttonpage.rb
2
2
  require 'gtk3'
3
- require './EmojiButton.rb' # class EmojiButton
3
+ require_relative 'emoji_button.rb' # class EmojiButton
4
4
 
5
5
  #
6
6
  # Notebook's tab page for "EmojiButton"s.
@@ -2,7 +2,7 @@
2
2
  # emojibutton.rb
3
3
  #
4
4
  require 'gtk3'
5
- require './EmojiManager.rb'
5
+ require_relative 'emoji_manager.rb'
6
6
 
7
7
  #
8
8
  # each Emoji buttons
@@ -5,7 +5,9 @@ require 'gtk3'
5
5
  require 'emojidex-toolkit'
6
6
 
7
7
  class << EMOJI_MANAGER = Object.new
8
- PICTURE_DIRECTORY = './png/' # .png file root
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, PICTURE_DIRECTORY,
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])
@@ -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.1
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-20 00:00:00.000000000 Z
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-desktop
39
+ - bin/emojidex
43
40
  - emojidex-desktop.gemspec
44
- - main_window.glade
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