enju_export 0.0.3 → 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@
24
24
  <% end %>
25
25
  </table>
26
26
 
27
- <%= will_paginate(@export_files) %>
27
+ <%= paginate(@export_files) %>
28
28
  </div>
29
29
  </div>
30
30
 
@@ -1,7 +1,6 @@
1
1
  require 'state_machine'
2
2
  require 'paperclip'
3
3
  require 'simple_form'
4
- require 'will_paginate/array'
5
4
  require 'enju_core'
6
5
 
7
6
  module EnjuExport
@@ -1,3 +1,3 @@
1
1
  module EnjuExport
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0.pre"
3
3
  end
@@ -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
@@ -57,4 +57,3 @@ module Dummy
57
57
  end
58
58
  end
59
59
 
60
- require 'enju_core'
Binary file
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "export_files/index" do
4
4
  before(:each) do
5
- assign(:export_files, [
5
+ assign(:export_files, Kaminari::paginate_array([
6
6
  stub_model(ExportFile,
7
7
  :export_file_name => "Export File Name",
8
8
  :export_content_type => "Export Content Type",
@@ -15,7 +15,7 @@ describe "export_files/index" do
15
15
  :export_file_size => "Export File Size",
16
16
  :state => "State"
17
17
  )
18
- ].paginate(:page => 1))
18
+ ]).page(1))
19
19
  end
20
20
 
21
21
  it "renders a list of export_files" do
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.0.3
5
- prerelease:
4
+ version: 0.1.0.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-07-21 00:00:00.000000000 Z
12
+ date: 2012-07-28 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: enju_core
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: '0'
85
+ version: 0.1.0.pre
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: '0'
93
+ version: 0.1.0.pre
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
@@ -168,6 +163,12 @@ files:
168
163
  - spec/dummy/app/models/user.rb
169
164
  - spec/dummy/app/models/user_has_role.rb
170
165
  - spec/dummy/app/views/layouts/application.html.erb
166
+ - spec/dummy/app/views/page/403.html.erb
167
+ - spec/dummy/app/views/page/403.mobile.erb
168
+ - spec/dummy/app/views/page/403.xml.erb
169
+ - spec/dummy/app/views/page/404.html.erb
170
+ - spec/dummy/app/views/page/404.mobile.erb
171
+ - spec/dummy/app/views/page/404.xml.erb
171
172
  - spec/dummy/config/application.rb
172
173
  - spec/dummy/config/boot.rb
173
174
  - spec/dummy/config/database.yml
@@ -226,9 +227,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
227
  required_rubygems_version: !ruby/object:Gem::Requirement
227
228
  none: false
228
229
  requirements:
229
- - - ! '>='
230
+ - - ! '>'
230
231
  - !ruby/object:Gem::Version
231
- version: '0'
232
+ version: 1.3.1
232
233
  requirements: []
233
234
  rubyforge_project:
234
235
  rubygems_version: 1.8.23
@@ -246,6 +247,12 @@ test_files:
246
247
  - spec/dummy/app/models/user.rb
247
248
  - spec/dummy/app/models/user_has_role.rb
248
249
  - spec/dummy/app/views/layouts/application.html.erb
250
+ - spec/dummy/app/views/page/403.html.erb
251
+ - spec/dummy/app/views/page/403.mobile.erb
252
+ - spec/dummy/app/views/page/403.xml.erb
253
+ - spec/dummy/app/views/page/404.html.erb
254
+ - spec/dummy/app/views/page/404.mobile.erb
255
+ - spec/dummy/app/views/page/404.xml.erb
249
256
  - spec/dummy/config/application.rb
250
257
  - spec/dummy/config/boot.rb
251
258
  - spec/dummy/config/database.yml