dryad-core 0.1.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: b2dbcf31f9ca339bfa9ec07401cbfcedb7a1dfa044ad06979947ebb098695ef0
4
- data.tar.gz: 5411ccae5cbd9ae203084b391b2adc9fd018e1b6a0ad9c756006f575b7903f8e
3
+ metadata.gz: 6c0bf1c8950128ea56c5ef5342d6c2fb41016b67b1841d2b6ce4b8e211715e5d
4
+ data.tar.gz: 5f7321eee2bf8e6fc0dd56d36fe59e9f5581296e6015c3f1271a73e52f9f7c81
5
5
  SHA512:
6
- metadata.gz: 62ec5ed5e316691e48e413fc8e42876b53d86aa1747a052ad780034d0d045ca574f32ec4f08fc5f9e7284ceb56a58a6b56219c88b2cf59abe59fa33311b2880b
7
- data.tar.gz: f79a8c4edd85dd8b8254a54679dc6c10132ac701e81ed18b2c90b6123f7ccbd2b35e3a4edefb75b5524d54352fe256ce703fe5e1af209635c85ec046f21e447f
6
+ metadata.gz: 71ac6fd5f7557acec9daa324932c4e60bcd5df25e43862c96582cc12d379df3b83d0f7179e0b7dca6909024c38de9ad4ce8bf2d96481ae4803dca6d240ee2fa7
7
+ data.tar.gz: e1b3af88980742646991634be7d41aa4ac82372af3706ecab7a6a762e3ed411129756974c39e1b648ebe22e6990e2fa1ce24226e00e60092d4b47b488f891205
data/lib/dryad/core.rb CHANGED
@@ -4,9 +4,12 @@ require "dryad/core/service"
4
4
  require "dryad/core/portal"
5
5
  require "dryad/core/load_balancing"
6
6
  require "dryad/core/schema"
7
+ require "dryad/core/config_desc"
8
+ require "dryad/core/config_provider"
7
9
 
8
10
  module Dryad
9
11
  module Core
10
12
  class Error < StandardError; end
13
+ class ConfigurationNotFound < Error; end
11
14
  end
12
15
  end
@@ -0,0 +1,13 @@
1
+ module Dryad
2
+ module Core
3
+ class ConfigDesc
4
+ attr_accessor :path, :payload, :version
5
+
6
+ def initialize(path, payload, version)
7
+ @path = path
8
+ @payload = payload
9
+ @version = version
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ module Dryad
2
+ module Core
3
+ class ConfigProvider
4
+ def load
5
+ raise "Implement this method"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,10 +1,5 @@
1
1
  module Dryad
2
2
  module Core
3
- MAJOR = 0
4
- MINOR = 1
5
- TINY = 1
6
- PRE = nil
7
-
8
- VERSION = [MAJOR, MINOR, TINY, PRE].compact.join(".")
3
+ VERSION = '0.2.0'
9
4
  end
10
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryad-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pan Jie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-28 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,6 +73,8 @@ files:
73
73
  - lib/dryad.rb
74
74
  - lib/dryad/configuration.rb
75
75
  - lib/dryad/core.rb
76
+ - lib/dryad/core/config_desc.rb
77
+ - lib/dryad/core/config_provider.rb
76
78
  - lib/dryad/core/load_balancing.rb
77
79
  - lib/dryad/core/portal.rb
78
80
  - lib/dryad/core/schema.rb