iron_cache 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ .DS_Store
2
+ pkg/
3
+ doc
4
+ .idea/
5
+ log
6
+ test/config.yml
7
+ *.sublime*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ # A sample Gemfile
2
+ source "https://rubygems.org"
3
+
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ iron_cache (0.0.1)
5
+ iron_core
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ iron_core (0.1.0)
11
+ bundler (> 1.0.0)
12
+ json
13
+ rest
14
+ rest-client
15
+ json (1.7.1)
16
+ memcache-client (1.8.5)
17
+ mime-types (1.18)
18
+ rake (0.9.2.2)
19
+ rest (0.2.0)
20
+ rest-client
21
+ rest-client
22
+ rest-client (1.6.7)
23
+ mime-types (>= 1.16)
24
+ test-unit (2.4.8)
25
+ uber_config (0.0.1)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ iron_cache!
32
+ memcache-client
33
+ rake
34
+ test-unit
35
+ uber_config
data/Rakefile CHANGED
@@ -10,6 +10,7 @@ begin
10
10
  gem.email = "travis@iron.io"
11
11
  gem.homepage = "http://www.iron.io"
12
12
  gem.authors = ["Travis Reeder"]
13
+ gem.add_dependency 'iron_core'
13
14
  gem.add_dependency 'rest-client'
14
15
  gem.add_dependency 'rest', '>= 0.1.2'
15
16
  #gem.add_dependency 'typhoeus'
data/iron_cache.gemspec CHANGED
@@ -1,61 +1,28 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ require File.expand_path('../lib/iron_cache/version', __FILE__)
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = "iron_cache"
8
- s.version = "0.0.1"
3
+ Gem::Specification.new do |gem|
4
+ gem.authors = ["Travis Reeder"]
5
+ gem.email = ["treeder@gmail.com"]
6
+ gem.description = "Ruby client for IronCache by www.iron.io"
7
+ gem.summary = "Ruby client for IronCache by www.iron.io"
8
+ gem.homepage = "https://github.com/iron-io/iron_cache_ruby"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Travis Reeder"]
12
- s.date = "2012-03-26"
13
- s.description = "Ruby client for IronCache by www.iron.io"
14
- s.email = "travis@iron.io"
15
- s.extra_rdoc_files = [
16
- "README.md"
17
- ]
18
- s.files = [
19
- "README.md",
20
- "Rakefile",
21
- "VERSION.yml",
22
- "iron_cache.gemspec",
23
- "lib/iron_cache.rb",
24
- "lib/iron_cache/caches.rb",
25
- "lib/iron_cache/client.rb",
26
- "lib/iron_cache/items.rb",
27
- "test/Gemfile",
28
- "test/Gemfile.lock",
29
- "test/quick_run.rb",
30
- "test/test_base.rb",
31
- "test/test_iron_cache.rb",
32
- "test/test_memcached.rb"
33
- ]
34
- s.homepage = "http://www.iron.io"
35
- s.require_paths = ["lib"]
36
- s.required_ruby_version = Gem::Requirement.new(">= 1.9")
37
- s.rubygems_version = "1.8.15"
38
- s.summary = "Ruby client for IronCache by www.iron.io"
10
+ gem.files = `git ls-files`.split($\)
11
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
+ gem.name = "iron_cache"
14
+ gem.require_paths = ["lib"]
15
+ gem.version = IronCache::VERSION
16
+
17
+ gem.required_rubygems_version = ">= 1.3.6"
18
+ gem.required_ruby_version = Gem::Requirement.new(">= 1.9")
19
+ gem.add_runtime_dependency "iron_core"
20
+
21
+ gem.add_development_dependency "test-unit"
22
+ gem.add_development_dependency "rake"
23
+ gem.add_development_dependency "memcache-client"
24
+ gem.add_development_dependency "uber_config"
39
25
 
40
- if s.respond_to? :specification_version then
41
- s.specification_version = 3
42
26
 
