enju_message 0.1.13 → 0.1.14.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module EnjuMessage
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14.pre"
3
3
  end
@@ -54,7 +54,7 @@ class Patron < ActiveRecord::Base
54
54
 
55
55
  def set_full_name
56
56
  if self.full_name.blank?
57
- if self.last_name.to_s.strip and self.first_name.to_s.strip and configatron.family_name_first == true
57
+ if self.last_name.to_s.strip and self.first_name.to_s.strip and Setting.family_name_first == true
58
58
  self.full_name = [last_name, middle_name, first_name].compact.join(" ").to_s.strip
59
59
  else
60
60
  self.full_name = [first_name, last_name, middle_name].compact.join(" ").to_s.strip
@@ -0,0 +1,4 @@
1
+ class Setting < Settingslogic
2
+ source "#{Rails.root}/config/application.yml"
3
+ namespace Rails.env
4
+ end
@@ -0,0 +1,38 @@
1
+ defaults: &defaults
2
+ enju:
3
+ web_hostname: localhost
4
+ web_port_number: 3000
5
+
6
+ family_name_first: true
7
+ max_number_of_results: 500
8
+ write_search_log_to_file: true
9
+ csv_charset_conversion: true
10
+
11
+ # Choose a locale from 'ca', 'de', 'fr', 'jp', 'uk', 'us'
12
+ #AMAZON_AWS_HOSTNAME = 'ecs.amazonaws.com'
13
+ amazon:
14
+ aws_hostname: ecs.amazonaws.jp
15
+ hostname: www.amazon.co.jp
16
+ access_key: REPLACE_WITH_YOUR_AMAZON_ACCESS_KEY
17
+ secret_access_key: REPLACE_WITH_YOUR_AMAZON_SECRET_ACCESS_KEY
18
+
19
+ # :google, :amazon
20
+ book_jacket:
21
+ source: :google
22
+ unknown_resource:
23
+
24
+ # :mozshot, :simpleapi, :heartrails, :thumbalizr
25
+ screenshot:
26
+ generator: :mozshot
27
+
28
+ uploaded_file:
29
+ storage: :local
30
+
31
+ development:
32
+ <<: *defaults
33
+
34
+ test:
35
+ <<: *defaults
36
+
37
+ production:
38
+ <<: *defaults
Binary file
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
5
- prerelease:
4
+ version: 0.1.14.pre
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kosuke Tanabe
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-31 00:00:00.000000000 Z
12
+ date: 2012-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -96,17 +96,17 @@ dependencies:
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
- - - ! '>='
99
+ - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: '0'
101
+ version: 0.1.1.pre
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ! '>='
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: 0.1.1.pre
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: resque_mailer
112
112
  requirement: !ruby/object:Gem::Requirement
@@ -251,6 +251,7 @@ files:
251
251
  - spec/dummy/app/models/patron.rb
252
252
  - spec/dummy/app/models/patron_type.rb
253
253
  - spec/dummy/app/models/role.rb
254
+ - spec/dummy/app/models/setting.rb
254
255
  - spec/dummy/app/models/user.rb
255
256
  - spec/dummy/app/models/user_group.rb
256
257
  - spec/dummy/app/models/user_has_role.rb
@@ -262,6 +263,7 @@ files:
262
263
  - spec/dummy/app/views/page/404.mobile.erb
263
264
  - spec/dummy/app/views/page/404.xml.erb
264
265
  - spec/dummy/config/application.rb
266
+ - spec/dummy/config/application.yml
265
267
  - spec/dummy/config/boot.rb
266
268
  - spec/dummy/config/database.yml
267
269
  - spec/dummy/config/environment.rb
@@ -279,7 +281,6 @@ files:
279
281
  - spec/dummy/config/locales/en.yml
280
282
  - spec/dummy/config/routes.rb
281
283
  - spec/dummy/config.ru
282
- - spec/dummy/db/development.sqlite3
283
284
  - spec/dummy/db/migrate/001_create_patrons.rb
284
285
  - spec/dummy/db/migrate/080_create_library_groups.rb
285
286
  - spec/dummy/db/migrate/20080905191442_create_patron_types.rb
@@ -296,7 +297,6 @@ files:
296
297
  - spec/dummy/db/migrate/20111201163342_create_user_groups.rb
297
298
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
298
299
  - spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb
299
- - spec/dummy/db/production.sqlite3
300
300
  - spec/dummy/db/schema.rb
301
301
  - spec/dummy/db/test.sqlite3
302
302
  - spec/dummy/public/404.html
@@ -316,16 +316,16 @@ files:
316
316
  - spec/dummy/solr/conf/spellings.txt
317
317
  - spec/dummy/solr/conf/stopwords.txt
318
318
  - spec/dummy/solr/conf/synonyms.txt
