enju_event 0.2.0.beta.2 → 0.2.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03ae39f9f49076c182a946d8665f89b6db5ec5de
4
- data.tar.gz: 87776aee5ee2fefc990ba5297c1404277901e6ce
3
+ metadata.gz: 1cf67181ffc1f5ad7181f07ac990afb717fb5bc4
4
+ data.tar.gz: 2f0bbc98ab196c1c01185e9ce060f43fabca675f
5
5
  SHA512:
6
- metadata.gz: f3c735f31852b9bc32b322a73560e0a3b4dc43517b5becfd55b21dd313aa486849e93b14ad6b11acf1451a072e97e25382deaa78d89e8686fbad906fbd57e7dc
7
- data.tar.gz: dfe2d8957f857ac8ce03f12aa5329ee91dcd527d95f986e9a6d9373f32e81a2a79b2c6a7eb4234db30d3906349f53f5b786d8de6c861689d2e491223c269d9a9
6
+ metadata.gz: 512227d04870c0d6f974572e38ee1733539d5ffcc158e4cea3caea3258c39315d0cb68cfbf35aa80d476a6e5ed245600da2ffce8b3df6b29a5c0331b1d918b7a
7
+ data.tar.gz: 601e6dc49e372ab79e5d7b2474fa873024a361222e15a72a3fa25cc9d0ad1c7785b5c5da5e0747a60dba33f12b7e408d2fe4b3dfd4cda9e92e4709496c00c92b
@@ -17,4 +17,5 @@ end
17
17
  # event_export_file_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
+ # most_recent :boolean
20
21
  #
@@ -17,4 +17,5 @@ end
17
17
  # event_import_file_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
+ # most_recent :boolean
20
21
  #
@@ -1,3 +1,3 @@
1
1
  module EnjuEvent
2
- VERSION = "0.2.0.beta.2"
2
+ VERSION = "0.2.0.beta.3"
3
3
  end
@@ -11,4 +11,10 @@ namespace :enju_event do
11
11
  task :event_import => :environment do
12
12
  EventImportFile.import
13
13
  end
14
+
15
+ desc "upgrade enju_circulation"
16
+ task :upgrade => :environment do
17
+ Rake::Task['statesman:backfill_most_recent'].invoke('EventExportFile')
18
+ Rake::Task['statesman:backfill_most_recent'].invoke('EventImportFile')
19
+ end
14
20
  end
@@ -6,6 +6,6 @@ class User < ActiveRecord::Base
6
6
 
7
7
  # Setup accessible (or protected) attributes for your model
8
8
 
9
- include EnjuLeaf::EnjuUser
9
+ include EnjuSeed::EnjuUser
10
10
  include EnjuMessage::EnjuUser
11
11
  end
@@ -6,6 +6,8 @@ Bundler.require(*Rails.groups)
6
6
  require 'enju_event'
7
7
  require 'enju_message'
8
8
  require 'enju_leaf'
9
+ require 'globalize'
10
+ require 'globalize-accessors'
9
11
  require 'resque/server'
10
12
 
11
13
  module Dummy
@@ -6,7 +6,7 @@ class CreateUserImportFiles < ActiveRecord::Migration
6
6
  t.datetime :executed_at
7
7
  t.string :user_import_file_name
8
8
  t.string :user_import_content_type
9
- t.string :user_import_file_size
9
+ t.integer :user_import_file_size
10
10
  t.datetime :user_import_updated_at
11
11
  t.string :user_import_fingerprint
12
12
  t.string :edit_mode
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToUserImportResult < ActiveRecord::Migration
2
+ def change
3
+ add_column :user_import_results, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :html_snippet, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddEmailToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :email, :string
4
+ end
5
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160703184311) do
14
+ ActiveRecord::Schema.define(version: 20160813130535) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -678,6 +678,8 @@ ActiveRecord::Schema.define(version: 20160703184311) do
678
678
  t.text "admin_networks"