43
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
45
- s.add_runtime_dependency(%q<rest>, [">= 0.1.2"])
46
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
47
- s.add_runtime_dependency(%q<rest>, [">= 0.1.2"])
48
- else
49
- s.add_dependency(%q<rest-client>, [">= 0"])
50
- s.add_dependency(%q<rest>, [">= 0.1.2"])
51
- s.add_dependency(%q<rest-client>, [">= 0"])
52
- s.add_dependency(%q<rest>, [">= 0.1.2"])
53
- end
54
- else
55
- s.add_dependency(%q<rest-client>, [">= 0"])
56
- s.add_dependency(%q<rest>, [">= 0.1.2"])
57
- s.add_dependency(%q<rest-client>, [">= 0"])
58
- s.add_dependency(%q<rest>, [">= 0.1.2"])
59
- end
60
27
  end
61
28
 
@@ -1,3 +1,5 @@
1
+ require 'uri'
2
+
1
3
  module IronCache
2
4
  class Caches
3
5
 
@@ -8,13 +10,16 @@ module IronCache
8
10
  end
9
11
 
10
12
  def path(options={})
11
- path = "/projects/#{@client.project_id}/caches"
13
+ path = "projects/#{@client.project_id}/caches"
12
14
  end
13
15
 
14
16
  def list(options={})
15
17
  ret = []
16
- res, status = @client.get("#{path(options)}", options)
17
- res.each do |q|
18
+ res = @client.get("#{path(options)}", options)
19
+ p res
20
+ parsed = @client.parse_response(res, true)
21
+ p parsed
22
+ parsed.each do |q|
18
23
  #p q
19
24
  q = Cache.new(self, q)
20
25
  ret << q
@@ -25,7 +30,7 @@ module IronCache
25
30
  # options:
26
31
  # :name => can specify an alternative queue name
27
32
  def get(options={})
28
- res, status = @client.get("#{path(options)}/#{options[:name]}")
33
+ res, status = @client.get("#{path(options)}/#{URI.escape options[:name]}")
29
34
  return Cache.new(self, res)
30
35
  end
31
36
 
@@ -1,28 +1,38 @@
1
1
  require 'json'
2
2
  require 'logger'
3
3
  require 'rest'
4
+ require 'iron_core'
4
5
 
5
6
  module IronCache
6
7
 
7
- class Client
8
+ class Client < IronCore::Client
8
9
 
9
- attr_accessor :token, :project_id, :cache_name, :logger,
10
- :scheme, :host, :port
10
+ AWS_US_EAST_HOST = "cache-aws-us-east-1.iron.io"
11
+
12
+ def self.version
13
+
14
+ end
15
+
16
+ attr_accessor :cache_name, :logger
11
17
 
12
18
  def initialize(options={})
19
+ super("cache", options)
20
+
13
21
  @logger = Logger.new(STDOUT)
14
- @logger.level=Logger::INFO
15
22
 
16
- @token = options[:token] || options['token']
17
- @project_id = options[:project_id] || options['project_id']
18
23
  @cache_name = options[:cache_name] || options['cache_name'] || "default"
19
- @scheme = options[:scheme] || options['scheme'] || "https"
20
- @host = options[:host] || options['host'] || "cache-aws-us-east-1.iron.io"
21
- @port = options[:port] || options['port'] || 443
22
24
 
23
- @base_url = "#{@scheme}://#{@host}:#{@port}/1"
25
+ load_from_hash(:scheme => 'https',
26
+ :host => AWS_US_EAST_HOST,
27
+ :port => 443,
28
+ :api_version => 1,
29
+ :user_agent => 'iron_cache_ruby-' + IronCache::VERSION + ' (iron_core_ruby-' + IronCore.version + ')')
30
+
31
+ if (not @token) || (not @project_id)
32
+ IronCore::Logger.error 'IronWorkerNG', 'Both token and project_id must be specified'
33
+ raise IronCore::IronError.new('Both token and project_id must be specified')
34
+ end
24
35
 
25
- @rest = Rest::Client.new
26
36
 
27
37
  end
28
38
 
@@ -38,101 +48,17 @@ module IronCache
38
48
  return Caches.new(self)
