hydra-batch-edit 1.0.2 → 1.1.0

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: 17f70ff6bd5f560f5902817c5598135db737d835
4
- data.tar.gz: 8c30144e646cc1a88fe30683e7c424ccf2ca734d
3
+ metadata.gz: 31abc46ae3ac50ad8596f10c35b7b2e9fe110546
4
+ data.tar.gz: 997edeafa330a062c5568fdd927569cf4c693bd9
5
5
  SHA512:
6
- metadata.gz: d8589151d6549d05a8c5f7316a39152d352c1d8455913a4567bd7de0e9fd43c363c698d9767c66949efc6881f641ba5d9efb4dffc3c4a07693c305ee6b1d6e8d
7
- data.tar.gz: cf7a5c941a39f8daf06e362d272d4f990b0fa7abb407d52994dd341d94e5f25d33262757ee565f51517098e5b7d5514deb726a832e56727117a20f09d1052023
6
+ metadata.gz: e11a1f8ca250562b3b99696d79bfef0cc34a8f39d8d9864048480a27a309338c4a0bfbc713f94947eaec87d5dbf3c7cb3bba710eef14cb71f2bbd70b62249d8d
7
+ data.tar.gz: 366d76b4b783ea4d14af7ca7c9c505bf10f87a1bc651f63cdd845cec3753696373da03b732d777a149b2b59cc89ccd29291e6fa8d4970f7596e803e419d07770
data/CONTRIBUTING.md CHANGED
@@ -78,6 +78,8 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
78
78
 
79
79
  ### Submitting Changes
80
80
 
81
+ [Detailed Walkthrough of One Pull Request per Commit](http://ndlib.github.io/practices/one-commit-per-pull-request/)
82
+
81
83
  * Read the article ["Using Pull Requests"](https://help.github.com/articles/using-pull-requests) on GitHub.
82
84
  * Make sure your branch is up to date with its parent branch (i.e. master)
83
85
  * `git checkout master`
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 1.1.0 (2013-10-01)
2
+ * 2013-10-01: Replaced deprecated `stub()' with `double()' [Justin Coyne]
3
+ * 2013-10-01: Refactor to load modules after engine is initialized (concerns) [Justin Coyne]
4
+ * 2013-09-19: Updating CONTRIBUTING.md as per Hydra v6.0.0 [Jeremy Friesen]
5
+ * 2013-08-07: Added license to the gemspec [Justin Coyne]
6
+
7
+
1
8
  # 1.0.2 (2013-07-22)
2
9
 
3
10
  * Routes should work the same in rails 3.2 and rails 4.0
@@ -14,6 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "hydra-batch-edit"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Hydra::BatchEdit::VERSION
17
+ gem.license = 'APACHE2'
17
18
 
18
19
  gem.add_dependency 'blacklight'
19
20
  gem.add_dependency 'hydra-collections'
@@ -1,5 +1,4 @@
1
1
  require "hydra-collections"
2
- require "hydra/batch_edit_behavior"
3
2
  require "hydra/batch_edit"
4
3
  require "bundler/setup"
5
4
  require "blacklight"
@@ -8,7 +8,9 @@ module Hydra
8
8
  Routes.new(router, options).draw
9
9
  end
10
10
  class Engine < ::Rails::Engine
11
- # Make rails look at the vendored assets
11
+ config.autoload_paths += %W(
12
+ #{config.root}/app/controllers/concerns
13
+ )
12
14
  end
13
15
  end
14
16
  end
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module BatchEdit
3
- VERSION = "1.0.2"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -138,10 +138,10 @@ describe BatchEditsController do
138
138
 
139
139
  describe "select all" do
140
140
  before do
141
- doc1 = stub(:id=>123)
142
- doc2 = stub(:id=>456)
141
+ doc1 = double(id: 123)
142
+ doc2 = double(id: 456)
143
143
  Hydra::BatchEdit::SearchService.any_instance.should_receive(:last_search_documents).and_return([doc1, doc2])
144
- controller.stub(:current_user=>stub(:user_key=>'vanessa'))
144
+ controller.stub(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
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.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-22 00:00:00.000000000 Z
12
+ date: 2013-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight
@@ -99,6 +99,7 @@ files:
99
99
  - app/assets/javascripts/batch_edit.js.coffee
100
100
  - app/assets/stylesheets/batch_edit.css.scss
101
101
  - app/controllers/batch_edits_controller.rb
102
+ - app/controllers/concerns/hydra/batch_edit_behavior.rb
102
103
  - app/helpers/batch_edit_helper.rb
103
104
  - app/views/batch_edits/_check_all.html.erb
104
105
  - app/views/batch_edits/_delete_batch.html.erb
@@ -114,7 +115,6 @@ files:
114
115
  - lib/hydra/batch_edit/routes.rb
115
116
  - lib/hydra/batch_edit/search_service.rb
116
117
  - lib/hydra/batch_edit/version.rb
117
- - lib/hydra/batch_edit_behavior.rb
118
118
  - spec/.gitignore
119
119
  - spec/controllers/batch_edits_controller_spec.rb
120
120
  - spec/helpers/batch_edit_helper_spec.rb
@@ -129,7 +129,8 @@ files:
129
129
  - spec/support/lib/generators/test_app_generator.rb
130
130
  - spec/support/lib/tasks/rspec.rake
131
131
  homepage: https://github.com/projecthydra/hydra-batch-edit
132
- licenses: []
132
+ licenses:
133
+ - APACHE2
133
134
  metadata: {}
134
135
  post_install_message:
135
136
  rdoc_options: []
@@ -147,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
148
  version: '0'
148
149
  requirements: []
149
150
  rubyforge_project:
150
- rubygems_version: 2.0.3
151
+ rubygems_version: 2.0.5
151
152
  signing_key:
152
153
  specification_version: 4
153
154
  summary: Rails engine to do batch editing with hydra-head