memcache_viewer 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MemcacheViewer
2
2
 
3
- TODO: Write a gem description
3
+ ###A gem to Query all contents in Memcache in a Rails Project###
4
4
 
5
5
  ## Installation
6
6
 
@@ -15,10 +15,27 @@ And then execute:
15
15
  Or install it yourself as:
16
16
 
17
17
  $ gem install memcache_viewer
18
+
19
+ Try this command:
20
+
21
+ $ memcache-viewer
22
+ # => No command specified
18
23
 
19
24
  ## Usage
25
+ Run this command in a Rails project, or unpack the gem in a Rails project and run this script:
26
+
27
+ $ memcache-viewer [options] command [key]
28
+
29
+ Options:
30
+
31
+ -e, --environment Environment Rails environment
32
+ -h, --help Help
33
+
34
+ Commands:
20
35
 
21
- TODO: Write usage instructions here
36
+ keys Show all keys in Memcache
37
+ data Show all key-value pairs in Memcache
38
+ get key_name Show value of key in Memcache
22
39
 
23
40
  ## Contributing
24
41
 
data/bin/memcache-viewer CHANGED
@@ -5,7 +5,7 @@ require 'pathname'
5
5
  require 'commandline'
6
6
 
7
7
  OptionParser.new do |opts|
8
- opts.banner = "Usage: #{$0} [options] command [key] [options]"
8
+ opts.banner = "Usage: #{$0} [options] command [key]"
9
9
 
10
10
  opts.on('-e', '--environment Environment', String, 'Rails environment') do |env|
11
11
  RAILS_ENV = env
@@ -1,3 +1,3 @@
1
1
  module MemcacheViewer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -8,9 +8,9 @@ Gem::Specification.new do |gem|
8
8
  gem.version = MemcacheViewer::VERSION
9
9
  gem.authors = ["Bachue Zhou"]
10
10
  gem.email = ["bachue.shu@gmail.com"]
11
- gem.description = %q{A gem to query content in memcache}
12
- gem.summary = %q{A gem to query content in memcache}
13
- gem.homepage = "http://bachue.is-programmer.com"
11
+ gem.description = %q{A gem to query all keys or key-value pairs in memcache in a rails project}
12
+ gem.summary = %q{A gem to query all keys or key-value pairs in memcache in a rails project}
13
+ gem.homepage = "https://gitcafe.com/bachue/memcache-viewer"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bachue Zhou
@@ -54,7 +54,7 @@ dependencies:
54
54
  prerelease: false
55
55
  name: memcache-client
56
56
  type: :development
57
- description: A gem to query content in memcache
57
+ description: A gem to query all keys or key-value pairs in memcache in a rails project
58
58
  email:
59
59
  - bachue.shu@gmail.com
60
60
  executables:
@@ -74,7 +74,7 @@ files:
74
74
  - lib/memcache_viewer/version.rb
75
75
  - memcache_viewer.gemspec
76
76
  has_rdoc: true
77
- homepage: http://bachue.is-programmer.com
77
+ homepage: https://gitcafe.com/bachue/memcache-viewer
78
78
  licenses: []
79
79
 
80
80
  post_install_message:
@@ -102,6 +102,6 @@ rubyforge_project:
102
102
  rubygems_version: 1.3.6
103
103
  signing_key:
104
104
  specification_version: 3
105
- summary: A gem to query content in memcache
105
+ summary: A gem to query all keys or key-value pairs in memcache in a rails project
106
106
  test_files: []
107
107