rack-mongoid 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 609b45f78481f17c849544793d24dd0ab55f6bc2
4
- data.tar.gz: 0d80d2a0b78c98f48b08ce126e8f4265c7147fc5
3
+ metadata.gz: c4b798e10900ae7cc0c3853c997631a4f7285db9
4
+ data.tar.gz: 1852b9175cdde72aa74c8e14cacd0abab38f1394
5
5
  SHA512:
6
- metadata.gz: ec6b84b4ccdfbe9dcb4f7dc516c783d5ba453c69e6f9836e80cef75386703adca6cc0723ccd51e74b938d2ab2c0b19d6488f3ea569cc5308a08b4a7c57142e9a
7
- data.tar.gz: d2d04cbff6d795f0ec09971ff8a7dc8dafc94ab1072b7d5127aa36a28b475f9a1aec069c09d70442f5c51e334bf855af3ac23c8a84e53c74a708b3ab25ed50d1
6
+ metadata.gz: 8aa2ac3f66bcb6587b08572de2445873697942ca95d803e066e05e93d43c85f8ff8bbd95a6508e52fccf93ed0a7dfa63a09262fb23a56ac59b1abd4a2a63db62
7
+ data.tar.gz: db7d8cf739816b0dddea102b0fe0abdde5cc8e0838fd2f2caac0b19c76bed316ab297b01e6bba79ec1908d38e4e88deaebc95d95a1714e3cf05618a488b84c49
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.1
2
+ * Fix Mongoid const name resolution
3
+
1
4
  ## 0.1.0
2
5
  * Rename from rack-mongoid_adapter to rack-mongoid
3
6
 
data/README.md CHANGED
@@ -2,26 +2,6 @@
2
2
  Provides RESTful interface for MongoDB as a rack middleware.
3
3
 
4
4
  ## Usage
5
- Here is the simplest example for Heroku with MongoLab plugin.
6
- You can try this example via [r7kamura/rack-mongoid-example](https://github.com/r7kamura/rack-mongoid-example).
7
-
8
- ### Operation
9
- ```
10
- # settings
11
- $ mkdir config
12
- $ vi config/mongoid.yml
13
- $ vi config.ru
14
- $ vi Gemfile
15
- $ bundle install
16
- $ git init
17
- $ git add .
18
- $ git commit -m "Initial commit"
19
- $ heroku create my-test-app
20
- $ heroku addons:add mongolab
21
- $ git push heroku master
22
- ```
23
-
24
- ### Code
25
5
  ```yaml
26
6
  # config/mongoid.yml
27
7
  production:
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Mongoid
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
data/lib/rack/mongoid.rb CHANGED
@@ -28,7 +28,7 @@ module Rack
28
28
  end
29
29
 
30
30
  def configure_mongoid_unless_configured
31
- Mongoid.load!(DEFAULT_MONGOID_CONFIGURATION_PATH) unless Mongoid.configured?
31
+ ::Mongoid.load!(DEFAULT_MONGOID_CONFIGURATION_PATH) unless ::Mongoid.configured?
32
32
  end
33
33
  end
34
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura