plucky 0.6.5 → 0.6.6
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
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 236de7ad53c48e9a9178df951de813f6c1cd39a5
|
4
|
+
data.tar.gz: 6d1dca59a0d373438a27c3d9a19104c08eebacfa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d61c08e49e1968bc59e020b76980ad66766b826db747020de4ed18a3499866ed9a36816b02bfa16ac34cc947398a07c423f430d1e02ce6031db75d5f38dc6388
|
7
|
+
data.tar.gz: 53c005bd85023ab2df818e3053932bcb05142441c494181b5d9caf549f2301347aa7ee245887349ff8578539a9c8f4b54c4d339cfecb52bdd99f29571b654257
|
@@ -66,7 +66,7 @@ module Plucky
|
|
66
66
|
|
67
67
|
# Private
|
68
68
|
def default_sort_value_normalizer
|
69
|
-
Normalizers::SortValue.new(:key_normalizer => Normalizers::HashKey.new({:
|
69
|
+
Normalizers::SortValue.new(:key_normalizer => Normalizers::HashKey.new({:id => :_id}))
|
70
70
|
end
|
71
71
|
|
72
72
|
# Private
|
File without changes
|
data/lib/plucky/options_hash.rb
CHANGED
File without changes
|
data/lib/plucky/version.rb
CHANGED
@@ -10,6 +10,11 @@ describe Plucky::OptionsHash do
|
|
10
10
|
subject[:order].should be_nil
|
11
11
|
end
|
12
12
|
|
13
|
+
it "changes sort(id) to sort(_id)" do
|
14
|
+
subject[:sort] = "id asc"
|
15
|
+
subject[:sort].should == [["_id", 1]]
|
16
|
+
end
|
17
|
+
|
13
18
|
it "changes select to fields" do
|
14
19
|
subject[:select] = [:foo]
|
15
20
|
subject[:fields].should == [:foo]
|
@@ -33,4 +38,4 @@ describe Plucky::OptionsHash do
|
|
33
38
|
subject[:sort].should == [["order", 1]]
|
34
39
|
end
|
35
40
|
end
|
36
|
-
end
|
41
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plucky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- John Nunemaker
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: mongo
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -87,27 +84,26 @@ files:
|
|
87
84
|
- specs.watchr
|
88
85
|
homepage: http://jnunemaker.github.com/plucky/
|
89
86
|
licenses: []
|
87
|
+
metadata: {}
|
90
88
|
post_install_message:
|
91
89
|
rdoc_options: []
|
92
90
|
require_paths:
|
93
91
|
- lib
|
94
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
93
|
requirements:
|
97
|
-
- -
|
94
|
+
- - '>='
|
98
95
|
- !ruby/object:Gem::Version
|
99
96
|
version: '0'
|
100
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
98
|
requirements:
|
103
|
-
- -
|
99
|
+
- - '>='
|
104
100
|
- !ruby/object:Gem::Version
|
105
101
|
version: '0'
|
106
102
|
requirements: []
|
107
103
|
rubyforge_project:
|
108
|
-
rubygems_version:
|
104
|
+
rubygems_version: 2.0.4
|
109
105
|
signing_key:
|
110
|
-
specification_version:
|
106
|
+
specification_version: 4
|
111
107
|
summary: Thin layer over the ruby driver that allows you to quickly grab hold of your
|
112
108
|
data (pluck it!).
|
113
109
|
test_files:
|
@@ -128,3 +124,4 @@ test_files:
|
|
128
124
|
- spec/plucky_spec.rb
|
129
125
|
- spec/symbol_operator_spec.rb
|
130
126
|
- spec/symbol_spec.rb
|
127
|
+
has_rdoc:
|