memcached-manager 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/config.ru +3 -1
  2. metadata +5 -77
  3. data/.rspec +0 -2
  4. data/.travis.yml +0 -19
  5. data/CONTRIBUTING.md +0 -28
  6. data/Gemfile +0 -26
  7. data/Gemfile.lock +0 -143
  8. data/Rakefile +0 -59
  9. data/VERSION +0 -1
  10. data/features/api/create_memcached_key.feature +0 -6
  11. data/features/api/delete_memcached_key.feature +0 -6
  12. data/features/api/list_memcached_keys.feature +0 -6
  13. data/features/api/set_memcached_info.feature +0 -5
  14. data/features/api/show_memcached_key.feature +0 -10
  15. data/features/api/show_memcached_stats.feature +0 -5
  16. data/features/api/update_memcached_key.feature +0 -7
  17. data/features/step_definitions/api/create_memcached_key.rb +0 -21
  18. data/features/step_definitions/api/delete_memcached_key.rb +0 -7
  19. data/features/step_definitions/api/list_memcached_keys.rb +0 -16
  20. data/features/step_definitions/api/show_memcached_key.rb +0 -18
  21. data/features/step_definitions/api/show_memcached_stats.rb +0 -3
  22. data/features/step_definitions/api/update_memcached_key.rb +0 -18
  23. data/features/step_definitions/set_memcached_info.rb +0 -25
  24. data/features/step_definitions/webapp/create_memcached_key.rb +0 -10
  25. data/features/step_definitions/webapp/delete_memcached_key.rb +0 -16
  26. data/features/step_definitions/webapp/edit_memcached_key.rb +0 -3
  27. data/features/step_definitions/webapp/list_memcached_keys.rb +0 -4
  28. data/features/step_definitions/webapp/show_memcached_key.rb +0 -4
  29. data/features/step_definitions/webapp/show_memcached_stats.rb +0 -5
  30. data/features/support/env.rb +0 -28
  31. data/features/support/hooks.rb +0 -3
  32. data/features/webapp/create_memcached_key.feature +0 -9
  33. data/features/webapp/delete_memcached_key.feature +0 -8
  34. data/features/webapp/edit_memcached_key.feature +0 -9
  35. data/features/webapp/list_memcached_keys.feature +0 -8
  36. data/features/webapp/show_memcached_key.feature +0 -7
  37. data/features/webapp/show_memcached_stats.feature +0 -6
  38. data/lib/api.rb +0 -85
  39. data/lib/extensions.rb +0 -14
  40. data/lib/extensions/api_response.rb +0 -15
  41. data/lib/extensions/errors.rb +0 -19
  42. data/lib/extensions/memcached_connection.rb +0 -15
  43. data/lib/extensions/memcached_inspector.rb +0 -49
  44. data/lib/extensions/memcached_settings.rb +0 -18
  45. data/lib/public/images/glyphicons-halflings-white.png +0 -0
  46. data/lib/public/images/glyphicons-halflings.png +0 -0
  47. data/lib/public/javascripts/angular-resource.min.js +0 -10
  48. data/lib/public/javascripts/angular-ui-states.min.js +0 -7
  49. data/lib/public/javascripts/angular.min.js +0 -161
  50. data/lib/public/javascripts/angular/controllers.js +0 -89
  51. data/lib/public/javascripts/angular/routes.js +0 -66
  52. data/lib/public/javascripts/angular/services/notification.js +0 -16
  53. data/lib/public/javascripts/angular/services/resources.js +0 -20
  54. data/lib/public/javascripts/angular/services/response.js +0 -10
  55. data/lib/public/javascripts/application.js +0 -18
  56. data/lib/public/javascripts/jquery-1.9.1.min.js +0 -5
  57. data/lib/public/javascripts/noty/jquery.noty.js +0 -547
  58. data/lib/public/javascripts/noty/layouts/top.js +0 -34
  59. data/lib/public/javascripts/noty/themes/default.js +0 -156
  60. data/lib/public/javascripts/noty_config.js +0 -25
  61. data/lib/public/stylesheets/app.css +0 -50
  62. data/lib/public/stylesheets/base.css +0 -269
  63. data/lib/public/stylesheets/icons.css +0 -492
  64. data/lib/public/stylesheets/layout.css +0 -58
  65. data/lib/public/stylesheets/skeleton.css +0 -242
  66. data/lib/public/templates/edit.html.erb +0 -6
  67. data/lib/public/templates/keys.html.erb +0 -36
  68. data/lib/public/templates/new.html.erb +0 -6
  69. data/lib/public/templates/show.html.erb +0 -2
  70. data/lib/public/templates/stats.html.erb +0 -8
  71. data/lib/views/index.erb +0 -13
  72. data/lib/views/layout.erb +0 -52
  73. data/lib/webapp.rb +0 -14
  74. data/memcached-manager.gemspec +0 -152
