freyr 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/freyr/service_info.rb +5 -1
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.11
1
+ 0.3.12
@@ -102,7 +102,11 @@ module Freyr
102
102
 
103
103
  def service name=nil, &blk
104
104
  name = "#{@namespace}:#{name}" if @namespace
105
- @added_services << new(name,&blk)
105
+ if service = Service[name].first
106
+ service.service_info.instance_eval(&blk)
107
+ else
108
+ @added_services << new(name,&blk)
109
+ end
106
110
  end
107
111
  end
108
112
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freyr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 11
10
- version: 0.3.11
9
+ - 12
10
+ version: 0.3.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tal Atlas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-26 00:00:00 -04:00
18
+ date: 2011-08-03 00:00:00 -04:00
19
19
  default_executable: freyr
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency