patrol 0.2.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/patrol/tasks.rb +30 -0
- data/lib/tasks/patrol.rake +2 -27
- data/patrol.gemspec +4 -3
- metadata +33 -12
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.1
|
data/lib/patrol/tasks.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
namespace :patrol do
|
3
|
+
|
4
|
+
desc "Launch the patrol"
|
5
|
+
task :go => :environment do
|
6
|
+
log = Logger.new("/tmp/patrol.log")
|
7
|
+
output = ""
|
8
|
+
timestamp = Time.now.strftime("%Y-%m-%d %H:%M")
|
9
|
+
output << "[#{timestamp}] Launch the patrol "
|
10
|
+
output << "\n"
|
11
|
+
|
12
|
+
roadmap = YAML.load_file File.join(Rails.root, "config", "patrol.yml")
|
13
|
+
roadmap.values.each do |rule|
|
14
|
+
output << rule["title"]
|
15
|
+
output << "\n"
|
16
|
+
output << "=> #{eval(rule["request"])}"
|
17
|
+
output << "\n"
|
18
|
+
end
|
19
|
+
|
20
|
+
puts output
|
21
|
+
log.info(output)
|
22
|
+
|
23
|
+
PatrolMailer.report(output).deliver
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
|
data/lib/tasks/patrol.rake
CHANGED
@@ -1,29 +1,4 @@
|
|
1
|
+
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib'
|
1
2
|
|
2
|
-
|
3
|
+
require 'patrol/tasks'
|
3
4
|
|
4
|
-
namespace :ppatrol do
|
5
|
-
|
6
|
-
desc "Launch the patrol"
|
7
|
-
task :gooooooooooooooooooooooo => :environment do
|
8
|
-
log = Logger.new("/tmp/patrol.log")
|
9
|
-
output = ""
|
10
|
-
timestamp = Time.now.strftime("%Y-%m-%d %H:%M")
|
11
|
-
output << "[#{timestamp}] Launch the patrol "
|
12
|
-
output << "\n"
|
13
|
-
|
14
|
-
roadmap = YAML.load_file File.join(RAILS_ROOT, "config", "patrol.yml")
|
15
|
-
roadmap.values.each do |rule|
|
16
|
-
output << rule["title"]
|
17
|
-
output << "\n"
|
18
|
-
output << "=> #{eval(rule["request"])}"
|
19
|
-
output << "\n"
|
20
|
-
end
|
21
|
-
|
22
|
-
puts output
|
23
|
-
log.info(output)
|
24
|
-
|
25
|
-
PatrolMailer.report(output).deliver
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
data/patrol.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "patrol"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Caccinolo Benoit"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-07-05"
|
13
13
|
s.description = "patrol through your DB to ckeck data correctness"
|
14
14
|
s.email = "benoit.caccinolo@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
"VERSION",
|
27
27
|
"lib/patrol.rb",
|
28
28
|
"lib/patrol/railtie.rb",
|
29
|
+
"lib/patrol/tasks.rb",
|
29
30
|
"lib/patrol_mailer.rb",
|
30
31
|
"lib/smtp_api_header.rb",
|
31
32
|
"lib/tasks/patrol.rake",
|
@@ -37,7 +38,7 @@ Gem::Specification.new do |s|
|
|
37
38
|
s.homepage = "http://github.com/bcaccinolo/patrol"
|
38
39
|
s.licenses = ["MIT"]
|
39
40
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = "1.8.
|
41
|
+
s.rubygems_version = "1.8.25"
|
41
42
|
s.summary = "patrol through your DB to ckeck data correctness"
|
42
43
|
|
43
44
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patrol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: bundler
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: 1.0.0
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.0.0
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: jeweler
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: 1.6.4
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.6.4
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: rcov
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ! '>='
|
@@ -54,7 +69,12 @@ dependencies:
|
|
54
69
|
version: '0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
description: patrol through your DB to ckeck data correctness
|
59
79
|
email: benoit.caccinolo@gmail.com
|
60
80
|
executables: []
|
@@ -72,6 +92,7 @@ files:
|
|
72
92
|
- VERSION
|
73
93
|
- lib/patrol.rb
|
74
94
|
- lib/patrol/railtie.rb
|
95
|
+
- lib/patrol/tasks.rb
|
75
96
|
- lib/patrol_mailer.rb
|
76
97
|
- lib/smtp_api_header.rb
|
77
98
|
- lib/tasks/patrol.rake
|
@@ -94,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
115
|
version: '0'
|
95
116
|
segments:
|
96
117
|
- 0
|
97
|
-
hash:
|
118
|
+
hash: 2725265092171097362
|
98
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
120
|
none: false
|
100
121
|
requirements:
|
@@ -103,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
124
|
version: '0'
|
104
125
|
requirements: []
|
105
126
|
rubyforge_project:
|
106
|
-
rubygems_version: 1.8.
|
127
|
+
rubygems_version: 1.8.25
|
107
128
|
signing_key:
|
108
129
|
specification_version: 3
|
109
130
|
summary: patrol through your DB to ckeck data correctness
|