39
49
  end
40
50
 
41
- def base_url
42
- #"#{scheme}://#{host}:#{port}/1"
43
- @base_url
44
- end
45
51
 
52
+ def put(method, params={})
53
+ request_hash = {}
54
+ request_hash[:headers] = common_request_hash
55
+ request_hash[:body] = params.to_json
46
56
 
47
- def full_url(path)
48
- url = "#{base_url}#{path}"
49
- url
50
- end
51
-
52
- def common_req_hash
53
- {
54
- :headers=>{"Content-Type" => 'application/json',
55
- "Authorization"=>"OAuth #{@token}",
56
- "User-Agent"=>"IronCache Ruby Client"}
57
- }
58
- end
57
+ IronCore::Logger.debug 'IronCore', "PUT #{url + method} with params='#{request_hash.to_s}'"
59
58
 
60
- def get(path, params={})
61
- url = full_url(path)
62
- @logger.debug 'url=' + url
63
- req_hash = common_req_hash
64
- req_hash[:params] = params if params
65
- @logger.debug 'req_hash=' + req_hash.inspect
66
- response = @rest.get(url, req_hash)
67
- @logger.debug 'GET response=' + response.inspect
68
- res = check_response(response)
69
- return res, response.code
59
+ @rest.put(url + method, request_hash)
70
60
  end
71
61
 
72
- def post(path, params={})
73
- url = full_url(path)
74
- @logger.debug 'url=' + url
75
- #response = @http_sess.post(path + "?oauth=#{@token}", {'oauth' => @token}.merge(params).to_json, {"Content-Type" => 'application/json'})
76
- req_hash = common_req_hash
77
- req_hash[:body] = params.to_json
78
- response = @rest.post(url, req_hash)
79
- @logger.debug 'POST response=' + response.inspect
80
- res = check_response(response)
81
- #@logger.debug 'response: ' + res.inspect
82
- #body = response.body
83
- #res = JSON.parse(body)
84
- return res, response.code
85
- end
86
-
87
- def put(path, params={})
88
- url = full_url(path)
89
- @logger.debug 'url=' + url
90
- #response = @http_sess.post(path + "?oauth=#{@token}", {'oauth' => @token}.merge(params).to_json, {"Content-Type" => 'application/json'})
91
- req_hash = common_req_hash
92
- req_hash[:body] = params.to_json
93
- response = @rest.put(url, req_hash)
94
- @logger.debug 'POST response=' + response.inspect
95
- res = check_response(response)
96
- #@logger.debug 'response: ' + res.inspect
97
- #body = response.body
98
- #res = JSON.parse(body)
99
- return res, response.code
100
- end
101
-
102
-
103
-
104
- def delete(path, params={})
105
- url = "#{base_url}#{path}"
106
- @logger.debug 'url=' + url
107
- req_hash = common_req_hash
108
- req_hash[:params] = params
109
- response = @rest.delete(url, req_hash)
110
- res = check_response(response)
111
- #body = response.body
112
- #res = JSON.parse(body)
113
- #@logger.debug 'response: ' + res.inspect
114
- return res, response.code
115
- end
116
-
117
- def check_response(response)
118
- # response.code # http status code
119
- #response.time # time in seconds the request took
120
- #response.headers # the http headers
121
- #response.headers_hash # http headers put into a hash
122
- #response.body # the response body
123
- status = response.code
124
- body = response.body
125
- # todo: check content-type == application/json before parsing
126
- @logger.debug "response code=" + status.to_s
127
- @logger.debug "response body=" + body.inspect
128
- res = JSON.parse(body)
129
- if status < 400
130
-
131
- else
132
- raise IronCache::Error.new(res["msg"], :status=>status)
133
- end
134
- res
135
- end
136
62
 
137
63
  end
138
64
 
@@ -1,3 +1,5 @@
1
+ require 'uri'
2
+
1
3
  module IronCache
2
4
  class Items
3
5
 
@@ -8,7 +10,7 @@ module IronCache
8
10
  end
