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 ADDED
@@ -0,0 +1 @@
1
+ *.gem
@@ -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 = Dir["#{File.dirname(__FILE__)}/**/*"]
12
+ s.files = `git ls-files`.split("\n")
13
13
  end
@@ -1,6 +1,6 @@
1
1
  module Codemirror
2
2
  module Rails
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  CODEMIRROR_VERSION = '2.13'
5
5
  end
6
6
  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.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
- - ./codemirror-rails-0.2.1.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
- - ./LICENSE
30
- - ./README.md
31
- - ./upgrade_codemirror_stable.rb
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/javascripts/codemirror.js
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
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: []
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