doorkeepr 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5254314c92311ba0bc90fbde82759f6c685e31a
4
- data.tar.gz: 97412783a1dae4811e92b08c2b64fc485433d251
3
+ metadata.gz: ff8cc90f9dd40338f840c4f6d6142f75e68943a5
4
+ data.tar.gz: d3a2d7ab34515e329049372e0cba8698989989ef
5
5
  SHA512:
6
- metadata.gz: 608b7dd7fa6c686d29cd85c2c890aedbed67c6245895defaff48c7fbe3b79f22066bd0b78e01ffef941bb283e72cc861906b44e2c2ba82bf1124f9af4faaa70f
7
- data.tar.gz: fde9ebbd151d3988dd45f6f75052fc9eff73b3fa2400f5960201097a1aabee991671923963a81b369dc4d29ebf6c5c54f7ae56e3867dd062eb9ebb58fd3dc0cb
6
+ metadata.gz: c74a918bd71525e27ccd1901a0d101d6c21509bca628d7d2bfe1ef5d2414bf225fff6694c16323e2dbbdd5a1cac8004f6bfa15ff3a71e47fd14e7fe3c29c249c
7
+ data.tar.gz: d98463f6838a66415f4f2123032ab25d7105ab2e7fddbd665a71875872d053ff56a6555bd96f7ab90efb52d5109aa5831314d4fbd0972a388ea071d27fcd1958
@@ -76,8 +76,9 @@ module Doorkeepr
76
76
  @instance_id ||= SecureRandom.hex(8)
77
77
  end
78
78
  def zk_hosts
79
- [ "localhost:2181" ] unless defined? ::Synapse::Rails::Providers::Zookeeper
80
- [ "#{Synapse::Rails.zookeeper.host}:#{Synapse::Rails.zookeeper.port}" ]
79
+ return [ Boutons.zookeeper.s("%i:%p") ] if defined? Boutons and Boutons.respond_to? :zookeeper
80
+ return Resolv::Consul.services(:zookeeper).map{|srv| "#{srv.address}:#{srv.port}" } if defined? Resolv::Consul
81
+ [ "localhost:2181" ]
81
82
  end
82
83
  def application
83
84
  @application = Doorkeepr.config.url
@@ -1,3 +1,3 @@
1
1
  module Doorkeepr
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,4 +1,2 @@
1
1
  Rails.application.routes.draw do
2
-
3
- mount Doorkeepr::Engine => "/doorkeepr"
4
2
  end
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+  (0.1ms) begin transaction
2
+ -------------------------
3
+ DoorkeeprTest: test_truth
4
+ -------------------------
5
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeepr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-28 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -101,6 +101,9 @@ files:
101
101
  - test/dummy/config/locales/en.yml
102
102
  - test/dummy/config/routes.rb
103
103
  - test/dummy/config/secrets.yml
104
+ - test/dummy/db/test.sqlite3
105
+ - test/dummy/log/development.log
106
+ - test/dummy/log/test.log
104
107
  - test/dummy/public/404.html
105
108
  - test/dummy/public/422.html
106
109
  - test/dummy/public/500.html
@@ -161,6 +164,9 @@ test_files:
161
164
  - test/dummy/config/routes.rb
162
165
  - test/dummy/config/secrets.yml
163
166
  - test/dummy/config.ru
167
+ - test/dummy/db/test.sqlite3
168
+ - test/dummy/log/development.log
169
+ - test/dummy/log/test.log
164
170
  - test/dummy/public/404.html
165
171
  - test/dummy/public/422.html
166
172
  - test/dummy/public/500.html