enju_inventory 0.1.10 → 0.1.11.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ class InventoryFile < ActiveRecord::Base
5
5
  belongs_to :user
6
6
  validates_presence_of :user
7
7
 
8
- if configatron.uploaded_file.storage == :s3
8
+ if Setting.uploaded_file.storage == :s3
9
9
  has_attached_file :inventory, :storage => :s3, :s3_credentials => "#{Rails.root.to_s}/config/s3.yml",
10
10
  :s3_permissions => :private
11
11
  else
@@ -0,0 +1,4 @@
1
+ class Setting < Settingslogic
2
+ source "#{Rails.root}/config/application.yml"
3
+ namespace Rails.env
4
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuInventory
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11.pre"
3
3
  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_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
5
- prerelease:
4
+ version: 0.1.11.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-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 0.1.0.pre
69
+ version: 0.1.0.pre5
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 0.1.0.pre
77
+ version: 0.1.0.pre5
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: sqlite3
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -153,6 +153,7 @@ files:
153
153
  - app/helpers/enju_inventory/application_helper.rb
154
154
  - app/models/inventory.rb
155
155
  - app/models/inventory_file.rb
156
+ - app/models/setting.rb
156
157
  - app/views/inventories/edit.html.erb
157
158
  - app/views/inventories/index.html.erb
158
159
  - app/views/inventories/new.html.erb
@@ -196,6 +197,7 @@ files:
196
197
  - spec/dummy/app/views/page/404.mobile.erb
197
198
  - spec/dummy/app/views/page/404.xml.erb
198
199
  - spec/dummy/config/application.rb
200
+ - spec/dummy/config/application.yml
199
201
  - spec/dummy/config/boot.rb
200
202
  - spec/dummy/config/database.yml
201
203
  - spec/dummy/config/environment.rb
@@ -253,9 +255,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
255
  required_rubygems_version: !ruby/object:Gem::Requirement
254
256
  none: false
255
257
  requirements:
256
- - - ! '>='
258
+ - - ! '>'
257
259
  - !ruby/object:Gem::Version
258
- version: '0'
260
+ version: 1.3.1
259
261
  requirements: []
260
262
  rubyforge_project:
261
263
  rubygems_version: 1.8.23
@@ -282,6 +284,7 @@ test_files:
282
284
  - spec/dummy/app/views/page/404.mobile.erb
283
285
  - spec/dummy/app/views/page/404.xml.erb
284
286
  - spec/dummy/config/application.rb
287
+ - spec/dummy/config/application.yml
285
288
  - spec/dummy/config/boot.rb
286
289
  - spec/dummy/config/database.yml
287
290
  - spec/dummy/config/environment.rb