enju_export 0.1.0 → 0.1.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/export_file.rb +1 -1
- data/lib/enju_export/version.rb +1 -1
- data/lib/generators/enju_export/views_generator.rb +17 -0
- data/spec/dummy/app/models/setting.rb +4 -0
- data/{app → spec/dummy/app}/views/page/403.html.erb +0 -0
- data/{app → spec/dummy/app}/views/page/403.mobile.erb +0 -0
- data/{app → spec/dummy/app}/views/page/403.xml.erb +0 -0
- data/{app → spec/dummy/app}/views/page/404.html.erb +0 -0
- data/{app → spec/dummy/app}/views/page/404.mobile.erb +0 -0
- data/{app → spec/dummy/app}/views/page/404.xml.erb +0 -0
- data/spec/dummy/config/application.rb +0 -1
- data/spec/dummy/config/application.yml +38 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- metadata +27 -16
data/app/models/export_file.rb
CHANGED
@@ -4,7 +4,7 @@ class ExportFile < ActiveRecord::Base
|
|
4
4
|
belongs_to :user
|
5
5
|
validates_associated :user_id
|
6
6
|
|
7
|
-
if
|
7
|
+
if Setting.uploaded_file.storage == :s3
|
8
8
|
has_attached_file :export, :storage => :s3, :s3_credentials => "#{Rails.root.to_s}/config/s3.yml",
|
9
9
|
:s3_permissions => :private
|
10
10
|
else
|
data/lib/enju_export/version.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
module EnjuExport
|
2
|
+
module Generators
|
3
|
+
class ViewsGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path('../../../../app/views', __FILE__)
|
5
|
+
|
6
|
+
def copy_files
|
7
|
+
directories = %w(
|
8
|
+
export_files
|
9
|
+
)
|
10
|
+
|
11
|
+
directories.each do |dir|
|
12
|
+
directory dir, "app/views/#{dir}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1.pre
|
5
|
+
prerelease: 6
|
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-
|
12
|
+
date: 2012-08-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -76,21 +76,21 @@ dependencies:
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
79
|
+
name: enju_biblio
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 0.1.0.pre5
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 0.1.0.pre5
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: sqlite3
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,12 +139,6 @@ files:
|
|
139
139
|
- app/views/export_files/new.html.erb
|
140
140
|
- app/views/export_files/show.html.erb
|
141
141
|
- app/views/export_files/show.js.erb
|
142
|
-
- app/views/page/403.html.erb
|
143
|
-
- app/views/page/403.mobile.erb
|
144
|
-
- app/views/page/403.xml.erb
|
145
|
-
- app/views/page/404.html.erb
|
146
|
-
- app/views/page/404.mobile.erb
|
147
|
-
- app/views/page/404.xml.erb
|
148
142
|
- app/workers/patron_export_queue.rb
|
149
143
|
- config/locales/translation_en.yml
|
150
144
|
- config/locales/translation_ja.yml
|
@@ -154,6 +148,7 @@ files:
|
|
154
148
|
- lib/enju_export/engine.rb
|
155
149
|
- lib/enju_export/version.rb
|
156
150
|
- lib/enju_export.rb
|
151
|
+
- lib/generators/enju_export/views_generator.rb
|
157
152
|
- lib/tasks/enju_export_tasks.rake
|
158
153
|
- MIT-LICENSE
|
159
154
|
- Rakefile
|
@@ -165,10 +160,18 @@ files:
|
|
165
160
|
- spec/dummy/app/helpers/application_helper.rb
|
166
161
|
- spec/dummy/app/models/ability.rb
|
167
162
|
- spec/dummy/app/models/role.rb
|
163
|
+
- spec/dummy/app/models/setting.rb
|
168
164
|
- spec/dummy/app/models/user.rb
|
169
165
|
- spec/dummy/app/models/user_has_role.rb
|
170
166
|
- spec/dummy/app/views/layouts/application.html.erb
|
167
|
+
- spec/dummy/app/views/page/403.html.erb
|
168
|
+
- spec/dummy/app/views/page/403.mobile.erb
|
169
|
+
- spec/dummy/app/views/page/403.xml.erb
|
170
|
+
- spec/dummy/app/views/page/404.html.erb
|
171
|
+
- spec/dummy/app/views/page/404.mobile.erb
|
172
|
+
- spec/dummy/app/views/page/404.xml.erb
|
171
173
|
- spec/dummy/config/application.rb
|
174
|
+
- spec/dummy/config/application.yml
|
172
175
|
- spec/dummy/config/boot.rb
|
173
176
|
- spec/dummy/config/database.yml
|
174
177
|
- spec/dummy/config/environment.rb
|
@@ -226,9 +229,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
226
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
230
|
none: false
|
228
231
|
requirements:
|
229
|
-
- - ! '
|
232
|
+
- - ! '>'
|
230
233
|
- !ruby/object:Gem::Version
|
231
|
-
version:
|
234
|
+
version: 1.3.1
|
232
235
|
requirements: []
|
233
236
|
rubyforge_project:
|
234
237
|
rubygems_version: 1.8.23
|
@@ -243,10 +246,18 @@ test_files:
|
|
243
246
|
- spec/dummy/app/helpers/application_helper.rb
|
244
247
|
- spec/dummy/app/models/ability.rb
|
245
248
|
- spec/dummy/app/models/role.rb
|
249
|
+
- spec/dummy/app/models/setting.rb
|
246
250
|
- spec/dummy/app/models/user.rb
|
247
251
|
- spec/dummy/app/models/user_has_role.rb
|
248
252
|
- spec/dummy/app/views/layouts/application.html.erb
|
253
|
+
- spec/dummy/app/views/page/403.html.erb
|
254
|
+
- spec/dummy/app/views/page/403.mobile.erb
|
255
|
+
- spec/dummy/app/views/page/403.xml.erb
|
256
|
+
- spec/dummy/app/views/page/404.html.erb
|
257
|
+
- spec/dummy/app/views/page/404.mobile.erb
|
258
|
+
- spec/dummy/app/views/page/404.xml.erb
|
249
259
|
- spec/dummy/config/application.rb
|
260
|
+
- spec/dummy/config/application.yml
|
250
261
|
- spec/dummy/config/boot.rb
|
251
262
|
- spec/dummy/config/database.yml
|
252
263
|
- spec/dummy/config/environment.rb
|