679
679
  t.string "url", default: "http://localhost:3000/"
680
680
  t.text "settings"
681
+ t.text "html_snippet"
682
+ t.string "email"
681
683
  end
682
684
 
683
685
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
@@ -1319,6 +1321,7 @@ ActiveRecord::Schema.define(version: 20160703184311) do
1319
1321
  t.integer "user_export_file_id"
1320
1322
  t.datetime "created_at"
1321
1323
  t.datetime "updated_at"
1324
+ t.boolean "most_recent"
1322
1325
  end
1323
1326
 
1324
1327
  add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
@@ -1387,6 +1390,7 @@ ActiveRecord::Schema.define(version: 20160703184311) do
1387
1390
  t.integer "user_import_file_id"
1388
1391
  t.datetime "created_at"
1389
1392
  t.datetime "updated_at"
1393
+ t.boolean "most_recent"
1390
1394
  end
1391
1395
 
1392
1396
  add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
@@ -1398,7 +1402,7 @@ ActiveRecord::Schema.define(version: 20160703184311) do
1398
1402
  t.datetime "executed_at"
1399
1403
  t.string "user_import_file_name"
1400
1404
  t.string "user_import_content_type"
1401
- t.string "user_import_file_size"
1405
+ t.integer "user_import_file_size"
1402
1406
  t.datetime "user_import_updated_at"
1403
1407
  t.string "user_import_fingerprint"
1404
1408
  t.string "edit_mode"
@@ -1416,6 +1420,7 @@ ActiveRecord::Schema.define(version: 20160703184311) do
1416
1420
  t.text "body"
1417
1421
  t.datetime "created_at"
1418
1422
  t.datetime "updated_at"
1423
+ t.text "error_message"
1419
1424
  end
1420
1425
 
1421
1426
  create_table "user_reserve_stat_transitions", force: :cascade do |t|
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.2.0.beta.2
4
+ version: 0.2.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-12 00:00:00.000000000 Z
11
+ date: 2016-08-13 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.2.0.beta.2
19
+ version: 0.2.0.beta.3
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.2.0.beta.2
26
+ version: 0.2.0.beta.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ri_cal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,21 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: sqlite3
42
+ name: enju_leaf
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.2.0.beta.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.2.0.beta.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: globalize
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
@@ -53,7 +67,7 @@ dependencies:
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
- name: mysql2
70
+ name: globalize-accessors
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - ">="
@@ -67,7 +81,7 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: pg
84
+ name: sqlite3
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ">="
@@ -81,21 +95,21 @@ dependencies:
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
- name: rspec-rails
98
+ name: mysql2
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '3.4'
103
+ version: '0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '3.4'
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
- name: factory_girl_rails
112
+ name: pg
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
@@ -109,19 +123,33 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: enju_leaf
126
+ name: rspec-rails
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: 1.2.0.beta.2
131
+ version: '3.4'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: 1.2.0.beta.2
138
+ version: '3.4'
139
+ - !ruby/object:Gem::Dependency
140
+ name: factory_girl_rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: sunspot_solr
127
155
  requirement: !ruby/object:Gem::Requirement
@@ -564,9 +592,14 @@ files:
564
592
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
565
593
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
566
594
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
595
+ - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
567
596
  - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
568
597
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
569
598
  - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
599
+ - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
600
+ - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
601
+ - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
602
+ - spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb
570
603
  - spec/dummy/db/schema.rb
571
604
  - spec/dummy/public/404.html
572
605
  - spec/dummy/public/422.html
@@ -850,9 +883,14 @@ test_files:
850
883
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
851
884
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
852
885
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
886
+ - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
853
887
  - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
854
888
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
855
889
  - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
890
+ - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
891
+ - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
892
+ - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
893
+ - spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb
856
894
  - spec/dummy/db/schema.rb
857
895
  - spec/dummy/public/404.html
858
896
  - spec/dummy/public/422.html