enju_library 0.1.0.pre2 → 0.1.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  class BudgetType < ActiveRecord::Base
2
- attr_accessible :name, :display_name, :note
2
+ attr_accessible :name, :display_name, :note, :position
3
3
  include MasterModel
4
4
  default_scope :order => 'budget_types.position'
5
5
  has_many :items
@@ -3,7 +3,7 @@ class Library < ActiveRecord::Base
3
3
  attr_accessible :name, :display_name, :short_display_name, :zip_code, :street,
4
4
  :locality, :region, :telephone_number_1, :telephone_number_2, :fax_number,
5
5
  :note, :call_number_rows, :call_number_delimiter, :library_group_id,
6
- :country_id, :opening_hour, :isil
6
+ :country_id, :opening_hour, :isil, :position
7
7
 
8
8
  include MasterModel
9
9
  default_scope :order => 'libraries.position'
@@ -1,3 +1,3 @@
1
1
  module EnjuLibrary
2
- VERSION = "0.1.0.pre2"
2
+ VERSION = "0.1.0.pre3"
3
3
  end
@@ -4,7 +4,7 @@ class PictureFile < ActiveRecord::Base
4
4
  scope :attached, where('picture_attachable_id > 0')
5
5
  belongs_to :picture_attachable, :polymorphic => true, :validate => true
6
6
 
7
- if configatron.uploaded_file.storage == :s3
7
+ if Setting.uploaded_file.storage == :s3
8
8
  has_attached_file :picture, :storage => :s3, :styles => { :medium => "600x600>", :thumb => "100x100>" },
9
9
  :s3_credentials => "#{Rails.root.to_s}/config/s3.yml", :path => "picture_files/:id/:filename"
10
10
  else
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre2
4
+ version: 0.1.0.pre3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
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-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -64,17 +64,17 @@ dependencies:
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - ! '>='
67
+ - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: 0.1.1.pre
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - ! '>='
75
+ - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: '0'
77
+ version: 0.1.1.pre
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: sqlite3
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -176,17 +176,17 @@ dependencies:
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
179
- - - ! '>='
179
+ - - ~>
180
180
  - !ruby/object:Gem::Version
181
- version: '0'
181
+ version: 0.1.0.pre2
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  none: false
186
186
  requirements:
187
- - - ! '>='
187
+ - - ~>
188
188
  - !ruby/object:Gem::Version
189
- version: '0'
189
+ version: 0.1.0.pre2
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: enju_manifestation_viewer
192
192
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,7 @@ dependencies:
210
210
  requirements:
211
211
  - - ~>
212
212
  - !ruby/object:Gem::Version
213
- version: 0.1.0.pre
213
+ version: 0.1.0.pre5
214
214
  type: :development
215
215
  prerelease: false
216
216
  version_requirements: !ruby/object:Gem::Requirement
@@ -218,7 +218,7 @@ dependencies:
218
218
  requirements:
219
219
  - - ~>
220
220
  - !ruby/object:Gem::Version
221
- version: 0.1.0.pre
221
+ version: 0.1.0.pre5
222
222
  - !ruby/object:Gem::Dependency
223
223
  name: sunspot_solr
224
224
  requirement: !ruby/object:Gem::Requirement
@@ -359,6 +359,7 @@ files:
359
359
  - spec/dummy/app/models/ability.rb
360
360
  - spec/dummy/app/models/picture_file.rb
361
361
  - spec/dummy/app/models/role.rb
362
+ - spec/dummy/app/models/setting.rb
362
363
  - spec/dummy/app/models/user.rb
363
364
  - spec/dummy/app/models/user_group.rb
364
365
  - spec/dummy/app/models/user_has_role.rb
@@ -370,6 +371,7 @@ files:
370
371
  - spec/dummy/app/views/page/404.mobile.erb
371
372
  - spec/dummy/app/views/page/404.xml.erb
372
373
  - spec/dummy/config/application.rb
374
+ - spec/dummy/config/application.yml
373
375
  - spec/dummy/config/boot.rb
374
376
  - spec/dummy/config/database.yml
375
377
  - spec/dummy/config/environment.rb
@@ -563,6 +565,7 @@ test_files:
563
565
  - spec/dummy/app/models/ability.rb
564
566
  - spec/dummy/app/models/picture_file.rb
565
567
  - spec/dummy/app/models/role.rb
568
+ - spec/dummy/app/models/setting.rb
566
569
  - spec/dummy/app/models/user.rb
567
570
  - spec/dummy/app/models/user_group.rb
568
571
  - spec/dummy/app/models/user_has_role.rb
@@ -574,6 +577,7 @@ test_files:
574
577
  - spec/dummy/app/views/page/404.mobile.erb
575
578
  - spec/dummy/app/views/page/404.xml.erb
576
579
  - spec/dummy/config/application.rb
580
+ - spec/dummy/config/application.yml
577
581
  - spec/dummy/config/boot.rb
578
582
  - spec/dummy/config/database.yml
579
583
  - spec/dummy/config/environment.rb