enju_seed 0.2.0.beta.5 → 0.2.0.beta.6

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: 2d5599ef2caf64b9ba0d5e64f5f63da0aeaa4646
4
- data.tar.gz: 4aac533504e3748a7c11f3e1dafa88984aac90cb
3
+ metadata.gz: 967bc909a6151a3e6822cfa035fa7c4bb0ec48f9
4
+ data.tar.gz: baf20b5ed5e90651024ae506c4318f89abab21fc
5
5
  SHA512:
6
- metadata.gz: b7c6e2734891c5b0e6c41928662a25a3248f07dfa7463f64fe2e742df170ea0ef7c27a90e80747049b960142e4e80fbe81eb813d10a313979d31dbc22d6a80f2
7
- data.tar.gz: f6d3e470160b9fbfbaf48a9d50480869ca6f472fa65b0193aca9dd32692ca43284a5c0e035334602358430d50517e4a684522ddf0dcaf52306789064be96d704
6
+ metadata.gz: deb1f46aba77cd2f33cc1e1697bf1ffb9b5921aeba009965d319511ee8a6ffbcc4a5550dc2640ef343111901e70ad02fc13fc0377f2e68fc05a6c7755888ed20
7
+ data.tar.gz: 2baf593661441c99df1d530862ae405a46a13e72151c630df708738d6877633ee704129a4bc4ab9b4f66cbc898054910ec5e641cccbfc489881f9e9759c29868
@@ -1,3 +1,3 @@
1
1
  module EnjuSeed
2
- VERSION = "0.2.0.beta.5"
2
+ VERSION = "0.2.0.beta.6"
3
3
  end
@@ -0,0 +1,5 @@
1
+ class AddMaxNumberOfResultsToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :max_number_of_results, :integer, default: 500
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddFamilyNameFirstToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :family_name_first, :boolean, default: true
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPubYearFacetRangeIntervalToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :pub_year_facet_range_interval, :integer, default: 10
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddUserIdToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_reference :library_groups, :user, index: true, foreign_key: true
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: 20160813130535) do
14
+ ActiveRecord::Schema.define(version: 20160813203039) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -587,9 +587,9 @@ ActiveRecord::Schema.define(version: 20160813130535) do
587
587
  add_index "library_group_translations", ["locale"], name: "index_library_group_translations_on_locale"
588
588
 
589
589
  create_table "library_groups", force: :cascade do |t|
590
- t.string "name", null: false
590
+ t.string "name", null: false
591
591
  t.text "display_name"
592
- t.string "short_name", null: false
592
+ t.string "short_name", null: false
593
593
  t.text "my_networks"
594
594
  t.text "login_banner"
595
595
  t.text "note"
@@ -598,13 +598,17 @@ ActiveRecord::Schema.define(version: 20160813130535) do
598
598
  t.datetime "created_at"
599
599
  t.datetime "updated_at"
600
600
  t.text "admin_networks"
601
- t.string "url", default: "http://localhost:3000/"
601
+ t.string "url", default: "http://localhost:3000/"
602
602
  t.text "settings"
603
603
  t.text "html_snippet"
604
- t.string "email"
604
+ t.integer "max_number_of_results", default: 500
605
+ t.boolean "family_name_first", default: true
606
+ t.integer "pub_year_facet_range_interval", default: 10
607
+ t.integer "user_id"
605
608
  end
606
609
 
607
610
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
611
+ add_index "library_groups", ["user_id"], name: "index_library_groups_on_user_id"
608
612
 
609
613
  create_table "licenses", force: :cascade do |t|
610
614
  t.string "name", null: false
@@ -12,11 +12,7 @@ one:
12
12
  login_banner: "*Next-L Enju*"
13
13
  admin_networks: "0.0.0.0/0\r\n\
14
14
  ::/0"
15
- settings: <% if Rails::VERSION::MAJOR > 3 %>
16
- "{\"max_number_of_results\":200,\"family_name_first\":true}"
17
- <% else %>
18
- "---\n:max_number_of_results: 200\n:family_name_first: true\n"
19
- <% end %>
15
+ user_id: 1
20
16
 
21
17
  # == Schema Information
22
18
  #
@@ -11,7 +11,7 @@ describe "profiles/new" do
11
11
  assign(:libraries, Library.all)
12
12
  assign(:roles, Role.all)
13
13
  assign(:available_languages, Language.available_languages)
14
- view.stub(:current_user).and_return(User.find('enjuadmin'))
14
+ view.stub(:current_user).and_return(User.friendly.find('enjuadmin'))
15
15
  end
16
16
 
17
17
  it "renders new user form" do
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_seed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta.5
4
+ version: 0.2.0.beta.6
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-13 00:00:00.000000000 Z
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: 4.2.7.1
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: '4.2'
26
+ version: 4.2.7.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: friendly_id
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -402,6 +402,20 @@ dependencies:
402
402
  - - ">="
403
403
  - !ruby/object:Gem::Version
404
404
  version: '0'
405
+ - !ruby/object:Gem::Dependency
406
+ name: appraisal
407
+ requirement: !ruby/object:Gem::Requirement
408
+ requirements:
409
+ - - ">="
410
+ - !ruby/object:Gem::Version
411
+ version: '0'
412
+ type: :development
413
+ prerelease: false
414
+ version_requirements: !ruby/object:Gem::Requirement
415
+ requirements:
416
+ - - ">="
417
+ - !ruby/object:Gem::Version
418
+ version: '0'
405
419
  description: Seed module for Next-L Enju
406
420
  email:
407
421
  - nabeta@fastmail.fm
@@ -681,7 +695,10 @@ files:
681
695
  - spec/dummy/db/migrate/20160703184805_add_most_recent_to_user_reserve_stat_transitions.rb
682
696
  - spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
683
697
  - spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb
684
- - spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb
698
+ - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
699
+ - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
700
+ - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
701
+ - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
685
702
  - spec/dummy/db/schema.rb
686
703
  - spec/dummy/public/404.html
687
704
  - spec/dummy/public/422.html
@@ -960,7 +977,10 @@ test_files:
960
977
  - spec/dummy/db/migrate/20160703184805_add_most_recent_to_user_reserve_stat_transitions.rb
961
978
  - spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
962
979
  - spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb
963
- - spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb
980
+ - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
981
+ - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
982
+ - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
983
+ - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
964
984
  - spec/dummy/db/schema.rb
965
985
  - spec/dummy/public/404.html
966
986
  - spec/dummy/public/422.html
@@ -1,5 +0,0 @@
1
- class AddEmailToLibraryGroup < ActiveRecord::Migration
2
- def change
3
- add_column :library_groups, :email, :string
4
- end
5
- end