9
11
 
10
12
  def path(key, options={})
11
- path = "/projects/#{@client.project_id}/caches/#{options[:cache_name] || @client.cache_name}/items/#{key}"
13
+ path = "projects/#{@client.project_id}/caches/#{URI.escape(options[:cache_name] || @client.cache_name)}/items/#{URI.escape key}"
12
14
  end
13
15
 
14
16
  # options:
@@ -16,11 +18,13 @@ module IronCache
16
18
  # :timeout => amount of time before message goes back on the queue
17
19
  def get(key, options={})
18
20
  begin
19
- res, status = @client.get(path(key, options), options)
21
+ res = @client.get(path(key, options), options)
20
22
  @client.logger.debug "GET response: " + res.inspect
21
- return Item.new(self, res)
22
- rescue IronCache::Error => ex
23
- if ex.status == 404
23
+ json = @client.parse_response(res, true)
24
+ return Item.new(self, json)
25
+ rescue IronCore::IronError => ex
26
+ p ex
27
+ if ex.code == 404
24
28
  return nil
25
29
  end
26
30
  raise ex
@@ -34,9 +38,10 @@ module IronCache
34
38
  def put(key, value, options={})
35
39
  to_send = options
36
40
  to_send[:body] = value
37
- res, status = @client.put(path(key, options), to_send)
41
+ res = @client.put(path(key, options), to_send)
42
+ json = @client.parse_response(res, true)
38
43
  #return Message.new(self, res)
39
- return ResponseBase.new(res)
44
+ return ResponseBase.new(json)
40
45
  end
41
46
 
42
47
  def delete(key, options={})
@@ -0,0 +1,3 @@
1
+ module IronCache
2
+ VERSION = "0.0.2"
3
+ end
data/lib/iron_cache.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require_relative "iron_cache/version"
1
2
  require_relative 'iron_cache/caches'
2
3
  require_relative 'iron_cache/items'
3
4
  require_relative 'iron_cache/client'
data/schedule_abt.rb ADDED
@@ -0,0 +1,16 @@
1
+ require 'abt'
2
+
3
+
4
+ @test_config = UberConfig.load()
5
+
6
+ worker = Abt::TestWorker.new
7
+ worker.git_url = "git://github.com/iron-io/iron_cache_ruby.git"
8
+ worker.test_config = @test_config
9
+ worker.run_local
10
+
11
+ worker.add_notifier(:hip_chat_notifier,
12
+ :config=>{
13
+ "hipchat_api_key"=>'secret_api_key',
14
+ "room_name"=>'Room Name',
15
+ "user_name"=>"AbtWorker"
16
+ })
data/test/test_base.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  gem 'test-unit'
2
2
  require 'test/unit'
3
3
  require 'yaml'
4
+ require 'uber_config'
4
5
  begin
5
6
  require File.join(File.dirname(__FILE__), '../lib/iron_cache')
6
7
  rescue Exception => ex
@@ -13,7 +14,7 @@ class TestBase < Test::Unit::TestCase
13
14
  def setup
14
15
  puts 'setup'
15
16
  # check multiple config locations
16
- @config = load_config
17
+ @config = UberConfig.load
17
18
  puts "config=" + @config.inspect
18
19
  @client = IronCache::Client.new(@config['iron'])
19
20
  @client.logger.level = Logger::DEBUG
@@ -21,22 +22,6 @@ class TestBase < Test::Unit::TestCase
21
22
 
22
23
  end
23
24
 
24
- def load_config
25
- # check for config
26
- # First check if running in abt worker
27
- if defined? $abt_config
28
- @config = $abt_config
29
- return @config
30
- end
31
- cf = File.expand_path(File.join("~", "Dropbox", "configs", "iron_cache_ruby", "test", "config.yml"))
32
- if File.exist?(cf)
33
- @config = YAML::load_file(cf)
34
- return @config
35
- end
36
-
37
- end
38
-
39
-
40
25
  def clear_queue(queue_name=nil)
41
26
  #queue_name ||= @client.cache_name
42
27
  #puts "clearing queue #{queue_name}"
@@ -1,6 +1,5 @@
1
1
  gem 'test-unit'
2
2
  require 'test/unit'
3
- require 'beanstalk-client'
4
3
  require 'yaml'
5
4
  require_relative 'test_base'
6
5
 
@@ -38,6 +37,16 @@ class IronCacheTests < TestBase
38
37
 
39
38
  end
40
39
 
40
+ def test_caches
41
+ caches = @client.caches.list
42
+ p caches
43
+ assert caches
44
+ assert caches.is_a?(Array)
45
+ assert caches.size > 0
46
+ assert caches[0].name
47
+
48
+ end
49
+
41
50
  def test_expiry
42
51
  @client.cache_name = 'test_basics'
43
52
  clear_queue
@@ -51,7 +60,7 @@ class IronCacheTests < TestBase
51
60
 
52
61
  sleep 11
53
62
  res = @client.items.get(k)
54
- assert res.nil?
63
+ assert res.nil?, "res is not nil, should be nil because it expired, but it's: #{res}"
55
64
 
56
65
  end
57
66
 
@@ -1,57 +1,37 @@
1
1
  gem 'test-unit'
2
2
  require 'test/unit'
3
- require 'beanstalk-client'
4
3
  require 'yaml'
4
+ require 'memcache'
5
5
  require_relative 'test_base'
6
6
 
7
- class IronCacheTests < TestBase
7
+ class IronCacheMemcachedTests < TestBase
8
8
  def setup
9
9
  super
10
10
 
11
+ @memcache = MemCache.new "#{IronCache::Client::AWS_US_EAST_HOST}:11211"
12
+
11
13
  end
12
14
 
13
- def test_basics
14
- @client.cache_name = 'test_basics'
15
- clear_queue
16
-
17
- k = "key1"
18
- v = "hello world!"
19
- res = @client.items.put(k, v)
20
- # another naming option we could try:
21
- #res = @client.cache('test_basics').items.put("key1", "hello world!")
22
- p res
23
- assert res.msg
24
-
25
- res = @client.items.get(k)
26
- p res
27
- assert res["key"]
28
- assert res.key
29
- assert res.key == k
30
- assert res.value == v
31
-
32
- res = @client.items.delete(res.key)
33
- p res
34
- puts "shouldn't be any more"
35
- res = @client.items.get(k)
36
- p res
37
- assert res.nil?
15
+ def test_basics_memcached
16
+ puts "#{@client.token} #{@client.project_id}"
38
17
 
39
- end
18
+ #@memcache.get("abc")
19
+ #@memcache.set("abc", "123")
40
20
 
41
- def test_expiry
42
- @client.cache_name = 'test_basics'
43
- clear_queue
44
- k = "key1"
45
- v = "hello world!"
46
- res = @client.items.put(k, v, :expires_in=>10)
21
+ # auth format: "{token} {project ID} {cache name}"
22
+ @memcache.set("oauth", "#{@client.token} #{@client.project_id} gem_tests", 0, true)
23
+ k = 'abc'
24
+ v = 'xyz'
25
+ @memcache.set(k, v)
47
26
 
48
- res = @client.items.get(k)
49
- p res
50
- assert res.key == k
27
+ ret = @memcache.get(k)
28
+ p ret
29
+ assert !ret.nil?
30
+ assert ret == v
31
+
32
+ end
51
33
 
52
- sleep 11
53
- res = @client.items.get(k)
54
- assert res.nil?
34
+ def test_expiry_memcached
55
35
 
56
36
  end
57
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-26 00:00:00.000000000Z
12
+ date: 2012-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rest-client
16
- requirement: &15146280 !ruby/object:Gem::Requirement
15
+ name: iron_core
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,62 +21,100 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15146280
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
- name: rest
27
- requirement: &15145660 !ruby/object:Gem::Requirement
31
+ name: test-unit
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
31
36
  - !ruby/object:Gem::Version
32
- version: 0.1.2
33
- type: :runtime
37
+ version: '0'
38
+ type: :development
34
39
  prerelease: false
35
- version_requirements: *15145660
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
- name: rest-client
38
- requirement: &15145020 !ruby/object:Gem::Requirement
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
42
52
  - !ruby/object:Gem::Version
43
53
  version: '0'
44
- type: :runtime
54
+ type: :development
45
55
  prerelease: false
46
- version_requirements: *15145020
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
- name: rest
49
- requirement: &15144420 !ruby/object:Gem::Requirement
63
+ name: memcache-client
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
53
68
  - !ruby/object:Gem::Version
54
- version: 0.1.2
55
- type: :runtime
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: uber_config
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
56
87
  prerelease: false
57
- version_requirements: *15144420
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
58
94
  description: Ruby client for IronCache by www.iron.io
59
- email: travis@iron.io
95
+ email:
96
+ - treeder@gmail.com
60
97
  executables: []
61
98
  extensions: []
62
- extra_rdoc_files:
63
- - README.md
99
+ extra_rdoc_files: []
64
100
  files:
101
+ - .gitignore
102
+ - Gemfile
103
+ - Gemfile.lock
65
104
  - README.md
66
105
  - Rakefile
67
- - VERSION.yml
68
106
  - iron_cache.gemspec
69
107
  - lib/iron_cache.rb
70
108
  - lib/iron_cache/caches.rb
71
109
  - lib/iron_cache/client.rb
72
110
  - lib/iron_cache/items.rb
73
- - test/Gemfile
74
- - test/Gemfile.lock
111
+ - lib/iron_cache/version.rb
112
+ - schedule_abt.rb
75
113
  - test/quick_run.rb
76
114
  - test/test_base.rb
77
115
  - test/test_iron_cache.rb
78
116
  - test/test_memcached.rb
79
- homepage: http://www.iron.io
117
+ homepage: https://github.com/iron-io/iron_cache_ruby
80
118
  licenses: []
81
119
  post_install_message:
82
120
  rdoc_options: []
@@ -93,11 +131,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
131
  requirements:
94
132
  - - ! '>='
95
133
  - !ruby/object:Gem::Version
96
- version: '0'
134
+ version: 1.3.6
97
135
  requirements: []
98
136
  rubyforge_project:
99
- rubygems_version: 1.8.15
137
+ rubygems_version: 1.8.24
100
138
  signing_key:
101
139
  specification_version: 3
102
140
  summary: Ruby client for IronCache by www.iron.io
103
- test_files: []
141
+ test_files:
142
+ - test/quick_run.rb
143
+ - test/test_base.rb
144
+ - test/test_iron_cache.rb
145
+ - test/test_memcached.rb
data/VERSION.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :major: 0
3
- :minor: 0
4
- :patch: 1
5
- :build:
data/test/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gem 'test-unit'
4
- gem 'concur'
data/test/Gemfile.lock DELETED
@@ -1,38 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- addressable (2.2.6)
5
- beanstalk-client (1.1.1)
6
- concur (0.1.2)
7
- em-http-request
8
- em-http-request
9
- eventmachine
10
- eventmachine
11
- faraday
12
- faraday
13
- cookiejar (0.3.0)
14
- em-http-request (1.0.1)
15
- addressable (>= 2.2.3)
16
- cookiejar
17
- em-socksify
18
- eventmachine (>= 1.0.0.beta.4)
19
- http_parser.rb (>= 0.5.3)
20
- em-socksify (0.1.0)
21
- eventmachine
22
- eventmachine (1.0.0.beta.4)
23
- faraday (0.7.5)
24
- addressable (~> 2.2.6)
25
- multipart-post (~> 1.1.3)
26
- rack (>= 1.1.0, < 2)
27
- http_parser.rb (0.5.3)
28
- multipart-post (1.1.4)
29
- rack (1.4.0)
30
- test-unit (2.4.4)
31
-
32
- PLATFORMS
33
- ruby
34
-
35
- DEPENDENCIES
36
- beanstalk-client
37
- concur
38
- test-unit