enju_event 0.1.17.pre25 → 0.1.17.pre26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/app/views/event_categories/show.html.erb +3 -1
- data/app/views/event_export_files/_form.html.erb +1 -11
- data/app/views/event_export_files/show.html.erb +5 -0
- data/lib/enju_event/version.rb +1 -1
- data/spec/dummy/app/models/user.rb +1 -1
- data/spec/factories/user.rb +0 -3
- data/spec/fixtures/library_groups.yml +5 -0
- data/spec/models/event_import_file_spec.rb +1 -1
- metadata +8 -10
- data/spec/dummy/app/models/setting.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 952d9e4be45acb984585b9ca979adee42fd6f4b8
|
4
|
+
data.tar.gz: d0a8884b4b50f4acc1f6d3e7a23998be47df2283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1baecb169b72d269d100c809145659f76e63fd2778901bcd281088d09588d01e8a4e0fe713128971ca7d123385787cb5b2f18e8d2a726fb2994a9c630c3ffd91
|
7
|
+
data.tar.gz: 927a4f5952b53547e3d28772b8ee0e461db9e83db2de2426a6629e41fcb4a9c0de9ad832a160d580f83ce6c5707f7454dd95f30cf99a881890197570f094c8ca
|
data/MIT-LICENSE
CHANGED
@@ -23,7 +23,9 @@
|
|
23
23
|
|
24
24
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
25
25
|
<ul>
|
26
|
-
|
26
|
+
<%- if can? :update, @event_category -%>
|
27
|
+
<li><%= link_to t('page.edit'), edit_event_category_path(@event_category) -%></li>
|
28
|
+
<%- end -%>
|
27
29
|
<li><%= back_to_index(flash[:page_info]) -%></li>
|
28
30
|
</ul>
|
29
31
|
</div>
|
@@ -1,17 +1,7 @@
|
|
1
1
|
<%= form_for(@event_export_file) do |f| %>
|
2
2
|
<%= f.error_messages %>
|
3
3
|
|
4
|
-
<%= f.hidden_field :mode, value: 'export' if @event_export_file.new_record?
|
5
|
-
<!--
|
6
|
-
<div class="field">
|
7
|
-
<%= f.label :user_id %><br>
|
8
|
-
<%= @event_export_file.user.username %>
|
9
|
-
</div>
|
10
|
-
<div class="field">
|
11
|
-
<%= f.label :event_export %><br>
|
12
|
-
<%= f.text_field :event_export %>
|
13
|
-
</div>
|
14
|
-
-->
|
4
|
+
<%= f.hidden_field :mode, value: 'export' if @event_export_file.new_record? %>
|
15
5
|
<div class="actions">
|
16
6
|
<% if @event_export_file.new_record? %>
|
17
7
|
<%= f.submit t('page.export') %>
|
data/lib/enju_event/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class User < ActiveRecord::Base
|
2
2
|
# Include default devise modules. Others available are:
|
3
3
|
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
|
4
|
-
devise :database_authenticatable,
|
4
|
+
devise :database_authenticatable, #:registerable,
|
5
5
|
:recoverable, :rememberable, :trackable, :validatable
|
6
6
|
|
7
7
|
# Setup accessible (or protected) attributes for your model
|
data/spec/factories/user.rb
CHANGED
@@ -2,7 +2,6 @@ FactoryGirl.define do
|
|
2
2
|
factory :admin, :class => User do |f|
|
3
3
|
f.sequence(:username){|n| "admin_#{n}"}
|
4
4
|
f.sequence(:email){|n| "admin_#{n}@example.jp"}
|
5
|
-
f.email_confirmation{|u| u.email}
|
6
5
|
f.password 'adminpassword'
|
7
6
|
f.password_confirmation 'adminpassword'
|
8
7
|
f.after(:create) do |user|
|
@@ -16,7 +15,6 @@ FactoryGirl.define do
|
|
16
15
|
factory :librarian, :class => User do |f|
|
17
16
|
f.sequence(:username){|n| "librarian_#{n}"}
|
18
17
|
f.sequence(:email){|n| "librarian_#{n}@example.jp"}
|
19
|
-
f.email_confirmation{|u| u.email}
|
20
18
|
f.password 'librarianpassword'
|
21
19
|
f.password_confirmation 'librarianpassword'
|
22
20
|
f.after(:create) do |user|
|
@@ -30,7 +28,6 @@ FactoryGirl.define do
|
|
30
28
|
factory :user, :class => User do |f|
|
31
29
|
f.sequence(:username){|n| "user_#{n}"}
|
32
30
|
f.sequence(:email){|n| "user_#{n}@example.jp"}
|
33
|
-
f.email_confirmation{|u| u.email}
|
34
31
|
f.password 'userpassword'
|
35
32
|
f.password_confirmation 'userpassword'
|
36
33
|
f.after(:create) do |user|
|
@@ -7,6 +7,11 @@ one:
|
|
7
7
|
note:
|
8
8
|
my_networks: 0.0.0.0/0
|
9
9
|
url: "http://localhost:3000/"
|
10
|
+
settings: <% if Rails::VERSION::MAJOR > 3 %>
|
11
|
+
"{\"max_number_of_results\":200,\"family_name_first\":true,\"book_jacket_source\":\"google\",\"screenshot_generator\":\"mozshot\"}"
|
12
|
+
<% else %>
|
13
|
+
"---\n:max_number_of_results: 200\n:family_name_first: true\n:book_jacket_source: \"google\"\n:screenshot_generator: \"mozshot\""
|
14
|
+
<% end %>
|
10
15
|
|
11
16
|
|
12
17
|
# == Schema Information
|
@@ -34,7 +34,7 @@ describe EventImportFile do
|
|
34
34
|
@file.executed_at.should be_truthy
|
35
35
|
|
36
36
|
@file.reload
|
37
|
-
@file.error_message.should eq "The
|
37
|
+
@file.error_message.should eq "The following column(s) were ignored: invalid"
|
38
38
|
end
|
39
39
|
|
40
40
|
it "should send message when import is completed" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.17.
|
4
|
+
version: 0.1.17.pre26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_message
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.14.
|
19
|
+
version: 0.1.14.pre24
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.14.
|
26
|
+
version: 0.1.14.pre24
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: simple_form
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '3.
|
145
|
+
version: '3.3'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '3.
|
152
|
+
version: '3.3'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: factory_girl_rails
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 1.1.0.
|
173
|
+
version: 1.1.0.rc19
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.1.0.
|
180
|
+
version: 1.1.0.rc19
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: sunspot_solr
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -374,7 +374,6 @@ files:
|
|
374
374
|
- spec/dummy/app/controllers/application_controller.rb
|
375
375
|
- spec/dummy/app/helpers/application_helper.rb
|
376
376
|
- spec/dummy/app/models/ability.rb
|
377
|
-
- spec/dummy/app/models/setting.rb
|
378
377
|
- spec/dummy/app/models/user.rb
|
379
378
|
- spec/dummy/app/views/layouts/application.html.erb
|
380
379
|
- spec/dummy/bin/bundle
|
@@ -658,7 +657,6 @@ test_files:
|
|
658
657
|
- spec/dummy/app/controllers/application_controller.rb
|
659
658
|
- spec/dummy/app/helpers/application_helper.rb
|
660
659
|
- spec/dummy/app/models/ability.rb
|
661
|
-
- spec/dummy/app/models/setting.rb
|
662
660
|
- spec/dummy/app/models/user.rb
|
663
661
|
- spec/dummy/app/views/layouts/application.html.erb
|
664
662
|
- spec/dummy/bin/bundle
|