magistrate_monitor 0.2.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -17,6 +17,8 @@ MagistrateMonitor will mount in a Rails 3.x app very easily.
17
17
  3. Then add this to your routes.rb:
18
18
 
19
19
  mount MagistrateMonitor::Server => '/magistrate'
20
+
21
+ 4. Add a config/magistrate.yml file if you want to have authentication (see the magistrate gem's example_config.yml)
20
22
 
21
23
  ### Mounting the application in rails 2.3.*
22
24
 
@@ -13,13 +13,17 @@ module MagistrateMonitor
13
13
  set :static, true
14
14
 
15
15
  set :basic_auth_credentials, lambda {
16
+ result = nil
17
+
16
18
  config_file = File.join('config', 'magistrate.yml')
17
19
  if File.exist?( config_file )
18
20
  config = File.open(config_file) { |file| YAML.load(file) }
19
21
  if config['http_username'] && config['http_password']
20
- [config['http_username'], config['http_password']]
22
+ result = [config['http_username'], config['http_password']]
21
23
  end
22
24
  end
25
+
26
+ result
23
27
  }
24
28
 
25
29
  if basic_auth_credentials && ENV['RACK_ENV'] != 'test'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "magistrate_monitor"
3
- s.version = "0.2.4"
3
+ s.version = "0.4.0"
4
4
 
5
5
  s.summary = "The user frontend to monitoring and managing the magistrate gem"
6
6
  s.description = "Receives checkins from the magistrate gem and sends back commands"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magistrate_monitor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
8
  - 4
10
- version: 0.2.4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Drew Blas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-01 00:00:00 -05:00
18
+ date: 2011-09-02 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency