single 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/single.rb +1 -15
  2. data/lib/single/single.rb +15 -0
  3. metadata +3 -2
data/lib/single.rb CHANGED
@@ -1,15 +1 @@
1
- module Single
2
- def self.included(base)
3
- base.extend ClassMethods
4
- end
5
-
6
- module ClassMethods
7
- def instance
8
- @instance ||= new
9
- end
10
-
11
- def method_missing(method_id, *args, &block)
12
- instance.send method_id, *args, &block
13
- end
14
- end
15
- end
1
+ require 'single/single'
@@ -0,0 +1,15 @@
1
+ module Single
2
+ def self.included(base)
3
+ base.extend ClassMethods
4
+ end
5
+
6
+ module ClassMethods
7
+ def instance
8
+ @instance ||= new
9
+ end
10
+
11
+ def method_missing(method_id, *args, &block)
12
+ instance.send method_id, *args, &block
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: single
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-21 00:00:00.000000000 Z
12
+ date: 2013-07-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - lib/single/single.rb
20
21
  - lib/single.rb
21
22
  homepage: https://github.com/Sans/single
22
23
  licenses: []