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,186 @@
1
+ | From svn.tartarus.org/snowball/trunk/website/algorithms/french/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 French stop word list. Comments begin with vertical bar. Each stop
11
+ | word is at the start of a line.
12
+
13
+ au | a + le
14
+ aux | a + les
15
+ avec | with
16
+ ce | this
17
+ ces | these
18
+ dans | with
19
+ de | of
20
+ des | de + les
21
+ du | de + le
22
+ elle | she
23
+ en | `of them' etc
24
+ et | and
25
+ eux | them
26
+ il | he
27
+ je | I
28
+ la | the
29
+ le | the
30
+ leur | their
31
+ lui | him
32
+ ma | my (fem)
33
+ mais | but
34
+ me | me
35
+ même | same; as in moi-même (myself) etc
36
+ mes | me (pl)
37
+ moi | me
38
+ mon | my (masc)
39
+ ne | not
40
+ nos | our (pl)
41
+ notre | our
42
+ nous | we
43
+ on | one
44
+ ou | where
45
+ par | by
46
+ pas | not
47
+ pour | for
48
+ qu | que before vowel
49
+ que | that
50
+ qui | who
51
+ sa | his, her (fem)
52
+ se | oneself
53
+ ses | his (pl)
54
+ son | his, her (masc)
55
+ sur | on
56
+ ta | thy (fem)
57
+ te | thee
58
+ tes | thy (pl)
59
+ toi | thee
60
+ ton | thy (masc)
61
+ tu | thou
62
+ un | a
63
+ une | a
64
+ vos | your (pl)
65
+ votre | your
66
+ vous | you
67
+
68
+ | single letter forms
69
+
70
+ c | c'
71
+ d | d'
72
+ j | j'
73
+ l | l'
74
+ à | to, at
75
+ m | m'
76
+ n | n'
77
+ s | s'
78
+ t | t'
79
+ y | there
80
+
81
+ | forms of être (not including the infinitive):
82
+ été
83
+ étée
84
+ étées
85
+ étés
86
+ étant
87
+ suis
88
+ es
89
+ est
90
+ sommes
91
+ êtes
92
+ sont
93
+ serai
94
+ seras
95
+ sera
96
+ serons
97
+ serez
98
+ seront
99
+ serais
100
+ serait
101
+ serions
102
+ seriez
103
+ seraient
104
+ étais
105
+ était
106
+ étions
107
+ étiez
108
+ étaient
109
+ fus
110
+ fut
111
+ fûmes
112
+ fûtes
113
+ furent
114
+ sois
115
+ soit
116
+ soyons
117
+ soyez
118
+ soient
119
+ fusse
120
+ fusses
121
+ fût
122
+ fussions
123
+ fussiez
124
+ fussent
125
+
126
+ | forms of avoir (not including the infinitive):
127
+ ayant
128
+ eu
129
+ eue
130
+ eues
131
+ eus
132
+ ai
133
+ as
134
+ avons
135
+ avez
136
+ ont
137
+ aurai
138
+ auras
139
+ aura
140
+ aurons
141
+ aurez
142
+ auront
143
+ aurais
144
+ aurait
145
+ aurions
146
+ auriez
147
+ auraient
148
+ avais
149
+ avait
150
+ avions
151
+ aviez
152
+ avaient
153
+ eut
154
+ eûmes
155
+ eûtes
156
+ eurent
157
+ aie
158
+ aies
159
+ ait
160
+ ayons
161
+ ayez
162
+ aient
163
+ eusse
164
+ eusses
165
+ eût
166
+ eussions
167
+ eussiez
168
+ eussent
169
+
170
+ | Later additions (from Jean-Christophe Deschamps)
171
+ ceci | this
172
+ cela | that
173
+ celà | that
174
+ cet | this
175
+ cette | this
176
+ ici | here
177
+ ils | they
178
+ les | the (pl)
179
+ leurs | their (pl)
180
+ quel | which
181
+ quels | which
182
+ quelle | which
183
+ quelles | which
184
+ sans | without
185
+ soi | oneself
186
+
@@ -0,0 +1,110 @@
1
+
2
+ a
3
+ ach
4
+ ag
5
+ agus
6
+ an
7
+ aon
8
+ ar
9
+ arna
10
+ as
11
+ b'
12
+ ba
13
+ beirt
14
+ bhúr
15
+ caoga
16
+ ceathair
17
+ ceathrar
18
+ chomh
19
+ chtó
20
+ chuig
21
+ chun
22
+ cois
23
+ céad
24
+ cúig
25
+ cúigear
26
+ d'
27
+ daichead
28
+ dar
29
+ de
30
+ deich
31
+ deichniúr
32
+ den
33
+ dhá
34
+ do
35
+ don
36
+ dtí
37
+
38
+ dár
39
+
40
+ faoi
41
+ faoin
42
+ faoina
43
+ faoinár
44
+ fara
45
+ fiche
46
+ gach
47
+ gan
48
+ go
49
+ gur
50
+ haon
51
+ hocht
52
+ i
53
+ iad
54
+ idir
55
+ in
56
+ ina
57
+ ins
58
+ inár
59
+ is
60
+ le
61
+ leis
62
+ lena
63
+ lenár
64
+ m'
65
+ mar
66
+ mo
67
+
68
+ na
69
+ nach
70
+ naoi
71
+ naonúr
72
+
73
+
74
+ níor
75
+
76
+ nócha
77
+ ocht
78
+ ochtar
79
+ os
80
+ roimh
81
+ sa
82
+ seacht
83
+ seachtar
84
+ seachtó
85
+ seasca
86
+ seisear
87
+ siad
88
+ sibh
89
+ sinn
90
+ sna
91
+
92
+
93
+ tar
94
+ thar
95
+ thú
96
+ triúr
97
+ trí
98
+ trína
99
+ trínár
100
+ tríocha
101
+
102
+ um
103
+ ár
104
+ é
105
+ éis
106
+ í
107
+ ó
108
+ ón
109
+ óna
110
+ ónár
@@ -0,0 +1,161 @@
1
+ # galican stopwords
2
+ a
3
+ aínda
4
+ alí
5
+ aquel
6
+ aquela
7
+ aquelas
8
+ aqueles
9
+ aquilo
10
+ aquí
11
+ ao
12
+ aos
13
+ as
14
+ así
15
+ á
16
+ ben
17
+ cando
18
+ che
19
+ co
20
+ coa
21
+ comigo
22
+ con
23
+ connosco
24
+ contigo
25
+ convosco
26
+ coas
27
+ cos
28
+ cun
29
+ cuns
30
+ cunha
31
+ cunhas
32
+ da
33
+ dalgunha
34
+ dalgunhas
35
+ dalgún
36
+ dalgúns
37
+ das
38
+ de
39
+ del
40
+ dela
41
+ delas
42
+ deles
43
+ desde
44
+ deste
45
+ do
46
+ dos
47
+ dun
48
+ duns
49
+ dunha
50
+ dunhas
51
+ e
52
+ el
53
+ ela
54
+ elas
55
+ eles
56
+ en
57
+ era
58
+ eran
59
+ esa
60
+ esas
61
+ ese
62
+ eses
63
+ esta
64
+ estar
65
+ estaba
66
+ está
67
+ están
68
+ este
69
+ estes
70
+ estiven
71
+ estou
72
+ eu
73
+ é
74
+ facer
75
+ foi
76
+ foron
77
+ fun
78
+ había
79
+ hai
80
+ iso
81
+ isto
82
+ la
83
+ las
84
+ lle
85
+ lles
86
+ lo
87
+ los
88
+ mais
89
+ me
90
+ meu
91
+ meus
92
+ min
93
+ miña
94
+ miñas
95
+ moi
96
+ na
97
+ nas
98
+ neste
99
+ nin
100
+ no
101
+ non
102
+ nos
103
+ nosa
104
+ nosas
105
+ noso
106
+ nosos
107
+ nós
108
+ nun
109
+ nunha
110
+ nuns
111
+ nunhas
112
+ o
113
+ os
114
+ ou
115
+ ó
116
+ ós
117
+ para
118
+ pero
119
+ pode
120
+ pois
121
+ pola
122
+ polas
123
+ polo
124
+ polos
125
+ por
126
+ que
127
+ se
128
+ senón
129
+ ser
130
+ seu
131
+ seus
132
+ sexa
133
+ sido
134
+ sobre
135
+ súa
136
+ súas
137
+ tamén
138
+ tan
139
+ te
140
+ ten
141
+ teñen
142
+ teño
143
+ ter
144
+ teu
145
+ teus
146
+ ti
147
+ tido
148
+ tiña
149
+ tiven
150
+ túa
151
+ túas
152
+ un
153
+ unha
154
+ unhas
155
+ uns
156
+ vos
157
+ vosa
158
+ vosas
159
+ voso
160
+ vosos
161
+ vós