hydra-batch-edit 1.1.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +21 -0
  4. data/.rubocop_todo.yml +278 -0
  5. data/.travis.yml +1 -5
  6. data/Gemfile +35 -0
  7. data/README.textile +8 -18
  8. data/Rakefile +17 -48
  9. data/app/assets/javascripts/{batch_edit.js.coffee → batch_edit/batch_edit.js.coffee} +0 -0
  10. data/app/assets/stylesheets/{batch_edit.css.scss → batch_edit/batch_edit.scss} +0 -0
  11. data/app/controllers/concerns/hydra/batch_edit_behavior.rb +2 -2
  12. data/hydra-batch-edit.gemspec +8 -5
  13. data/lib/generators/hydra_batch_edit/install_generator.rb +17 -0
  14. data/lib/generators/hydra_batch_edit/templates/batch_edit.js +1 -0
  15. data/lib/generators/hydra_batch_edit/templates/batch_edit.scss +1 -0
  16. data/lib/hydra-batch-edit.rb +1 -1
  17. data/lib/hydra/batch_edit.rb +0 -1
  18. data/lib/hydra/batch_edit/version.rb +1 -1
  19. data/spec/controllers/batch_edits_controller_spec.rb +43 -43
  20. data/spec/helpers/batch_edit_helper_spec.rb +3 -3
  21. data/spec/routing/batch_edit_routes_spec.rb +10 -10
  22. data/spec/spec_helper.rb +7 -4
  23. data/spec/support/config/initializers/hydra_config.rb +0 -28
  24. data/spec/{support → test_app_templates}/app/models/sample.rb +0 -0
  25. data/spec/{support → test_app_templates}/app/models/solr_document.rb +0 -0
  26. data/spec/{support → test_app_templates}/db/migrate/20111101221803_create_searches.rb +0 -0
  27. data/spec/test_app_templates/lib/generators/test_app_generator.rb +24 -0
  28. metadata +81 -38
  29. data/gemfiles/rails3.gemfile +0 -6
  30. data/gemfiles/rails4.gemfile +0 -6
  31. data/lib/hydra/batch_edit/search_service.rb +0 -62
  32. data/spec/lib/search_service_spec.rb +0 -41
@@ -3,7 +3,7 @@ module Hydra
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- include Hydra::Collections::AcceptsBatches
6
+ include CurationConcerns::Collections::AcceptsBatches
7
7
 
8
8
  before_filter :filter_docs_with_access!, :only=>[:edit, :update, :destroy_collection]
9
9
  before_filter :check_for_empty!, :only=>[:edit, :update, :destroy_collection]
@@ -44,7 +44,7 @@ module Hydra
44
44
  end
45
45
 
46
46
  def all
47
- self.batch = Hydra::BatchEdit::SearchService.new(session, current_user.user_key).last_search_documents.map(&:id)
47
+ self.batch = CurationConcerns::Collections::SearchService.new(session, current_user.user_key).last_search_documents.map(&:id)
48
48
  respond_to do |format|
49
49
  format.html { redirect_to edit_batch_edits_path }
50
50
  format.js { render :json => batch }
