swd 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format=documentation
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/swd.rb CHANGED
@@ -13,4 +13,7 @@ end
13
13
  require 'swd/cache'
14
14
  require 'swd/exception'
15
15
  require 'swd/resource'
16
- require 'swd/response'
16
+ require 'swd/response'
17
+
18
+ # NOTE: Default Cache doesn't cache anything.
19
+ SWD.cache = SWD::Cache.new
@@ -1,8 +1,7 @@
1
1
  module SWD
2
2
  class Cache
3
- def self.fetch(cache_key, options = {})
3
+ def fetch(cache_key, options = {})
4
4
  yield
5
5
  end
6
6
  end
7
- self.cache = Cache
8
7
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe SWD do
4
- its(:cache) { should == SWD::Cache }
4
+ its(:cache) { should be_a SWD::Cache }
5
5
 
6
6
  describe '#discover!' do
7
7
  it 'should return SWD::Response' do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: swd
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - nov matake
@@ -122,6 +122,7 @@ extra_rdoc_files: []
122
122
 
123
123
  files:
124
124
  - .gitignore
125
+ - .rspec
125
126
  - Gemfile
126
127
  - Gemfile.lock
127
128
  - Rakefile