ruby-montage 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/montage/query.rb +6 -0
- data/lib/montage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0c5970f207cae13da55361c9f5cd4f538610a87
|
4
|
+
data.tar.gz: da68e0289ba9ca9932180baf5e92668f8036eed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3019acba1b955777927916c72e02b9a12260739204a90ad0db9ffea64d3cb583145c20e61f7b7f623309e6e1192918c95dd1671e0cf0816eea25b19119f8f1ec
|
7
|
+
data.tar.gz: e76c7aaa57013adef642b95eba37ca10e5a940c7cc12dc866d41e98549471bdd8cf18548ea7ee3cdc91841e498ff8dfc72ec65166263f36d2ce83a04bfe2a146
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
# Ruby Montage
|
6
6
|
|
7
|
-
A Ruby wrapper for the [Montage](
|
7
|
+
A Ruby wrapper for the [Montage](http://www.yourdatacandobetter.com) API
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
@@ -127,7 +127,7 @@ returns an object that conforms to the above query standards will work. This is
|
|
127
127
|
|
128
128
|
## Contributing
|
129
129
|
|
130
|
-
1. Fork it ( https://github.com/
|
130
|
+
1. Fork it ( https://github.com/EditLLC/ruby-montage/fork )
|
131
131
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
132
132
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
133
133
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/montage/query.rb
CHANGED
@@ -98,6 +98,12 @@ module Montage
|
|
98
98
|
clone.tap { |r| r.query.merge!(index: field) }
|
99
99
|
end
|
100
100
|
|
101
|
+
# Pluck just one column from the result set
|
102
|
+
#
|
103
|
+
def pluck(column_name)
|
104
|
+
clone.tap { |r| r.query.merge!(pluck: column_name) }
|
105
|
+
end
|
106
|
+
|
101
107
|
# Parses the current query hash and returns a JSON string
|
102
108
|
#
|
103
109
|
def to_json
|
data/lib/montage/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-montage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dphaener
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|