low 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,36 +1,36 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- low (0.0.10)
5
- bson_ext
6
- mongo
7
- rack
4
+ low (0.0.16)
5
+ bson_ext (~> 1.8.2)
6
+ mongo (~> 1.8.2)
7
+ rack (~> 1.5.2)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- bson (1.7.0)
13
- bson_ext (1.7.0)
14
- bson (~> 1.7.0)
12
+ bson (1.8.2)
13
+ bson_ext (1.8.2)
14
+ bson (~> 1.8.2)
15
15
  diff-lcs (1.1.3)
16
- mongo (1.7.0)
17
- bson (~> 1.7.0)
18
- rack (1.4.1)
19
- rack-test (0.6.1)
16
+ mongo (1.8.2)
17
+ bson (~> 1.8.2)
18
+ rack (1.5.2)
19
+ rack-test (0.6.2)
20
20
  rack (>= 1.0)
21
- rspec (2.10.0)
22
- rspec-core (~> 2.10.0)
23
- rspec-expectations (~> 2.10.0)
24
- rspec-mocks (~> 2.10.0)
25
- rspec-core (2.10.1)
26
- rspec-expectations (2.10.0)
21
+ rspec (2.12.0)
22
+ rspec-core (~> 2.12.0)
23
+ rspec-expectations (~> 2.12.0)
24
+ rspec-mocks (~> 2.12.0)
25
+ rspec-core (2.12.2)
26
+ rspec-expectations (2.12.1)
27
27
  diff-lcs (~> 1.1.3)
28
- rspec-mocks (2.10.1)
28
+ rspec-mocks (2.12.2)
29
29
 
30
30
  PLATFORMS
31
31
  ruby
32
32
 
33
33
  DEPENDENCIES
34
34
  low!
35
- rack-test
36
- rspec
35
+ rack-test (~> 0.6.2)
36
+ rspec (~> 2.12.0)
data/lib/low/mongo.rb CHANGED
@@ -21,7 +21,7 @@ module Low
21
21
 
22
22
  # The environment's Mongo::Connection instance.
23
23
  def connection
24
- @connection ||= ::Mongo::Connection.new(host)
24
+ @connection ||= ::Mongo::MongoClient.new(host)
25
25
  end
26
26
 
27
27
  # The host that `#connection` will use - either this or
data/lib/low/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Low
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
data/low.gemspec CHANGED
@@ -15,10 +15,10 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ['lib']
16
16
  gem.version = Low::VERSION
17
17
 
18
- gem.add_runtime_dependency 'rack'
19
- gem.add_runtime_dependency 'mongo'
20
- gem.add_runtime_dependency 'bson_ext'
18
+ gem.add_runtime_dependency 'rack', '~> 1.5.2'
19
+ gem.add_runtime_dependency 'mongo', '~> 1.8.2'
20
+ gem.add_runtime_dependency 'bson_ext', '~> 1.8.2'
21
21
 
22
- gem.add_development_dependency 'rspec'
23
- gem.add_development_dependency 'rack-test'
22
+ gem.add_development_dependency 'rspec', '~> 2.12.0'
23
+ gem.add_development_dependency 'rack-test', '~> 0.6.2'
24
24
  end
@@ -40,7 +40,7 @@ describe Low::Mongo do
40
40
  it 'should get a new ::Mongo::Connection instance for the specified #host' do
41
41
  mongo = MongoTest.new
42
42
  connection = double('mongo connection')
43
- ::Mongo::Connection.should_receive(:new).with('localhost').and_return(connection)
43
+ ::Mongo::MongoClient.should_receive(:new).with('localhost').and_return(connection)
44
44
  mongo.connection.should == connection
45
45
  end
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: low
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,88 +9,88 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-13 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 1.5.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 1.5.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: mongo
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ! '>='
35
+ - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '0'
37
+ version: 1.8.2
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ! '>='
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '0'
45
+ version: 1.8.2
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bson_ext
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
- - - ! '>='
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
53
+ version: 1.8.2
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
- - - ! '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.8.2
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rspec
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - ! '>='
67
+ - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: 2.12.0
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - ! '>='
75
+ - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: '0'
77
+ version: 2.12.0
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: rack-test
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ! '>='
83
+ - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: '0'
85
+ version: 0.6.2
86
86
  type: :development
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - ! '>='
91
+ - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 0.6.2
94
94
  description: A low-level utility library.
95
95
  email:
96
96
  - khy@me.com