disco_client_rails 0.1.0
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 +7 -0
- data/lib/disco_client_rails.rb +20 -0
- metadata +72 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4db3cc6fd8234b5c7816ccf824fa18c2f1a6e1c3
|
4
|
+
data.tar.gz: 28971216d52c035b4544da8f09b3afb4470678d3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d426b8b6fd518952602d134db0eee8c351ff300e17c25786621d12cf6bf3d65e480f952675f6d63944cd60f9941b61d0a17975030785074f6a2e99e9b6bc2ba1
|
7
|
+
data.tar.gz: df8ce9b321fc1beeeed58bda73a7e5ee94c128269da5206c85ce8433499066dc9a552a0324127a3fad035f76ce52193ddbc1d26ccd7a3527e48838f8acb2fa3d
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rails'
|
2
|
+
require 'disco_client'
|
3
|
+
|
4
|
+
class DiscoClientRails < ::Rails::Railtie
|
5
|
+
class << self
|
6
|
+
attr_accessor :service
|
7
|
+
end
|
8
|
+
|
9
|
+
config.before_initialize do |app|
|
10
|
+
initializer = ::Rails.root.join('config', 'initializers', 'disco.rb')
|
11
|
+
require initializer if File.exist?(initializer)
|
12
|
+
|
13
|
+
raise 'set DiscoClientRails.service in config/initializers/disco.rb' unless self.service
|
14
|
+
|
15
|
+
dc = DiscoClient.new
|
16
|
+
dc.register(self.service)
|
17
|
+
|
18
|
+
app.config.x.disco = dc.get_configuration
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: disco_client_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Billingham
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: disco_client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.0
|
41
|
+
description:
|
42
|
+
email: james@jamesbillingham.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- lib/disco_client_rails.rb
|
48
|
+
homepage: https://github.com/cuvva/disco-client-rails
|
49
|
+
licenses:
|
50
|
+
- MIT
|
51
|
+
metadata: {}
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
requirements: []
|
67
|
+
rubyforge_project:
|
68
|
+
rubygems_version: 2.4.6
|
69
|
+
signing_key:
|
70
|
+
specification_version: 4
|
71
|
+
summary: Rails Railtie for the Cuvva environment discovery API
|
72
|
+
test_files: []
|