bconv 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/bconv +23 -17
  3. metadata +38 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a2ee9a53ba762929e67f01c9250b8f5d41ff9ea
4
- data.tar.gz: 848942f749535612beb4c00a0c21f800b40e0881
3
+ metadata.gz: 3f3626786734cace9e1b7214e86a4700fa00f86e
4
+ data.tar.gz: be00cfea98dcca463cf181e41102903a0eddb4c5
5
5
  SHA512:
6
- metadata.gz: cd24ae77b608b5466535fadf0e39be5ca0fc89bb151bede6e8bfb749ae85c2ae2db8f68f1b629bfd064882bfa092351fba7b8adb2026fc99938626dd6358987b
7
- data.tar.gz: 9f64cc426f59bd05940d5ac5ea1340e0e782b8b5158d2249bf59dab4c229f5377b341512770d3807d5b1c5c7444b3d191d507c2b152b1772af1f818cd12d0a16
6
+ metadata.gz: 63504b439b76c8d1b95ed9530cc5267e82725177ddbb1d677001b73f17de37bc6fd988d0dabf214acf4dc485c3a0878aac551e3a29fd4dee2a90e14124ac98ff
7
+ data.tar.gz: edd777eff6406e7a4f0c012a032332fdb99575a488e05ba97b3ac16047b9971654cd29b7d39f6a04a55a1fb366ac1b8a9fb3a91ab59fa76ac673c4f5f5496ba6
data/bin/bconv CHANGED
@@ -1,9 +1,9 @@
1
- #!/usr/bin/env ruby19
1
+ #!/usr/bin/env ruby
2
2
  # encoding: UTF-8
3
3
 
4
4
  #############################################################################
5
5
  # Yet Another ImageMagic Frontend #
6
- # (C) 2010-2011, Vasiliy Yeremeyev <vayerx@gmail.com> #
6
+ # (C) 2010-2016, Vasiliy Yeremeyev <vayerx@gmail.com> #
7
7
  # #
8
8
  # This program is free software: you can redistribute it and/or modify #
9
9
  # it under the terms of the GNU General Public License as published by #
@@ -26,7 +26,7 @@
26
26
 
27
27
  require 'bconv'
28
28
  require 'parseconfig'
29
- require 'libglade2'
29
+ require 'gtk3'
30
30
 
31
31
  class ConverterGUI
32
32
  MIN_RATIO = 65
@@ -68,15 +68,18 @@ class ConverterGUI
68
68
  end
69
69
 
70
70
  def on_src_button_clicked
71
- dialog = Gtk::FileChooserDialog.new("Выбери исходную папку",
72
- @main_window,
73
- Gtk::FileChooser::ACTION_SELECT_FOLDER,
74
- nil,
75
- [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL],
76
- [Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT])
71
+ dialog = Gtk::FileChooserDialog.new(
72
+ :title => "Выбери исходную папку",
73
+ :parent => @main_window,
74
+ :action => Gtk::FileChooserAction::SELECT_FOLDER,
75
+ :buttons => [
76
+ [Gtk::Stock::OPEN, Gtk::ResponseType::ACCEPT],
77
+ [Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL]
78
+ ]
79
+ )
77
80
 
78
81
  dialog.current_folder = @src_edit.text
79
- if dialog.run == Gtk::Dialog::RESPONSE_ACCEPT
82
+ if dialog.run == Gtk::ResponseType::ACCEPT
80
83
  preload_dir(@src_edit.text = dialog.filename)
81
84
  end
82
85
  dialog.destroy
@@ -89,15 +92,18 @@ class ConverterGUI
89
92
  end
90
93
 
91
94
  def on_dest_button_clicked
92
- dialog = Gtk::FileChooserDialog.new("Выбери папку для результата",
93
- @main_window,
94
- Gtk::FileChooser::ACTION_SELECT_FOLDER,
95
- nil,
96
- [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL],
97
- [Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT])
95
+ dialog = Gtk::FileChooserDialog.new(
96
+ :title => "Выбери папку для результата",
97
+ :parent => @main_window,
98
+ :action => Gtk::FileChooserAction::SELECT_FOLDER,
99
+ :buttons => [
100
+ [Gtk::Stock::OPEN, Gtk::ResponseType::ACCEPT],
101
+ [Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL]
102
+ ]
103
+ )
98
104
 
99
105
  dialog.current_folder = @dest_edit.text
100
- if dialog.run == Gtk::Dialog::RESPONSE_ACCEPT
106
+ if dialog.run == Gtk::ResponseType::ACCEPT
101
107
  @dest_edit.text = dialog.filename
102
108
  end
103
109
  dialog.destroy
metadata CHANGED
@@ -1,29 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bconv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasiliy Yeremeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-09 00:00:00.000000000 Z
11
+ date: 2016-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parseconfig
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 1.0.4
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - '>='
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 1.0.4
33
+ - !ruby/object:Gem::Dependency
34
+ name: gtk3
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '3.0'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.0.7
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '3.0'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.0.7
27
53
  description: Yet another ImageMagick hardcore gui-frontend with multi-threading. Only
28
54
  Russian language is supported.
29
55
  email: vayerx@gmail.com
@@ -32,12 +58,12 @@ executables:
32
58
  extensions: []
33
59
  extra_rdoc_files: []
34
60
  files:
35
- - lib/bconv.rb
36
- - data/bconv.glade
37
61
  - bin/bconv
62
+ - data/bconv.glade
63
+ - lib/bconv.rb
38
64
  homepage: http://github.com/vayerx/bconv
39
65
  licenses:
40
- - GPL-3
66
+ - GPL-3.0
41
67
  metadata: {}
42
68
  post_install_message:
43
69
  rdoc_options: []
@@ -45,18 +71,18 @@ require_paths:
45
71
  - lib
46
72
  required_ruby_version: !ruby/object:Gem::Requirement
47
73
  requirements:
48
- - - ~>
74
+ - - "~>"
49
75
  - !ruby/object:Gem::Version
50
- version: 1.9.2
76
+ version: '2.1'
51
77
  required_rubygems_version: !ruby/object:Gem::Requirement
52
78
  requirements:
53
- - - '>='
79
+ - - ">="
54
80
  - !ruby/object:Gem::Version
55
81
  version: '0'
56
82
  requirements:
57
- - libglade2, v2.6 or higher
83
+ - imagemagick
58
84
  rubyforge_project:
59
- rubygems_version: 2.0.14
85
+ rubygems_version: 2.6.2
60
86
  signing_key:
61
87
  specification_version: 4
62
88
  summary: ImageMagick frontend for fast jpeg compression.