ez-core 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: 113876d72179ca047b11bc7c086be57ddeda29f6
4
- data.tar.gz: b7d5a9acfbe9c289706f388b3b8fe209f7c9cef5
3
+ metadata.gz: 6edda3aa5ab6d9d128c6b42c9c564228d250c493
4
+ data.tar.gz: db37e3bcbf3453373656eb1230fa61386410b4ab
5
5
  SHA512:
6
- metadata.gz: fe292a13fe64e331c48e33778b1435da50f764a939eb25b463e4d025f7e1db2cea64f6c8f9f727f50faa6f952a2f51a811cdfbc311a5ef856d47ae3cc6ac5fa2
7
- data.tar.gz: 33d9e9a68d89997a425b7eb7ed9f58fcc2684b2a9268faea39c6d51c1df15a9f6064f648c091639f7b4c36c8cfdb97380bd9475277c379dd0d349148430aa4a2
6
+ metadata.gz: beeb9a023c8c39dd617280919d32e068af0072aff679aca3dd30e38ee9ea7baf552760bed21a8dfbf1da4e6ab814bde85bd03a43694c3670985bfcd70b885864
7
+ data.tar.gz: 3f96622baa61c1569998ba28253b25b86c98bdc6e0523772008c0ac2b19d82f02249dfc56c2f895484002fd723e3b7364e2afdbbb69c815325ea2c6434164df9
data/lib/ez/core.rb CHANGED
@@ -2,6 +2,8 @@ require 'ez/core/version'
2
2
  require 'ez/configurator'
3
3
  require 'ez/registry'
4
4
 
5
+ require 'ez/items/link'
6
+
5
7
  module Ez
6
8
  module Core
7
9
  end
@@ -1,5 +1,5 @@
1
1
  module Ez
2
2
  module Core
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -0,0 +1,13 @@
1
+ module Ez
2
+ module Items
3
+ class Link
4
+ attr_reader :label, :path, :options
5
+
6
+ def initialize(label, path, options = {})
7
+ @label = label
8
+ @path = path
9
+ @options = options
10
+ end
11
+ end
12
+ end
13
+ end
data/lib/ez/registry.rb CHANGED
@@ -25,6 +25,10 @@ module Ez
25
25
  end
26
26
  end
27
27
 
28
+ def data(key)
29
+ store(key).map(&:data)
30
+ end
31
+
28
32
  private
29
33
 
30
34
  def get_or_initialize_store_by(key)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez-core
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
  - Volodya Sveredyuk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-24 00:00:00.000000000 Z
11
+ date: 2017-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,6 +102,7 @@ files:
102
102
  - lib/ez/configurator.rb
103
103
  - lib/ez/core.rb
104
104
  - lib/ez/core/version.rb
105
+ - lib/ez/items/link.rb
105
106
  - lib/ez/registry.rb
106
107
  - lib/ez/registry/record.rb
107
108
  - lib/ez/registry/store.rb