all_seeing_eye 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -2
- data/VERSION +1 -1
- data/all_seeing_eye.gemspec +1 -4
- data/lib/all_seeing_eye.rb +26 -2
- metadata +9 -23
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/all_seeing_eye.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{all_seeing_eye}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Josh Symonds"]
|
@@ -64,7 +64,6 @@ Gem::Specification.new do |s|
|
|
64
64
|
s.add_runtime_dependency(%q<redis>, [">= 0"])
|
65
65
|
s.add_runtime_dependency(%q<chronic>, [">= 0"])
|
66
66
|
s.add_runtime_dependency(%q<rbtree>, [">= 0"])
|
67
|
-
s.add_runtime_dependency(%q<i18n>, [">= 0"])
|
68
67
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
69
68
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
70
69
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
@@ -72,7 +71,6 @@ Gem::Specification.new do |s|
|
|
72
71
|
s.add_dependency(%q<redis>, [">= 0"])
|
73
72
|
s.add_dependency(%q<chronic>, [">= 0"])
|
74
73
|
s.add_dependency(%q<rbtree>, [">= 0"])
|
75
|
-
s.add_dependency(%q<i18n>, [">= 0"])
|
76
74
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
77
75
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
78
76
|
s.add_dependency(%q<rcov>, [">= 0"])
|
@@ -81,7 +79,6 @@ Gem::Specification.new do |s|
|
|
81
79
|
s.add_dependency(%q<redis>, [">= 0"])
|
82
80
|
s.add_dependency(%q<chronic>, [">= 0"])
|
83
81
|
s.add_dependency(%q<rbtree>, [">= 0"])
|
84
|
-
s.add_dependency(%q<i18n>, [">= 0"])
|
85
82
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
86
83
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
87
84
|
s.add_dependency(%q<rcov>, [">= 0"])
|
data/lib/all_seeing_eye.rb
CHANGED
@@ -9,8 +9,32 @@ class AllSeeingEye
|
|
9
9
|
@@configuration
|
10
10
|
end
|
11
11
|
|
12
|
-
def self.redis
|
13
|
-
|
12
|
+
def self.redis
|
13
|
+
@host, @port = nil
|
14
|
+
|
15
|
+
begin
|
16
|
+
resque_config = if defined?(Rails)
|
17
|
+
YAML::load_file("#{Rails.root}/#{location}/resque.yml")
|
18
|
+
else
|
19
|
+
YAML::load_file("./#{location}/resque.yml")
|
20
|
+
end
|
21
|
+
rescue
|
22
|
+
@host = resque_config[ENV['RAILS_ENV']].split(':').first
|
23
|
+
@port = resque_config[ENV['RAILS_ENV']].split(':').first
|
24
|
+
end
|
25
|
+
|
26
|
+
begin
|
27
|
+
redis_config = if defined?(Rails)
|
28
|
+
YAML::load_file("#{Rails.root}/#{location}/resque.yml")
|
29
|
+
else
|
30
|
+
YAML::load_file("./#{location}/resque.yml")
|
31
|
+
end
|
32
|
+
rescue
|
33
|
+
@host = resque_config[ENV['RAILS_ENV']].split(':').first
|
34
|
+
@port = resque_config[ENV['RAILS_ENV']].split(':').first
|
35
|
+
end
|
36
|
+
|
37
|
+
@host, @port = 'localhost', 6379 unless @host && @port
|
14
38
|
@@redis ||= Redis.new(:host => options[:host], :port => options[:port])
|
15
39
|
end
|
16
40
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: all_seeing_eye
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Symonds
|
@@ -60,23 +60,9 @@ dependencies:
|
|
60
60
|
name: rbtree
|
61
61
|
version_requirements: *id003
|
62
62
|
prerelease: false
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
type: :runtime
|
65
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
|
-
requirements:
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
hash: 3
|
71
|
-
segments:
|
72
|
-
- 0
|
73
|
-
version: "0"
|
74
|
-
name: i18n
|
75
|
-
version_requirements: *id004
|
76
|
-
prerelease: false
|
77
63
|
- !ruby/object:Gem::Dependency
|
78
64
|
type: :development
|
79
|
-
requirement: &
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
80
66
|
none: false
|
81
67
|
requirements:
|
82
68
|
- - ~>
|
@@ -88,11 +74,11 @@ dependencies:
|
|
88
74
|
- 0
|
89
75
|
version: 1.0.0
|
90
76
|
name: bundler
|
91
|
-
version_requirements: *
|
77
|
+
version_requirements: *id004
|
92
78
|
prerelease: false
|
93
79
|
- !ruby/object:Gem::Dependency
|
94
80
|
type: :development
|
95
|
-
requirement: &
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
96
82
|
none: false
|
97
83
|
requirements:
|
98
84
|
- - ~>
|
@@ -104,11 +90,11 @@ dependencies:
|
|
104
90
|
- 4
|
105
91
|
version: 1.6.4
|
106
92
|
name: jeweler
|
107
|
-
version_requirements: *
|
93
|
+
version_requirements: *id005
|
108
94
|
prerelease: false
|
109
95
|
- !ruby/object:Gem::Dependency
|
110
96
|
type: :development
|
111
|
-
requirement: &
|
97
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
112
98
|
none: false
|
113
99
|
requirements:
|
114
100
|
- - ">="
|
@@ -118,7 +104,7 @@ dependencies:
|
|
118
104
|
- 0
|
119
105
|
version: "0"
|
120
106
|
name: rcov
|
121
|
-
version_requirements: *
|
107
|
+
version_requirements: *id006
|
122
108
|
prerelease: false
|
123
109
|
description: AllSeeingEye observes all requests, with parameters that you specify, to Redis. Then it composes them into graphs for you to see.
|
124
110
|
email: veraticus@gmail.com
|