txdb 1.0.0 → 1.0.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: 1e9f2db15d39dc9f3897a1d1d84bdcbb94c89644
4
- data.tar.gz: 378a3ecf3b6cdae977fcd44724938d5dfebf3a71
3
+ metadata.gz: 51610845d38e64996c61cf4079ba3a41125cd848
4
+ data.tar.gz: 5587fd9b799ed26f04f81358e19ee4eb64cb59a5
5
5
  SHA512:
6
- metadata.gz: dedd76bd9f013680d3996702ec784fd85e83761be6896cbbe99058f56a29878253071819ae4a63977d13b2131f85ad83513ae6738eb60a1ffae79d337cb7e99a
7
- data.tar.gz: 078bd6d60d627e6890a774bccf3110aec907e40f89aa27eef855de8dfa43cbd77edd468cfe2df4ed405a8a187cf30029dd91fcd7e0acfbba8759fa9e01aba266
6
+ metadata.gz: efae7ded7c1f025b5fb2df089f83e93b4015028f6cf9c9a8653e3cb0c330e1e9a37477fdb0067dba5e3ee46b04cac6aa7cd6186d50df1d3220c3a91e24778820
7
+ data.tar.gz: 77b6edd9f4d7ec885727216b7a8fe57da44556d3681203862cdcef389b5af080bcf9c97a38f4d32f6b7edc8cf9973db10168e20b0c810ad315e12a362854a79f
@@ -1,4 +1,5 @@
1
1
  module Txdb
2
+ autoload :Application, 'txdb/app'
2
3
  autoload :Backends, 'txdb/backends'
3
4
  autoload :Config, 'txdb/config'
4
5
  autoload :ConnectionString, 'txdb/connection_string'
@@ -14,6 +15,8 @@ module Txdb
14
15
  autoload :TxResource, 'txdb/tx_resource'
15
16
  autoload :Uploader, 'txdb/uploader'
16
17
 
18
+ DEFAULT_ENV = 'development'
19
+
17
20
  class << self
18
21
  def upload
19
22
  Txdb::Config.databases.each do |database|
@@ -26,6 +29,10 @@ module Txdb
26
29
  Downloader.download(database)
27
30
  end
28
31
  end
32
+
33
+ def env
34
+ ENV.fetch('TXDB_ENV', DEFAULT_ENV)
35
+ end
29
36
  end
30
37
 
31
38
  Txdb::Backends.register('globalize', Txdb::Backends::Globalize::Backend)
@@ -10,6 +10,16 @@ module Txdb
10
10
  end
11
11
  end
12
12
 
13
+ class Application < Sinatra::Base
14
+ helpers RespondWith
15
+
16
+ get '/health_check' do
17
+ respond_with(
18
+ Response.new(200, {})
19
+ )
20
+ end
21
+ end
22
+
13
23
  class Hooks < Sinatra::Base
14
24
  include Txdb::Handlers
15
25
 
@@ -1,3 +1,3 @@
1
1
  module Txdb
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro