okcomputer 0.7.0 → 0.7.1

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: 3a38df5e1069db78fedda2655d6b741d26e2df89
4
- data.tar.gz: 71173a3054b80f1eb1b63c0f41881543affa4184
3
+ metadata.gz: 6156e73e1c89ea69f5fabf39f4de0fb1dd1c1cdd
4
+ data.tar.gz: d2b95792fb610387123fc0e2959c032fe5c79b9a
5
5
  SHA512:
6
- metadata.gz: 62a0d7a18575982c768012957c05482a2ad1c159741aef7de3c5349bc0bf97b375745ea718b3ffecbfeb1c5f374d1cad8bbd94f37195882d5f901259257d6833
7
- data.tar.gz: 429ab7284ea63dcd63eb8959712d0953bdf708cb85986562d7d7638aa2780746bceb037f1cdcfc581bb9c47aa9f430d5970cef126dadc66bd613ad8780e69f51
6
+ metadata.gz: f90e47d7333941a0338d75f4e9d7f33653a47c3941b9abf03b820079ae013aa8ba9c5685d2289f2411313d0727ca0f11e8933589061ce22acec19513ff84ab96
7
+ data.tar.gz: 7b9a87257b583e127ace648920630a82bde370c26eab12bfb50135ba93f6e14b7ffb2db1ac6eb53ce8cfe4e1f9ff3d10be4f9ac9460a5991446f0f424802d46b
data/config/routes.rb CHANGED
@@ -3,10 +3,3 @@ OkComputer::Engine.routes.draw do
3
3
  match "/all" => "ok_computer#index", via: [:get, :options]
4
4
  match "/:check" => "ok_computer#show", via: [:get, :options]
5
5
  end
6
-
7
- if OkComputer.mount_at
8
- # prepend sets at a higher priority than "catchall" routes
9
- Rails.application.routes.prepend do
10
- mount OkComputer::Engine => OkComputer.mount_at, as: "okcomputer"
11
- end
12
- end
@@ -1,5 +1,13 @@
1
1
  module OkComputer
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace OkComputer
4
+
5
+ config.after_initialize do |app|
6
+ if OkComputer.mount_at
7
+ app.routes.prepend do
8
+ mount OkComputer::Engine => OkComputer.mount_at, as: "okcomputer"
9
+ end
10
+ end
11
+ end
4
12
  end
5
13
  end
@@ -1,3 +1,3 @@
1
1
  module OkComputer
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okcomputer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Byrne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-08 00:00:00.000000000 Z
11
+ date: 2014-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3