319
- - spec/dummy/solr/data/test/index/_13.fdt
320
- - spec/dummy/solr/data/test/index/_13.fdx
321
- - spec/dummy/solr/data/test/index/_13.fnm
322
- - spec/dummy/solr/data/test/index/_13.frq
323
- - spec/dummy/solr/data/test/index/_13.nrm
324
- - spec/dummy/solr/data/test/index/_13.prx
325
- - spec/dummy/solr/data/test/index/_13.tii
326
- - spec/dummy/solr/data/test/index/_13.tis
319
+ - spec/dummy/solr/data/test/index/_v.fdt
320
+ - spec/dummy/solr/data/test/index/_v.fdx
321
+ - spec/dummy/solr/data/test/index/_v.fnm
322
+ - spec/dummy/solr/data/test/index/_v.frq
323
+ - spec/dummy/solr/data/test/index/_v.nrm
324
+ - spec/dummy/solr/data/test/index/_v.prx
325
+ - spec/dummy/solr/data/test/index/_v.tii
326
+ - spec/dummy/solr/data/test/index/_v.tis
327
327
  - spec/dummy/solr/data/test/index/segments.gen
328
- - spec/dummy/solr/data/test/index/segments_29
328
+ - spec/dummy/solr/data/test/index/segments_1t
329
329
  - spec/dummy/solr/data/test/spellchecker/segments.gen
330
330
  - spec/dummy/solr/data/test/spellchecker/segments_1
331
331
  - spec/factories/message.rb
@@ -362,9 +362,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
362
362
  required_rubygems_version: !ruby/object:Gem::Requirement
363
363
  none: false
364
364
  requirements:
365
- - - ! '>='
365
+ - - ! '>'
366
366
  - !ruby/object:Gem::Version
367
- version: '0'
367
+ version: 1.3.1
368
368
  requirements: []
369
369
  rubyforge_project:
370
370
  rubygems_version: 1.8.23
@@ -385,6 +385,7 @@ test_files:
385
385
  - spec/dummy/app/models/patron.rb
386
386
  - spec/dummy/app/models/patron_type.rb
387
387
  - spec/dummy/app/models/role.rb
388
+ - spec/dummy/app/models/setting.rb
388
389
  - spec/dummy/app/models/user.rb
389
390
  - spec/dummy/app/models/user_group.rb
390
391
  - spec/dummy/app/models/user_has_role.rb
@@ -396,6 +397,7 @@ test_files:
396
397
  - spec/dummy/app/views/page/404.mobile.erb
397
398
  - spec/dummy/app/views/page/404.xml.erb
398
399
  - spec/dummy/config/application.rb
400
+ - spec/dummy/config/application.yml
399
401
  - spec/dummy/config/boot.rb
400
402
  - spec/dummy/config/database.yml
401
403
  - spec/dummy/config/environment.rb
@@ -413,7 +415,6 @@ test_files:
413
415
  - spec/dummy/config/locales/en.yml
414
416
  - spec/dummy/config/routes.rb
415
417
  - spec/dummy/config.ru
416
- - spec/dummy/db/development.sqlite3
417
418
  - spec/dummy/db/migrate/001_create_patrons.rb
418
419
  - spec/dummy/db/migrate/080_create_library_groups.rb
419
420
  - spec/dummy/db/migrate/20080905191442_create_patron_types.rb
@@ -430,7 +431,6 @@ test_files:
430
431
  - spec/dummy/db/migrate/20111201163342_create_user_groups.rb
431
432
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
432
433
  - spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb
433
- - spec/dummy/db/production.sqlite3
434
434
  - spec/dummy/db/schema.rb
435
435
  - spec/dummy/db/test.sqlite3
436
436
  - spec/dummy/public/404.html
@@ -450,16 +450,16 @@ test_files:
450
450
  - spec/dummy/solr/conf/spellings.txt
451
451
  - spec/dummy/solr/conf/stopwords.txt
452
452
  - spec/dummy/solr/conf/synonyms.txt
453
- - spec/dummy/solr/data/test/index/_13.fdt
454
- - spec/dummy/solr/data/test/index/_13.fdx
455
- - spec/dummy/solr/data/test/index/_13.fnm
456
- - spec/dummy/solr/data/test/index/_13.frq
457
- - spec/dummy/solr/data/test/index/_13.nrm
458
- - spec/dummy/solr/data/test/index/_13.prx
459
- - spec/dummy/solr/data/test/index/_13.tii
460
- - spec/dummy/solr/data/test/index/_13.tis
453
+ - spec/dummy/solr/data/test/index/_v.fdt
454
+ - spec/dummy/solr/data/test/index/_v.fdx
455
+ - spec/dummy/solr/data/test/index/_v.fnm
456
+ - spec/dummy/solr/data/test/index/_v.frq
457
+ - spec/dummy/solr/data/test/index/_v.nrm
458
+ - spec/dummy/solr/data/test/index/_v.prx
459
+ - spec/dummy/solr/data/test/index/_v.tii
460
+ - spec/dummy/solr/data/test/index/_v.tis
461
461
  - spec/dummy/solr/data/test/index/segments.gen
462
- - spec/dummy/solr/data/test/index/segments_29
462
+ - spec/dummy/solr/data/test/index/segments_1t
463
463
  - spec/dummy/solr/data/test/spellchecker/segments.gen
464
464
  - spec/dummy/solr/data/test/spellchecker/segments_1
465
465
  - spec/factories/message.rb
Binary file
Binary file