get 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e87e789020578ba92ef03c7e3a98f9634f85f762
4
- data.tar.gz: e8181e6da0904a709a7f532d8157310f4d16fc16
3
+ metadata.gz: 5b23af9cacb8d8ab5e7b6a0c76718256e097cc9b
4
+ data.tar.gz: b63d6b2ff1e40933b6ee736d5ac1232c1f0cf4d0
5
5
  SHA512:
6
- metadata.gz: 4a68bd91a8407162804dc0d6cdeaa702cee0782f798cbc58ca1a2e086a37c3f38e83e5237a5812a3729a5d20610a15b396e4a568b9e4900e56c198fa162419b0
7
- data.tar.gz: 08371505e8ac657c5c88fb7f02ffdf986e5a1d824b6ca239c3ab52257a0d8443dff9ee534482fa27a6fcf271aa54032d3b2982a99a12000787a2d2e4b237ead7
6
+ metadata.gz: b79408b6285e49b8fe5e80441ef312424f0d6b635ce04d6963f26afbe612d4f7ddefa0709b94328ccf7d92e57c9b234f695d4a566d7865579eb68486b111d7e8
7
+ data.tar.gz: 1f98da1ff49978617fbd2049ee8a9b5b97fc27a86f9534f1e974c2d480332bc0a0b58cfe298d5d703aac50b14676250dcf1226a7701c56f01a4b4e0064e8a6f3
data/README.md CHANGED
@@ -84,7 +84,7 @@ join_params = {
84
84
  employers: [:address],
85
85
  }
86
86
  }
87
- UsersJoinedWithEmployers.run(join_params)
87
+ Get::UsersJoinedWithEmployers.run(join_params)
88
88
  ```
89
89
 
90
90
  Join on related ids, select multiple fields - with conditions, limit, and offset
@@ -102,7 +102,7 @@ join_params = {
102
102
  limit: 10,
103
103
  offset: 5
104
104
  }
105
- UsersJoinedWithEmployers.run(join_params)
105
+ Get::UsersJoinedWithEmployers.run(join_params)
106
106
  ```
107
107
 
108
108
  Join on multiple requirements, alias field names
@@ -111,13 +111,13 @@ join_params = {
111
111
  on: [
112
112
  { employer_id: :id }, # base_table(users).employer_id = join_table(employers).id
113
113
  { email: :email }, # base_table(users).email = join_table(employers).email
114
- ]
114
+ ],
115
115
  fields: {
116
116
  users: [:id, { first_name: :my_alias_for_first_name }],
117
117
  employers: [:email, { id: :my_alias_for_employer_id }]
118
118
  }
119
119
  }
120
- UsersJoinedWithEmployers.run(join_params)
120
+ Get::UsersJoinedWithEmployers.run(join_params)
121
121
  ```
122
122
 
123
123
  ## Options
@@ -313,7 +313,7 @@ This will speed up tests (a little), but more importantly it makes them easier t
313
313
 
314
314
  **Define your adapter**
315
315
 
316
- _config/initializers/ask.rb_
316
+ _config/initializers/get.rb_
317
317
  ```ruby
318
318
  Get.configure { |config| config.adapter = :active_record }
319
319
  ```
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-21 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: horza
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.0
19
+ version: 0.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.0
26
+ version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement