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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdf91b2b9b795e55d35094069080cae3bc4cb3a3
4
- data.tar.gz: 01af8a0a8a8eefde4ead9975f30f6d8070573796
3
+ metadata.gz: ca4bb9df54319e3bd96465b6b28bfad0ace42970
4
+ data.tar.gz: 8af7f485c8eb5dd4cc09ac5f8956c0df720b824c
5
5
  SHA512:
6
- metadata.gz: d4468e59aa8db907d391ac761ba15dfebf5a693aa3673ac973516ffcfca9af1ae158a4eb35b75b8f9a99c533f922365597ced87e2c036c0561ba52c4990cae99
7
- data.tar.gz: d38ce30b6db356ac5b49613f26fdefa167941e5e97c31554ee2c2ef811487212e261c2035d3336b06bb5dd8c5f11cddda1fcb55e35bb79fac2fb143e36bd14e7
6
+ metadata.gz: ef7b145f7cbbd63e91c7eb6c5a626512c9a69e284f0b5d7fd0a962e711c979b13b9467a17c2353b3d74b4d8739dec73ecb3b211bbb35797f2128538814cefad1
7
+ data.tar.gz: cf7469e8ab678be9a644c0fd0f741e64a22959968c108153686072744e7d7bd38d7fae67cd98c516f576e49946de9726910dec9e2907eeabc7dcdf8193224b42
data/.travis.yml CHANGED
@@ -3,5 +3,6 @@ rvm:
3
3
  - 2.0
4
4
  - 2.2.1
5
5
  - 2.2.2
6
+ - 2.3.0
6
7
 
7
8
  script: bundle exec rspec spec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- passages (1.2.0)
4
+ passages (1.3.0)
5
5
  rails (~> 4.0)
6
6
 
7
7
  GEM
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 Jake Yesbeck
1
+ Copyright (c) 2016 Jake Yesbeck
2
2
 
3
3
  MIT License
4
4
 
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($('element').contents(), function(index, content) {
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
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Passages
2
2
  MAJOR = 1
3
- MINOR = 3
3
+ MINOR = 4
4
4
  TINY = 0
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join('.').freeze
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.3.0
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-01-19 00:00:00.000000000 Z
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.4.6
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