senro 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 011a593f989d3d845a69bcbbdcfb6121057da46e6e5f33d616c5eb4ea4bdd405
4
- data.tar.gz: '084d6f4f6ae41b7b76d36b579a92534a17d98057102453deb80988af92b7b3fb'
3
+ metadata.gz: 38fdc0c7c7b0b4e1506e130a2b7534b65bc621b8bd558201b53dfc5ccdb6c0a1
4
+ data.tar.gz: deeb0d935a0426342cb90b01e30ec525f8ec2c5df25dc8fe916e97ff855fa196
5
5
  SHA512:
6
- metadata.gz: bd3fc40d1849d03bed01db679a7ba9d756c254bb5a46eb8984df380c64e9dbd508b74461e19b904592bc583af6ff78ad7fd646988b91eb2e42fe5e9450e7b015
7
- data.tar.gz: 114670b3d89719a6864ed0a221241ea861ae8f68a8969c177923e4f7813a6fbd7b48a0e574ddf94e56e20f5d9d9c10be705ab268b88e52ad3672b7429bad6fe3
6
+ metadata.gz: 2d94d9b1cdb7bc75245b1cd09c40148298bbb1d01ada3a691a74ffcb83350c57af569db4aee592be4dafdae0748ca5b4ec34478b0a9aa43d6e408cbcb26a2da6
7
+ data.tar.gz: ed0ecffc6f0bf7d1fa0a7fbfe77214f56e18adea847fc41525c76ddac0848cebb1d4a9ef67615887c2c177be95768c662afda464264198f64899774377937e56
data/README.md CHANGED
@@ -20,13 +20,13 @@ Or install it yourself as:
20
20
  $ gem install senro
21
21
 
22
22
  ## Usage
23
- ### QueryParamsFormatter#sorting
23
+ ### QueryParamsFormatter#sort
24
24
 
25
25
  ```ruby
26
26
  puts params[:sort]
27
27
  # => '+id,-name'
28
28
 
29
- order_clause = Senro::QueryParamsFormatter.sorting(params[:sort])
29
+ order_clause = Senro::QueryParamsFormatter.sort(params[:sort])
30
30
 
31
31
  puts order_clause
32
32
  # => 'id ASC, name DESC'
@@ -11,7 +11,7 @@ module Senro
11
11
  #
12
12
  # @param param [String] format string. e.g. `+id,-name`
13
13
  # @return [String] formated stirng
14
- def self.sorting(param)
14
+ def self.sort(param)
15
15
  attributes = param.split(',')
16
16
  attributes.map do |attr|
17
17
  if /^\-/.match(attr).nil?
data/lib/senro/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Senro
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: senro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - WalkerSumida
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-05 00:00:00.000000000 Z
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler