get 0.1.5.0 → 0.1.5.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35ab11daa222833ce2a9b27474271d07df489689
4
- data.tar.gz: 8ef6fe8751908e33a133bc5d99765c3859b77e59
3
+ metadata.gz: 153f8e765a91ccd4bc414347eea1d20f97271cf7
4
+ data.tar.gz: 6aad5e37b8ce974a0d0b7cd09e7e763745578652
5
5
  SHA512:
6
- metadata.gz: 4048efdf151cd664d1c6006dd3ea2d10ec901f2c6d08a8b9bb6556f704c9c45b8bc64dd747549ebe0469e7ade6d851b57f78269d146277677271ad36a8a1bf0c
7
- data.tar.gz: 2cc06292d2434ae9587187952779ebc8a4861ea2cf3f78be0c028c24c1717d730e92a0943dde2fbd76ee16ee551d1ee55a35eff501f628d3469a2099d1094624
6
+ metadata.gz: 5f561e76ab4db43501d9fc162d32f3a059e58605cccd21afbd42a38494191437b915f301944a7c6a5c90bc2300278e4431313f9aa046d8d88c67f6e7f5c20b7c
7
+ data.tar.gz: de12156579d20d990fce70a28aea8d911a6c74ded637dac62b272f2440a7760e00ad48800b89c9e3a76721d1751eac785f70757c6e2970f9eac1ede78d9ea2f0
data/README.md CHANGED
@@ -228,6 +228,8 @@ Get currently works with ActiveRecord.
228
228
 
229
229
  ## Edge Cases
230
230
 
231
+ **Attributes containing 'By'**
232
+
231
233
  Some attributes contain the word 'by', ie. `Customer.invited_by`.
232
234
  Because of the way Get parses classnames, you won't be able to use the attribute-specific format.
233
235
  Use the more general form instead.
@@ -237,6 +239,18 @@ Get::CustomerByInvitedBy.run('John') #=> throws Get::Errors::InvalidClassName
237
239
  Get::CustomerBy.run(invited_by: 'John') #=> will work
238
240
  ```
239
241
 
242
+ **Models ending with double 's'**
243
+
244
+ Some models end with a double 's', ie `Address`, `Business`. Rails has a well documented inability to properly inflect this type of word.
245
+ There is a simple fix:
246
+
247
+ ```ruby
248
+ # config/initializers/inflections.rb
249
+ ActiveSupport::Inflector.inflections do |inflect|
250
+ inflect.singular(/ess$/i, 'ess')
251
+ end
252
+ ```
253
+
240
254
  ## Benchmarking
241
255
 
242
256
  Get requests generally run < 1ms slower than ActiveRecord requests.
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.0
4
+ version: 0.1.5.1
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-05-29 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: horza
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.0
19
+ version: 0.2.1
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.2.0
26
+ version: 0.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement