enju_leaf 1.1.0.rc10 → 1.1.0.rc11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/enju_leaf.js +1 -1
- data/app/assets/javascripts/mobile.js +1 -1
- data/app/assets/stylesheets/enju.css +0 -2
- data/app/assets/stylesheets/enju_leaf.css +4 -4
- data/app/assets/stylesheets/mobile.css +1 -1
- data/app/controllers/user_import_files_controller.rb +6 -0
- data/app/controllers/user_import_results_controller.rb +1 -1
- data/app/mailers/notifier.rb +1 -1
- data/app/models/profile.rb +18 -0
- data/app/models/user_import_file.rb +46 -30
- data/app/models/user_import_file_state_machine.rb +2 -2
- data/app/models/user_import_file_transition.rb +13 -0
- data/app/models/user_import_result.rb +12 -0
- data/app/views/devise/sessions/new.html.erb +2 -2
- data/app/views/my_accounts/edit.html.erb +2 -2
- data/app/views/my_accounts/show.html.erb +2 -2
- data/app/views/page/403.html.erb +2 -2
- data/app/views/page/404.html.erb +2 -2
- data/app/views/page/500.html.erb +2 -2
- data/app/views/page/about.en.html.erb +4 -4
- data/app/views/page/about.ja.html.erb +4 -4
- data/app/views/page/add_on.html.erb +2 -2
- data/app/views/page/advanced_search.html.erb +10 -4
- data/app/views/page/export.html.erb +3 -3
- data/app/views/page/import.html.erb +2 -2
- data/app/views/page/statistics.html.erb +2 -2
- data/app/views/roles/edit.html.erb +2 -2
- data/app/views/roles/index.html.erb +2 -2
- data/app/views/roles/new.html.erb +2 -2
- data/app/views/roles/show.html.erb +2 -2
- data/app/views/user_groups/edit.html.erb +2 -2
- data/app/views/user_groups/index.html.erb +2 -2
- data/app/views/user_groups/new.html.erb +2 -2
- data/app/views/user_groups/show.html.erb +2 -2
- data/app/views/user_import_files/index.html.erb +2 -2
- data/app/views/user_import_files/new.html.erb +19 -6
- data/app/views/user_import_files/show.html.erb +11 -1
- data/app/views/user_import_results/index.html.erb +4 -4
- data/app/views/user_import_results/{index.csv.erb → index.tsv.erb} +1 -1
- data/app/views/users/edit.html.erb +2 -2
- data/app/views/users/index.html.erb +2 -2
- data/app/views/users/new.html.erb +2 -2
- data/app/views/users/show.html.erb +2 -2
- data/app/workers/user_import_file_queue.rb +7 -0
- data/config/initializers/mime_types.rb +1 -0
- data/config/initializers/paperclip.rb +12 -0
- data/config/initializers/resque.rb +1 -0
- data/config/locales/translation_en.yml +3 -0
- data/config/locales/translation_ja.yml +3 -0
- data/db/migrate/20130221154434_add_additional_attributes_to_user.rb +0 -1
- data/db/migrate/20140110122216_create_user_import_files.rb +0 -1
- data/db/migrate/20140122054321_create_profiles.rb +0 -1
- data/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/lib/enju_leaf/calculate_stat.rb +1 -1
- data/lib/enju_leaf/import_file.rb +56 -0
- data/lib/enju_leaf/version.rb +1 -1
- data/lib/generators/enju_leaf/setup/setup_generator.rb +0 -5
- data/lib/generators/enju_leaf/setup/templates/config/schedule.rb +0 -8
- data/spec/controllers/my_accounts_controller_spec.rb +1 -1
- data/spec/dummy/app/models/setting.rb +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +2 -4
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/_t.fdt +0 -0
- data/spec/dummy/solr/default/data/index/{_2h.fdx → _t.fdx} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h.fnm → _t.fnm} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h.nvd → _t.nvd} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h.nvm → _t.nvm} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h.si → _t.si} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h_Lucene41_0.doc → _t_Lucene41_0.doc} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h_Lucene41_0.pos → _t_Lucene41_0.pos} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h_Lucene41_0.tim → _t_Lucene41_0.tim} +0 -0
- data/spec/dummy/solr/default/data/index/{_2h_Lucene41_0.tip → _t_Lucene41_0.tip} +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_1p +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000050 +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000177 → tlog.0000000000000000051} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000052 +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000179 → tlog.0000000000000000053} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000054 +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000181 → tlog.0000000000000000055} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000056 +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000183 → tlog.0000000000000000057} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000058 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000059 +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/ACB/B20/manifestation_search_total +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3f8d795856d1fdf902b0be679120571a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5998e66e374537d52eed3fe1ca5f2bfc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5ea4a1824e1d67da6c4fb9aeef9f49f4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/87f0cb69a0df1355e33cce3949919d5a +0 -0
- data/spec/dummy/tmp/cache/stdout +103 -0
- data/spec/dummy/tmp/pids/redis-test.pid +1 -0
- data/spec/fixtures/roles.yml +15 -15
- data/spec/fixtures/user_has_roles.yml +11 -11
- data/spec/fixtures/user_import_files.yml +20 -2
- data/spec/fixtures/user_import_results.yml +12 -0
- data/spec/models/role_spec.rb +14 -14
- data/spec/models/user_has_role_spec.rb +8 -8
- data/spec/models/user_import_file_spec.rb +30 -2
- data/spec/models/user_import_result_spec.rb +12 -0
- data/spec/models/user_spec.rb +19 -19
- data/spec/spec_helper.rb +3 -0
- data/spec/support/resque.rb +30 -0
- data/vendor/assets/javascripts/jquery.colorbox.js +5 -6
- data/{app/assets/javascripts/jquery.mobile-1.4.2.js → vendor/assets/javascripts/jquery.mobile-1.4.3.js} +460 -187
- data/{app/assets/stylesheets/jquery.mobile-1.4.2.css → vendor/assets/stylesheets/jquery.mobile-1.4.3.css} +22 -17
- metadata +107 -101
- data/app/assets/javascripts/profiles.js +0 -2
- data/app/assets/stylesheets/normalize.css +0 -406
- data/app/assets/stylesheets/profiles.css +0 -4
- data/app/assets/stylesheets/scaffolds.css.scss +0 -56
- data/app/helpers/profiles_helper.rb +0 -2
- data/app/views/layouts/patrons.html.erb +0 -26
- data/app/views/layouts/patrons.mobile.erb +0 -18
- data/app/views/profiles/_form.html.erb +0 -53
- data/app/views/profiles/edit.html.erb +0 -6
- data/app/views/profiles/index.html.erb +0 -43
- data/app/views/profiles/new.html.erb +0 -14
- data/app/views/profiles/show.html.erb +0 -54
- data/spec/dummy/private/system/user_import_files/user_imports/980/190/963/original/user_delete_file.tsv +0 -4
- data/spec/dummy/solr/default/data/index/_2h.fdt +0 -0
- data/spec/dummy/solr/default/data/index/segments_57 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000176 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000178 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000180 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000182 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000184 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000185 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/154f7b83f2da0e86effbe25f32135177 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1b984bdbd3204a51a82d0e01a1569e2d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3054c50144654f9c7e57bb0639a276e9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3bd7a263237ba366f64d938fe5303757 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/62899096da1a3e67660f3b88068be8c9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/65b2e4f67eab21b30217e29075f433b2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/87d24a3f43f175d4d17babe9203c79a7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d38d8658b30de1d068603968227680d4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
@@ -2,7 +2,6 @@ class AddAdditionalAttributesToUser < ActiveRecord::Migration
|
|
2
2
|
def change
|
3
3
|
add_column :users, :username, :string
|
4
4
|
add_column :users, :user_number, :string
|
5
|
-
add_column :users, :state, :string
|
6
5
|
add_column :users, :locale, :string
|
7
6
|
add_column :users, :deleted_at, :datetime
|
8
7
|
add_column :users, :expired_at, :datetime
|
@@ -4,10 +4,66 @@ module ImportFile
|
|
4
4
|
end
|
5
5
|
|
6
6
|
module ClassMethods
|
7
|
+
def enju_import_file_model
|
8
|
+
include InstanceMethods
|
9
|
+
end
|
10
|
+
|
7
11
|
def expire
|
8
12
|
self.stucked.find_each do |file|
|
9
13
|
file.destroy
|
10
14
|
end
|
11
15
|
end
|
12
16
|
end
|
17
|
+
|
18
|
+
module InstanceMethods
|
19
|
+
def import_start
|
20
|
+
case edit_mode
|
21
|
+
when 'create'
|
22
|
+
import
|
23
|
+
when 'update'
|
24
|
+
modify
|
25
|
+
when 'destroy'
|
26
|
+
remove
|
27
|
+
else
|
28
|
+
import
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def convert_encoding(line)
|
33
|
+
if defined?(CharlockHolmes::EncodingDetector)
|
34
|
+
begin
|
35
|
+
case user_encoding
|
36
|
+
when 'auto_detect'
|
37
|
+
encoding = CharlockHolmes::EncodingDetector.detect(line)[:encoding]
|
38
|
+
when nil
|
39
|
+
encoding = CharlockHolmes::EncodingDetector.detect(line)[:encoding]
|
40
|
+
else
|
41
|
+
encoding = user_encoding
|
42
|
+
end
|
43
|
+
string = line.encode('UTF-8', user_encoding, universal_newline: true)
|
44
|
+
rescue StandardError
|
45
|
+
string = nkf_encode(line)
|
46
|
+
end
|
47
|
+
else
|
48
|
+
string = nkf_encode(line)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
def nkf_encode(line)
|
54
|
+
case user_encoding
|
55
|
+
when 'auto_detect'
|
56
|
+
output_encoding = '-w'
|
57
|
+
when 'UTF-8'
|
58
|
+
output_encoding = ''
|
59
|
+
when 'Shift_JIS'
|
60
|
+
output_encoding = '-Sw'
|
61
|
+
when 'EUC-JP'
|
62
|
+
output_encoding = '-Ew'
|
63
|
+
else
|
64
|
+
output_encoding = '-w'
|
65
|
+
end
|
66
|
+
string = NKF.nkf("#{output_encoding} -Lu", line)
|
67
|
+
end
|
68
|
+
end
|
13
69
|
end
|
data/lib/enju_leaf/version.rb
CHANGED
@@ -16,11 +16,6 @@ class EnjuLeaf::SetupGenerator < Rails::Generators::Base
|
|
16
16
|
append_to_file("Rakefile", "require 'resque/tasks'\n")
|
17
17
|
append_to_file("Rakefile", "require 'resque/scheduler/tasks'")
|
18
18
|
append_to_file("db/seeds.rb", File.open(File.expand_path('../templates', __FILE__) + '/db/seeds.rb').read)
|
19
|
-
append_to_file 'config/initializers/inflections.rb', <<EOS
|
20
|
-
ActiveSupport::Inflector.inflections do |inflect|
|
21
|
-
inflect.irregular 'reserve', 'reserves'
|
22
|
-
end
|
23
|
-
EOS
|
24
19
|
inject_into_file 'config/environments/development.rb',
|
25
20
|
" config.action_mailer.default_url_options = {:host => 'localhost:3000'}\n",
|
26
21
|
:after => "::Application.configure do\n"
|
@@ -23,10 +23,6 @@ set :path, '/path/to/enju_leaf'
|
|
23
23
|
set :environment, :development
|
24
24
|
set :output, "#{path}/log/cron_log.log"
|
25
25
|
|
26
|
-
every 1.hour do
|
27
|
-
rake "enju_biblio:import"
|
28
|
-
end
|
29
|
-
|
30
26
|
every 1.day, :at => '0:00 am' do
|
31
27
|
runner "User.lock_expired_users"
|
32
28
|
end
|
@@ -35,7 +31,3 @@ every 1.day, :at => '3:00 am' do
|
|
35
31
|
rake "sunspot:reindex"
|
36
32
|
# rake "sitemap:refresh:no_ping"
|
37
33
|
end
|
38
|
-
|
39
|
-
every 1.day, :at => '5:00 am' do
|
40
|
-
rake "enju:import:destroy"
|
41
|
-
end
|
@@ -145,7 +145,7 @@ describe MyAccountsController do
|
|
145
145
|
it "should ignore username" do
|
146
146
|
put :update, :user => @invalid_attrs
|
147
147
|
response.should render_template("edit")
|
148
|
-
assigns(:user).changed?.should
|
148
|
+
assigns(:user).changed?.should be_truthy
|
149
149
|
end
|
150
150
|
end
|
151
151
|
end
|
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20140628072217) do
|
15
15
|
|
16
16
|
create_table "accepts", :force => true do |t|
|
17
17
|
t.integer "basket_id"
|
@@ -579,7 +579,6 @@ ActiveRecord::Schema.define(:version => 20140610123439) do
|
|
579
579
|
t.text "note"
|
580
580
|
t.text "keyword_list"
|
581
581
|
t.integer "required_role_id"
|
582
|
-
t.string "state"
|
583
582
|
t.datetime "created_at", :null => false
|
584
583
|
t.datetime "updated_at", :null => false
|
585
584
|
end
|
@@ -826,7 +825,6 @@ ActiveRecord::Schema.define(:version => 20140610123439) do
|
|
826
825
|
t.integer "user_id"
|
827
826
|
t.text "note"
|
828
827
|
t.datetime "executed_at"
|
829
|
-
t.string "state"
|
830
828
|
t.string "user_import_file_name"
|
831
829
|
t.string "user_import_content_type"
|
832
830
|
t.string "user_import_file_size"
|
@@ -836,6 +834,7 @@ ActiveRecord::Schema.define(:version => 20140610123439) do
|
|
836
834
|
t.text "error_message"
|
837
835
|
t.datetime "created_at", :null => false
|
838
836
|
t.datetime "updated_at", :null => false
|
837
|
+
t.string "user_encoding"
|
839
838
|
end
|
840
839
|
|
841
840
|
create_table "user_import_results", :force => true do |t|
|
@@ -861,7 +860,6 @@ ActiveRecord::Schema.define(:version => 20140610123439) do
|
|
861
860
|
t.datetime "updated_at", :null => false
|
862
861
|
t.string "username"
|
863
862
|
t.string "user_number"
|
864
|
-
t.string "state"
|
865
863
|
t.string "locale"
|
866
864
|
t.datetime "deleted_at"
|
867
865
|
t.datetime "expired_at"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
File without changes
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000177 → tlog.0000000000000000051}
RENAMED
Binary file
|
Binary file
|
data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000179 → tlog.0000000000000000053}
RENAMED
Binary file
|
Binary file
|
data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000181 → tlog.0000000000000000055}
RENAMED
Binary file
|
Binary file
|
data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000183 → tlog.0000000000000000057}
RENAMED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,103 @@
|
|
1
|
+
[28622] 05 Jul 14:52:21.051 * Increased maximum number of open files to 10032 (it was originally set to 256).
|
2
|
+
[28622] 05 Jul 14:52:21.052 # Creating Server TCP listening socket *:9736: bind: Address already in use
|
3
|
+
[28741] 05 Jul 14:53:45.547 * Increased maximum number of open files to 10032 (it was originally set to 256).
|
4
|
+
_._
|
5
|
+
_.-``__ ''-._
|
6
|
+
_.-`` `. `_. ''-._ Redis 2.8.12 (00000000/0) 64 bit
|
7
|
+
.-`` .-```. ```\/ _.,_ ''-._
|
8
|
+
( ' , .-` | `, ) Running in stand alone mode
|
9
|
+
|`-._`-...-` __...-.``-._|'` _.-'| Port: 9736
|
10
|
+
| `-._ `._ / _.-' | PID: 28741
|
11
|
+
`-._ `-._ `-./ _.-' _.-'
|
12
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
13
|
+
| `-._`-._ _.-'_.-' | http://redis.io
|
14
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
15
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
16
|
+
| `-._`-._ _.-'_.-' |
|
17
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
18
|
+
`-._ `-.__.-' _.-'
|
19
|
+
`-._ _.-'
|
20
|
+
`-.__.-'
|
21
|
+
|
22
|
+
[28741] 05 Jul 14:53:45.548 # Server started, Redis version 2.8.12
|
23
|
+
[28741] 05 Jul 14:53:45.548 * The server is now ready to accept connections on port 9736
|
24
|
+
[28741] 05 Jul 14:53:45.549 - 0 clients connected (0 slaves), 952656 bytes in use
|
25
|
+
[28741] 05 Jul 14:53:50.579 - 0 clients connected (0 slaves), 952656 bytes in use
|
26
|
+
[28741] 05 Jul 14:53:55.606 - 0 clients connected (0 slaves), 952656 bytes in use
|
27
|
+
[28741] 05 Jul 14:54:00.636 - 0 clients connected (0 slaves), 952656 bytes in use
|
28
|
+
[28741] 05 Jul 14:54:05.661 - 0 clients connected (0 slaves), 952656 bytes in use
|
29
|
+
[28830] 05 Jul 14:54:32.487 * Increased maximum number of open files to 10032 (it was originally set to 256).
|
30
|
+
_._
|
31
|
+
_.-``__ ''-._
|
32
|
+
_.-`` `. `_. ''-._ Redis 2.8.12 (00000000/0) 64 bit
|
33
|
+
.-`` .-```. ```\/ _.,_ ''-._
|
34
|
+
( ' , .-` | `, ) Running in stand alone mode
|
35
|
+
|`-._`-...-` __...-.``-._|'` _.-'| Port: 9736
|
36
|
+
| `-._ `._ / _.-' | PID: 28830
|
37
|
+
`-._ `-._ `-./ _.-' _.-'
|
38
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
39
|
+
| `-._`-._ _.-'_.-' | http://redis.io
|
40
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
41
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
42
|
+
| `-._`-._ _.-'_.-' |
|
43
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
44
|
+
`-._ `-.__.-' _.-'
|
45
|
+
`-._ _.-'
|
46
|
+
`-.__.-'
|
47
|
+
|
48
|
+
[28830] 05 Jul 14:54:32.490 # Server started, Redis version 2.8.12
|
49
|
+
[28830] 05 Jul 14:54:32.490 * The server is now ready to accept connections on port 9736
|
50
|
+
[28830] 05 Jul 14:54:32.490 - 0 clients connected (0 slaves), 952656 bytes in use
|
51
|
+
[28830] 05 Jul 14:54:37.522 - 0 clients connected (0 slaves), 952656 bytes in use
|
52
|
+
[28830] 05 Jul 14:54:42.561 - 0 clients connected (0 slaves), 952656 bytes in use
|
53
|
+
[28830] 05 Jul 14:54:47.608 - 0 clients connected (0 slaves), 952656 bytes in use
|
54
|
+
[28965] 05 Jul 14:55:55.850 * Increased maximum number of open files to 10032 (it was originally set to 256).
|
55
|
+
_._
|
56
|
+
_.-``__ ''-._
|
57
|
+
_.-`` `. `_. ''-._ Redis 2.8.12 (00000000/0) 64 bit
|
58
|
+
.-`` .-```. ```\/ _.,_ ''-._
|
59
|
+
( ' , .-` | `, ) Running in stand alone mode
|
60
|
+
|`-._`-...-` __...-.``-._|'` _.-'| Port: 9736
|
61
|
+
| `-._ `._ / _.-' | PID: 28965
|
62
|
+
`-._ `-._ `-./ _.-' _.-'
|
63
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
64
|
+
| `-._`-._ _.-'_.-' | http://redis.io
|
65
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
66
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
67
|
+
| `-._`-._ _.-'_.-' |
|
68
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
69
|
+
`-._ `-.__.-' _.-'
|
70
|
+
`-._ _.-'
|
71
|
+
`-.__.-'
|
72
|
+
|
73
|
+
[28965] 05 Jul 14:55:55.852 # Server started, Redis version 2.8.12
|
74
|
+
[28965] 05 Jul 14:55:55.852 * The server is now ready to accept connections on port 9736
|
75
|
+
[28965] 05 Jul 14:55:55.852 - 0 clients connected (0 slaves), 952656 bytes in use
|
76
|
+
[28965] 05 Jul 14:56:00.884 - 0 clients connected (0 slaves), 952656 bytes in use
|
77
|
+
[28965] 05 Jul 14:56:05.924 - 0 clients connected (0 slaves), 952656 bytes in use
|
78
|
+
[28965] 05 Jul 14:56:10.968 - 0 clients connected (0 slaves), 952656 bytes in use
|
79
|
+
[34262] 05 Jul 17:31:09.371 * Increased maximum number of open files to 10032 (it was originally set to 256).
|
80
|
+
_._
|
81
|
+
_.-``__ ''-._
|
82
|
+
_.-`` `. `_. ''-._ Redis 2.8.12 (00000000/0) 64 bit
|
83
|
+
.-`` .-```. ```\/ _.,_ ''-._
|
84
|
+
( ' , .-` | `, ) Running in stand alone mode
|
85
|
+
|`-._`-...-` __...-.``-._|'` _.-'| Port: 9736
|
86
|
+
| `-._ `._ / _.-' | PID: 34262
|
87
|
+
`-._ `-._ `-./ _.-' _.-'
|
88
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
89
|
+
| `-._`-._ _.-'_.-' | http://redis.io
|
90
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
91
|
+
|`-._`-._ `-.__.-' _.-'_.-'|
|
92
|
+
| `-._`-._ _.-'_.-' |
|
93
|
+
`-._ `-._`-.__.-'_.-' _.-'
|
94
|
+
`-._ `-.__.-' _.-'
|
95
|
+
`-._ _.-'
|
96
|
+
`-.__.-'
|
97
|
+
|
98
|
+
[34262] 05 Jul 17:31:09.382 # Server started, Redis version 2.8.12
|
99
|
+
[34262] 05 Jul 17:31:09.383 * The server is now ready to accept connections on port 9736
|
100
|
+
[34262] 05 Jul 17:31:10.377 - 0 clients connected (0 slaves), 952656 bytes in use
|
101
|
+
[34262] 05 Jul 17:31:15.402 - 0 clients connected (0 slaves), 952656 bytes in use
|
102
|
+
[34262] 05 Jul 17:31:20.427 - 0 clients connected (0 slaves), 952656 bytes in use
|
103
|
+
[34262] 05 Jul 17:31:25.475 - 0 clients connected (0 slaves), 952656 bytes in use
|
@@ -0,0 +1 @@
|
|
1
|
+
34262
|
data/spec/fixtures/roles.yml
CHANGED
@@ -1,17 +1,3 @@
|
|
1
|
-
# == Schema Information
|
2
|
-
#
|
3
|
-
# Table name: roles
|
4
|
-
#
|
5
|
-
# id :integer not null, primary key
|
6
|
-
# name :string(255) not null
|
7
|
-
# display_name :string(255)
|
8
|
-
# note :text
|
9
|
-
# created_at :datetime
|
10
|
-
# updated_at :datetime
|
11
|
-
# score :integer default(0), not null
|
12
|
-
# position :integer
|
13
|
-
#
|
14
|
-
|
15
1
|
---
|
16
2
|
role_00001:
|
17
3
|
name: Guest
|
@@ -36,4 +22,18 @@ role_00004:
|
|
36
22
|
display_name: Administrator
|
37
23
|
id: 4
|
38
24
|
score: 4
|
39
|
-
note:
|
25
|
+
note:
|
26
|
+
|
27
|
+
# == Schema Information
|
28
|
+
#
|
29
|
+
# Table name: roles
|
30
|
+
#
|
31
|
+
# id :integer not null, primary key
|
32
|
+
# name :string(255) not null
|
33
|
+
# display_name :string(255)
|
34
|
+
# note :text
|
35
|
+
# created_at :datetime
|
36
|
+
# updated_at :datetime
|
37
|
+
# score :integer default(0), not null
|
38
|
+
# position :integer
|
39
|
+
#
|
@@ -1,14 +1,3 @@
|
|
1
|
-
# == Schema Information
|
2
|
-
#
|
3
|
-
# Table name: user_has_roles
|
4
|
-
#
|
5
|
-
# id :integer not null, primary key
|
6
|
-
# user_id :integer
|
7
|
-
# role_id :integer
|
8
|
-
# created_at :datetime not null
|
9
|
-
# updated_at :datetime not null
|
10
|
-
#
|
11
|
-
|
12
1
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
13
2
|
|
14
3
|
admin:
|
@@ -38,3 +27,14 @@ user3:
|
|
38
27
|
user4:
|
39
28
|
user_id: 7
|
40
29
|
role_id: 2
|
30
|
+
|
31
|
+
# == Schema Information
|
32
|
+
#
|
33
|
+
# Table name: user_has_roles
|
34
|
+
#
|
35
|
+
# id :integer not null, primary key
|
36
|
+
# user_id :integer
|
37
|
+
# role_id :integer
|
38
|
+
# created_at :datetime not null
|
39
|
+
# updated_at :datetime not null
|
40
|
+
#
|
@@ -4,7 +4,6 @@ one:
|
|
4
4
|
user_id: 1
|
5
5
|
note: MyText
|
6
6
|
executed_at: 2014-01-10 21:22:16
|
7
|
-
state: pending
|
8
7
|
user_import_file_name: MyString
|
9
8
|
user_import_content_type: text/csv
|
10
9
|
user_import_file_size: 1
|
@@ -17,7 +16,6 @@ two:
|
|
17
16
|
user_id: 1
|
18
17
|
note: MyText
|
19
18
|
executed_at: 2014-01-10 21:22:16
|
20
|
-
state: pending
|
21
19
|
user_import_file_name: MyString
|
22
20
|
user_import_content_type: text/csv
|
23
21
|
user_import_file_size: 1
|
@@ -25,3 +23,23 @@ two:
|
|
25
23
|
user_import_fingerprint: MyString
|
26
24
|
edit_mode: MyString
|
27
25
|
error_message: MyText
|
26
|
+
|
27
|
+
# == Schema Information
|
28
|
+
#
|
29
|
+
# Table name: user_import_files
|
30
|
+
#
|
31
|
+
# id :integer not null, primary key
|
32
|
+
# user_id :integer
|
33
|
+
# note :text
|
34
|
+
# executed_at :datetime
|
35
|
+
# user_import_file_name :string(255)
|
36
|
+
# user_import_content_type :string(255)
|
37
|
+
# user_import_file_size :string(255)
|
38
|
+
# user_import_updated_at :datetime
|
39
|
+
# user_import_fingerprint :string(255)
|
40
|
+
# edit_mode :string(255)
|
41
|
+
# error_message :text
|
42
|
+
# created_at :datetime not null
|
43
|
+
# updated_at :datetime not null
|
44
|
+
# user_encoding :string(255)
|
45
|
+
#
|