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.
- checksums.yaml +4 -4
- data/app/models/classification_type.rb +2 -2
- data/app/models/subject_heading_type.rb +1 -0
- data/app/models/subject_type.rb +1 -1
- data/lib/enju_subject/version.rb +1 -1
- data/spec/dummy/config/boot.rb +2 -2
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
- data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
- data/spec/dummy/db/schema.rb +420 -404
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_17a +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001547 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001548 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001549 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001550 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001551 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001552 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001553 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001554 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001555 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001556 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/016f86e39ffdee229513e167e190373b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1867899076fb1e0b90ad8e952258ceb6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/90453e0e28686c374df46268d089c661 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fa36be28948b64b82117be61d1712366 +0 -0
- metadata +42 -44
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/segments_14a +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001439 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001440 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001441 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001442 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001443 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001444 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001445 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001446 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001447 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001448 +0 -0
- data/spec/dummy/test/fixtures/user_groups.yml +0 -13
- data/spec/dummy/test/fixtures/user_has_roles.yml +0 -9
- data/spec/dummy/test/fixtures/users.yml +0 -11
- data/spec/dummy/test/unit/user_group_test.rb +0 -7
- data/spec/dummy/test/unit/user_has_role_test.rb +0 -7
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b1cedd55fd1965984d3d805c1da038a09ceee5
|
4
|
+
data.tar.gz: fbb78976e497cdfa186125ca56a7471089452479
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
4
|
+
default_scope { order('classification_types.position') }
|
5
5
|
has_many :classifications
|
6
|
-
validates :name, :
|
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
|
data/app/models/subject_type.rb
CHANGED
@@ -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
|
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
|
data/lib/enju_subject/version.rb
CHANGED
data/spec/dummy/config/boot.rb
CHANGED
@@ -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__)
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -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 => '
|
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
|
@@ -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
|