instructure_registrar 0.1.0 → 0.1.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: cc88e07ee4ce4cc7a4fbfc01474bdb2e91843bc1
4
- data.tar.gz: 6549dee7f8367c8eee4551b07e38f120c05a75ef
3
+ metadata.gz: 6118e11a1f74e879aa42ab67b9cd5f6b9ce925ba
4
+ data.tar.gz: 9785613521165b140fb95b32104c2cf2d5af84ff
5
5
  SHA512:
6
- metadata.gz: 817721f2a1393db6902b0d69fa29387bb6f4ae4d70d6cff3e2ca9f41942fcc513c0ad69627d1357ec6c3d71bbfd0648effbd4cc9e564edb9114f3a64c428ffb7
7
- data.tar.gz: 2d7f4714c5a0288ab1e0a6e1595a0f0f18738abeabd7628396c3832d2f53406d3f48d63deb5b9d91777dab7085dfe0aac04bbb1ce450436447c6298894aff7e7
6
+ metadata.gz: d750013b2eb949d5165c4a2c4e152fbf0b8b5b0bb291a205fffe4c04f98efbd41fafad4e27178fea063db2de1a45612255c500898d8b20e3c5e6e5c9017deee2
7
+ data.tar.gz: ffbac399a2e2dc68fb5190d5d87ea8cf465d5acaaa430afcfbcc1dd23e80e1b8c5333de9249b4dfd1f092c6a70b2df944af2276a1364ff27ad267832fc8226d4
data/README.md CHANGED
@@ -27,7 +27,7 @@ information for your local etcd instance:
27
27
 
28
28
  In your service's project folder, create a configuration file with the following contents:
29
29
 
30
- #/config/instructure_registrar.rb
30
+ #/config/initializers/instructure_registrar.rb
31
31
  require 'dotenv'
32
32
  Dotenv.load
33
33
  require 'instructure_registrar'
@@ -48,7 +48,7 @@ In your service's project folder, create a configuration file with the following
48
48
  Note that your client application will need a config file similar to that in the section above, but
49
49
  unless you plan on registering your app as a service your config file will be simpler:
50
50
 
51
- #/config/instructure_registrar.rb
51
+ #/config/initializers/instructure_registrar.rb
52
52
  require 'dotenv'
53
53
  Dotenv.load
54
54
  require 'instructure_registrar'
@@ -1,6 +1,8 @@
1
1
  module InstructureRegistrar
2
2
  class Client
3
3
 
4
+ require 'etcd'
5
+
4
6
  def lookup(service_name)
5
7
  client.get(service_name).value || "unknown"
6
8
  end
@@ -1,3 +1,3 @@
1
1
  module InstructureRegistrar
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instructure_registrar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CoralineAda