rubybuntu-gedit 11.08.18
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/README.rdoc +20 -0
- data/Rakefile +28 -0
- data/bin/rubybuntu-gedit +88 -0
- data/data/language-specs/README.rdoc +73 -0
- data/data/language-specs/erb.lang +53 -0
- data/data/language-specs/html-erb.lang +48 -0
- data/data/language-specs/javascript-erb.lang +23 -0
- data/data/language-specs/ruby-bundler-gemfile-lock.lang +101 -0
- data/data/language-specs/ruby-erb.lang +22 -0
- data/data/language-specs/ruby.lang +1068 -0
- data/data/language-specs/ruby.lang-extras/important-constants.rb +7 -0
- data/data/language-specs/ruby.lang-extras/important-methods.rb +3 -0
- data/data/language-specs/ruby.lang-extras/known-bugs.rb +11 -0
- data/data/language-specs/xml-erb.lang +22 -0
- data/data/language-specs/yml-erb.lang +21 -0
- data/data/mime/README.rdoc +17 -0
- data/data/mime/cucumber.xml +9 -0
- data/data/mime/haml.xml +8 -0
- data/data/mime/ruby-builder.xml +9 -0
- data/data/mime/ruby-bundler.xml +13 -0
- data/data/mime/ruby-capistrano.xml +9 -0
- data/data/mime/ruby-erb.xml +62 -0
- data/data/mime/ruby-rack.xml +8 -0
- data/data/mime/ruby-rake.xml +10 -0
- data/data/mime/ruby-thor.xml +10 -0
- data/data/mime/ruby.xml +13 -0
- data/data/mime/sass.xml +14 -0
- data/data/mime/slim.xml +8 -0
- data/data/snippets/MIT-LICENSE +20 -0
- data/data/snippets/README.textile +108 -0
- data/data/snippets/TODO +6 -0
- data/data/snippets/cheatsheet.html +1602 -0
- data/data/snippets/doc/Gemfile +6 -0
- data/data/snippets/doc/Gemfile.lock +16 -0
- data/data/snippets/doc/create_documentation.rb +56 -0
- data/data/snippets/doc/documentation_stylesheet.sass +100 -0
- data/data/snippets/doc/documentation_stylesheet_print.sass +93 -0
- data/data/snippets/doc/documentation_template.haml +36 -0
- data/data/snippets/doc/gedit-snippets-logo.png +0 -0
- data/data/snippets/doc/gedit-snippets-logo.svg +626 -0
- data/data/snippets/doc/method_parser.rb +24 -0
- data/data/snippets/erb.xml +84 -0
- data/data/snippets/html-erb.xml +84 -0
- data/data/snippets/javascript-erb.xml +84 -0
- data/data/snippets/rails_activerecord_associations.xml +34 -0
- data/data/snippets/rails_activerecord_basic.xml +11 -0
- data/data/snippets/rails_activerecord_validations.xml +210 -0
- data/data/snippets/rails_controllers_basic.xml +19 -0
- data/data/snippets/rhtml_basic.xml +70 -0
- data/data/snippets/rhtml_forms.xml +75 -0
- data/data/snippets/rhtml_html.xml +98 -0
- data/data/snippets/ruby-erb.xml +84 -0
- data/data/snippets/ruby_basic.xml +142 -0
- data/data/snippets/ruby_collections.xml +163 -0
- data/data/snippets/shoulda_actioncontroller.xml +73 -0
- data/data/snippets/shoulda_activerecord.xml +127 -0
- data/data/snippets/shoulda_basic.xml +22 -0
- data/data/snippets/snippet_tools.xml +32 -0
- data/data/snippets/xml-erb.xml +84 -0
- data/data/snippets/yml-erb.xml +84 -0
- data/data/styles/README.rdoc +17 -0
- data/data/styles/rubybuntu1.xml +119 -0
- data/rubybuntu-gedit.gemspec +26 -0
- metadata +125 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
<?xml version='1.0' encoding='utf-8'?>
|
2
|
+
<!--
|
3
|
+
RHTML Ruby code snippets
|
4
|
+
-->
|
5
|
+
<snippets language="yml-erb">
|
6
|
+
<!--
|
7
|
+
ERb Tags
|
8
|
+
-->
|
9
|
+
<snippet>
|
10
|
+
<text><![CDATA[<%= $0 %>]]></text>
|
11
|
+
<tag>=</tag>
|
12
|
+
<description><%= block result %></description>
|
13
|
+
</snippet>
|
14
|
+
<snippet>
|
15
|
+
<text><![CDATA[<% $0 -%>]]></text>
|
16
|
+
<tag>%</tag>
|
17
|
+
<description><% ruby code block %></description>
|
18
|
+
</snippet>
|
19
|
+
|
20
|
+
<!--
|
21
|
+
Blocks
|
22
|
+
-->
|
23
|
+
<snippet>
|
24
|
+
<text><![CDATA[do
|
25
|
+
$0
|
26
|
+
end]]></text>
|
27
|
+
<tag>do</tag>
|
28
|
+
<description>do .. end</description>
|
29
|
+
</snippet>
|
30
|
+
<snippet>
|
31
|
+
<text><![CDATA[do |${1:object}|
|
32
|
+
$0
|
33
|
+
end]]></text>
|
34
|
+
<tag>doo</tag>
|
35
|
+
<description>do |object| .. end</description>
|
36
|
+
</snippet>
|
37
|
+
|
38
|
+
<!--
|
39
|
+
Collection iterators
|
40
|
+
-->
|
41
|
+
<snippet>
|
42
|
+
<text><![CDATA[<% ${1:@list}.each do |${2:item}| do %>
|
43
|
+
$0
|
44
|
+
<% end %>]]></text>
|
45
|
+
<tag>eacho</tag>
|
46
|
+
<description>each do item</description>
|
47
|
+
</snippet>
|
48
|
+
<snippet>
|
49
|
+
<text><![CDATA[<%= for ${1:element} in ${2:collection}
|
50
|
+
${1:element}.$0
|
51
|
+
end %>]]></text>
|
52
|
+
<tag>forin</tag>
|
53
|
+
<description>for .. in .. end</description>
|
54
|
+
</snippet>
|
55
|
+
|
56
|
+
<!--
|
57
|
+
Conditions
|
58
|
+
-->
|
59
|
+
<snippet>
|
60
|
+
<text><![CDATA[<% if ${1:logged_in?} %>
|
61
|
+
$0
|
62
|
+
<% end %>]]></text>
|
63
|
+
<tag>if</tag>
|
64
|
+
<description>if statement</description>
|
65
|
+
</snippet>
|
66
|
+
<snippet>
|
67
|
+
<text><![CDATA[<% if ${1:logged_in?} %>
|
68
|
+
$0
|
69
|
+
<% else %>
|
70
|
+
|
71
|
+
<% end %>]]></text>
|
72
|
+
<tag>ife</tag>
|
73
|
+
<description>if ... else ... end</description>
|
74
|
+
</snippet>
|
75
|
+
|
76
|
+
<!--
|
77
|
+
Uncategorized
|
78
|
+
-->
|
79
|
+
<snippet>
|
80
|
+
<text><![CDATA[<% end %>]]></text>
|
81
|
+
<tag>end</tag>
|
82
|
+
<description>end tag</description>
|
83
|
+
</snippet>
|
84
|
+
</snippets>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
= Ruby/Rails/Web related gtksourceview styles.
|
2
|
+
|
3
|
+
Part of {RubyBuntuGedit}[https://github.com/janlelis/rubybuntu-gedit]
|
4
|
+
|
5
|
+
Designed for usage with {these language specs}[https://github.com/janlelis/rubybuntu-language-specs]
|
6
|
+
|
7
|
+
== Setup
|
8
|
+
=== as root
|
9
|
+
|
10
|
+
sudo cp *.xml /usr/share/gtksourceview-2.0/styles
|
11
|
+
|
12
|
+
=== as non-root
|
13
|
+
|
14
|
+
mkdir -p ~/.local/share/gtksourceview-2.0/styles
|
15
|
+
cp *.xml ~/.local/share/gtksourceview-2.0/styles
|
16
|
+
|
17
|
+
== J-_-L
|
@@ -0,0 +1,119 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Copyright (C) 2011 Jan Lelis
|
4
|
+
|
5
|
+
This library is free software; you can redistribute it and/or
|
6
|
+
modify it under the terms of the GNU Library General Public
|
7
|
+
License as published by the Free Software Foundation; either
|
8
|
+
version 2 of the License, or (at your option) any later version.
|
9
|
+
|
10
|
+
This library is distributed in the hope that it will be useful,
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
Library General Public License for more details.
|
14
|
+
|
15
|
+
You should have received a copy of the GNU Library General Public
|
16
|
+
License along with this library; if not, write to the
|
17
|
+
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
18
|
+
Boston, MA 02111-1307, USA.
|
19
|
+
-->
|
20
|
+
|
21
|
+
<style-scheme id="rubybuntu1" _name="RubyBuntu One" version="1.0">
|
22
|
+
<author>Jan Lelis</author>
|
23
|
+
<_description>RubyBuntu One</_description>
|
24
|
+
|
25
|
+
<!-- general -->
|
26
|
+
<style name="text" foreground="#d3d3d3" background="#1d1d1d"/>
|
27
|
+
<style name="current-line" background="#171717"/>
|
28
|
+
<style name="cursor" foreground="#b9b9b9"/><!--#929292-->
|
29
|
+
<style name="selection" foreground="#3c3c3c" background="#b9b9b9"/>
|
30
|
+
<style name="search-match" background="#2d2d2d"/>
|
31
|
+
<style name="draw-spaces" foreground="#333333"/>
|
32
|
+
<style name="line-numbers" foreground="#404040" background="#000000"/>
|
33
|
+
<style name="bracket-match" underline="true"/>
|
34
|
+
<style name="bracket-mismatch" foreground="#000000" background="#ffffff"/><!-- how can i test this one? -->
|
35
|
+
|
36
|
+
<!-- ruby -->
|
37
|
+
<!-- please note: indention does not necessarily mean that there is a mapping -->
|
38
|
+
<style name="def:type" foreground="#d8843f"/>
|
39
|
+
<style name="ruby:method" foreground="#d8843f"/><!-- of course, also applies to local variables -->
|
40
|
+
<style name="def:builtin" foreground="#cf6b2e"/><!-- ruby:important-method -->
|
41
|
+
<style name="def:keyword" foreground="#cc7833" bold="true"/>
|
42
|
+
<style name="ruby:syntax-char" foreground="#f3ed71"/>
|
43
|
+
<style name="def:operator" foreground="#aa7b55"/>
|
44
|
+
<style name="def:boolean" foreground="#d34921"/><!-- ruby:special-value -->
|
45
|
+
<style name="ruby:true" foreground="#219421"/>
|
46
|
+
<style name="ruby:false" foreground="#d71f15"/>
|
47
|
+
<style name="ruby:nil" foreground="#d72c15" bold="true"/><!-- #ff3a3a -->
|
48
|
+
<style name="ruby:self" foreground="#d34921"/>
|
49
|
+
<style name="ruby:collection" foreground="#cb8748"/>
|
50
|
+
<style name="def:function" foreground="#ffc66d" bold="true"/>
|
51
|
+
|
52
|
+
<style name="def:constant" foreground="#ffe7b1"/>
|
53
|
+
<style name="def:special-constant" foreground="#ffe7b1" bold="true"/><!-- ruby:important-constant -->
|
54
|
+
|
55
|
+
<style name="def:identifier" foreground="#7fb5db"/>
|
56
|
+
<style name="ruby:instance-variable" foreground="#7fb5db"/>
|
57
|
+
<style name="ruby:class-variable" foreground="#4591c6"/>
|
58
|
+
<style name="ruby:global-variable" foreground="#d33521"/>
|
59
|
+
<style name="ruby:special-variable" foreground="#d33521" bold="true"/>
|
60
|
+
|
61
|
+
<style name="def:comment" foreground="#a77362"/>
|
62
|
+
<style name="ruby:encoding-comment" foreground="#a76265"/>
|
63
|
+
<style name="def:shebang" foreground="#a76265" bold="true"/>
|
64
|
+
<style name="def:note" bold="true"/>
|
65
|
+
<style name="def:underlined" underline="true"/>
|
66
|
+
<style name="def:doc-comment" foreground="#a65033"/>
|
67
|
+
<style name="def:doc-comment-element" foreground="#a65033" bold="true"/><!-- not used in ruby -->
|
68
|
+
|
69
|
+
<style name="def:string" foreground="#a0a0a0"/>
|
70
|
+
<style name="ruby:string-delimiter" foreground="#9f7979"/>
|
71
|
+
<style name="def:special-char" foreground="#dcdcdc"/>
|
72
|
+
<style name="def:character" foreground="#a0a0a0"/><!-- question mark notation -->
|
73
|
+
|
74
|
+
<style name="ruby:system" foreground="#b5bb9d"/>
|
75
|
+
<style name="ruby:system-delimiter" foreground="#929b6d"/>
|
76
|
+
|
77
|
+
<style name="ruby:symbol" foreground="#ffc66d"/>
|
78
|
+
|
79
|
+
<style name="ruby:regex" foreground="#e56739"/>
|
80
|
+
<style name="ruby:regex-delimiter" foreground="#e55939"/>
|
81
|
+
<style name="ruby:regex-options" foreground="#e55939" bold="true"/>
|
82
|
+
|
83
|
+
<style name="def:number" foreground="#6d9cbe"/>
|
84
|
+
<style name="def:decimal" foreground="#6d9cbe" bold="true"/><!-- integer -->
|
85
|
+
<style name="def:base-n-integer" foreground="#6d9cbe" italic="true"/>
|
86
|
+
|
87
|
+
<style name="def:error" strikethrough="true"/>
|
88
|
+
|
89
|
+
<!-- maybe used in future
|
90
|
+
<style name="ruby:module"/>
|
91
|
+
<style name="ruby:begin"/>
|
92
|
+
<style name="ruby:loop"/>
|
93
|
+
<style name="ruby:block"/>
|
94
|
+
-->
|
95
|
+
|
96
|
+
<!-- currently not used in ruby -->
|
97
|
+
<style name="def:preprocessor" foreground="#eda868"/><!-- xml:doctype -->
|
98
|
+
<style name="def:complex" foreground="#6d9cbe" italic="true"/>
|
99
|
+
<style name="def:reserved" italic="true"/>
|
100
|
+
<style name="def:statement" foreground="#aa7b55"/>
|
101
|
+
|
102
|
+
|
103
|
+
<!-- other ruby stuff-->
|
104
|
+
<style name="erb:tag" foreground="#ff592c"/>
|
105
|
+
<style name="erb:output" foreground="#ff342c"/>
|
106
|
+
|
107
|
+
<style name="ruby-bundler-gemfile-lock:gem_name" foreground="#d8843f"/>
|
108
|
+
|
109
|
+
<!-- non ruby -->
|
110
|
+
<style name="xml:element-name" foreground="#edc268"/><!-- html:tag -->
|
111
|
+
|
112
|
+
<style name="css:color" foreground="#6d9cbe"/>
|
113
|
+
<style name="css:known-property-values" foreground="#6d9cbe"/>
|
114
|
+
<style name="css:keyword" foreground="#d8843f"/>
|
115
|
+
|
116
|
+
</style-scheme>
|
117
|
+
|
118
|
+
<!-- J-_-L -->
|
119
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'rubygems' unless defined? Gem
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "rubybuntu-gedit"
|
6
|
+
s.version = Time.now.strftime("%y.%m.%d")
|
7
|
+
s.authors = ["Jan Lelis", "Snippets by Christoph Olszowka", "Please see individual files for author and license"]
|
8
|
+
s.email = "mail@janlelis.de"
|
9
|
+
s.homepage = "https://github.com/janlelis/rubybuntu-gedit"
|
10
|
+
s.summary = "Ruby/Web devoloper's gedit"
|
11
|
+
s.description = "Ruby/Rails/Web related gedit language definitions, mime types, styles and snippets."
|
12
|
+
|
13
|
+
s.files = Dir.glob(%w|bin/* [A-Z]*.{txt,rdoc} data/**/*|) + %w|Rakefile rubybuntu-gedit.gemspec|
|
14
|
+
s.executables = Dir['bin/*'].map{|f| File.basename f }
|
15
|
+
s.license = "GPL"
|
16
|
+
|
17
|
+
s.add_dependency 'paint'
|
18
|
+
|
19
|
+
len = s.homepage.size
|
20
|
+
s.post_install_message = \
|
21
|
+
(" ┌── " + "info ".ljust(len-2,'%') + "─┐\n" +
|
22
|
+
" J-_-L │ " + s.homepage + " │\n" +
|
23
|
+
" ├── " + "usage ".ljust(len-2,'%') + "─┤\n" +
|
24
|
+
" │ " + "rubybuntu-gedit install".ljust(len,' ') + " │\n" +
|
25
|
+
" └─" + '─'*len + "─┘").gsub('%', '─') # 1.8 workaround
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,125 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubybuntu-gedit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 11.08.18
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jan Lelis
|
9
|
+
- Snippets by Christoph Olszowka
|
10
|
+
- Please see individual files for author and license
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2011-08-18 00:00:00.000000000Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: paint
|
18
|
+
requirement: &21572980 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *21572980
|
27
|
+
description: Ruby/Rails/Web related gedit language definitions, mime types, styles
|
28
|
+
and snippets.
|
29
|
+
email: mail@janlelis.de
|
30
|
+
executables:
|
31
|
+
- rubybuntu-gedit
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- bin/rubybuntu-gedit
|
36
|
+
- README.rdoc
|
37
|
+
- data/language-specs/ruby-erb.lang
|
38
|
+
- data/language-specs/erb.lang
|
39
|
+
- data/language-specs/ruby-bundler-gemfile-lock.lang
|
40
|
+
- data/language-specs/yml-erb.lang
|
41
|
+
- data/language-specs/README.rdoc
|
42
|
+
- data/language-specs/ruby.lang-extras/important-methods.rb
|
43
|
+
- data/language-specs/ruby.lang-extras/important-constants.rb
|
44
|
+
- data/language-specs/ruby.lang-extras/known-bugs.rb
|
45
|
+
- data/language-specs/html-erb.lang
|
46
|
+
- data/language-specs/ruby.lang
|
47
|
+
- data/language-specs/javascript-erb.lang
|
48
|
+
- data/language-specs/xml-erb.lang
|
49
|
+
- data/mime/ruby-builder.xml
|
50
|
+
- data/mime/ruby-thor.xml
|
51
|
+
- data/mime/ruby-rack.xml
|
52
|
+
- data/mime/README.rdoc
|
53
|
+
- data/mime/ruby.xml
|
54
|
+
- data/mime/sass.xml
|
55
|
+
- data/mime/ruby-bundler.xml
|
56
|
+
- data/mime/slim.xml
|
57
|
+
- data/mime/ruby-erb.xml
|
58
|
+
- data/mime/ruby-rake.xml
|
59
|
+
- data/mime/haml.xml
|
60
|
+
- data/mime/cucumber.xml
|
61
|
+
- data/mime/ruby-capistrano.xml
|
62
|
+
- data/snippets/rhtml_forms.xml
|
63
|
+
- data/snippets/rails_controllers_basic.xml
|
64
|
+
- data/snippets/rails_activerecord_validations.xml
|
65
|
+
- data/snippets/yml-erb.xml
|
66
|
+
- data/snippets/ruby_collections.xml
|
67
|
+
- data/snippets/doc/Gemfile
|
68
|
+
- data/snippets/doc/documentation_stylesheet.sass
|
69
|
+
- data/snippets/doc/method_parser.rb
|
70
|
+
- data/snippets/doc/gedit-snippets-logo.png
|
71
|
+
- data/snippets/doc/documentation_stylesheet_print.sass
|
72
|
+
- data/snippets/doc/Gemfile.lock
|
73
|
+
- data/snippets/doc/documentation_template.haml
|
74
|
+
- data/snippets/doc/create_documentation.rb
|
75
|
+
- data/snippets/doc/gedit-snippets-logo.svg
|
76
|
+
- data/snippets/xml-erb.xml
|
77
|
+
- data/snippets/rails_activerecord_basic.xml
|
78
|
+
- data/snippets/javascript-erb.xml
|
79
|
+
- data/snippets/html-erb.xml
|
80
|
+
- data/snippets/snippet_tools.xml
|
81
|
+
- data/snippets/rails_activerecord_associations.xml
|
82
|
+
- data/snippets/rhtml_basic.xml
|
83
|
+
- data/snippets/shoulda_actioncontroller.xml
|
84
|
+
- data/snippets/rhtml_html.xml
|
85
|
+
- data/snippets/ruby_basic.xml
|
86
|
+
- data/snippets/cheatsheet.html
|
87
|
+
- data/snippets/README.textile
|
88
|
+
- data/snippets/MIT-LICENSE
|
89
|
+
- data/snippets/ruby-erb.xml
|
90
|
+
- data/snippets/erb.xml
|
91
|
+
- data/snippets/shoulda_activerecord.xml
|
92
|
+
- data/snippets/TODO
|
93
|
+
- data/snippets/shoulda_basic.xml
|
94
|
+
- data/styles/rubybuntu1.xml
|
95
|
+
- data/styles/README.rdoc
|
96
|
+
- Rakefile
|
97
|
+
- rubybuntu-gedit.gemspec
|
98
|
+
homepage: https://github.com/janlelis/rubybuntu-gedit
|
99
|
+
licenses:
|
100
|
+
- GPL
|
101
|
+
post_install_message: ! " ┌── info ─────────────────────────────────────┐\n
|
102
|
+
J-_-L │ https://github.com/janlelis/rubybuntu-gedit │\n ├── usage ────────────────────────────────────┤\n
|
103
|
+
\ │ rubybuntu-gedit install │\n └─────────────────────────────────────────────┘"
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
requirements: []
|
120
|
+
rubyforge_project:
|
121
|
+
rubygems_version: 1.8.5
|
122
|
+
signing_key:
|
123
|
+
specification_version: 3
|
124
|
+
summary: Ruby/Web devoloper's gedit
|
125
|
+
test_files: []
|