@@ -4,9 +4,9 @@ require File.expand_path('../lib/hydra/batch_edit/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Justin Coyne", "Matt Zumwalt"]
6
6
  gem.email = ["justin.coyne@yourmediashelf.com"]
7
- gem.description = %q{Rails engine to do batch editing with hydra-head}
8
- gem.summary = %q{Rails engine to do batch editing with hydra-head}
9
- gem.homepage = "https://github.com/projecthydra/hydra-batch-edit"
7
+ gem.description = %q{Rails engine to do batch editing with curation_concerns}
8
+ gem.summary = %q{Rails engine to do batch editing with curation_concerns}
9
+ gem.homepage = "https://github.com/projecthydra-labs/hydra-batch-edit"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -16,10 +16,13 @@ Gem::Specification.new do |gem|
16
16
  gem.version = Hydra::BatchEdit::VERSION
17
17
  gem.license = 'APACHE2'
18
18
 
19
+ gem.add_dependency 'rails'
19
20
  gem.add_dependency 'blacklight'
20
- gem.add_dependency 'hydra-collections'
21
+ gem.add_dependency 'curation_concerns', '>= 0.12.0.pre2'
21
22
 
22
23
  gem.add_development_dependency 'rake'
23
- gem.add_development_dependency 'rails'
24
24
  gem.add_development_dependency 'rspec-rails'
25
+ gem.add_development_dependency 'engine_cart', '~> 0.8'
26
+ gem.add_development_dependency 'rubocop', '~> 0.39'
27
+ gem.add_development_dependency 'rubocop-rspec'
25
28
  end
@@ -0,0 +1,17 @@
1
+ require 'rails/generators'
2
+
3
+ module HydraBatchEdit
4
+ # Installs hydra-batch-edit into the host application
5
+ class InstallGenerator < Rails::Generators::Base
6
+ source_root File.expand_path('../templates', __FILE__)
7
+
8
+ def add_routes
9
+ route "Hydra::BatchEdit.add_routes(self)"
10
+ end
11
+
12
+ def inject_assets
13
+ copy_file "batch_edit.scss", "app/assets/stylesheets/batch_edit.scss"
14
+ copy_file "batch_edit.js", "app/assets/javascripts/batch_edit.js"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1 @@
1
+ //= require batch_edit/batch_edit
@@ -0,0 +1 @@
1
+ @import 'batch_edit/batch_edit';
@@ -1,4 +1,4 @@
1
- require "hydra-collections"
1
+ require "curation_concerns"
2
2
  require "hydra/batch_edit"
3
3
  require "bundler/setup"
4
4
  require "blacklight"
@@ -1,7 +1,6 @@
1
1
  module Hydra
2
2
  module BatchEdit
3
3
  extend ActiveSupport::Autoload
4
- autoload :SearchService
5
4
  autoload :Routes
6
5
  autoload :Version
7
6
  def self.add_routes(router, options = {})
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module BatchEdit
3
- VERSION = "1.1.1"
3
+ VERSION = "2.0.2".freeze
4
4
  end
5
5
  end
@@ -23,10 +23,10 @@ describe BatchEditsController do
23
23
  end
24
24
  it "should draw the form" do
25
25
  controller.batch = [@one.pid, @two.pid]
26
- controller.should_receive(:can?).with(:edit, @one.pid).and_return(true)
27
- controller.should_receive(:can?).with(:edit, @two.pid).and_return(true)
26
+ expect(controller).to receive(:can?).with(:edit, @one.pid).and_return(true)
27
+ expect(controller).to receive(:can?).with(:edit, @two.pid).and_return(true)
28
28
  get :edit
29
- response.should be_successful
29
+ expect(response).to be_successful
30
30
 
31
31
  end
32
32
  end
@@ -38,45 +38,45 @@ describe BatchEditsController do
38
38
  @two = Sample.create
39
39
  end
40
40
  before do
41
- controller.stub(:catalog_index_path).and_return('/catalog')
41
+ allow(controller).to receive(:catalog_index_path).and_return('/catalog')
42
42
  request.env["HTTP_REFERER"] = "where_i_came_from"
43
43
 
44
44
  end
45
45
  it "should complain when none are in the batch " do
46
46
  put :update, :multiresimage=>{:titleSet_display=>'My title' }
47
- response.should redirect_to 'where_i_came_from'
48
- flash[:notice].should == "Select something first"
47
+ expect(response).to redirect_to 'where_i_came_from'
48
+ expect(flash[:notice]).to eq("Select something first")
49
49
  end
50
50
  it "should not update when the user doesn't have permissions" do
51
51
  controller.batch = [@one.pid, @two.pid]
52
- controller.should_receive(:can?).with(:edit, @one.pid).and_return(false)
53
- controller.should_receive(:can?).with(:edit, @two.pid).and_return(false)
52
+ expect(controller).to receive(:can?).with(:edit, @one.pid).and_return(false)
53
+ expect(controller).to receive(:can?).with(:edit, @two.pid).and_return(false)
54
54
  put :update, :multiresimage=>{:titleSet_display=>'My title' }
55
- response.should redirect_to 'where_i_came_from'
56
- flash[:notice].should == "You do not have permission to edit the documents: #{@one.pid}, #{@two.pid}"
55
+ expect(response).to redirect_to 'where_i_came_from'
56
+ expect(flash[:notice]).to eq("You do not have permission to edit the documents: #{@one.pid}, #{@two.pid}")
57
57
  end
58
58
  describe "when current user has access to the documents" do
59
59
  before do
60
60
  @one.save
61
61
  @two.save
62
62
  controller.batch = [@one.pid, @two.pid]
63
- controller.should_receive(:can?).with(:edit, @one.pid).and_return(true)
64
- controller.should_receive(:can?).with(:edit, @two.pid).and_return(true)
65
- ActiveFedora::Base.should_receive(:find).with( @one.pid, :cast=>true).and_return(@one)
66
- ActiveFedora::Base.should_receive(:find).with( @two.pid, :cast=>true).and_return(@two)
63
+ expect(controller).to receive(:can?).with(:edit, @one.pid).and_return(true)
64
+ expect(controller).to receive(:can?).with(:edit, @two.pid).and_return(true)
65
+ expect(ActiveFedora::Base).to receive(:find).with( @one.pid, :cast=>true).and_return(@one)
66
+ expect(ActiveFedora::Base).to receive(:find).with( @two.pid, :cast=>true).and_return(@two)
67
67
  end
68
68
  it "should update all the field" do
69
69
  put :update, :sample=>{:titleSet_display=>'My title' }
70
- response.should redirect_to '/catalog'
71
- flash[:notice].should == "Batch update complete"
72
- Sample.find(@one.pid).titleSet_display.should == "My title"
70
+ expect(response).to redirect_to '/catalog'
71
+ expect(flash[:notice]).to eq("Batch update complete")
72
+ expect(Sample.find(@one.pid).titleSet_display).to eq("My title")
73
73
  end
74
74
  it "should not update blank values" do
75
75
  @one.titleSet_display = 'Original value'
76
76
  put :update, :sample=>{:titleSet_display=>'' }
77
- response.should redirect_to '/catalog'
78
- flash[:notice].should == "Batch update complete"
79
- Sample.find(@one.pid).titleSet_display.should == "Original value"
77
+ expect(response).to redirect_to '/catalog'
78
+ expect(flash[:notice]).to eq("Batch update complete")
79
+ expect(Sample.find(@one.pid).titleSet_display).to eq("Original value")
80
80
  end
81
81
  end
82
82
  end
@@ -87,38 +87,38 @@ describe BatchEditsController do
87
87
  @two = Sample.create
88
88
  end
89
89
  before do
90
- controller.stub(:catalog_index_path).and_return('/catalog')
90
+ allow(controller).to receive(:catalog_index_path).and_return('/catalog')
91
91
  request.env["HTTP_REFERER"] = "where_i_came_from"
92
92
  end
93
93
  it "should complain when none are in the batch " do
94
94
  delete :destroy_collection
95
- response.should redirect_to 'where_i_came_from'
96
- flash[:notice].should == "Select something first"
95
+ expect(response).to redirect_to 'where_i_came_from'
96
+ expect(flash[:notice]).to eq("Select something first")
97
97
  end
98
98
  it "should not update when the user doesn't have permissions" do
99
99
  controller.batch = [@one.pid, @two.pid]
100
- controller.should_receive(:can?).with(:edit, @one.pid).and_return(false)
101
- controller.should_receive(:can?).with(:edit, @two.pid).and_return(false)
100
+ expect(controller).to receive(:can?).with(:edit, @one.pid).and_return(false)
101
+ expect(controller).to receive(:can?).with(:edit, @two.pid).and_return(false)
102
102
  delete :destroy_collection
103
- response.should redirect_to 'where_i_came_from'
104
- flash[:notice].should == "You do not have permission to edit the documents: #{@one.pid}, #{@two.pid}"
103
+ expect(response).to redirect_to 'where_i_came_from'
104
+ expect(flash[:notice]).to eq("You do not have permission to edit the documents: #{@one.pid}, #{@two.pid}")
105
105
  end
106
106
  describe "when current user has access to the documents" do
107
107
  before do
108
108
  @one.save
109
109
  @two.save
110
110
  controller.batch = [@one.pid, @two.pid]
111
- controller.should_receive(:can?).with(:edit, @one.pid).and_return(true)
112
- controller.should_receive(:can?).with(:edit, @two.pid).and_return(true)
113
- ActiveFedora::Base.should_receive(:find).with( @one.pid, :cast=>true).and_return(@one)
114
- ActiveFedora::Base.should_receive(:find).with( @two.pid, :cast=>true).and_return(@two)
111
+ expect(controller).to receive(:can?).with(:edit, @one.pid).and_return(true)
112
+ expect(controller).to receive(:can?).with(:edit, @two.pid).and_return(true)
113
+ expect(ActiveFedora::Base).to receive(:find).with( @one.pid, :cast=>true).and_return(@one)
114
+ expect(ActiveFedora::Base).to receive(:find).with( @two.pid, :cast=>true).and_return(@two)
115
115
  end
116
116
  it "should update all the field" do
117
117
  delete :destroy_collection
118
- response.should redirect_to '/catalog'
119
- flash[:notice].should == "Batch delete complete"
120
- Sample.find(@one.pid).should be_nil
121
- Sample.find(@two.pid).should be_nil
118
+ expect(response).to redirect_to '/catalog'
119
+ expect(flash[:notice]).to eq("Batch delete complete")
120
+ expect(Sample.find(@one.pid)).to be_nil
121
+ expect(Sample.find(@two.pid)).to be_nil
122
122
  end
123
123
  end
124
124
  end
@@ -126,13 +126,13 @@ describe BatchEditsController do
126
126
  describe "state" do
127
127
  it "should save state on" do
128
128
  xhr :put, :state, :state=>'on'
129
- response.should be_successful
130
- session[:batch_edit_state].should == 'on'
129
+ expect(response).to be_successful
130
+ expect(session[:batch_edit_state]).to eq('on')
131
131
  end
132
132
  it "should save state off" do
133
133
  xhr :put, :state, :state=>'off'
134
- response.should be_successful
135
- session[:batch_edit_state].should == 'off'
134
+ expect(response).to be_successful
135
+ expect(session[:batch_edit_state]).to eq('off')
136
136
  end
137
137
  end
138
138
 
@@ -140,17 +140,17 @@ describe BatchEditsController do
140
140
  before do
141
141
  doc1 = double(id: 123)
142
142
  doc2 = double(id: 456)
143
- Hydra::BatchEdit::SearchService.any_instance.should_receive(:last_search_documents).and_return([doc1, doc2])
144
- controller.stub(current_user: double(user_key: 'vanessa'))
143
+ expect_any_instance_of(CurationConcerns::Collections::SearchService).to receive(:last_search_documents).and_return([doc1, doc2])
144
+ allow(controller).to receive_messages(current_user: double(user_key: 'vanessa'))
145
145
  end
146
146
  it "should add every document in the current resultset to the batch" do
147
147
  put :all
148
- response.should redirect_to edit_batch_edits_path
148
+ expect(response).to redirect_to edit_batch_edits_path
149
149
  controller.batch = [123, 456]
150
150
  end
151
151
  it "ajax should add every document in the current resultset to the batch but not redirect" do
152
152
  xhr :put, :all
153
- response.should_not redirect_to edit_batch_edits_path
153
+ expect(response).not_to redirect_to edit_batch_edits_path
154
154
  controller.batch = [123, 456]
155
155
  end
156
156
  end
@@ -3,15 +3,15 @@ require 'spec_helper'
3
3
  describe BatchEditHelper do
4
4
  describe "batch_edit_active?" do
5
5
  it "when nil" do
6
- helper.batch_edit_state.should == 'off'
6
+ expect(helper.batch_edit_state).to eq('off')
7
7
  end
8
8
  it "should be off" do
9
9
  session[:batch_edit_state] = 'off'
10
- helper.batch_edit_state.should == 'off'
10
+ expect(helper.batch_edit_state).to eq('off')
11
11
  end
12
12
  it "should be on" do
13
13
  session[:batch_edit_state] = 'on'
14
- helper.batch_edit_state.should == 'on'
14
+ expect(helper.batch_edit_state).to eq('on')
15
15
  end
16
16
  end
17
17
  end
@@ -2,29 +2,29 @@ require 'spec_helper'
2
2
 
3
3
  describe "Routes for batch_update" do
4
4
  it "should route index" do
5
- { :get => '/batch_edits' }.should route_to( :controller => "batch_edits", :action => "index")
6
- batch_edits_path.should == '/batch_edits'
5
+ expect(:get => '/batch_edits').to route_to( :controller => "batch_edits", :action => "index")
6
+ expect(batch_edits_path).to eq('/batch_edits')
7
7
  end
8
8
  it "should route edit" do
9
- { :get => edit_batch_edits_path }.should route_to( :controller => "batch_edits", :action => "edit")
9
+ expect(:get => edit_batch_edits_path).to route_to( :controller => "batch_edits", :action => "edit")
10
10
  end
11
11
  it "should route update" do
12
- { :put => batch_edits_path }.should route_to( :controller => "batch_edits", :action => "update")
12
+ expect(:put => batch_edits_path).to route_to( :controller => "batch_edits", :action => "update")
13
13
  end
14
14
  it "should route delete batch" do
15
- { :delete => batch_edits_path }.should route_to( :controller => "batch_edits", :action => "destroy_collection")
15
+ expect(:delete => batch_edits_path).to route_to( :controller => "batch_edits", :action => "destroy_collection")
16
16
  end
17
17
  it "should route add" do
18
- { :put => '/batch_edits/7'}.should route_to( :controller => "batch_edits", :action => "add", :id=>'7')
18
+ expect(:put => '/batch_edits/7').to route_to( :controller => "batch_edits", :action => "add", :id=>'7')
19
19
  end
20
20
  it "should route delete" do
21
- { :delete => '/batch_edits/7' }.should route_to( :controller => "batch_edits", :action => "destroy", :id=>'7')
22
- batch_edit_path(7).should == "/batch_edits/7"
21
+ expect(:delete => '/batch_edits/7').to route_to( :controller => "batch_edits", :action => "destroy", :id=>'7')
22
+ expect(batch_edit_path(7)).to eq("/batch_edits/7")
23
23
  end
24
24
 
25
25
  it "should route all" do
26
- { :put => '/batch_edits/all'}.should route_to( :controller => "batch_edits", :action => "all")
27
- all_batch_edits_path.should == "/batch_edits/all"
26
+ expect(:put => '/batch_edits/all').to route_to( :controller => "batch_edits", :action => "all")
27
+ expect(all_batch_edits_path).to eq("/batch_edits/all")
28
28
  end
29
29
 
30
30
 
@@ -1,12 +1,15 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- ENV["RAILS_ENV"] ||= 'test'
1
+ ENV["environment"] ||= 'test'
2
+ require "bundler/setup"
3
+
4
+ require 'engine_cart'
5
+ EngineCart.load_application!
4
6
 
5
- require File.expand_path("config/environment", ENV['RAILS_ROOT'] || File.expand_path("../internal", __FILE__))
6
7
  require 'rspec/rails'
7
8
  require 'hydra-batch-edit'
8
9
 
9
10
 
10
11
  RSpec.configure do |config|
11
12
  config.use_transactional_fixtures = true
13
+
14
+ config.infer_spec_type_from_file_location!
12
15
  end
@@ -1,28 +0,0 @@
1
- # The following lines determine which user attributes your hydrangea app will use
2
- # This configuration allows you to use the out of the box ActiveRecord associations between users and user_attributes
3
- # It also allows you to specify your own user attributes
4
- # The easiest way to override these methods would be to create your own module to include in User
5
- # For example you could create a module for your local LDAP instance called MyLocalLDAPUserAttributes:
6
- # User.send(:include, MyLocalLDAPAttributes)
7
- # As long as your module includes methods for full_name, affiliation, and photo the personalization_helper should function correctly
8
- #
9
-
10
- # windows doesn't properly require hydra-head (from the gemfile), so we need to require it explicitly here:
11
- require 'hydra/head' unless defined? Hydra
12
-
13
- if Hydra.respond_to?(:configure)
14
- Hydra.configure(:shared) do |config|
15
- # This specifies the solr field names of permissions-related fields.
16
- # You only need to change these values if you've indexed permissions by some means other than the Hydra's built-in tooling.
17
- # If you change these, you must also update the permissions request handler in your solrconfig.xml to return those values
18
- indexer = Solrizer::Descriptor.new(:string, :stored, :indexed, :multivalued)
19
- config[:permissions] = {
20
- :discover => {:group =>ActiveFedora::SolrService.solr_name("discover_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("discover_access_person", indexer)},
21
- :read => {:group =>ActiveFedora::SolrService.solr_name("read_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("read_access_person", indexer)},
22
- :edit => {:group =>ActiveFedora::SolrService.solr_name("edit_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("edit_access_person", indexer)},
23
- :owner => ActiveFedora::SolrService.solr_name("depositor", indexer),
24
- :embargo_release_date => ActiveFedora::SolrService.solr_name("embargo_release_date", Solrizer::Descriptor.new(:date, :stored, :indexed))
25
- }
26
-
27
- end
28
- end
@@ -0,0 +1,24 @@
1
+ require 'rails/generators'
2
+
3
+ class TestAppGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../../../../spec/test_app_templates", __FILE__)
5
+
6
+ # if you need to generate any additional configuration
7
+ # into the test app, this generator will be run immediately
8
+ # after setting up the application
9
+
10
+ def install_engine
11
+ generate 'hydra_batch_edit:install'
12
+ end
13
+
14
+ def copy_test_models
15
+ copy_file "app/models/sample.rb"
16
+ copy_file "app/models/solr_document.rb"
17
+ copy_file "db/migrate/20111101221803_create_searches.rb"
18
+ end
19
+
20
+ # def copy_hydra_config
21
+ # copy_file "config/initializers/hydra_config.rb"
22
+ # end
23
+ end
24
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-batch-edit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -9,95 +9,139 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-01 00:00:00.000000000 Z
12
+ date: 2016-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: blacklight
15
+ name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
- name: hydra-collections
29
+ name: blacklight
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: curation_concerns
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 0.12.0.pre2
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.12.0.pre2
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: rake
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
- - - '>='
60
+ - - ">="
47
61
  - !ruby/object:Gem::Version
48
62
  version: '0'
49
63
  type: :development
50
64
  prerelease: false
51
65
  version_requirements: !ruby/object:Gem::Requirement
52
66
  requirements:
53
- - - '>='
67
+ - - ">="
54
68
  - !ruby/object:Gem::Version
55
69
  version: '0'
56
70
  - !ruby/object:Gem::Dependency
57
- name: rails
71
+ name: rspec-rails
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
- - - '>='
74
+ - - ">="
61
75
  - !ruby/object:Gem::Version
62
76
  version: '0'
63
77
  type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
- - - '>='
81
+ - - ">="
68
82
  - !ruby/object:Gem::Version
69
83
  version: '0'
70
84
  - !ruby/object:Gem::Dependency
71
- name: rspec-rails
85
+ name: engine_cart
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '0.8'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '0.8'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rubocop
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '0.39'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '0.39'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rubocop-rspec
72
114
  requirement: !ruby/object:Gem::Requirement
73
115
  requirements:
74
- - - '>='
116
+ - - ">="
75
117
  - !ruby/object:Gem::Version
76
118
  version: '0'
77
119
  type: :development
78
120
  prerelease: false
79
121
  version_requirements: !ruby/object:Gem::Requirement
80
122
  requirements:
81
- - - '>='
123
+ - - ">="
82
124
  - !ruby/object:Gem::Version
83
125
  version: '0'
84
- description: Rails engine to do batch editing with hydra-head
126
+ description: Rails engine to do batch editing with curation_concerns
85
127
  email:
86
128
  - justin.coyne@yourmediashelf.com
87
129
  executables: []
88
130
  extensions: []
89
131
  extra_rdoc_files: []
90
132
  files:
91
- - .gitignore
92
- - .travis.yml
133
+ - ".gitignore"
134
+ - ".rubocop.yml"
135
+ - ".rubocop_todo.yml"
136
+ - ".travis.yml"
93
137
  - CONTRIBUTING.md
94
138
  - Gemfile
95
139
  - History.md
96
140
  - LICENSE
97
141
  - README.textile
98
142
  - Rakefile
99
- - app/assets/javascripts/batch_edit.js.coffee
100
- - app/assets/stylesheets/batch_edit.css.scss
143
+ - app/assets/javascripts/batch_edit/batch_edit.js.coffee
144
+ - app/assets/stylesheets/batch_edit/batch_edit.scss
101
145
  - app/controllers/batch_edits_controller.rb
102
146
  - app/controllers/concerns/hydra/batch_edit_behavior.rb
103
147
  - app/helpers/batch_edit_helper.rb
@@ -107,28 +151,28 @@ files:
107
151
  - app/views/batch_edits/_tools.html.erb
108
152
  - app/views/batch_edits/edit.html.erb
109
153
  - app/views/batch_edits/index.html.erb
110
- - gemfiles/rails3.gemfile
111
- - gemfiles/rails4.gemfile
112
154
  - hydra-batch-edit.gemspec
155
+ - lib/generators/hydra_batch_edit/install_generator.rb
156
+ - lib/generators/hydra_batch_edit/templates/batch_edit.js
157
+ - lib/generators/hydra_batch_edit/templates/batch_edit.scss
113
158
  - lib/hydra-batch-edit.rb
114
159
  - lib/hydra/batch_edit.rb
115
160
  - lib/hydra/batch_edit/routes.rb
116
- - lib/hydra/batch_edit/search_service.rb
117
161
  - lib/hydra/batch_edit/version.rb
118
162
  - spec/.gitignore
119
163
  - spec/controllers/batch_edits_controller_spec.rb
120
164
  - spec/helpers/batch_edit_helper_spec.rb
121
- - spec/lib/search_service_spec.rb
122
165
  - spec/routing/batch_edit_routes_spec.rb
123
166
  - spec/spec_helper.rb
124
167
  - spec/support/Gemfile
125
- - spec/support/app/models/sample.rb
126
- - spec/support/app/models/solr_document.rb
127
168
  - spec/support/config/initializers/hydra_config.rb
128
- - spec/support/db/migrate/20111101221803_create_searches.rb
129
169
  - spec/support/lib/generators/test_app_generator.rb
130
170
  - spec/support/lib/tasks/rspec.rake
131
- homepage: https://github.com/projecthydra/hydra-batch-edit
171
+ - spec/test_app_templates/app/models/sample.rb
172
+ - spec/test_app_templates/app/models/solr_document.rb
173
+ - spec/test_app_templates/db/migrate/20111101221803_create_searches.rb
174
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
175
+ homepage: https://github.com/projecthydra-labs/hydra-batch-edit
132
176
  licenses:
133
177
  - APACHE2
134
178
  metadata: {}
@@ -138,32 +182,31 @@ require_paths:
138
182
  - lib
139
183
  required_ruby_version: !ruby/object:Gem::Requirement
140
184
  requirements:
141
- - - '>='
185
+ - - ">="
142
186
  - !ruby/object:Gem::Version
143
187
  version: '0'
144
188
  required_rubygems_version: !ruby/object:Gem::Requirement
145
189
  requirements:
146
- - - '>='
190
+ - - ">="
147
191
  - !ruby/object:Gem::Version
148
192
  version: '0'
149
193
  requirements: []
150
194
  rubyforge_project:
151
- rubygems_version: 2.0.5
195
+ rubygems_version: 2.4.5.1
152
196
  signing_key:
153
197
  specification_version: 4
154
- summary: Rails engine to do batch editing with hydra-head
198
+ summary: Rails engine to do batch editing with curation_concerns
155
199
  test_files:
156
200
  - spec/.gitignore
157
201
  - spec/controllers/batch_edits_controller_spec.rb
158
202
  - spec/helpers/batch_edit_helper_spec.rb
159
- - spec/lib/search_service_spec.rb
160
203
  - spec/routing/batch_edit_routes_spec.rb
161
204
  - spec/spec_helper.rb
162
205
  - spec/support/Gemfile
163
- - spec/support/app/models/sample.rb
164
- - spec/support/app/models/solr_document.rb
165
206
  - spec/support/config/initializers/hydra_config.rb
166
- - spec/support/db/migrate/20111101221803_create_searches.rb
167
207
  - spec/support/lib/generators/test_app_generator.rb
168
208
  - spec/support/lib/tasks/rspec.rake
169
- has_rdoc:
209
+ - spec/test_app_templates/app/models/sample.rb
210
+ - spec/test_app_templates/app/models/solr_document.rb
211
+ - spec/test_app_templates/db/migrate/20111101221803_create_searches.rb
212
+ - spec/test_app_templates/lib/generators/test_app_generator.rb