robot-controller 0.3.5 → 0.3.6

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: 5b6e7b98160ab2e2bafcedeb13febf37519a8b29
4
- data.tar.gz: ec59baf962a34f223fb8e7af52f5de9ee76c4818
3
+ metadata.gz: a4d443e3266f6f9ddc29eca4ca918766386ee951
4
+ data.tar.gz: ae62b3f2ca4b59661636a2edbd8a6f9af53da184
5
5
  SHA512:
6
- metadata.gz: c091e368df94d1b6d5f20debecd7a7e450bf0bd3071c4aa026895a8eb882d96ea80d155abd68706735a791854184ca9ceca7080d1b13bcf283d5c6f7e9d44164
7
- data.tar.gz: 474170f9cfeed0aa05ff970ae6bc62dfc068e4f94e3942abec40fce7beef5dcbfa6c01d5ce00b417ea719bd1f1e820e3d41c2d65f0c04e86771b41d5af7033d6
6
+ metadata.gz: 445ffbb9be84122c5de5d2e8e07b5f5f1c7b2e5231b75b59899503d3c852d0a64babac3a872e7f20d41b6a9734b22b3985c4d132f28345a7e4afce24878ada0f
7
+ data.tar.gz: d94f0dd6985e7aa7adf53ff2db612ba77b8f770c927b59d2d067ce65c550554b842ed4cb10bab3715f6b2c9d9e8fcbd6413fad9db9714c70802e9584764ea7a1
data/Rakefile CHANGED
@@ -10,4 +10,4 @@ require 'rspec/core/rake_task'
10
10
  desc "Run specs"
11
11
  RSpec::Core::RakeTask.new(:spec)
12
12
 
13
- task :default => [ :yard ]
13
+ task :default => [ :yard, :spec ]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -28,7 +28,7 @@ Bluepill.application File.basename(File.dirname(File.dirname(WORKDIR))),
28
28
  'QUEUES' => queues,
29
29
  'ROBOT_ENVIRONMENT' => robot_environment
30
30
  }
31
- process.environment['VERBOSE'] = 'yes' if robot_environment != 'production'
31
+ process.environment['VERBOSE'] = 'yes' if ENV['ROBOT_VERBOSE'] == 'yes'
32
32
 
33
33
  # process configuration
34
34
  process.group = robot_environment
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robot-controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hardy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bluepill
@@ -151,7 +151,6 @@ files:
151
151
  - Rakefile
152
152
  - VERSION
153
153
  - bin/controller
154
- - example/config/boot.rb
155
154
  - example/config/environments/robots_development.yml
156
155
  - example/lib/tasks/environment.rake
157
156
  - lib/robot-controller.rb
@@ -1,35 +0,0 @@
1
- $:.unshift File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))
2
-
3
- require 'rubygems'
4
- require 'bundler/setup'
5
- require 'logger'
6
-
7
- # Load the environment file based on Environment. Default to development
8
- ENV['ROBOT_ENVIRONMENT'] ||= 'development'
9
- require File.expand_path(File.join(File.dirname(__FILE__), 'environments', ENV['ROBOT_ENVIRONMENT']))
10
-
11
- ENV['ROBOT_LOG'] ||= 'stdout'
12
- ENV['ROBOT_LOG_LEVEL'] ||= 'info'
13
- ROBOT_LOG = Logger.new(ENV['ROBOT_LOG'].downcase == 'stdout' ? STDOUT : ENV['ROBOT_LOG'])
14
- ROBOT_LOG.level = Logger::SEV_LABEL.index(ENV['ROBOT_LOG_LEVEL'].upcase) || Logger::INFO
15
-
16
- # if running under debugging and using stdout, then run unbuffered
17
- STDOUT.sync = true if ENV['ROBOT_LOG_LEVEL'].downcase == 'debug' and ENV['ROBOT_LOG'].downcase == 'stdout'
18
-
19
- # @see http://rubydoc.info/gems/redis/3.0.7/file/README.md
20
- # @see https://github.com/resque/resque
21
- #
22
- # Set the redis connection. Takes any of:
23
- # String - a redis url string (e.g., 'redis://host:port')
24
- # String - 'hostname:port[:db][/namespace]'
25
- # Redis - a redis connection that will be namespaced :resque
26
- # Redis::Namespace - a namespaced redis connection that will be used as-is
27
- # Redis::Distributed - a distributed redis connection that will be used as-is
28
- # Hash - a redis connection hash (e.g. {:host => 'localhost', :port => 6379, :db => 0})
29
- require 'resque'
30
- REDIS_URL ||= "localhost:6379/resque:#{ENV['ROBOT_ENVIRONMENT']}"
31
- Resque.redis = REDIS_URL
32
-
33
- require 'active_support/core_ext' # camelcase
34
- require 'robot-controller'
35
-