fluxbox_apps_menu 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluxbox_apps_menu (1.1.1)
4
+ fluxbox_apps_menu (1.1.2)
5
5
  inifile (~> 3.0)
6
6
  thor
7
7
 
data/README.md CHANGED
@@ -33,7 +33,15 @@ the _~/.fluxbox_ folder
33
33
 
34
34
  $ fluxbox_apps_menu menuconfig
35
35
 
36
- Get help
36
+ When the application menu is built it can be included in
37
+ your main fluxbox menu file (usually *~/.fluxbox/menu*) adding
38
+ the row below where you want display it:
39
+
40
+ [include] (~/.fluxbox/menu-apps)
41
+
42
+ ## Get help
43
+
44
+ Where to start
37
45
 
38
46
  $ fluxbox_apps_menu help
39
47
 
@@ -41,12 +49,10 @@ Get help for a specific task
41
49
 
42
50
  $ fluxbox_apps_menu help build
43
51
  $ fluxbox_apps_menu help menuconfig
52
+
53
+ More help
44
54
 
45
- When the application's menu is built it can be included in
46
- your main fluxbox menu file (usually *~/.fluxbox/menu*) adding
47
- the row below where you want display it:
48
-
49
- [include] (~/.fluxbox/menu-apps)
55
+ - The wiki page: https://github.com/fabiomux/fluxbox_apps_menu/wiki
50
56
 
51
57
  ## Contributing
52
58
 
@@ -49,7 +49,7 @@ module FluxboxAppsMenu
49
49
  end
50
50
 
51
51
  def terminal?
52
- %w(true 0).include? @ini['Desktop Entry']['Terminal'].to_s
52
+ %w(true 1).include? @ini['Desktop Entry']['Terminal'].to_s
53
53
  end
54
54
 
55
55
  def categories
@@ -30,11 +30,14 @@ module FluxboxAppsMenu
30
30
  private
31
31
 
32
32
  def menu_item(label, icon, type = 'exec', command = nil)
33
- label = " (#{label})" unless label.to_s.empty?
34
- icon = " <#{icon}>" unless icon.to_s.empty?
35
- command = " {#{command}}" unless command.nil?
36
-
37
- "[#{type}]#{label}#{command}#{icon}"
33
+ str = []
34
+ str << "[#{type}]"
35
+ str << "(#{label.gsub(/(?<!\\)\)/, '\)')})" unless label.to_s.empty?
36
+ str << "{#{command}}" unless command.nil?
37
+ str << "<#{icon}>" unless icon.to_s.empty?
38
+
39
+ # "[#{type}]#{label}#{command}#{icon}"
40
+ str.join(' ')
38
41
  end
39
42
 
40
43
  def traverse_menu(menu, cat, label, selected_index = nil)
@@ -1,3 +1,3 @@
1
1
  module FluxboxAppsMenu
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluxbox_apps_menu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-16 00:00:00.000000000 Z
12
+ date: 2015-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler