enju_message 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. data/config/locales/translation_en.yml +51 -0
  2. data/config/locales/translation_ja.yml +51 -0
  3. data/lib/enju_message/version.rb +1 -1
  4. data/spec/controllers/message_requests_controller_spec.rb +275 -0
  5. data/spec/controllers/message_templates_controller_spec.rb +443 -0
  6. data/spec/controllers/messages_controller_spec.rb +439 -0
  7. data/{test → spec}/dummy/Rakefile +0 -0
  8. data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
  9. data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  10. data/spec/dummy/app/controllers/application_controller.rb +45 -0
  11. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  12. data/spec/dummy/app/mailers/notifier.rb +28 -0
  13. data/spec/dummy/app/models/ability.rb +30 -0
  14. data/spec/dummy/app/models/library_group.rb +86 -0
  15. data/spec/dummy/app/models/patron.rb +167 -0
  16. data/spec/dummy/app/models/patron_type.rb +19 -0
  17. data/spec/dummy/app/models/role.rb +8 -0
  18. data/spec/dummy/app/models/user.rb +53 -0
  19. data/spec/dummy/app/models/user_group.rb +2 -0
  20. data/spec/dummy/app/models/user_has_role.rb +4 -0
  21. data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  22. data/spec/dummy/app/views/page/403.html.erb +9 -0
  23. data/spec/dummy/app/views/page/403.mobile.erb +5 -0
  24. data/spec/dummy/app/views/page/403.xml.erb +4 -0
  25. data/spec/dummy/app/views/page/404.html.erb +9 -0
  26. data/spec/dummy/app/views/page/404.mobile.erb +5 -0
  27. data/spec/dummy/app/views/page/404.xml.erb +4 -0
  28. data/{test → spec}/dummy/config/application.rb +1 -0
  29. data/{test → spec}/dummy/config/boot.rb +0 -0
  30. data/{test → spec}/dummy/config/database.yml +0 -0
  31. data/{test → spec}/dummy/config/environment.rb +0 -0
  32. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  33. data/{test → spec}/dummy/config/environments/production.rb +0 -0
  34. data/{test → spec}/dummy/config/environments/test.rb +0 -0
  35. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  36. data/spec/dummy/config/initializers/devise.rb +209 -0
  37. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  38. data/{test → spec}/dummy/config/initializers/mime_types.rb +1 -0
  39. data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
  40. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  41. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  42. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  43. data/{test → spec}/dummy/config/routes.rb +2 -0
  44. data/{test → spec}/dummy/config.ru +0 -0
  45. data/{test/dummy/public/favicon.ico → spec/dummy/db/development.sqlite3} +0 -0
  46. data/spec/dummy/db/migrate/001_create_patrons.rb +62 -0
  47. data/spec/dummy/db/migrate/080_create_library_groups.rb +25 -0
  48. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +16 -0
  49. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
  50. data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
  51. data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +21 -0
  52. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +9 -0
  53. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  54. data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +11 -0
  55. data/spec/dummy/db/migrate/20111201121636_create_languages.rb +16 -0
  56. data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
  57. data/spec/dummy/db/migrate/20111201155456_create_users.rb +14 -0
  58. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +31 -0
  59. data/spec/dummy/db/migrate/20111201163342_create_user_groups.rb +12 -0
  60. data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
  61. data/spec/dummy/db/schema.rb +225 -0
  62. data/spec/dummy/db/test.sqlite3 +0 -0
  63. data/spec/dummy/lib/enju_leaf/localized_name.rb +13 -0
  64. data/spec/dummy/lib/enju_leaf/master_model.rb +41 -0
  65. data/spec/dummy/lib/enju_leaf/url_validator.rb +10 -0
  66. data/spec/dummy/lib/enju_leaf.rb +4 -0
  67. data/spec/dummy/log/development.log +106 -0
  68. data/spec/dummy/log/sunspot-solr-test.log +232 -0
  69. data/spec/dummy/log/test.log +145040 -0
  70. data/{test → spec}/dummy/public/404.html +0 -0
  71. data/{test → spec}/dummy/public/422.html +0 -0
  72. data/{test → spec}/dummy/public/500.html +0 -0
  73. data/spec/dummy/public/favicon.ico +0 -0
  74. data/{test → spec}/dummy/script/rails +0 -0
  75. data/spec/dummy/solr/conf/admin-extra.html +31 -0
  76. data/spec/dummy/solr/conf/elevate.xml +36 -0
  77. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  78. data/spec/dummy/solr/conf/protwords.txt +21 -0
  79. data/spec/dummy/solr/conf/schema.xml +238 -0
  80. data/spec/dummy/solr/conf/scripts.conf +24 -0
  81. data/spec/dummy/solr/conf/solrconfig.xml +934 -0
  82. data/spec/dummy/solr/conf/spellings.txt +2 -0
  83. data/spec/dummy/solr/conf/stopwords.txt +58 -0
  84. data/spec/dummy/solr/conf/synonyms.txt +31 -0
  85. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  86. data/spec/dummy/solr/data/test/index/segments_1 +0 -0
  87. data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
  88. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  89. data/spec/factories/message.rb +8 -0
  90. data/spec/factories/message_request.rb +7 -0
  91. data/spec/factories/message_template.rb +7 -0
  92. data/spec/factories/user.rb +34 -0
  93. data/spec/fixtures/library_groups.yml +34 -0
  94. data/spec/fixtures/message_requests.yml +30 -0
  95. data/spec/fixtures/message_templates.yml +65 -0
  96. data/spec/fixtures/messages.yml +62 -0
  97. data/spec/fixtures/patrons.yml +338 -0
  98. data/spec/fixtures/roles.yml +21 -0
  99. data/spec/fixtures/user_groups.yml +25 -0
  100. data/spec/fixtures/user_has_roles.yml +41 -0
  101. data/spec/fixtures/users.yml +69 -0
  102. data/spec/models/message_request_spec.rb +24 -0
  103. data/spec/models/message_spec.rb +59 -0
  104. data/spec/models/message_template_spec.rb +24 -0
  105. data/spec/spec_helper.rb +46 -0
  106. data/spec/support/controller_macros.rb +48 -0
  107. data/spec/support/devise.rb +4 -0
  108. metadata +273 -220
  109. data/app/views/baskets/edit.html.erb +0 -30
  110. data/app/views/baskets/index.html.erb +0 -31
  111. data/app/views/baskets/new.html.erb +0 -29
  112. data/app/views/baskets/show.html.erb +0 -23
  113. data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
  114. data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
  115. data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
  116. data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
  117. data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
  118. data/app/views/checked_items/_checkouts.html.erb +0 -20
  119. data/app/views/checked_items/_list.html.erb +0 -39
  120. data/app/views/checked_items/edit.html.erb +0 -21
  121. data/app/views/checked_items/index.html.erb +0 -32
  122. data/app/views/checked_items/index.js.erb +0 -1
  123. data/app/views/checked_items/new.html.erb +0 -20
  124. data/app/views/checked_items/show.html.erb +0 -24
  125. data/app/views/checkins/_form.html.erb +0 -24
  126. data/app/views/checkins/_list.html.erb +0 -51
  127. data/app/views/checkins/edit.html.erb +0 -26
  128. data/app/views/checkins/index.html.erb +0 -16
  129. data/app/views/checkins/index.js.erb +0 -1
  130. data/app/views/checkins/new.html.erb +0 -14
  131. data/app/views/checkins/show.html.erb +0 -24
  132. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  133. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  134. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  135. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  136. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  137. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  138. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  139. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  140. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  141. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  142. data/app/views/checkout_types/_form.html.erb +0 -19
  143. data/app/views/checkout_types/edit.html.erb +0 -13
  144. data/app/views/checkout_types/index.html.erb +0 -50
  145. data/app/views/checkout_types/new.html.erb +0 -12
  146. data/app/views/checkout_types/show.html.erb +0 -38
  147. data/app/views/checkouts/_form.html.erb +0 -28
  148. data/app/views/checkouts/_index.html.erb +0 -23
  149. data/app/views/checkouts/_index_overdue.html.erb +0 -33
  150. data/app/views/checkouts/_index_user.html.erb +0 -44
  151. data/app/views/checkouts/_list.html.erb +0 -45
  152. data/app/views/checkouts/edit.html.erb +0 -51
  153. data/app/views/checkouts/index.atom.builder +0 -14
  154. data/app/views/checkouts/index.csv.erb +0 -4
  155. data/app/views/checkouts/index.html.erb +0 -11
  156. data/app/views/checkouts/index.ics.erb +0 -13
  157. data/app/views/checkouts/index.rss.builder +0 -38
  158. data/app/views/checkouts/new.html.erb +0 -20
  159. data/app/views/checkouts/show.html.erb +0 -35
  160. data/app/views/circulation_statuses/_form.html.erb +0 -19
  161. data/app/views/circulation_statuses/edit.html.erb +0 -13
  162. data/app/views/circulation_statuses/index.html.erb +0 -43
  163. data/app/views/circulation_statuses/new.html.erb +0 -12
  164. data/app/views/circulation_statuses/show.html.erb +0 -29
  165. data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
  166. data/app/views/item_has_use_restrictions/index.html.erb +0 -32
  167. data/app/views/item_has_use_restrictions/new.html.erb +0 -25
  168. data/app/views/item_has_use_restrictions/show.html.erb +0 -29
  169. data/app/views/lending_policies/_form.html.erb +0 -41
  170. data/app/views/lending_policies/edit.html.erb +0 -13
  171. data/app/views/lending_policies/index.html.erb +0 -42
  172. data/app/views/lending_policies/new.html.erb +0 -12
  173. data/app/views/lending_policies/show.html.erb +0 -50
  174. data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
  175. data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
  176. data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
  177. data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
  178. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  179. data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
  180. data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
  181. data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
  182. data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
  183. data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
  184. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  185. data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
  186. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  187. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  188. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  189. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  190. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  191. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  192. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  193. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  194. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  195. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  196. data/app/views/reserves/_form.html.erb +0 -49
  197. data/app/views/reserves/_new.html.erb +0 -44
  198. data/app/views/reserves/_new_user.html.erb +0 -50
  199. data/app/views/reserves/_title.html.erb +0 -19
  200. data/app/views/reserves/edit.html.erb +0 -42
  201. data/app/views/reserves/index.atom.builder +0 -14
  202. data/app/views/reserves/index.csv.erb +0 -4
  203. data/app/views/reserves/index.html.erb +0 -75
  204. data/app/views/reserves/index.rss.builder +0 -41
  205. data/app/views/reserves/new.html.erb +0 -5
  206. data/app/views/reserves/show.html.erb +0 -61
  207. data/app/views/use_restrictions/_form.html.erb +0 -19
  208. data/app/views/use_restrictions/edit.html.erb +0 -13
  209. data/app/views/use_restrictions/index.html.erb +0 -43
  210. data/app/views/use_restrictions/new.html.erb +0 -12
  211. data/app/views/use_restrictions/show.html.erb +0 -29
  212. data/app/views/user_checkout_stats/_form.html.erb +0 -19
  213. data/app/views/user_checkout_stats/edit.html.erb +0 -13
  214. data/app/views/user_checkout_stats/index.html.erb +0 -35
  215. data/app/views/user_checkout_stats/new.html.erb +0 -12
  216. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  217. data/app/views/user_checkout_stats/show.html.erb +0 -55
  218. data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
  219. data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
  220. data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
  221. data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
  222. data/app/views/user_reserve_stats/_form.html.erb +0 -19
  223. data/app/views/user_reserve_stats/edit.html.erb +0 -13
  224. data/app/views/user_reserve_stats/index.html.erb +0 -35
  225. data/app/views/user_reserve_stats/new.html.erb +0 -12
  226. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  227. data/app/views/user_reserve_stats/show.html.erb +0 -54
  228. data/test/dummy/app/controllers/application_controller.rb +0 -3
  229. data/test/enju_message_test.rb +0 -7
  230. data/test/integration/navigation_test.rb +0 -10
  231. data/test/test_helper.rb +0 -10
@@ -0,0 +1,2 @@
1
+ pizza
2
+ history
@@ -0,0 +1,58 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ #-----------------------------------------------------------------------
17
+ # a couple of test stopwords to test that the words are really being
18
+ # configured from this file:
19
+ stopworda
20
+ stopwordb
21
+
22
+ #Standard english stop words taken from Lucene's StopAnalyzer
23
+ a
24
+ an
25
+ and
26
+ are
27
+ as
28
+ at
29
+ be
30
+ but
31
+ by
32
+ for
33
+ if
34
+ in
35
+ into
36
+ is
37
+ it
38
+ no
39
+ not
40
+ of
41
+ on
42
+ or
43
+ s
44
+ such
45
+ t
46
+ that
47
+ the
48
+ their
49
+ then
50
+ there
51
+ these
52
+ they
53
+ this
54
+ to
55
+ was
56
+ will
57
+ with
58
+
@@ -0,0 +1,31 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ #-----------------------------------------------------------------------
14
+ #some test synonym mappings unlikely to appear in real input text
15
+ aaa => aaaa
16
+ bbb => bbbb1 bbbb2
17
+ ccc => cccc1,cccc2
18
+ a\=>a => b\=>b
19
+ a\,a => b\,b
20
+ fooaaa,baraaa,bazaaa
21
+
22
+ # Some synonym groups specific to this example
23
+ GB,gib,gigabyte,gigabytes
24
+ MB,mib,megabyte,megabytes
25
+ Television, Televisions, TV, TVs
26
+ #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
27
+ #after us won't split it into two words.
28
+
29
+ # Synonym mappings can be used for spelling correction too
30
+ pixima => pixma
31
+
@@ -0,0 +1,8 @@
1
+ FactoryGirl.define do
2
+ factory :message do |f|
3
+ f.recipient{FactoryGirl.create(:user).username}
4
+ f.sender_id{FactoryGirl.create(:user).id}
5
+ f.subject 'new message'
6
+ f.body 'new message body is really short'
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ FactoryGirl.define do
2
+ factory :message_request do |f|
3
+ f.sender_id{FactoryGirl.create(:user).id}
4
+ f.receiver_id{FactoryGirl.create(:user).id}
5
+ f.message_template_id{FactoryGirl.create(:message_template).id}
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ FactoryGirl.define do
2
+ factory :message_template do |f|
3
+ f.sequence(:title){|n| "message_template_#{n}"}
4
+ f.sequence(:status){|n| "message_template_#{n}"}
5
+ f.sequence(:body){|n| "message_template_#{n}"}
6
+ end
7
+ end
@@ -0,0 +1,34 @@
1
+ FactoryGirl.define do
2
+ factory :admin, :class => User do |f|
3
+ f.sequence(:username){|n| "admin_#{n}"}
4
+ f.sequence(:email){|n| "admin_#{n}@example.jp"}
5
+ f.role {Role.find_by_name('Administrator')}
6
+ f.password 'adminpassword'
7
+ f.password_confirmation 'adminpassword'
8
+ f.user_group {UserGroup.first}
9
+ f.required_role {Role.find_by_name('User')}
10
+ end
11
+
12
+ factory :librarian, :class => User do |f|
13
+ f.sequence(:username){|n| "librarian_#{n}"}
14
+ f.sequence(:email){|n| "librarian_#{n}@example.jp"}
15
+ f.role {Role.find_by_name('Librarian')}
16
+ f.password 'librarianpassword'
17
+ f.password_confirmation 'librarianpassword'
18
+ f.user_group {UserGroup.first}
19
+ f.required_role {Role.find_by_name('User')}
20
+ end
21
+
22
+ factory :user, :class => User do |f|
23
+ f.sequence(:username){|n| "user_#{n}"}
24
+ f.sequence(:email){|n| "user_#{n}@example.jp"}
25
+ f.role {Role.find_by_name('User')}
26
+ f.password 'userpassword'
27
+ f.password_confirmation 'userpassword'
28
+ f.user_group {UserGroup.first}
29
+ f.required_role {Role.find_by_name('User')}
30
+ end
31
+
32
+ factory :invalid_user, :class => User do |f|
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+ one:
3
+ id: 1
4
+ name: unknown
5
+ display_name: unknown
6
+ short_name: unknown
7
+ email: next-l@library.example.jp
8
+ note:
9
+ my_networks: 0.0.0.0/0
10
+ url: "http://localhost:3000/"
11
+
12
+
13
+ # == Schema Information
14
+ #
15
+ # Table name: library_groups
16
+ #
17
+ # id :integer not null, primary key
18
+ # name :string(255) not null
19
+ # display_name :text
20
+ # short_name :string(255) not null
21
+ # email :string(255)
22
+ # my_networks :text
23
+ # login_banner :text
24
+ # note :text
25
+ # post_to_union_catalog :boolean default(FALSE), not null
26
+ # country_id :integer
27
+ # created_at :datetime
28
+ # updated_at :datetime
29
+ # admin_networks :text
30
+ # allow_bookmark_external_url :boolean default(FALSE), not null
31
+ # position :integer
32
+ # url :string(255) default("http://localhost:3000/")
33
+ #
34
+
@@ -0,0 +1,30 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ one:
4
+ sender_id: 1
5
+ receiver_id: 1
6
+ message_template_id: 1
7
+ state: pending
8
+
9
+ two:
10
+ sender_id: 1
11
+ receiver_id: 1
12
+ message_template_id: 1
13
+ state: pending
14
+
15
+ # == Schema Information
16
+ #
17
+ # Table name: message_requests
18
+ #
19
+ # id :integer not null, primary key
20
+ # sender_id :integer
21
+ # receiver_id :integer
22
+ # message_template_id :integer
23
+ # sent_at :datetime
24
+ # deleted_at :datetime
25
+ # body :text
26
+ # state :string(255)
27
+ # created_at :datetime
28
+ # updated_at :datetime
29
+ #
30
+
@@ -0,0 +1,65 @@
1
+ message_template_00001:
2
+ id: 1
3
+ status: reservation_accepted
4
+ title: Reservation accepted
5
+ body: Reservation accepted
6
+ position: 1
7
+ message_template_00002:
8
+ id: 2
9
+ status: item_received
10
+ title: Item received
11
+ body: Item received
12
+ position: 2
13
+ message_template_00003:
14
+ id: 3
15
+ status: reservation_expired_for_patron
16
+ title: Reservation expired
17
+ body: Reservation expired
18
+ position: 3
19
+ message_template_00004:
20
+ id: 4
21
+ status: reservation_expired_for_library
22
+ title: Reservation expired
23
+ body: Reservation expired
24
+ position: 4
25
+ message_template_00005:
26
+ id: 5
27
+ status: reservation_canceled_for_patron
28
+ title: Reservation canceled
29
+ body: Reservation canceled
30
+ position: 5
31
+ message_template_00006:
32
+ id: 6
33
+ status: reservation_canceled_for_library
34
+ title: Reservation canceled
35
+ body: Reservation canceled
36
+ position: 6
37
+ message_template_00007:
38
+ id: 7
39
+ status: recall_item
40
+ title: Recall item
41
+ body: Recall item
42
+ position: 7
43
+ message_template_00008:
44
+ id: 8
45
+ status: recall_overdue_item
46
+ title: Recall overdue item
47
+ body: Recall overdue item
48
+ position: 8
49
+
50
+
51
+
52
+ # == Schema Information
53
+ #
54
+ # Table name: message_templates
55
+ #
56
+ # id :integer not null, primary key
57
+ # status :string(255) not null
58
+ # title :text not null
59
+ # body :text not null
60
+ # position :integer
61
+ # created_at :datetime
62
+ # updated_at :datetime
63
+ # locale :string(255) default("ja")
64
+ #
65
+
@@ -0,0 +1,62 @@
1
+ user1_to_user2_1:
2
+ id: 1
3
+ sender_id: 3
4
+ receiver_id: 4
5
+ subject: 'First Message'
6
+ body: 'Abby, you get the first message'
7
+ created_at: 2007-07-04 12:10:47.0
8
+ read_at: <%= 3.days.ago.to_s :db %>
9
+ state: unread
10
+ lft: 1
11
+ rgt: 2
12
+ user2_to_user1_1:
13
+ id: 2
14
+ sender_id: 4
15
+ receiver_id: 3
16
+ subject: 'RE: First Message'
17
+ body: 'Thanks Dad! You are the coolest!'
18
+ created_at: <%= 2.days.ago.to_s :db %>
19
+ state: unread
20
+ lft: 3
21
+ rgt: 4
22
+ user1_to_librarian_2:
23
+ id: 3
24
+ sender_id: 3
25
+ receiver_id: 4
26
+ subject: 'Second Message'
27
+ body: 'Catie, you get the 2nd message'
28
+ created_at: <%= 1.days.ago.to_s :db %>
29
+ state: unread
30
+ lft: 5
31
+ rgt: 6
32
+ librarian2_to_user2:
33
+ id: 6
34
+ sender_id: 4
35
+ receiver_id: 5
36
+ subject: 'Dad!'
37
+ body: 'He is sucha dork.'
38
+ created_at: <%= 2.days.ago.to_s :db %>
39
+ state: unread
40
+ lft: 7
41
+ rgt: 8
42
+
43
+
44
+ # == Schema Information
45
+ #
46
+ # Table name: messages
47
+ #
48
+ # id :integer not null, primary key
49
+ # read_at :datetime
50
+ # receiver_id :integer
51
+ # sender_id :integer
52
+ # subject :string(255) not null
53
+ # body :text
54
+ # created_at :datetime
55
+ # updated_at :datetime
56
+ # message_request_id :integer
57
+ # state :string(255)
58
+ # parent_id :integer
59
+ # lft :integer
60
+ # rgt :integer
61
+ #
62
+
@@ -0,0 +1,338 @@
1
+ ---
2
+ patron_00001:
3
+ place: ""
4
+ last_name: Administrator
5
+ first_name:
6
+ full_name: Administrator
7
+ updated_at: 2007-11-21 22:01:56.137409 +09:00
8
+ other_designation: ""
9
+ id: 1
10
+ date_of_birth: 2000-01-01
11
+ date_of_death:
12
+ address_1:
13
+ language_id: 1
14
+ country_id: 1
15
+ patron_type_id: 1
16
+ required_role_id: 1
17
+ created_at: 2007-11-19 17:06:06.507237 +09:00
18
+ user_id: 1
19
+ patron_00002:
20
+ place: ""
21
+ last_name: Librarian1
22
+ first_name:
23
+ full_name: Librarian1
24
+ updated_at: 2007-11-21 22:02:10.359793 +09:00
25
+ other_designation: ""
26
+ id: 2
27
+ date_of_birth: 2000-01-01
28
+ date_of_death:
29
+ address_1:
30
+ language_id: 1
31
+ country_id: 1
32
+ patron_type_id: 1
33
+ required_role_id: 4
34
+ created_at: 2007-11-19 17:06:07.724517 +09:00
35
+ user_id: 2
36
+ patron_00003:
37
+ place:
38
+ last_name: Kosuke
39
+ first_name: Tanabe
40
+ full_name: Kosuke Tanabe
41
+ updated_at: 2007-12-04 16:25:01.523618 +09:00
42
+ other_designation:
43
+ id: 3
44
+ date_of_birth: 2000-01-01
45
+ date_of_death:
46
+ address_1:
47
+ language_id: 1
48
+ country_id: 1
49
+ patron_type_id: 1
50
+ required_role_id: 3
51
+ created_at: 2007-12-04 16:25:01.523618 +09:00
52
+ user_id: 3
53
+ patron_00004:
54
+ place:
55
+ last_name: Librarian2
56
+ first_name:
57
+ full_name: Librarian2
58
+ updated_at: 2007-12-04 16:25:01.785027 +09:00
59
+ other_designation:
60
+ id: 4
61
+ date_of_birth: 2000-01-01
62
+ date_of_death:
63
+ address_1:
64
+ language_id: 1
65
+ country_id: 1
66
+ patron_type_id: 1
67
+ required_role_id: 1
68
+ created_at: 2007-12-04 16:25:01.785027 +09:00
69
+ user_id: 4
70
+ patron_00005:
71
+ place: ""
72
+ last_name: User2
73
+ first_name:
74
+ full_name: User2
75
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
76
+ other_designation: ""
77
+ id: 5
78
+ date_of_birth: 2000-01-01
79
+ date_of_death:
80
+ address_1:
81
+ language_id: 1
82
+ country_id: 1
83
+ patron_type_id: 1
84
+ required_role_id: 2
85
+ created_at: 2007-11-19 17:24:50.153417 +09:00
86
+ user_id: 5
87
+ patron_00006:
88
+ place: ""
89
+ last_name: New patron 1
90
+ first_name:
91
+ full_name: New patron 1
92
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
93
+ other_designation: ""
94
+ id: 6
95
+ date_of_birth: 2000-01-01
96
+ date_of_death:
97
+ address_1:
98
+ language_id: 1
99
+ country_id: 1
100
+ patron_type_id: 1
101
+ required_role_id: 1
102
+ created_at: 2007-11-19 17:24:50.153417 +09:00
103
+ patron_00007:
104
+ place: ""
105
+ last_name: New patron 2
106
+ first_name:
107
+ full_name: New patron 2
108
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
109
+ other_designation: ""
110
+ id: 7
111
+ date_of_birth: 2000-01-01
112
+ date_of_death:
113
+ address_1:
114
+ language_id: 1
115
+ country_id: 1
116
+ patron_type_id: 1
117
+ required_role_id: 1
118
+ created_at: 2007-11-19 17:24:50.153417 +09:00
119
+ patron_00008:
120
+ place: ""
121
+ last_name: New patron 3
122
+ first_name:
123
+ full_name: New patron 3
124
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
125
+ other_designation: ""
126
+ id: 8
127
+ date_of_birth: 2000-01-01
128
+ date_of_death:
129
+ address_1:
130
+ language_id: 1
131
+ country_id: 1
132
+ patron_type_id: 1
133
+ required_role_id: 1
134
+ created_at: 2007-11-19 17:24:50.153417 +09:00
135
+ patron_00009:
136
+ place: ""
137
+ last_name: New patron 4
138
+ first_name:
139
+ full_name: New patron 4
140
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
141
+ other_designation: ""
142
+ id: 9
143
+ date_of_birth: 2000-01-01
144
+ date_of_death:
145
+ address_1:
146
+ language_id: 1
147
+ country_id: 1
148
+ patron_type_id: 1
149
+ required_role_id: 1
150
+ created_at: 2007-11-19 17:24:50.153417 +09:00
151
+ patron_00010:
152
+ place: ""
153
+ last_name: New patron 5
154
+ first_name:
155
+ full_name: New patron 5
156
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
157
+ other_designation: ""
158
+ id: 10
159
+ date_of_birth: 2000-01-01
160
+ date_of_death:
161
+ address_1:
162
+ language_id: 1
163
+ country_id: 1
164
+ patron_type_id: 1
165
+ required_role_id: 1
166
+ created_at: 2007-11-19 17:24:50.153417 +09:00
167
+ patron_00011:
168
+ place: ""
169
+ last_name: User3
170
+ first_name:
171
+ full_name: User3
172
+ updated_at: 2007-11-21 22:02:35.579396 +09:00
173
+ other_designation: ""
174
+ id: 11
175
+ date_of_birth: 2000-01-01
176
+ date_of_death:
177
+ address_1:
178
+ language_id: 1
179
+ country_id: 1
180
+ patron_type_id: 1
181
+ required_role_id: 1
182
+ created_at: 2007-11-19 17:24:50.153417 +09:00
183
+ user_id: 6
184
+ patron_00101:
185
+ place: ""
186
+ last_name: テスト名字
187
+ first_name: テスト名前
188
+ full_name: テスト正式名称
189
+ updated_at: 2010-03-03 17:00:00.579396 +09:00
190
+ other_designation: ""
191
+ id: 101
192
+ date_of_birth: 2000-01-01
193
+ date_of_death:
194
+ address_1:
195
+ language_id: 1
196
+ country_id: 1
197
+ patron_type_id: 1
198
+ required_role_id: 1
199
+ created_at: 2010-03-03 17:00:00.579396 +09:00
200
+ patron_00102:
201
+ place: ""
202
+ last_name:
203
+ first_name:
204
+ full_name: 出版社テスト
205
+ updated_at: 2010-03-03 17:00:00.579396 +09:00
206
+ other_designation: ""
207
+ id: 102
208
+ date_of_birth:
209
+ date_of_death:
210
+ address_1:
211
+ language_id: 1
212
+ country_id: 1
213
+ patron_type_id: 1
214
+ required_role_id: 1
215
+ created_at: 2010-03-03 17:00:00.579396 +09:00
216
+ patron_00103:
217
+ place: ""
218
+ last_name:
219
+ first_name:
220
+ full_name: 作者ダミー
221
+ updated_at: 2010-03-16 19:00:00.579396 +09:00
222
+ other_designation: ""
223
+ id: 103
224
+ date_of_birth:
225
+ date_of_death:
226
+ address_1:
227
+ language_id: 1
228
+ country_id: 1
229
+ patron_type_id: 1
230
+ required_role_id: 1
231
+ created_at: 2010-03-16 19:00:00.579396 +09:00
232
+ patron_00104:
233
+ place: ""
234
+ last_name:
235
+ first_name:
236
+ full_name: 試験用会社
237
+ updated_at: 2010-03-16 19:00:00.579396 +09:00
238
+ other_designation: ""
239
+ id: 104
240
+ date_of_birth:
241
+ date_of_death:
242
+ address_1:
243
+ language_id: 1
244
+ country_id: 1
245
+ patron_type_id: 1
246
+ required_role_id: 1
247
+ created_at: 2010-03-16 19:00:00.579396 +09:00
248
+ patron_00201:
249
+ place: ""
250
+ last_name:
251
+ first_name:
252
+ full_name: オーム社
253
+ updated_at: 2010-03-15 17:00:00.579396 +09:00
254
+ other_designation: ""
255
+ id: 201
256
+ date_of_birth:
257
+ date_of_death:
258
+ address_1:
259
+ language_id: 1
260
+ country_id: 1
261
+ patron_type_id: 1
262
+ required_role_id: 1
263
+ created_at: 2010-03-15 17:00:00.579396 +09:00
264
+ patron_00202:
265
+ place: ""
266
+ last_name:
267
+ first_name:
268
+ full_name: Ruby社
269
+ updated_at: 2010-03-15 17:00:00.579396 +09:00
270
+ other_designation: ""
271
+ id: 202
272
+ date_of_birth:
273
+ date_of_death:
274
+ address_1:
275
+ language_id: 1
276
+ country_id: 1
277
+ patron_type_id: 1
278
+ required_role_id: 1
279
+ created_at: 2010-03-15 17:00:00.579396 +09:00
280
+
281
+
282
+
283
+
284
+
285
+
286
+ # == Schema Information
287
+ #
288
+ # Table name: patrons
289
+ #
290
+ # id :integer not null, primary key
291
+ # user_id :integer
292
+ # last_name :string(255)
293
+ # middle_name :string(255)
294
+ # first_name :string(255)
295
+ # last_name_transcription :string(255)
296
+ # middle_name_transcription :string(255)
297
+ # first_name_transcription :string(255)
298
+ # corporate_name :string(255)
299
+ # corporate_name_transcription :string(255)
300
+ # full_name :string(255)
301
+ # full_name_transcription :text
302
+ # full_name_alternative :text
303
+ # created_at :datetime
304
+ # updated_at :datetime
305
+ # deleted_at :datetime
306
+ # zip_code_1 :string(255)
307
+ # zip_code_2 :string(255)
308
+ # address_1 :text
309
+ # address_2 :text
310
+ # address_1_note :text
311
+ # address_2_note :text
312
+ # telephone_number_1 :string(255)
313
+ # telephone_number_2 :string(255)
314
+ # fax_number_1 :string(255)
315
+ # fax_number_2 :string(255)
316
+ # other_designation :text
317
+ # place :text
318
+ # street :text
319
+ # locality :text
320
+ # region :text
321
+ # date_of_birth :datetime
322
+ # date_of_death :datetime
323
+ # language_id :integer default(1), not null
324
+ # country_id :integer default(1), not null
325
+ # patron_type_id :integer default(1), not null
326
+ # lock_version :integer default(0), not null
327
+ # note :text
328
+ # required_role_id :integer default(1), not null
329
+ # required_score :integer default(0), not null
330
+ # state :string(255)
331
+ # email :text
332
+ # url :text
333
+ # full_name_alternative_transcription :text
334
+ # title :string(255)
335
+ # birth_date :string(255)
336
+ # death_date :string(255)
337
+ #
338
+