torquebox-webconsole 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bdf2c24b08c3bd1a49990cbbc76fcc8cb0446a09
4
+ data.tar.gz: 00d89b2b84f9fa0b2824d763ca4f047b1d4e96c4
5
+ SHA512:
6
+ metadata.gz: b18a35c580ef913630886471bee111b56e979b488087a52bedb6c98242a3381be940c9b4b27c205338a7d4813a0b45a31a55e032470e341fb2d97d3d4269150e
7
+ data.tar.gz: 6066397457889f6e9bd4cc3be70d0936f614bd5b74e5a2c0bcf0fcb0a296b89bdf3a65dc01dac259d506422ab6bc67a8c43b90c5420c29f78ce77115ecd74538
@@ -5,12 +5,11 @@ require 'torquebox'
5
5
 
6
6
  module TorqueBox
7
7
  class Webconsole
8
- extend TorqueBox::Injectors
9
8
  class << self
10
-
9
+
11
10
  def lookup_runtime(name)
12
- service_registry = inject('service-registry')
13
- unit = inject('deployment-unit')
11
+ service_registry = TorqueBox.fetch('service-registry')
12
+ unit = TorqueBox.fetch('deployment-unit')
14
13
 
15
14
  service_name = org.torquebox.core.as.CoreServices.runtimePoolName(unit, name)
16
15
  service_controller = service_registry.get_service(service_name)
@@ -27,13 +26,13 @@ module TorqueBox
27
26
  end
28
27
 
29
28
  def list_runtimes
30
- prefix = inject('deployment-unit').
29
+ prefix = TorqueBox.fetch('deployment-unit').
31
30
  service_name.
32
31
  append(org.torquebox.core.as.CoreServices::RUNTIME).
33
32
  append("pool").
34
33
  canonical_name
35
34
 
36
- inject('service-registry').service_names.to_a.map do |x|
35
+ TorqueBox.fetch('service-registry').service_names.to_a.map do |x|
37
36
  $1 if x.canonical_name =~ %r{#{prefix}\.([^.]+)$}
38
37
  end.reject(&:nil?)
39
38
  end
@@ -1,5 +1,5 @@
1
1
  module Torquebox
2
2
  module Webconsole
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,75 +1,68 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: torquebox-webconsole
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
6
5
  platform: ruby
7
- authors:
8
- - Ben Browning
9
- - Tobias Crawley
10
- autorequire:
6
+ authors:
7
+ - Ben Browning
8
+ - Tobias Crawley
9
+ autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
-
14
- date: 2012-04-25 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: tobias-rack-webconsole
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - "="
23
- - !ruby/object:Gem::Version
24
- version: 0.1.5
25
- type: :runtime
26
- version_requirements: *id001
12
+ date: 2013-11-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: tobias-rack-webconsole
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '='
19
+ - !ruby/object:Gem::Version
20
+ version: 0.1.5
21
+ requirement: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - '='
24
+ - !ruby/object:Gem::Version
25
+ version: 0.1.5
26
+ prerelease: false
27
+ type: :runtime
27
28
  description: Extends rack-webconsole to allow switching between TorqueBox app runtimes.
28
- email:
29
- - bbrowning@redhat.com
30
- - tcrawley@redhat.com
29
+ email:
30
+ - bbrowning@redhat.com
31
+ - tcrawley@redhat.com
31
32
  executables: []
32
-
33
33
  extensions: []
34
-
35
34
  extra_rdoc_files: []
36
-
37
- files:
38
- - .gitignore
39
- - Gemfile
40
- - LICENSE
41
- - README.md
42
- - Rakefile
43
- - lib/torquebox/webconsole.rb
44
- - lib/torquebox/webconsole/rack-webconsole-patch.rb
45
- - lib/torquebox/webconsole/version.rb
46
- - torquebox-webconsole.gemspec
35
+ files:
36
+ - .gitignore
37
+ - Gemfile
38
+ - LICENSE
39
+ - README.md
40
+ - Rakefile
41
+ - lib/torquebox/webconsole.rb
42
+ - lib/torquebox/webconsole/rack-webconsole-patch.rb
43
+ - lib/torquebox/webconsole/version.rb
44
+ - torquebox-webconsole.gemspec
47
45
  homepage: https://github.com/torquebox/torquebox-webconsole
48
46
  licenses: []
49
-
50
- post_install_message:
47
+ metadata: {}
48
+ post_install_message:
51
49
  rdoc_options: []
52
-
53
- require_paths:
54
- - lib
55
- required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
67
62
  requirements: []
68
-
69
- rubyforge_project:
70
- rubygems_version: 1.8.15
71
- signing_key:
72
- specification_version: 3
63
+ rubyforge_project:
64
+ rubygems_version: 2.1.9
65
+ signing_key:
66
+ specification_version: 4
73
67
  summary: Extends rack-webconsole to allow switching between TorqueBox app runtimes.
74
68
  test_files: []
75
-