memdash 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +2 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +22 -0
  6. data/README.md +58 -0
  7. data/Rakefile +22 -0
  8. data/config.ru +7 -0
  9. data/lib/generators/memdash/active_record_generator.rb +17 -0
  10. data/lib/generators/memdash/templates/migration.rb +12 -0
  11. data/lib/memdash.rb +9 -0
  12. data/lib/memdash/active_record.rb +2 -0
  13. data/lib/memdash/active_record/client.rb +13 -0
  14. data/lib/memdash/active_record/report.rb +13 -0
  15. data/lib/memdash/client.rb +26 -0
  16. data/lib/memdash/configuration.rb +11 -0
  17. data/lib/memdash/server.rb +50 -0
  18. data/lib/memdash/server/public/charts.js +136 -0
  19. data/lib/memdash/server/public/cross_scratches.png +0 -0
  20. data/lib/memdash/server/public/jqplot.canvasAxisTickRenderer.js +243 -0
  21. data/lib/memdash/server/public/jqplot.canvasAxisTickRenderer.min.js +57 -0
  22. data/lib/memdash/server/public/jqplot.canvasTextRenderer.min.js +57 -0
  23. data/lib/memdash/server/public/jqplot.dateAxisRenderer.min.js +57 -0
  24. data/lib/memdash/server/public/jquery.jqplot.min.css +1 -0
  25. data/lib/memdash/server/public/jquery.jqplot.min.js +57 -0
  26. data/lib/memdash/server/public/reset.css +260 -0
  27. data/lib/memdash/server/public/style.css +66 -0
  28. data/lib/memdash/server/views/application.erb +24 -0
  29. data/lib/memdash/server/views/overview.erb +19 -0
  30. data/memdash.gemspec +25 -0
  31. data/screenshot.png +0 -0
  32. data/spec/memdash_spec.rb +31 -0
  33. data/spec/spec_helper.rb +3 -0
  34. data/spec/support/adapters/active_record.rb +11 -0
  35. data/spec/support/dalli.rb +15 -0
  36. data/spec/support/database_cleaner.rb +16 -0
  37. data/spec/support/memcached.rb +6 -0
  38. data/spec/support/schema.rb +12 -0
  39. metadata +204 -0
@@ -0,0 +1,15 @@
1
+ require 'dalli'
2
+
3
+ module DalliHelpers
4
+ def dalli
5
+ @dalli ||= Dalli::Client.new('localhost:19122')
6
+ end
7
+ end
8
+
9
+ RSpec.configure do |config|
10
+ config.include DalliHelpers
11
+
12
+ config.after do
13
+ dalli.flush
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ require 'database_cleaner'
2
+
3
+ RSpec.configure do |config|
4
+ config.before :suite do
5
+ DatabaseCleaner.strategy = :truncation
6
+ DatabaseCleaner.clean_with :truncation
7
+ end
8
+
9
+ config.before do
10
+ DatabaseCleaner.start
11
+ end
12
+
13
+ config.after do
14
+ DatabaseCleaner.clean
15
+ end
16
+ end
@@ -0,0 +1,6 @@
1
+ RSpec.configure do |config|
2
+ config.before :suite do
3
+ pid = IO.popen('memcached -p 19122').pid
4
+ at_exit{ Process.kill('TERM', pid) }
5
+ end
6
+ end
@@ -0,0 +1,12 @@
1
+ require 'active_record'
2
+
3
+ ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
4
+
5
+ ActiveRecord::Migration.verbose = false
6
+
7
+ ActiveRecord::Schema.define do
8
+ create_table :memdash_reports do |t|
9
+ t.text :stats
10
+ t.datetime :created_at
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,204 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: memdash
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Brian Ryckbost
9
+ - Steve Richert
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-04-25 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activerecord
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: '3.0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: dalli
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: '2.0'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: sinatra
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: '1.3'
63
+ - !ruby/object:Gem::Dependency
64
+ name: database_cleaner
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ - !ruby/object:Gem::Dependency
80
+ name: rake
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ type: :development
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rspec
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ description: A dashboard for your memcache
128
+ email:
129
+ - bryckbost@gmail.com
130
+ - steve.richert@gmail.com
131
+ executables: []
132
+ extensions: []
133
+ extra_rdoc_files: []
134
+ files:
135
+ - .gitignore
136
+ - .rspec
137
+ - .travis.yml
138
+ - Gemfile
139
+ - LICENSE
140
+ - README.md
141
+ - Rakefile
142
+ - config.ru
143
+ - lib/generators/memdash/active_record_generator.rb
144
+ - lib/generators/memdash/templates/migration.rb
145
+ - lib/memdash.rb
146
+ - lib/memdash/active_record.rb
147
+ - lib/memdash/active_record/client.rb
148
+ - lib/memdash/active_record/report.rb
149
+ - lib/memdash/client.rb
150
+ - lib/memdash/configuration.rb
151
+ - lib/memdash/server.rb
152
+ - lib/memdash/server/public/charts.js
153
+ - lib/memdash/server/public/cross_scratches.png
154
+ - lib/memdash/server/public/jqplot.canvasAxisTickRenderer.js
155
+ - lib/memdash/server/public/jqplot.canvasAxisTickRenderer.min.js
156
+ - lib/memdash/server/public/jqplot.canvasTextRenderer.min.js
157
+ - lib/memdash/server/public/jqplot.dateAxisRenderer.min.js
158
+ - lib/memdash/server/public/jquery.jqplot.min.css
159
+ - lib/memdash/server/public/jquery.jqplot.min.js
160
+ - lib/memdash/server/public/reset.css
161
+ - lib/memdash/server/public/style.css
162
+ - lib/memdash/server/views/application.erb
163
+ - lib/memdash/server/views/overview.erb
164
+ - memdash.gemspec
165
+ - screenshot.png
166
+ - spec/memdash_spec.rb
167
+ - spec/spec_helper.rb
168
+ - spec/support/adapters/active_record.rb
169
+ - spec/support/dalli.rb
170
+ - spec/support/database_cleaner.rb
171
+ - spec/support/memcached.rb
172
+ - spec/support/schema.rb
173
+ homepage: https://github.com/bryckbost/memdash
174
+ licenses: []
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ requirements: []
192
+ rubyforge_project:
193
+ rubygems_version: 1.8.21
194
+ signing_key:
195
+ specification_version: 3
196
+ summary: A dashboard for your memcache
197
+ test_files:
198
+ - spec/memdash_spec.rb
199
+ - spec/spec_helper.rb
200
+ - spec/support/adapters/active_record.rb
201
+ - spec/support/dalli.rb
202
+ - spec/support/database_cleaner.rb
203
+ - spec/support/memcached.rb
204
+ - spec/support/schema.rb