maidservice 0.0.3 → 0.0.5

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: 15e82f3b0c8c0003385f9fea80039dfc2e38a5a5
4
- data.tar.gz: c7be037f5fb96059af8812dacce5ef2c1f7b4d15
3
+ metadata.gz: faac9fb17500d97bc0ec1f5c4104a91de7471e4f
4
+ data.tar.gz: b8694fbfc5ed009e57ca196e17311862a26896d1
5
5
  SHA512:
6
- metadata.gz: c7fc22c752528b6732d3fd657fb0005e0d2a5504718dfa66d90a3880cdf680fe120e79a1ea8f655c3723b88373054b01a73c99c7c3fed7487864f1e9c40800f7
7
- data.tar.gz: 26f571bf19e4e7b478a6050f5ea89658c97aba58aa20309712eed9a834459e1b23e2b383b20584d8fae3727ed1eaf4501cf7ffce278f8d7a4711c274710812fe
6
+ metadata.gz: 2e36c70f9ae02f69b9a2ef9c01ca72e0331bbaf206374a723e5908afce1f97e331f5752fa3461dd26231713164c551996456429bfcd9872476fcc2d7ff1b13d8
7
+ data.tar.gz: 167e895e0ce0681cfbba5a37a081a62da47a64c10a820d4cb920e678c0b22a93d6cb7d30c22f4ca21028c8539d27d0a7e3053b835fef865fb925b63135e6c030
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
3
  $LOAD_PATH.unshift 'lib'
4
+ import "lib/maidservice/tasks/maidservice.rake"
data/TODO.md CHANGED
@@ -1,2 +1,2 @@
1
1
  * make sure there's appropriate logging
2
- * tests
2
+ * tests
@@ -3,6 +3,11 @@ module Maidservice
3
3
 
4
4
  # Daemon that runs and listens
5
5
  def self.run
6
+
7
+ Signal.trap("INT") do |sig|
8
+ exit 0
9
+ end
10
+
6
11
  $0 = "Maidservice: Starting"
7
12
 
8
13
  # get output from the child in there.
@@ -1,8 +1,17 @@
1
- namespace :maidservice do
1
+ require 'maidservice'
2
+ require 'maidservice/listener'
2
3
 
4
+ namespace :maidservice do
3
5
  desc "Start Maid Service"
4
- task :clean => :environment do
6
+ task :clean => :preload do
5
7
  Maidservice::Listener.run
6
8
  end
7
9
 
10
+ desc "Setup Rails environment"
11
+ task :preload do
12
+ if defined?(Rails) && Rails.application
13
+ Rails.application.require_environment!
14
+ end
15
+ end
16
+
8
17
  end
@@ -1,3 +1,3 @@
1
1
  module Maidservice
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
data/maidservice.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "rspec"
24
- spec.add_development_dependency 'railties'
24
+ spec.add_development_dependency 'railties', '~> 3.2.14'
25
25
 
26
26
  spec.add_dependency "redis-namespace", "~> 1.3"
27
27
  spec.add_dependency "redis", "> 3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maidservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Carleton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-28 00:00:00.000000000 Z
11
+ date: 2013-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: railties
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 3.2.14
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 3.2.14
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: redis-namespace
71
71
  requirement: !ruby/object:Gem::Requirement