codemirror-rails 0.1
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.md +16 -0
- data/codemirror-rails-0.0.0.gem +0 -0
- data/codemirror-rails.gemspec +12 -0
- data/doc/CodeMirror-LICENSE +19 -0
- data/lib/codemirror-rails.rb +1 -0
- data/lib/codemirror/rails.rb +8 -0
- data/lib/codemirror/rails/railtie.rb +10 -0
- data/lib/codemirror/rails/version.rb +6 -0
- data/lib/generators/codemirror/install/install_generator.rb +17 -0
- data/vendor/assets/javascripts/codemirror.js +2071 -0
- data/vendor/assets/stylesheets/codemirror.css +64 -0
- data/vendor/assets/stylesheets/codemirror/themes/default.css +18 -0
- metadata +58 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.CodeMirror {
|
|
2
|
+
line-height: 1em;
|
|
3
|
+
font-family: monospace;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.CodeMirror-scroll {
|
|
7
|
+
overflow: auto;
|
|
8
|
+
height: 300px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.CodeMirror-gutter {
|
|
12
|
+
position: absolute; left: 0; top: 0;
|
|
13
|
+
background-color: #f7f7f7;
|
|
14
|
+
border-right: 1px solid #eee;
|
|
15
|
+
min-width: 2em;
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
.CodeMirror-gutter-text {
|
|
19
|
+
color: #aaa;
|
|
20
|
+
text-align: right;
|
|
21
|
+
padding: .4em .2em .4em .4em;
|
|
22
|
+
}
|
|
23
|
+
.CodeMirror-lines {
|
|
24
|
+
padding: .4em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.CodeMirror pre {
|
|
28
|
+
-moz-border-radius: 0;
|
|
29
|
+
-webkit-border-radius: 0;
|
|
30
|
+
-o-border-radius: 0;
|
|
31
|
+
border-radius: 0;
|
|
32
|
+
border-width: 0; margin: 0; padding: 0; background: transparent;
|
|
33
|
+
font-family: inherit;
|
|
34
|
+
font-size: inherit;
|
|
35
|
+
padding: 0; margin: 0;
|
|
36
|
+
white-space: pre;
|
|
37
|
+
word-wrap: normal;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.CodeMirror textarea {
|
|
41
|
+
font-family: inherit !important;
|
|
42
|
+
font-size: inherit !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.CodeMirror-cursor {
|
|
46
|
+
z-index: 10;
|
|
47
|
+
position: absolute;
|
|
48
|
+
visibility: hidden;
|
|
49
|
+
border-left: 1px solid black !important;
|
|
50
|
+
}
|
|
51
|
+
.CodeMirror-focused .CodeMirror-cursor {
|
|
52
|
+
visibility: visible;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
span.CodeMirror-selected {
|
|
56
|
+
background: #ccc !important;
|
|
57
|
+
color: HighlightText !important;
|
|
58
|
+
}
|
|
59
|
+
.CodeMirror-focused span.CodeMirror-selected {
|
|
60
|
+
background: Highlight !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.CodeMirror-matchingbracket {color: #0f0 !important;}
|
|
64
|
+
.CodeMirror-nonmatchingbracket {color: #f22 !important;}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.cm-s-default span.cm-keyword {color: #708;}
|
|
2
|
+
.cm-s-default span.cm-atom {color: #219;}
|
|
3
|
+
.cm-s-default span.cm-number {color: #164;}
|
|
4
|
+
.cm-s-default span.cm-def {color: #00f;}
|
|
5
|
+
.cm-s-default span.cm-variable {color: black;}
|
|
6
|
+
.cm-s-default span.cm-variable-2 {color: #05a;}
|
|
7
|
+
.cm-s-default span.cm-variable-3 {color: #0a5;}
|
|
8
|
+
.cm-s-default span.cm-property {color: black;}
|
|
9
|
+
.cm-s-default span.cm-operator {color: black;}
|
|
10
|
+
.cm-s-default span.cm-comment {color: #a50;}
|
|
11
|
+
.cm-s-default span.cm-string {color: #a11;}
|
|
12
|
+
.cm-s-default span.cm-meta {color: #555;}
|
|
13
|
+
.cm-s-default span.cm-error {color: #f00;}
|
|
14
|
+
.cm-s-default span.cm-qualifier {color: #555;}
|
|
15
|
+
.cm-s-default span.cm-builtin {color: #30a;}
|
|
16
|
+
.cm-s-default span.cm-bracket {color: #cc7;}
|
|
17
|
+
.cm-s-default span.cm-tag {color: #170;}
|
|
18
|
+
.cm-s-default span.cm-attribute {color: #00c;}
|
metadata
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: codemirror-rails
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '0.1'
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Nathan Fixler
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2011-06-17 00:00:00.000000000 -04:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
description: This gem provides CodeMirror assets for your Rails 3 application.
|
|
16
|
+
email: nathan@fixler.org
|
|
17
|
+
executables: []
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- ./codemirror-rails-0.0.0.gem
|
|
22
|
+
- ./codemirror-rails.gemspec
|
|
23
|
+
- ./doc/CodeMirror-LICENSE
|
|
24
|
+
- ./lib/codemirror/rails/railtie.rb
|
|
25
|
+
- ./lib/codemirror/rails/version.rb
|
|
26
|
+
- ./lib/codemirror/rails.rb
|
|
27
|
+
- ./lib/codemirror-rails.rb
|
|
28
|
+
- ./lib/generators/codemirror/install/install_generator.rb
|
|
29
|
+
- ./README.md
|
|
30
|
+
- ./vendor/assets/javascripts/codemirror.js
|
|
31
|
+
- ./vendor/assets/stylesheets/codemirror/themes/default.css
|
|
32
|
+
- ./vendor/assets/stylesheets/codemirror.css
|
|
33
|
+
has_rdoc: true
|
|
34
|
+
homepage: https://github.com/fixlr/codemirror-rails
|
|
35
|
+
licenses: []
|
|
36
|
+
post_install_message:
|
|
37
|
+
rdoc_options: []
|
|
38
|
+
require_paths:
|
|
39
|
+
- lib
|
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
|
+
none: false
|
|
48
|
+
requirements:
|
|
49
|
+
- - ! '>='
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '0'
|
|
52
|
+
requirements: []
|
|
53
|
+
rubyforge_project:
|
|
54
|
+
rubygems_version: 1.6.2
|
|
55
|
+
signing_key:
|
|
56
|
+
specification_version: 3
|
|
57
|
+
summary: Use CodeMirror with Rails 3
|
|
58
|
+
test_files: []
|