data/config.ru CHANGED
@@ -2,7 +2,9 @@
2
2
  require './lib/webapp'
3
3
  require './lib/api'
4
4
 
5
- run Rack::URLMap.new({
5
+ MemcachedManager::App = Rack::URLMap.new({
6
6
  "/api" => MemcachedManager::API.new,
7
7
  "/" => MemcachedManager::Webapp.new
8
8
  })
9
+
10
+ run MemcachedManager
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcached-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -149,88 +149,15 @@ extra_rdoc_files:
149
149
  - LICENSE.txt
150
150
  - README.rdoc
151
151
  files:
152
- - .rspec
153
- - .travis.yml
154
- - CONTRIBUTING.md
155
- - Gemfile
156
- - Gemfile.lock
152
+ - config.ru
157
153
  - LICENSE.txt
158
154
  - README.rdoc
159
- - Rakefile
160
- - VERSION
161
- - bin/memcached-manager
162
- - config.ru
163
- - features/api/create_memcached_key.feature
164
- - features/api/delete_memcached_key.feature
165
- - features/api/list_memcached_keys.feature
166
- - features/api/set_memcached_info.feature
167
- - features/api/show_memcached_key.feature
168
- - features/api/show_memcached_stats.feature
169
- - features/api/update_memcached_key.feature
170
- - features/step_definitions/api/create_memcached_key.rb
171
- - features/step_definitions/api/delete_memcached_key.rb
172
- - features/step_definitions/api/list_memcached_keys.rb
173
- - features/step_definitions/api/show_memcached_key.rb
174
- - features/step_definitions/api/show_memcached_stats.rb
175
- - features/step_definitions/api/update_memcached_key.rb
176
- - features/step_definitions/set_memcached_info.rb
177
- - features/step_definitions/webapp/create_memcached_key.rb
178
- - features/step_definitions/webapp/delete_memcached_key.rb
179
- - features/step_definitions/webapp/edit_memcached_key.rb
180
- - features/step_definitions/webapp/list_memcached_keys.rb
181
- - features/step_definitions/webapp/show_memcached_key.rb
182
- - features/step_definitions/webapp/show_memcached_stats.rb
183
- - features/support/env.rb
184
- - features/support/hooks.rb
185
- - features/webapp/create_memcached_key.feature
186
- - features/webapp/delete_memcached_key.feature
187
- - features/webapp/edit_memcached_key.feature
188
- - features/webapp/list_memcached_keys.feature
189
- - features/webapp/show_memcached_key.feature
190
- - features/webapp/show_memcached_stats.feature
191
- - lib/api.rb
192
- - lib/extensions.rb
193
- - lib/extensions/api_response.rb
194
- - lib/extensions/errors.rb
195
- - lib/extensions/memcached_connection.rb
196
- - lib/extensions/memcached_inspector.rb
197
- - lib/extensions/memcached_settings.rb
198
- - lib/public/images/glyphicons-halflings-white.png
199
- - lib/public/images/glyphicons-halflings.png
200
- - lib/public/javascripts/angular-resource.min.js
201
- - lib/public/javascripts/angular-ui-states.min.js
202
- - lib/public/javascripts/angular.min.js
203
- - lib/public/javascripts/angular/controllers.js
204
- - lib/public/javascripts/angular/routes.js
205
- - lib/public/javascripts/angular/services/notification.js
206
- - lib/public/javascripts/angular/services/resources.js
207
- - lib/public/javascripts/angular/services/response.js
208
- - lib/public/javascripts/application.js
209
- - lib/public/javascripts/jquery-1.9.1.min.js
210
- - lib/public/javascripts/noty/jquery.noty.js
211
- - lib/public/javascripts/noty/layouts/top.js
212
- - lib/public/javascripts/noty/themes/default.js
213
- - lib/public/javascripts/noty_config.js
214
- - lib/public/stylesheets/app.css
215
- - lib/public/stylesheets/base.css
216
- - lib/public/stylesheets/icons.css
217
- - lib/public/stylesheets/layout.css
218
- - lib/public/stylesheets/skeleton.css
219
- - lib/public/templates/edit.html.erb
220
- - lib/public/templates/keys.html.erb
221
- - lib/public/templates/new.html.erb
222
- - lib/public/templates/show.html.erb
223
- - lib/public/templates/stats.html.erb
224
- - lib/views/index.erb
225
- - lib/views/layout.erb
226
- - lib/webapp.rb
227
- - memcached-manager.gemspec
228
155
  - spec/javascripts/angular/controllers/list_keys_controller_spec.js
229
156
  - spec/javascripts/angular/services/notification_spec.js
230
157
  - spec/javascripts/angular/services/resource_spec.js
231
158
  - spec/javascripts/angular/services/response_spec.js
232
- - spec/javascripts/helpers/SpecHelper.js
233
159
  - spec/javascripts/helpers/angular-mocks.js
160
+ - spec/javascripts/helpers/SpecHelper.js
234
161
  - spec/javascripts/support/jasmine.yml
235
162
  - spec/javascripts/support/jasmine_helper.rb
236
163
  - spec/lib/extensions/api_response_spec.rb
@@ -239,6 +166,7 @@ files:
239
166
  - spec/lib/extensions/memcached_inspector_spec.rb
240
167
  - spec/lib/extensions/memcached_settings_spec.rb
241
168
  - spec/spec_helper.rb
169
+ - bin/memcached-manager
242
170
  homepage: http://github.com/thiagofm/memcached-manager
243
171
  licenses:
244
172
  - MIT
@@ -254,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
182
  version: '0'
255
183
  segments:
256
184
  - 0
257
- hash: 2320618041102712995
185
+ hash: -229389020332258525
258
186
  required_rubygems_version: !ruby/object:Gem::Requirement
259
187
  none: false
260
188
  requirements:
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --backtrace
data/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- before_script:
2
- - "export DISPLAY=:99.0"
3
- - "sh -e /etc/init.d/xvfb start"
4
-
5
- before_install:
6
- - gem install bundler
7
-
8
- script:
9
- rake
10
-
11
- rvm:
12
- - 1.9.3
13
- - 2.0.0
14
-
15
- gemfile:
16
- - Gemfile
17
-
18
- services:
19
- - memcache
data/CONTRIBUTING.md DELETED
@@ -1,28 +0,0 @@
1
- == Running development mode
2
-
3
- bundle install
4
- rackup
5
-
6
- == Running the test suite
7
-
8
- First, make sure you have phantomjs installed if you want to run cukes tagged as @javascript(those who are in the features/webapp directory.
9
-
10
- Have `memcached` run on `localhost:11211` then run:
11
-
12
- bundle exec rake
13
-
14
- == Roadmap(stuff you can do)
15
-
16
- * Develop frontend & artwork (in progress)
17
- * Favicon
18
- * Update API/frontend in order to use http statuses for errors, creation and so on.
19
-
20
- == Making a pull request?
21
-
22
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
23
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
24
- * Fork the project.
25
- * Start a feature/bugfix branch.
26
- * Commit and push until you are happy with your contribution.
27
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
28
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
data/Gemfile DELETED
@@ -1,26 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "sinatra"
4
- gem "sinatra-contrib"
5
- gem "dalli"
6
- gem "vegas"
7
- gem "thin"
8
-
9
- group :development do
10
- gem "jeweler", "~> 1.8.8"
11
- end
12
-
13
- group :test do
14
- gem "poltergeist"
15
- gem "rack-test", :require => "rack/test"
16
- gem "rspec"
17
- gem "mocha"
18
- gem "cucumber"
19
- gem "capybara", :require => false
20
- gem "faraday"
21
- end
22
-
23
- group :development, :test do
24
- gem 'jasmine', "= 1.3.2"
25
- gem "cucumber"
26
- end
data/Gemfile.lock DELETED
@@ -1,143 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.3.5)
5
- backports (3.3.4)
6
- builder (3.2.2)
7
- capybara (2.1.0)
8
- mime-types (>= 1.16)
9
- nokogiri (>= 1.3.3)
10
- rack (>= 1.0.0)
11
- rack-test (>= 0.5.4)
12
- xpath (~> 2.0)
13
- childprocess (0.3.9)
14
- ffi (~> 1.0, >= 1.0.11)
15
- cliver (0.2.2)
16
- cucumber (1.3.8)
17
- builder (>= 2.1.2)
18
- diff-lcs (>= 1.1.3)
19
- gherkin (~> 2.12.1)
20
- multi_json (>= 1.7.5, < 2.0)
21
- multi_test (>= 0.0.2)
22
- daemons (1.1.9)
23
- dalli (2.6.4)
24
- diff-lcs (1.2.4)
25
- eventmachine (1.0.3)
26
- faraday (0.8.8)
27
- multipart-post (~> 1.2.0)
28
- ffi (1.9.0)
29
- gherkin (2.12.1)
30
- multi_json (~> 1.3)
31
- git (1.2.6)
32
- github_api (0.10.1)
33
- addressable
34
- faraday (~> 0.8.1)
35
- hashie (>= 1.2)
36
- multi_json (~> 1.4)
37
- nokogiri (~> 1.5.2)
38
- oauth2
39
- hashie (2.0.5)
40
- highline (1.6.19)
41
- httpauth (0.2.0)
42
- jasmine (1.3.2)
43
- jasmine-core (~> 1.3.1)
44
- rack (~> 1.0)
45
- rspec (>= 1.3.1)
46
- selenium-webdriver (>= 0.1.3)
47
- jasmine-core (1.3.1)
48
- jeweler (1.8.8)
49
- builder
50
- bundler (~> 1.0)
51
- git (>= 1.2.5)
52
- github_api (= 0.10.1)
53
- highline (>= 1.6.15)
54
- nokogiri (= 1.5.10)
55
- rake
56
- rdoc
57
- json (1.8.0)
58
- jwt (0.1.8)
59
- multi_json (>= 1.5)
60
- metaclass (0.0.1)
61
- mime-types (1.25)
62
- mocha (0.14.0)
63
- metaclass (~> 0.0.1)
64
- multi_json (1.8.0)
65
- multi_test (0.0.2)
66
- multi_xml (0.5.5)
67
- multipart-post (1.2.0)
68
- nokogiri (1.5.10)
69
- oauth2 (0.9.2)
70
- faraday (~> 0.8)
71
- httpauth (~> 0.2)
72
- jwt (~> 0.1.4)
73
- multi_json (~> 1.0)
74
- multi_xml (~> 0.5)
75
- rack (~> 1.2)
76
- poltergeist (1.4.1)
77
- capybara (~> 2.1.0)
78
- cliver (~> 0.2.1)
79
- multi_json (~> 1.0)
80
- websocket-driver (>= 0.2.0)
81
- rack (1.5.2)
82
- rack-protection (1.5.0)
83
- rack
84
- rack-test (0.6.2)
85
- rack (>= 1.0)
86
- rake (10.1.0)
87
- rdoc (4.0.1)
88
- json (~> 1.4)
89
- rspec (2.14.1)
90
- rspec-core (~> 2.14.0)
91
- rspec-expectations (~> 2.14.0)
92
- rspec-mocks (~> 2.14.0)
93
- rspec-core (2.14.5)
94
- rspec-expectations (2.14.2)
95
- diff-lcs (>= 1.1.3, < 2.0)
96
- rspec-mocks (2.14.3)
97
- rubyzip (0.9.9)
98
- selenium-webdriver (2.35.1)
99
- childprocess (>= 0.2.5)
100
- multi_json (~> 1.0)
101
- rubyzip (< 1.0.0)
102
- websocket (~> 1.0.4)
103
- sinatra (1.4.3)
104
- rack (~> 1.4)
105
- rack-protection (~> 1.4)
106
- tilt (~> 1.3, >= 1.3.4)
107
- sinatra-contrib (1.4.1)
108
- backports (>= 2.0)
109
- multi_json
110
- rack-protection
111
- rack-test
112
- sinatra (~> 1.4.0)
113
- tilt (~> 1.3)
114
- thin (1.5.1)
115
- daemons (>= 1.0.9)
116
- eventmachine (>= 0.12.6)
117
- rack (>= 1.0.0)
118
- tilt (1.4.1)
119
- vegas (0.1.11)
120
- rack (>= 1.0.0)
121
- websocket (1.0.7)
122
- websocket-driver (0.3.0)
123
- xpath (2.0.0)
124
- nokogiri (~> 1.3)
125
-
126
- PLATFORMS
127
- ruby
128
-
129
- DEPENDENCIES
130
- capybara
131
- cucumber
132
- dalli
133
- faraday
134
- jasmine (= 1.3.2)
135
- jeweler (~> 1.8.8)
136
- mocha
137
- poltergeist
138
- rack-test
139
- rspec
140
- sinatra
141
- sinatra-contrib
142
- thin
143
- vegas
data/Rakefile DELETED
@@ -1,59 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "memcached-manager"
18
- gem.homepage = "http://github.com/thiagofm/memcached-manager"
19
- gem.license = "MIT"
20
- gem.summary = "A sinatra memcached-manager that allows you to view status, flush/view keys and so on. Also easily pluggable to a Rails app."
21
- gem.description = "A sinatra memcached-manager that allows you to view status, flush/view keys and so on. Also easily pluggable to a Rails app."
22
- gem.email = "thiagown@gmail.com"
23
- gem.authors = ["Thiago Fernandes Massa"]
24
- gem.test_files = Dir.glob('spec/**/*')
25
- gem.executables = %w(memcached-manager)
26
- # dependencies defined in Gemfile
27
- end
28
- Jeweler::RubygemsDotOrgTasks.new
29
-
30
- # Tests
31
- begin
32
- require 'jasmine'
33
- load 'jasmine/tasks/jasmine.rake'
34
- rescue LoadError
35
- task :jasmine do
36
- abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
37
- end
38
- end
39
-
40
- require 'cucumber'
41
- require 'cucumber/rake/task'
42
-
43
- Cucumber::Rake::Task.new(:features) do |t|
44
- t.cucumber_opts = "features --format pretty"
45
- end
46
-
47
- require 'rspec/core/rake_task'
48
-
49
- desc "Run specs"
50
- RSpec::Core::RakeTask.new do |t|
51
- t.pattern = "./spec/**/*_spec.rb"
52
- end
53
-
54
- task :jasmineci do
55
- system("export DISPLAY=:99.0 && bundle exec rake jasmine:ci")
56
- raise "#{cmd} failed!" unless $?.exitstatus == 0
57
- end
58
-
59
- task :default => [:jasmineci, :features, :spec]
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.2
@@ -1,6 +0,0 @@
1
- @api
2
- Feature: Create memcached pair
3
- Scenario: Success
4
- When I post some data to "/keys.json" in the API
5
- Then I should receive a json response that it was saved successfully
6
- And it should be saved in memcached
@@ -1,6 +0,0 @@
1
- @api
2
- Feature: Delete memcached key
3
- Scenario: Success
4
- Given there's the "username" memcached key avaiable
5
- When I visit "/keys/username.json" in the API with the delete method
6
- Then this key shouldn't exist.
@@ -1,6 +0,0 @@
1
- @api
2
- Feature: List memcached keys
3
- Scenario: Success
4
- Given there's some memcached keys avaiable
5
- When I visit "/keys.json" in the API
6
- Then I should receive a json response with those keys
@@ -1,5 +0,0 @@
1
- @api
2
- Feature: Set memcached info
3
- Scenario: Success
4
- When I post configs to "/config.json" in the API
5
- Then the memcached config should be set