enju_subject 0.1.0.pre27 → 0.1.0.pre28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/classification_type.rb +2 -2
  3. data/app/models/subject_heading_type.rb +1 -0
  4. data/app/models/subject_type.rb +1 -1
  5. data/lib/enju_subject/version.rb +1 -1
  6. data/spec/dummy/config/boot.rb +2 -2
  7. data/spec/dummy/config/routes.rb +1 -1
  8. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  9. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  10. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
  11. data/spec/dummy/db/schema.rb +420 -404
  12. data/spec/dummy/db/test.sqlite3 +0 -0
  13. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  14. data/spec/dummy/solr/default/data/index/segments_17a +0 -0
  15. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001547 +0 -0
  16. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001548 +0 -0
  17. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001549 +0 -0
  18. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001550 +0 -0
  19. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001551 +0 -0
  20. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001552 +0 -0
  21. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001553 +0 -0
  22. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001554 +0 -0
  23. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001555 +0 -0
  24. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001556 +0 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/016f86e39ffdee229513e167e190373b +0 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/1867899076fb1e0b90ad8e952258ceb6 +0 -0
  28. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  29. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  30. data/spec/dummy/tmp/cache/assets/test/sprockets/90453e0e28686c374df46268d089c661 +0 -0
  31. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  32. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  33. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  34. data/spec/dummy/tmp/cache/assets/test/sprockets/fa36be28948b64b82117be61d1712366 +0 -0
  35. metadata +42 -44
  36. data/spec/dummy/db/development.sqlite3 +0 -0
  37. data/spec/dummy/solr/default/data/index/segments_14a +0 -0
  38. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001439 +0 -0
  39. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001440 +0 -0
  40. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001441 +0 -0
  41. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001442 +0 -0
  42. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001443 +0 -0
  43. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001444 +0 -0
  44. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001445 +0 -0
  45. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001446 +0 -0
  46. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001447 +0 -0
  47. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001448 +0 -0
  48. data/spec/dummy/test/fixtures/user_groups.yml +0 -13
  49. data/spec/dummy/test/fixtures/user_has_roles.yml +0 -9
  50. data/spec/dummy/test/fixtures/users.yml +0 -11
  51. data/spec/dummy/test/unit/user_group_test.rb +0 -7
  52. data/spec/dummy/test/unit/user_has_role_test.rb +0 -7
  53. data/spec/dummy/test/unit/user_test.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f39a539208950c30df82cb40b7f4679ec04bd02d
4
- data.tar.gz: 03750a9a61b0ad202afee9606d6efb8903a13d71
3
+ metadata.gz: 24b1cedd55fd1965984d3d805c1da038a09ceee5
4
+ data.tar.gz: fbb78976e497cdfa186125ca56a7471089452479
5
5
  SHA512:
6
- metadata.gz: 9b4d3ae6aab37057222b13e7b45cdb65d465b43f2070bd3ad8c16a9e967d4f7d5c390abcd1018ce9f25c60b960f01dd9f3da6427f1d3ec13dae30f5ba70d8656
7
- data.tar.gz: 156338c0e07072ddd799353638bad7cce20e8d1e59dd21d1272ae0299d06896c73ee18f35f132e23614b5b6970ba544d7ca36488c3e69c4f614770ec1bcda5bc
6
+ metadata.gz: 71182abc88a3fe014facbf64b9f50c941f5bb1c6d6e44f285b1c8e2da5ea57c97379e82d641f74e08827f558e1c55059fc2b46295778b427e4314db06f403020
7
+ data.tar.gz: aa4e989f8c95c9038ca7109b8def5140add32dfaa500fccc45f7026ef6c1d80bb593071457d443c813476d6728f5e1d902afa140470b95b1405f76fc1efff8a3
@@ -1,9 +1,9 @@
1
1
  class ClassificationType < ActiveRecord::Base
2
2
  attr_accessible :name, :display_name, :note
3
3
  include MasterModel
4
- default_scope order: 'classification_types.position'
4
+ default_scope { order('classification_types.position') }
5
5
  has_many :classifications
6
- validates :name, :format => {:with => /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/}
6
+ validates :name, format: { with: /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/ }
7
7
  end
8
8
 
9
9
  # == Schema Information
@@ -1,6 +1,7 @@
1
1
  class SubjectHeadingType < ActiveRecord::Base
2
2
  attr_accessible :name, :display_name, :note
3
3
  include MasterModel
4
+ default_scope { order("subject_heading_types.position") }
4
5
  has_many :subjects
5
6
  validates :name, format: {with: /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/}
6
7
  end
@@ -1,7 +1,7 @@
1
1
  class SubjectType < ActiveRecord::Base
2
2
  attr_accessible :name, :display_name, :note
3
3
  include MasterModel
4
- default_scope order: "position"
4
+ default_scope { order("subject_types.position") }
5
5
  has_many :subjects
6
6
  validates :name, format: {with: /\A[0-9A-Za-z][0-9a-z_\-]*[0-9a-z]\Z/}
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuSubject
2
- VERSION = "0.1.0.pre27"
2
+ VERSION = "0.1.0.pre28"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
2
+ gemfile = ENV['BUNDLE_GEMFILE'] || File.expand_path('../../../../Gemfile', __FILE__)
3
3
 
4
4
  if File.exist?(gemfile)
5
5
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -7,4 +7,4 @@ if File.exist?(gemfile)
7
7
  Bundler.setup
8
8
  end
9
9
 
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -50,7 +50,7 @@ Dummy::Application.routes.draw do
50
50
 
51
51
  # You can have the root of your site routed with "root"
52
52
  # just remember to delete public/index.html.
53
- root :to => 'subjects#index'
53
+ # root :to => 'page#index'
54
54
 
55
55
  # See how all your routes lay out with "rake routes"
56
56
 
@@ -0,0 +1,15 @@
1
+ class CreateAgentMerges < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :agent_merges do |t|
4
+ t.integer :agent_id, :agent_merge_list_id, :null => false
5
+
6
+ t.timestamps
7
+ end
8
+ add_index :agent_merges, :agent_id
9
+ add_index :agent_merges, :agent_merge_list_id
10
+ end
11
+
12
+ def self.down
13
+ drop_table :agent_merges
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ class CreateAgentMergeLists < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :agent_merge_lists do |t|
4
+ t.string :title
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ drop_table :agent_merge_lists
12
+ end
13
+ end
@@ -7,6 +7,6 @@ class CreateSeriesStatementMerges < ActiveRecord::Migration
7
7
  t.timestamps
8
8
  end
9
9
  add_index :series_statement_merges, :series_statement_id
10
- add_index :series_statement_merges, :series_statement_merge_list_id
10
+ add_index :series_statement_merges, :series_statement_merge_list_id, name: "index_series_statement_merges_on_list_id"
11
11
  end
12
12
  end