memodis 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/memodis.rb +3 -2
- data/lib/memodis/dist_cache.rb +2 -2
- metadata +11 -4
- data/.gitmodules +0 -3
- data/lib/dependencies.rb +0 -10
- data/script/mooch +0 -39
data/Rakefile
CHANGED
@@ -10,6 +10,7 @@ begin
|
|
10
10
|
gem.email = "levicook@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/levicook/memodis"
|
12
12
|
gem.authors = ["levicook@gmail.com"]
|
13
|
+
gem.add_dependency "redis", ">= 0.1.2"
|
13
14
|
gem.add_development_dependency "riot", ">= 0"
|
14
15
|
gem.add_development_dependency "reek", ">= 0"
|
15
16
|
gem.add_development_dependency "daemon_controller", ">= 0"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/memodis.rb
CHANGED
data/lib/memodis/dist_cache.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memodis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- levicook@gmail.com
|
@@ -12,6 +12,16 @@ cert_chain: []
|
|
12
12
|
date: 2010-02-14 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: redis
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.1.2
|
24
|
+
version:
|
15
25
|
- !ruby/object:Gem::Dependency
|
16
26
|
name: riot
|
17
27
|
type: :development
|
@@ -54,17 +64,14 @@ extra_rdoc_files:
|
|
54
64
|
files:
|
55
65
|
- .document
|
56
66
|
- .gitignore
|
57
|
-
- .gitmodules
|
58
67
|
- LICENSE
|
59
68
|
- README.rdoc
|
60
69
|
- Rakefile
|
61
70
|
- VERSION
|
62
71
|
- examples/main.rb
|
63
|
-
- lib/dependencies.rb
|
64
72
|
- lib/memodis.rb
|
65
73
|
- lib/memodis/dist_cache.rb
|
66
74
|
- lib/memodis/local_redis_controller.rb
|
67
|
-
- script/mooch
|
68
75
|
- script/test.watchr
|
69
76
|
- test/memodis_test.rb
|
70
77
|
- test/teststrap.rb
|
data/.gitmodules
DELETED
data/lib/dependencies.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
|
2
|
-
require "pathname"
|
3
|
-
vendor_path = Pathname.new(__FILE__).parent.parent + "vendor"
|
4
|
-
Pathname.glob("#{vendor_path}/**/lib") do |lib|
|
5
|
-
next if $LOAD_PATH.include?(lib)
|
6
|
-
$LOAD_PATH.insert(0, lib.realpath.to_s) if lib.directory?
|
7
|
-
end
|
8
|
-
|
9
|
-
require "dist_redis"
|
10
|
-
|
data/script/mooch
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require "pathname"
|
3
|
-
|
4
|
-
|
5
|
-
LOADER = '''
|
6
|
-
require "pathname"
|
7
|
-
|
8
|
-
vendor_path = Pathname.new(__FILE__).parent.parent + 'vendor'
|
9
|
-
|
10
|
-
Pathname.glob("#{vendor_path}/**/lib") do |lib|
|
11
|
-
next if $LOAD_PATH.include?(lib)
|
12
|
-
$LOAD_PATH.insert(0, lib.realpath.to_s) if lib.directory?
|
13
|
-
end
|
14
|
-
'''
|
15
|
-
|
16
|
-
|
17
|
-
if ARGV[0] == "init"
|
18
|
-
lib = Pathname.new(ARGV[1])
|
19
|
-
lib.mkpath
|
20
|
-
(lib + 'dependencies.rb').open("w") do |file|
|
21
|
-
file.write LOADER
|
22
|
-
end
|
23
|
-
else
|
24
|
-
vendor = Pathname.new("vendor")
|
25
|
-
vendor.mkpath
|
26
|
-
|
27
|
-
if File.exist?('.git')
|
28
|
-
system("git add vendor")
|
29
|
-
system("git submodule add git://github.com/#{ARGV[0]}.git vendor/#{ARGV[0]}")
|
30
|
-
else
|
31
|
-
Dir.chdir(vendor.realpath)
|
32
|
-
system("git clone git://github.com/#{ARGV[0]}.git #{ARGV[0]}")
|
33
|
-
if ARGV[1]
|
34
|
-
Dir.chdir(ARGV[0])
|
35
|
-
system("git checkout #{ARGV[1]}")
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|