passages 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +8 -0
- data/app/assets/javascripts/passages/application.js +1 -1
- data/lib/passages/engine.rb +4 -0
- data/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca4bb9df54319e3bd96465b6b28bfad0ace42970
|
4
|
+
data.tar.gz: 8af7f485c8eb5dd4cc09ac5f8956c0df720b824c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef7b145f7cbbd63e91c7eb6c5a626512c9a69e284f0b5d7fd0a962e711c979b13b9467a17c2353b3d74b4d8739dec73ecb3b211bbb35797f2128538814cefad1
|
7
|
+
data.tar.gz: cf7469e8ab678be9a644c0fd0f741e64a22959968c108153686072744e7d7bd38d7fae67cd98c516f576e49946de9726910dec9e2907eeabc7dcdf8193224b42
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -63,6 +63,14 @@ password: **password**
|
|
63
63
|
|
64
64
|
`ENV` variables can prefix a Ruby server command from the command line interface, set with a helper `.ENV` file for systems like `foreman` or set through a web interface on platforms like `heroku`.
|
65
65
|
|
66
|
+
To disable authentication, create or add to the `initializers/passages.rb` file:
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
Passages.configure do |config|
|
70
|
+
config.no_auth = true
|
71
|
+
end
|
72
|
+
```
|
73
|
+
|
66
74
|
## Contributing
|
67
75
|
|
68
76
|
Please feel free to fork and contribute your own changes to the Passages project. Single commits are preferred with a description of why the contribution is useful.
|
@@ -11,7 +11,7 @@ var Highlighter = {
|
|
11
11
|
$(element).html(replacedHtml);
|
12
12
|
}
|
13
13
|
else {
|
14
|
-
$.each($(
|
14
|
+
$.each($(element).contents(), function(index, content) {
|
15
15
|
if(content.nodeType == 3) { // nodeType == 3 means it is not a child node
|
16
16
|
$(content).html($(content).html().replace(new RegExp("(" + term + ")", "i"), "<span class='highlighted'>$1</span>"));
|
17
17
|
}
|
data/lib/passages/engine.rb
CHANGED
@@ -2,6 +2,10 @@ module Passages
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace Passages
|
4
4
|
|
5
|
+
initializer "passages.assets.precompile" do |app|
|
6
|
+
app.config.assets.precompile += %w(application.css application.js)
|
7
|
+
end
|
8
|
+
|
5
9
|
initializer 'passages', after: :load_config_initializers do |app|
|
6
10
|
if Passages.config.automount
|
7
11
|
Rails.application.routes.prepend do
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Yesbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.5.1
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Display and search capabilities for Ruby on Rails routes
|