memodis 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.2
1
+ 0.0.3
@@ -1,8 +1,9 @@
1
- require 'pathname'
2
- load Pathname.new(__FILE__).parent+'dependencies.rb'
1
+ require 'rubygems'
3
2
 
3
+ require 'pathname'
4
4
  require 'memodis/dist_cache'
5
5
 
6
+
6
7
  module Memodis
7
8
 
8
9
  # slurp cool vendor goodies into our namespace. would declare them
@@ -1,5 +1,6 @@
1
- module Memodis
1
+ require 'dist_redis'
2
2
 
3
+ module Memodis
3
4
  class DistCache
4
5
 
5
6
  CODERS = {}
@@ -85,5 +86,4 @@ module Memodis
85
86
  end
86
87
 
87
88
  end
88
-
89
89
  end
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.2
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
@@ -1,3 +0,0 @@
1
- [submodule "vendor/levicook/redis-rb"]
2
- path = vendor/levicook/redis-rb
3
- url = git@github.com:levicook/redis-rb.git
@@ -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
-
@@ -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