blacklight-access_controls 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/Gemfile +32 -0
  4. data/README.textile +74 -0
  5. data/Rakefile +47 -0
  6. data/VERSION +1 -0
  7. data/blacklight-access_controls.gemspec +29 -0
  8. data/lib/blacklight-access_controls.rb +23 -0
  9. data/lib/blacklight/access_controls.rb +14 -0
  10. data/lib/blacklight/access_controls/ability.rb +148 -0
  11. data/lib/blacklight/access_controls/catalog.rb +27 -0
  12. data/lib/blacklight/access_controls/config.rb +39 -0
  13. data/lib/blacklight/access_controls/enforcement.rb +103 -0
  14. data/lib/blacklight/access_controls/permissions_cache.rb +19 -0
  15. data/lib/blacklight/access_controls/permissions_query.rb +53 -0
  16. data/lib/blacklight/access_controls/permissions_solr_document.rb +2 -0
  17. data/lib/blacklight/access_controls/user.rb +23 -0
  18. data/lib/generators/blacklight/ability.rb +4 -0
  19. data/lib/generators/blacklight/access_controls_generator.rb +49 -0
  20. data/solr_conf/conf/abc123 +0 -0
  21. data/solr_conf/conf/admin-extra.html +24 -0
  22. data/solr_conf/conf/admin-extra.menu-bottom.html +25 -0
  23. data/solr_conf/conf/admin-extra.menu-top.html +25 -0
  24. data/solr_conf/conf/clustering/carrot2/kmeans-attributes.xml +19 -0
  25. data/solr_conf/conf/clustering/carrot2/lingo-attributes.xml +24 -0
  26. data/solr_conf/conf/clustering/carrot2/stc-attributes.xml +19 -0
  27. data/solr_conf/conf/currency.xml +67 -0
  28. data/solr_conf/conf/dataimport.properties +3 -0
  29. data/solr_conf/conf/db-data-config.xml +93 -0
  30. data/solr_conf/conf/elevate.xml +38 -0
  31. data/solr_conf/conf/lang/contractions_ca.txt +8 -0
  32. data/solr_conf/conf/lang/contractions_fr.txt +15 -0
  33. data/solr_conf/conf/lang/contractions_ga.txt +5 -0
  34. data/solr_conf/conf/lang/contractions_it.txt +23 -0
  35. data/solr_conf/conf/lang/hyphenations_ga.txt +5 -0
  36. data/solr_conf/conf/lang/stemdict_nl.txt +6 -0
  37. data/solr_conf/conf/lang/stoptags_ja.txt +420 -0
  38. data/solr_conf/conf/lang/stopwords_ar.txt +125 -0
  39. data/solr_conf/conf/lang/stopwords_bg.txt +193 -0
  40. data/solr_conf/conf/lang/stopwords_ca.txt +220 -0
  41. data/solr_conf/conf/lang/stopwords_ckb.txt +136 -0
  42. data/solr_conf/conf/lang/stopwords_cz.txt +172 -0
  43. data/solr_conf/conf/lang/stopwords_da.txt +110 -0
  44. data/solr_conf/conf/lang/stopwords_de.txt +294 -0
  45. data/solr_conf/conf/lang/stopwords_el.txt +78 -0
  46. data/solr_conf/conf/lang/stopwords_en.txt +54 -0
  47. data/solr_conf/conf/lang/stopwords_es.txt +356 -0
  48. data/solr_conf/conf/lang/stopwords_eu.txt +99 -0
  49. data/solr_conf/conf/lang/stopwords_fa.txt +313 -0
  50. data/solr_conf/conf/lang/stopwords_fi.txt +97 -0
  51. data/solr_conf/conf/lang/stopwords_fr.txt +186 -0
  52. data/solr_conf/conf/lang/stopwords_ga.txt +110 -0
  53. data/solr_conf/conf/lang/stopwords_gl.txt +161 -0
  54. data/solr_conf/conf/lang/stopwords_hi.txt +235 -0
  55. data/solr_conf/conf/lang/stopwords_hu.txt +211 -0
  56. data/solr_conf/conf/lang/stopwords_hy.txt +46 -0
  57. data/solr_conf/conf/lang/stopwords_id.txt +359 -0
  58. data/solr_conf/conf/lang/stopwords_it.txt +303 -0
  59. data/solr_conf/conf/lang/stopwords_ja.txt +127 -0
  60. data/solr_conf/conf/lang/stopwords_lv.txt +172 -0
  61. data/solr_conf/conf/lang/stopwords_nl.txt +119 -0
  62. data/solr_conf/conf/lang/stopwords_no.txt +194 -0
  63. data/solr_conf/conf/lang/stopwords_pt.txt +253 -0
  64. data/solr_conf/conf/lang/stopwords_ro.txt +233 -0
  65. data/solr_conf/conf/lang/stopwords_ru.txt +243 -0
  66. data/solr_conf/conf/lang/stopwords_sv.txt +133 -0
  67. data/solr_conf/conf/lang/stopwords_th.txt +119 -0
  68. data/solr_conf/conf/lang/stopwords_tr.txt +212 -0
  69. data/solr_conf/conf/lang/userdict_ja.txt +29 -0
  70. data/solr_conf/conf/mapping-FoldToASCII.txt +3813 -0
  71. data/solr_conf/conf/mapping-ISOLatin1Accent.txt +246 -0
  72. data/solr_conf/conf/protwords.txt +21 -0
  73. data/solr_conf/conf/schema.blacklight.xml +724 -0
  74. data/solr_conf/conf/schema.xml +1268 -0
  75. data/solr_conf/conf/schema.xml.orig +1524 -0
  76. data/solr_conf/conf/solrconfig.adams.xml +1903 -0
  77. data/solr_conf/conf/solrconfig.blacklight.xml +411 -0
  78. data/solr_conf/conf/solrconfig.old.xml +1634 -0
  79. data/solr_conf/conf/solrconfig.xml +332 -0
  80. data/solr_conf/conf/solrconfig.xml.orig +3531 -0
  81. data/solr_conf/conf/spellings.txt +2 -0
  82. data/solr_conf/conf/stopwords.txt +14 -0
  83. data/solr_conf/conf/synonyms.txt +29 -0
  84. data/solr_conf/conf/update-script.js +53 -0
  85. data/solr_conf/conf/xslt/example.xsl +132 -0
  86. data/solr_conf/conf/xslt/example_atom.xsl +67 -0
  87. data/solr_conf/conf/xslt/example_rss.xsl +66 -0
  88. data/solr_conf/conf/xslt/luke.xsl +337 -0
  89. data/solr_conf/conf/xslt/updateXml.xsl +70 -0
  90. data/spec/factories/user.rb +6 -0
  91. data/spec/spec_helper.rb +29 -0
  92. data/spec/support/solr_support.rb +11 -0
  93. data/spec/test_app_templates/blacklight.yml +18 -0
  94. data/spec/test_app_templates/lib/generators/test_app_generator.rb +25 -0
  95. data/spec/unit/ability_spec.rb +202 -0
  96. data/spec/unit/catalog_spec.rb +41 -0
  97. data/spec/unit/config_spec.rb +69 -0
  98. data/spec/unit/enforcement_spec.rb +147 -0
  99. metadata +265 -0
@@ -0,0 +1,253 @@
1
+ | From svn.tartarus.org/snowball/trunk/website/algorithms/portuguese/stop.txt
2
+ | This file is distributed under the BSD License.
3
+ | See http://snowball.tartarus.org/license.php
4
+ | Also see http://www.opensource.org/licenses/bsd-license.html
5
+ | - Encoding was converted to UTF-8.
6
+ | - This notice was added.
7
+ |
8
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
+
10
+ | A Portuguese stop word list. Comments begin with vertical bar. Each stop
11
+ | word is at the start of a line.
12
+
13
+
14
+ | The following is a ranked list (commonest to rarest) of stopwords
15
+ | deriving from a large sample of text.
16
+
17
+ | Extra words have been added at the end.
18
+
19
+ de | of, from
20
+ a | the; to, at; her
21
+ o | the; him
22
+ que | who, that
23
+ e | and
24
+ do | de + o
25
+ da | de + a
26
+ em | in
27
+ um | a
28
+ para | for
29
+ | é from SER
30
+ com | with
31
+ não | not, no
32
+ uma | a
33
+ os | the; them
34
+ no | em + o
35
+ se | himself etc
36
+ na | em + a
37
+ por | for
38
+ mais | more
39
+ as | the; them
40
+ dos | de + os
41
+ como | as, like
42
+ mas | but
43
+ | foi from SER
44
+ ao | a + o
45
+ ele | he
46
+ das | de + as
47
+ | tem from TER
48
+ à | a + a
49
+ seu | his
50
+ sua | her
51
+ ou | or
52
+ | ser from SER
53
+ quando | when
54
+ muito | much
55
+ | há from HAV
56
+ nos | em + os; us
57
+ já | already, now
58
+ | está from EST
59
+ eu | I
60
+ também | also
61
+ só | only, just
62
+ pelo | per + o
63
+ pela | per + a
64
+ até | up to
65
+ isso | that
66
+ ela | he
67
+ entre | between
68
+ | era from SER
69
+ depois | after
70
+ sem | without
71
+ mesmo | same
72
+ aos | a + os
73
+ | ter from TER
74
+ seus | his
75
+ quem | whom
76
+ nas | em + as
77
+ me | me
78
+ esse | that
79
+ eles | they
80
+ | estão from EST
81
+ você | you
82
+ | tinha from TER
83
+ | foram from SER
84
+ essa | that
85
+ num | em + um
86
+ nem | nor
87
+ suas | her
88
+ meu | my
89
+ às | a + as
90
+ minha | my
91
+ | têm from TER
92
+ numa | em + uma
93
+ pelos | per + os
94
+ elas | they
95
+ | havia from HAV
96
+ | seja from SER
97
+ qual | which
98
+ | será from SER
99
+ nós | we
100
+ | tenho from TER
101
+ lhe | to him, her
102
+ deles | of them
103
+ essas | those
104
+ esses | those
105
+ pelas | per + as
106
+ este | this
107
+ | fosse from SER
108
+ dele | of him
109
+
110
+ | other words. There are many contractions such as naquele = em+aquele,
111
+ | mo = me+o, but they are rare.
112
+ | Indefinite article plural forms are also rare.
113
+
114
+ tu | thou
115
+ te | thee
116
+ vocês | you (plural)
117
+ vos | you
118
+ lhes | to them
119
+ meus | my
120
+ minhas
121
+ teu | thy
122
+ tua
123
+ teus
124
+ tuas
125
+ nosso | our
126
+ nossa
127
+ nossos
128
+ nossas
129
+
130
+ dela | of her
131
+ delas | of them
132
+
133
+ esta | this
134
+ estes | these
135
+ estas | these
136
+ aquele | that
137
+ aquela | that
138
+ aqueles | those
139
+ aquelas | those
140
+ isto | this
141
+ aquilo | that
142
+
143
+ | forms of estar, to be (not including the infinitive):
144
+ estou
145
+ está
146
+ estamos
147
+ estão
148
+ estive
149
+ esteve
150
+ estivemos
151
+ estiveram
152
+ estava
153
+ estávamos
154
+ estavam
155
+ estivera
156
+ estivéramos
157
+ esteja
158
+ estejamos
159
+ estejam
160
+ estivesse
161
+ estivéssemos
162
+ estivessem
163
+ estiver
164
+ estivermos
165
+ estiverem
166
+
167
+ | forms of haver, to have (not including the infinitive):
168
+ hei
169
+
170
+ havemos
171
+ hão
172
+ houve
173
+ houvemos
174
+ houveram
175
+ houvera
176
+ houvéramos
177
+ haja
178
+ hajamos
179
+ hajam
180
+ houvesse
181
+ houvéssemos
182
+ houvessem
183
+ houver
184
+ houvermos
185
+ houverem
186
+ houverei
187
+ houverá
188
+ houveremos
189
+ houverão
190
+ houveria
191
+ houveríamos
192
+ houveriam
193
+
194
+ | forms of ser, to be (not including the infinitive):
195
+ sou
196
+ somos
197
+ são
198
+ era
199
+ éramos
200
+ eram
201
+ fui
202
+ foi
203
+ fomos
204
+ foram
205
+ fora
206
+ fôramos
207
+ seja
208
+ sejamos
209
+ sejam
210
+ fosse
211
+ fôssemos
212
+ fossem
213
+ for
214
+ formos
215
+ forem
216
+ serei
217
+ será
218
+ seremos
219
+ serão
220
+ seria
221
+ seríamos
222
+ seriam
223
+
224
+ | forms of ter, to have (not including the infinitive):
225
+ tenho
226
+ tem
227
+ temos
228
+ tém
229
+ tinha
230
+ tínhamos
231
+ tinham
232
+ tive
233
+ teve
234
+ tivemos
235
+ tiveram
236
+ tivera
237
+ tivéramos
238
+ tenha
239
+ tenhamos
240
+ tenham
241
+ tivesse
242
+ tivéssemos
243
+ tivessem
244
+ tiver
245
+ tivermos
246
+ tiverem
247
+ terei
248
+ terá
249
+ teremos
250
+ terão
251
+ teria
252
+ teríamos
253
+ teriam
@@ -0,0 +1,233 @@
1
+ # This file was created by Jacques Savoy and is distributed under the BSD license.
2
+ # See http://members.unine.ch/jacques.savoy/clef/index.html.
3
+ # Also see http://www.opensource.org/licenses/bsd-license.html
4
+ acea
5
+ aceasta
6
+ această
7
+ aceea
8
+ acei
9
+ aceia
10
+ acel
11
+ acela
12
+ acele
13
+ acelea
14
+ acest
15
+ acesta
16
+ aceste
17
+ acestea
18
+ aceşti
19
+ aceştia
20
+ acolo
21
+ acum
22
+ ai
23
+ aia
24
+ aibă
25
+ aici
26
+ al
27
+ ăla
28
+ ale
29
+ alea
30
+ ălea
31
+ altceva
32
+ altcineva
33
+ am
34
+ ar
35
+ are
36
+
37
+ aşadar
38
+ asemenea
39
+ asta
40
+ ăsta
41
+ astăzi
42
+ astea
43
+ ăstea
44
+ ăştia
45
+ asupra
46
+ aţi
47
+ au
48
+ avea
49
+ avem
50
+ aveţi
51
+ azi
52
+ bine
53
+ bucur
54
+ bună
55
+ ca
56
+
57
+ căci
58
+ când
59
+ care
60
+ cărei
61
+ căror
62
+ cărui
63
+ cât
64
+ câte
65
+ câţi
66
+ către
67
+ câtva
68
+ ce
69
+ cel
70
+ ceva
71
+ chiar
72
+ cînd
73
+ cine
74
+ cineva
75
+ cît
76
+ cîte
77
+ cîţi
78
+ cîtva
79
+ contra
80
+ cu
81
+ cum
82
+ cumva
83
+ curând
84
+ curînd
85
+ da
86
+
87
+ dacă
88
+ dar
89
+ datorită
90
+ de
91
+ deci
92
+ deja
93
+ deoarece
94
+ departe
95
+ deşi
96
+ din
97
+ dinaintea
98
+ dintr
99
+ dintre
100
+ drept
101
+ după
102
+ ea
103
+ ei
104
+ el
105
+ ele
106
+ eram
107
+ este
108
+ eşti
109
+ eu
110
+ face
111
+ fără
112
+ fi
113
+ fie
114
+ fiecare
115
+ fii
116
+ fim
117
+ fiţi
118
+ iar
119
+ ieri
120
+ îi
121
+ îl
122
+ îmi
123
+ împotriva
124
+ în
125
+ înainte
126
+ înaintea
127
+ încât
128
+ încît
129
+ încotro
130
+ între
131
+ întrucât
132
+ întrucît
133
+ îţi
134
+ la
135
+ lângă
136
+ le
137
+ li
138
+ lîngă
139
+ lor
140
+ lui
141
+
142
+ mâine
143
+ mea
144
+ mei
145
+ mele
146
+ mereu
147
+ meu
148
+ mi
149
+ mine
150
+ mult
151
+ multă
152
+ mulţi
153
+ ne
154
+ nicăieri
155
+ nici
156
+ nimeni
157
+ nişte
158
+ noastră
159
+ noastre
160
+ noi
161
+ noştri
162
+ nostru
163
+ nu
164
+ ori
165
+ oricând
166
+ oricare
167
+ oricât
168
+ orice
169
+ oricînd
170
+ oricine
171
+ oricît
172
+ oricum
173
+ oriunde
174
+ până
175
+ pe
176
+ pentru
177
+ peste
178
+ pînă
179
+ poate
180
+ pot
181
+ prea
182
+ prima
183
+ primul
184
+ prin
185
+ printr
186
+ sa
187
+
188
+ săi
189
+ sale
190
+ sau
191
+ său
192
+ se
193
+ şi
194
+ sînt
195
+ sîntem
196
+ sînteţi
197
+ spre
198
+ sub
199
+ sunt
200
+ suntem
201
+ sunteţi
202
+ ta
203
+ tăi
204
+ tale
205
+ tău
206
+ te
207
+ ţi
208
+ ţie
209
+ tine
210
+ toată
211
+ toate
212
+ tot
213
+ toţi
214
+ totuşi
215
+ tu
216
+ un
217
+ una
218
+ unde
219
+ undeva
220
+ unei
221
+ unele
222
+ uneori
223
+ unor
224
+
225
+ vi
226
+ voastră
227
+ voastre
228
+ voi
229
+ voştri
230
+ vostru
231
+ vouă
232
+ vreo
233
+ vreun