okcomputer 0.7.0 → 0.7.1
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/config/routes.rb +0 -7
- data/lib/ok_computer/engine.rb +8 -0
- data/lib/ok_computer/version.rb +1 -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: 6156e73e1c89ea69f5fabf39f4de0fb1dd1c1cdd
|
4
|
+
data.tar.gz: d2b95792fb610387123fc0e2959c032fe5c79b9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/ok_computer/engine.rb
CHANGED
@@ -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
|
data/lib/ok_computer/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|