web-connect-rails 0.1.5.1 → 0.1.7

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: 465e106fe08692e100e7d5d61ea214eef3b3cc36
4
- data.tar.gz: 7cd3d267e146c0e625a5c6d786bf52c8547417b3
3
+ metadata.gz: 60e8ac3864967cefbb7b0277f8301220cb01d61e
4
+ data.tar.gz: f415d104fc0aab7121e4ac5fcc0044bab193c82c
5
5
  SHA512:
6
- metadata.gz: c316a569033f7435844149b79d55694b87581ccfbdda15b5c62a129432e646e7ca5ab85c106a13f16f5ab6bd07df4a3c85964a31d12c1769bdf1753bd15e4a9b
7
- data.tar.gz: b657e607814f3d3740004f6ba5a6eff856e708161a47c89ee7165695d44f2852f49fee1a7f7130d748db162f809a77d6fe69f4733d6eb959c758302f6a9bbb49
6
+ metadata.gz: bba2d797bb8585ea94c071d183b9e9eb94e778109bf39ba4e9f86d45d2f3af101d193c63b31a93a537db719fd3cf216eebab2a38b9069f86c955e1e42f17285f
7
+ data.tar.gz: 3b16e317ac0f9604e839486304c22eab30e4c04c0d82f6ca1ae20ccf0943e22ffdbb70016ec2f73c4b4ac5e068d7e510663e1ef50fc4768bcb1f5b6cc3aa4738
data/README.md CHANGED
@@ -1 +1,23 @@
1
1
  This gem adds WebConnect support to existing Rails apps.
2
+
3
+ **For general configuration and event handling, see the README for the [web-connect](https://github.com/netfira/web-connect) gem.**
4
+
5
+ ## Installation
6
+
7
+ First, add this gem to your Gemfile.
8
+
9
+ ```ruby
10
+ gem 'web-connect-rails'
11
+ ```
12
+
13
+ Next, run the included installer from your Rails root.
14
+
15
+ ```bash
16
+ rails g web_connect:install
17
+ ```
18
+
19
+ By default, WebConnect will use your Rails database(s), and prefix its tables with `wc_`. Edit `config/initializers/web_connect.rb` if you want to use a different prefix, or a completely different database.
20
+
21
+ ### URI Namespace
22
+
23
+ The WebConnect initializer allows you to set a `uri_namespace`, which, by default, is `webconnect`. Change this if you want to access WebConnect by a different URI.
@@ -11,6 +11,7 @@ module Netfira::WebConnect::Rails
11
11
  if uri_namespace && !env['PATH_INFO'][1..-1].start_with?(uri_namespace)
12
12
  @rails.call env
13
13
  else
14
+ env['PATH_INFO'] = env['PATH_INFO'][(uri_namespace.length + 1)..-1]
14
15
  @wc.call env
15
16
  end
16
17
  end
@@ -1,7 +1,7 @@
1
1
  module Netfira
2
2
  module WebConnect
3
3
  module Rails
4
- VERSION = '0.1.5.1'
4
+ VERSION = '0.1.7'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-connect-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.1
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil E. Pearson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-16 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: web-connect
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0.1'
33
+ version: 0.1.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0.1'
40
+ version: 0.1.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement