ace-rails-ap 4.0.2 → 4.1.0
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.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/lib/ace/rails/engine.rb +1 -1
- data/lib/ace/rails/version.rb +1 -1
- data/vendor/assets/javascripts/set_ace_paths.js.erb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cb558b595c4128e67670f5e0b5d47dbc08c3a9b
|
4
|
+
data.tar.gz: 1387d4eb3a9de97ed63701df3064282f3696c0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38cff89ec6c3e3b64d7a373af565ce67971834fb1ef66c7aa164c10379941248e01502928997ca27d9138766516f44c11fe463bfb79d0b45abf1efdb32d77418
|
7
|
+
data.tar.gz: fca63b61d19a2b58b333b2dfad7b5d6a8ab98025a88f94e36287171c46d762c09f9cddc154f875a8c413e1484f676b871f2f0b5e509ea0db1766d6694a7f02b4
|
data/README.md
CHANGED
@@ -26,13 +26,14 @@ To include a theme or mode, add them in your application.js file:
|
|
26
26
|
//= require ace/mode-somemode
|
27
27
|
```
|
28
28
|
|
29
|
-
|
29
|
+
Workers and modes don't need to be included in your application.js file, as they can also be loaded dynamically (see below).
|
30
30
|
|
31
31
|
## Rails Asset Pipeline
|
32
32
|
|
33
|
-
Ace
|
34
|
-
|
35
|
-
|
33
|
+
Ace will dynamically load the JavaScript files for workers and modes at run-time.
|
34
|
+
|
35
|
+
ace-rails-ap plays nicely with the Rails asset pipeline by automatically configuring the precompilation of the workers and modes,
|
36
|
+
and by setting up Ace to load the fingerprinted files. You have nothing to do, it just works.
|
36
37
|
|
37
38
|
## Migrate from previous version of ace-rails-ap
|
38
39
|
|
@@ -41,5 +42,3 @@ You may have done some customisation to allow ace-rails-ap to work in production
|
|
41
42
|
|
42
43
|
Also replace the previous javascript manifest instruction `//= require ace/ace` by the new `//= require ace-rails-ap`, and remove
|
43
44
|
all workers from your javascript manifest.
|
44
|
-
|
45
|
-
|
data/lib/ace/rails/engine.rb
CHANGED
data/lib/ace/rails/version.rb
CHANGED
@@ -2,4 +2,8 @@ ace.config.set('basePath', '/assets/ace');
|
|
2
2
|
<% Dir[File.dirname(__FILE__) + '/ace/worker-*.js'].each do |file| %>
|
3
3
|
<% worker = File.basename(file, '.js').sub(/^worker-/, '') %>
|
4
4
|
ace.config.setModuleUrl("ace/mode/<%= worker %>_worker", "<%= asset_path "ace/worker-#{worker}.js" %>");
|
5
|
-
<% end %>
|
5
|
+
<% end %>
|
6
|
+
<% Dir[File.dirname(__FILE__) + '/ace/mode-*.js'].each do |file| %>
|
7
|
+
<% mode = File.basename(file, '.js').sub(/^mode-/, '') %>
|
8
|
+
ace.config.setModuleUrl("ace/mode/<%= mode %>", "<%= asset_path "ace/mode-#{mode}.js" %>");
|
9
|
+
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ace-rails-ap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Krieger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|