picky-generators 4.16.0 → 4.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDFlNjFiZDg2MDhhMTdmNTA3ODYxZGQ1ZjI5NmFhMzkzODlhYTZmNw==
4
+ NDM2Nzk3MWVmZDg4Yjg0MGQwOTdlNWZlZTA3MWI0MjVmY2QxMDE0YQ==
5
5
  data.tar.gz: !binary |-
6
- OWMwY2Y0OTk3NThjNjcxMWI0MzE0YmRhNzBiNzZhMGExYmMzN2ZkZg==
6
+ ODhhMWI4YjU1ZmY2NDRjMTJmYWVjNTgxNzUxYmE1MWRhNmQ4NzM3MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmM4NzU2M2FlYTQ5MGIxOTk0ZDBmODcyMGUwOWI1NWQzNDI4OWIxZDQxYjcw
10
- ZjU1ZWIyMmQ3ZjdhYmEwMTllOTdiMDI2MDk5ZGRhY2ZhZmU5ZmU5NjlkYmQ3
11
- MWEzODJhNTIwNTc2MGEzMWI1Nzk4MzNjMmEzZGVjNjU4NDE0Mzk=
9
+ OTllYzBhZWZiYTY2OTU2NGM4ZmZkYWMzZmY3YzZjNjc1ZmY5NGZjNDBkMDFl
10
+ MGY2NTA0MjQ1Y2NhZTRkODA1Zjg2Njk2ZjU1NGFhMDJhMTkzNzc3ZDg3Nzhi
11
+ MmE2ZjU1NWRkZTEwNWQ0ZDRiZGMyYzg0YjViZjI1ODkxYjA5MTQ=
12
12
  data.tar.gz: !binary |-
13
- NmY2MDExODk2M2RiNzRlN2EwZjE1MTdhY2JjNWMzM2ZlMzRiMDAwYzAyZjQ2
14
- NWQ4ZTI3NWM5MWQ1MTM1OTYyZWU4MDc2YTk5NDFlZjVmNzcyZjQzOGJmYmU2
15
- ZTBiOTRlZTI1ZTI5M2Y3YzA3YzYyMDFhZTlmN2NjNjNkMjEwNmY=
13
+ ZDI0MjA5MmMwNjRhNDIxZTNlYTcwY2Y4M2RhMTM1ZjFjNjhhM2JlMjEyMGE2
14
+ ODU1ZDRkMjkzYmE4M2JlNzU0NTg2NzFjNDIzYWQ0MmJmYzVhNjI5ZTNiOWU2
15
+ OGE1N2FhYjA1MzY0OThhOWNlY2Y1ZGViODY1MDg2YWJiZjMxNTA=
@@ -21,6 +21,8 @@ end
21
21
  # Define an index.
22
22
  #
23
23
  BooksIndex = Picky::Index.new :books do
24
+ key_format :to_i
25
+
24
26
  source { Books.new }
25
27
  indexing removes_characters: /[^a-z0-9\s\/\-\_\:\"\&\.]/i,
26
28
  stopwords: /\b(and|the|of|it|in|for)\b/i,
@@ -7,7 +7,7 @@ BooksSearch = Picky::Search.new BooksIndex do
7
7
  # Normalizes special user input, Ä -> Ae, ñ -> n etc.
8
8
  searching substitutes_characters_with: Picky::CharacterSubstituters::WestEuropean.new,
9
9
  # Picky needs control chars *"~:, to pass through.
10
- removes_characters: /[^\p{L}\p{N}\s\/\-\_\&\.\"\~\*\:\,]/i,
10
+ removes_characters: /[^\p{L}\p{N}\s\/\-\_\&\.\"\~\*\:\,|]/i,
11
11
  stopwords: /\b(and|the|of|it|in|for)\b/i,
12
12
  splits_text_on: /[\s\/\-\&]+/
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picky-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.16.0
4
+ version: 4.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-12 00:00:00.000000000 Z
11
+ date: 2013-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 4.16.0
33
+ version: 4.17.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 4.16.0
40
+ version: 4.17.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: picky-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 4.16.0
47
+ version: 4.17.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 4.16.0
54
+ version: 4.17.0
55
55
  description: Generators for Picky.
56
56
  email: florian.hanke+picky-generators@gmail.com
57
57
  executables:
@@ -109,7 +109,9 @@ files:
109
109
  - !binary |-
110
110
  YmluL3BpY2t5LWdlbmVyYXRl
111
111
  homepage: http://floere.github.com/picky
112
- licenses: []
112
+ licenses:
113
+ - MIT
114
+ - LGPL
113
115
  metadata: {}
114
116
  post_install_message:
115
117
  rdoc_options: []