rubybuntu-gedit 11.09.29 → 11.09.30
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/bin/rubybuntu-gedit +19 -13
- data/data/language-specs/ruby.lang +1 -1
- data/rubybuntu-gedit.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -19,4 +19,8 @@ Either checkout the sub-repositories (in the data directory) and install each on
|
|
19
19
|
gem install rubybuntu-gedit
|
20
20
|
rubybuntu-gedit install
|
21
21
|
|
22
|
+
Want to tweak parts of the source to your needs? Try this one in the project dir:
|
23
|
+
|
24
|
+
rake install && rubybuntu-gedit install specs --sudo
|
25
|
+
|
22
26
|
== J-_-L
|
data/bin/rubybuntu-gedit
CHANGED
@@ -24,19 +24,25 @@ if ARGV.shift != 'install'
|
|
24
24
|
exit
|
25
25
|
end
|
26
26
|
|
27
|
+
@sudo = false # auto sudo
|
28
|
+
|
27
29
|
if ARGV.empty?
|
28
30
|
@todo = [:specs, :mime, :styles, :snippets]
|
29
31
|
else
|
30
32
|
@todo = []
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
33
|
+
while arg = ARGV.shift
|
34
|
+
case arg
|
35
|
+
when "--sudo"
|
36
|
+
@sudo = true
|
37
|
+
when /specs/
|
38
|
+
@todo << :specs
|
39
|
+
when /mime/
|
40
|
+
@todo << :mime
|
41
|
+
when /styles/
|
42
|
+
@todo << :styles
|
43
|
+
when /snippets/
|
44
|
+
@todo << :snippets
|
45
|
+
end
|
40
46
|
end
|
41
47
|
end
|
42
48
|
|
@@ -63,7 +69,7 @@ def specs
|
|
63
69
|
puts Paint["\nLet's start with copying the language specs\n", :underline]
|
64
70
|
print "Q] Do you want to install the languages specs as sudo [/usr/share/gtksourceview-2.0/language-specs]\n" \
|
65
71
|
" or in your home directory [~/.local/share/gtksourceview-2.0/language-specs]? [Sh] "
|
66
|
-
if gets.chop =~ /^s?$/i
|
72
|
+
if @sudo || gets.chop =~ /^s?$/i
|
67
73
|
action "sudo cp #@data/language-specs/*.lang /usr/share/gtksourceview-2.0/language-specs"
|
68
74
|
else
|
69
75
|
action "mkdir -p ~/.local/share/gtksourceview-2.0/language-specs\n" \
|
@@ -82,7 +88,7 @@ def mime
|
|
82
88
|
puts Paint["\nNow the mime types should be updated\n", :underline]
|
83
89
|
print "Q] Do you want to install the mime types as sudo [/usr/share/mime/packages]\n" \
|
84
90
|
" or in your home directory [~/.local/share/gtksourceview-2.0/language-specs]? [Sh] "
|
85
|
-
if gets.chop =~ /^s?$/i
|
91
|
+
if @sudo || gets.chop =~ /^s?$/i
|
86
92
|
action "sudo cp #@data/mime/*.xml /usr/share/mime/packages\n" \
|
87
93
|
" sudo update-mime-database /usr/share/mime"
|
88
94
|
else
|
@@ -101,11 +107,11 @@ def styles
|
|
101
107
|
puts Paint["\nNow, some styles get copied that use the new language specs :)\n", :underline]
|
102
108
|
print "Q] Do you want to install the styles as sudo [/usr/share/gtksourceview-2.0/styles]\n" \
|
103
109
|
" or in your home directory [~/.local/share/gtksourceview-2.0/styles]? [Sh] "
|
104
|
-
if gets.chop =~ /^s?$/i
|
110
|
+
if @sudo || gets.chop =~ /^s?$/i
|
105
111
|
action "sudo cp #@data/styles/*.xml /usr/share/gtksourceview-2.0/styles"
|
106
112
|
else
|
107
113
|
action "mkdir -p ~/.local/share/gtksourceview-2.0/styles\n" \
|
108
|
-
" cp #@data/
|
114
|
+
" cp #@data/styles/*.xml ~/.local/share/gtksourceview-2.0/styles"
|
109
115
|
end
|
110
116
|
end
|
111
117
|
|
@@ -1405,6 +1405,7 @@
|
|
1405
1405
|
<context ref="ternary-operators"/>
|
1406
1406
|
<context ref="hash-symbols"/>
|
1407
1407
|
|
1408
|
+
<context ref="keywords"/>
|
1408
1409
|
<context ref="important-methods"/>
|
1409
1410
|
<context ref="special-values"/>
|
1410
1411
|
|
@@ -1431,7 +1432,6 @@
|
|
1431
1432
|
<context ref="operators"/>
|
1432
1433
|
<context ref="syntax-chars"/>
|
1433
1434
|
|
1434
|
-
<context ref="keywords"/>
|
1435
1435
|
<context ref="methods"/>
|
1436
1436
|
|
1437
1437
|
<context ref="question-mark-string"/>
|
data/rubybuntu-gedit.gemspec
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems' unless defined? Gem
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "rubybuntu-gedit"
|
6
|
-
s.version = Time.now.strftime("%y.%m.%d")
|
6
|
+
s.version = "11.09.30"# Time.now.strftime("%y.%m.%d")
|
7
7
|
s.authors = ["Jan Lelis", "Snippets by Christoph Olszowka", "Please see individual files for author and license"]
|
8
8
|
s.email = "mail@janlelis.de"
|
9
9
|
s.homepage = "https://github.com/janlelis/rubybuntu-gedit"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubybuntu-gedit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.09.
|
4
|
+
version: 11.09.30
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ date: 2011-09-29 00:00:00.000000000Z
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: paint
|
18
|
-
requirement: &
|
18
|
+
requirement: &4851880 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *4851880
|
27
27
|
description: Ruby/Rails/Web related gedit language definitions, mime types, styles
|
28
28
|
and snippets.
|
29
29
|
email: mail@janlelis.de
|