rails_current 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rails_current.rb CHANGED
@@ -1,12 +1,28 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
- require 'map'
4
-
5
3
  module Current
6
4
  def Current.version
7
- '1.6.0'
5
+ '1.6.1'
6
+ end
7
+
8
+ def Current.dependencies
9
+ {
10
+ 'map' => [ 'map' , ' >= 6.0.1' ]
11
+ }
12
+ end
13
+
14
+ begin
15
+ require 'rubygems'
16
+ rescue LoadError
17
+ nil
18
+ end
19
+
20
+ Current.dependencies.each do |lib, dependency|
21
+ gem(*dependency) if defined?(gem)
22
+ require(lib)
8
23
  end
9
24
 
25
+
10
26
  def Current.data
11
27
  Thread.current[:current] ||= Map.new
12
28
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_current"
6
- spec.version = "1.6.0"
6
+ spec.version = "1.6.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_current"
9
9
  spec.description = "description: rails_current kicks the ass"
@@ -25,6 +25,8 @@ Gem::Specification::new do |spec|
25
25
  spec.test_files = nil
26
26
 
27
27
 
28
+ spec.add_dependency(*["map", " >= 6.0.1"])
29
+
28
30
 
29
31
  spec.extensions.push(*[])
30
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_current
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-28 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-06-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: map
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 6.0.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 6.0.1
14
30
  description: ! 'description: rails_current kicks the ass'
15
31
  email: ara.t.howard@gmail.com
16
32
  executables: []
@@ -43,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
59
  version: '0'
44
60
  requirements: []
45
61
  rubyforge_project: codeforpeople
46
- rubygems_version: 1.8.11
62
+ rubygems_version: 1.8.24
47
63
  signing_key:
48
64
  specification_version: 3
49
65
  summary: rails_current