codemirror-rails 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/codemirror-rails.gemspec +1 -1
- data/lib/codemirror/rails/version.rb +1 -1
- metadata +44 -45
- data/codemirror-rails-0.2.1.gem +0 -0
- data/upgrade_codemirror_stable.rb +0 -36
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/codemirror-rails.gemspec
CHANGED
@@ -9,5 +9,5 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.description = 'This gem provides CodeMirror assets for your Rails 3 application.'
|
10
10
|
s.homepage = 'https://rubygems.org/gems/codemirror-rails'
|
11
11
|
|
12
|
-
s.files =
|
12
|
+
s.files = `git ls-files`.split("\n")
|
13
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codemirror-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,50 +18,49 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
-
|
45
|
-
-
|
46
|
-
-
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
- ./vendor/assets/stylesheets/codemirror.css
|
21
|
+
- .gitignore
|
22
|
+
- LICENSE
|
23
|
+
- README.md
|
24
|
+
- codemirror-rails.gemspec
|
25
|
+
- doc/CodeMirror-LICENSE
|
26
|
+
- lib/codemirror-rails.rb
|
27
|
+
- lib/codemirror/rails.rb
|
28
|
+
- lib/codemirror/rails/railtie.rb
|
29
|
+
- lib/codemirror/rails/version.rb
|
30
|
+
- lib/generators/codemirror/install/install_generator.rb
|
31
|
+
- vendor/assets/javascripts/codemirror.js
|
32
|
+
- vendor/assets/javascripts/codemirror/modes/clike.js
|
33
|
+
- vendor/assets/javascripts/codemirror/modes/coffeescript.js
|
34
|
+
- vendor/assets/javascripts/codemirror/modes/css.js
|
35
|
+
- vendor/assets/javascripts/codemirror/modes/diff.js
|
36
|
+
- vendor/assets/javascripts/codemirror/modes/haskell.js
|
37
|
+
- vendor/assets/javascripts/codemirror/modes/htmlmixed.js
|
38
|
+
- vendor/assets/javascripts/codemirror/modes/javascript.js
|
39
|
+
- vendor/assets/javascripts/codemirror/modes/lua.js
|
40
|
+
- vendor/assets/javascripts/codemirror/modes/php.js
|
41
|
+
- vendor/assets/javascripts/codemirror/modes/plsql.js
|
42
|
+
- vendor/assets/javascripts/codemirror/modes/python.js
|
43
|
+
- vendor/assets/javascripts/codemirror/modes/r.js
|
44
|
+
- vendor/assets/javascripts/codemirror/modes/rst.js
|
45
|
+
- vendor/assets/javascripts/codemirror/modes/ruby.js
|
46
|
+
- vendor/assets/javascripts/codemirror/modes/scheme.js
|
47
|
+
- vendor/assets/javascripts/codemirror/modes/smalltalk.js
|
48
|
+
- vendor/assets/javascripts/codemirror/modes/sparql.js
|
49
|
+
- vendor/assets/javascripts/codemirror/modes/stex.js
|
50
|
+
- vendor/assets/javascripts/codemirror/modes/velocity.js
|
51
|
+
- vendor/assets/javascripts/codemirror/modes/xml.js
|
52
|
+
- vendor/assets/javascripts/codemirror/modes/xmlpure.js
|
53
|
+
- vendor/assets/javascripts/codemirror/modes/yaml.js
|
54
|
+
- vendor/assets/javascripts/codemirror/overlay.js
|
55
|
+
- vendor/assets/javascripts/codemirror/runmode.js
|
56
|
+
- vendor/assets/stylesheets/codemirror.css
|
57
|
+
- vendor/assets/stylesheets/codemirror/modes/clike.css
|
58
|
+
- vendor/assets/stylesheets/codemirror/modes/diff.css
|
59
|
+
- vendor/assets/stylesheets/codemirror/modes/rst.css
|
60
|
+
- vendor/assets/stylesheets/codemirror/themes/default.css
|
61
|
+
- vendor/assets/stylesheets/codemirror/themes/elegant.css
|
62
|
+
- vendor/assets/stylesheets/codemirror/themes/neat.css
|
63
|
+
- vendor/assets/stylesheets/codemirror/themes/night.css
|
65
64
|
has_rdoc: true
|
66
65
|
homepage: https://rubygems.org/gems/codemirror-rails
|
67
66
|
licenses: []
|
data/codemirror-rails-0.2.1.gem
DELETED
Binary file
|
@@ -1,36 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'fileutils'
|
4
|
-
# wget codemirror zip
|
5
|
-
# unzip codemirror
|
6
|
-
# copy css
|
7
|
-
# copy javascript
|
8
|
-
|
9
|
-
unless codemirror = ARGV.shift
|
10
|
-
raise 'Usage: ./upgrade_codemirror_stable.rb [CodeMirror-x.xx]'
|
11
|
-
end
|
12
|
-
|
13
|
-
base_path = File.dirname(__FILE__)
|
14
|
-
vendor = "#{base_path}/vendor/assets"
|
15
|
-
stable = "#{base_path}/#{codemirror}"
|
16
|
-
|
17
|
-
puts vendor
|
18
|
-
puts stable
|
19
|
-
|
20
|
-
globs_to_copy = {
|
21
|
-
'lib/codemirror.css' => 'stylesheets/codemirror.css',
|
22
|
-
'lib/codemirror.js' => 'javascripts/codemirror.js',
|
23
|
-
'lib/overlay.js' => 'javascripts/codemirror/overlay.js',
|
24
|
-
'lib/runmode.js' => 'javascripts/codemirror/runmode.js',
|
25
|
-
'theme/*.css' => 'stylesheets/codemirror/themes/',
|
26
|
-
'mode/**/*.js' => 'javascripts/codemirror/modes/',
|
27
|
-
'mode/**/*.css' => 'stylesheets/codemirror/modes/'
|
28
|
-
}
|
29
|
-
|
30
|
-
globs_to_copy.each do |glob_from, to|
|
31
|
-
dest = "#{vendor}/#{to}"
|
32
|
-
Dir.glob("#{stable}/#{glob_from}").each do |src|
|
33
|
-
puts "#{src} => #{to}"
|
34
|
-
FileUtils.copy src, dest
|
35
|
-
end
|
36
|
-
end
|