hydra 6.1.0 → 6.2.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/hydra.gemspec +4 -4
- data/lib/hydra/version.rb +1 -1
- data/script/changelog.sh +1 -1
- data/script/grant_revoke_gem_authority.rb +2 -1
- data/script/query-for-deprecation.rb +57 -30
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1030231cd3874aa23071819673548bddc86bc379
|
4
|
+
data.tar.gz: 289c9773051f3c26e6b810bff6129b3c36140608
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6853f31463667240e7bae67a59e04f29e79caf7f6a516def921d0e0555a4d71d3b9ddcff8521b66279f4af56a9f777d90308b96af28dce6c257bee3d5fc398a0
|
7
|
+
data.tar.gz: d347414c2f1b6694e3b60a9d4ee962af3d98b5516ed8ba120394d6fdd81b0350e809c2cbc7f2ab90e8638c1e3e65e58b2c60a3d20940aea435254303e64ca2c2
|
data/README.md
CHANGED
data/hydra.gemspec
CHANGED
@@ -23,16 +23,16 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.require_paths = ["lib"]
|
24
24
|
gem.license = 'APACHE2'
|
25
25
|
|
26
|
-
gem.add_dependency 'hydra-head', '
|
26
|
+
gem.add_dependency 'hydra-head', '6.5.0.rc2'
|
27
27
|
gem.add_dependency 'jettywrapper', '~> 1.5.0'
|
28
|
-
gem.add_dependency 'active-fedora', '~> 6.7.
|
28
|
+
gem.add_dependency 'active-fedora', '~> 6.7.6'
|
29
29
|
gem.add_dependency 'rails', '>= 3.2.15', '< 5.0'
|
30
30
|
gem.add_dependency 'om', '~> 3.0.3'
|
31
31
|
gem.add_dependency 'solrizer', '~> 3.1.0'
|
32
32
|
gem.add_dependency 'rsolr', '~> 1.0.9'
|
33
|
-
gem.add_dependency 'blacklight', '~> 4.
|
33
|
+
gem.add_dependency 'blacklight', '~> 4.7.0'
|
34
34
|
gem.add_dependency 'nokogiri', '~> 1.6.0'
|
35
|
-
gem.add_dependency 'rubydora', '~> 1.
|
35
|
+
gem.add_dependency 'rubydora', '~> 1.7.1'
|
36
36
|
gem.add_dependency 'nom-xml', '~> 0.5.1'
|
37
37
|
gem.add_development_dependency 'github_api', '~> 0.10.1'
|
38
38
|
end
|
data/lib/hydra/version.rb
CHANGED
data/script/changelog.sh
CHANGED
@@ -23,7 +23,7 @@ skip_tag="\[log skip\]"
|
|
23
23
|
repository_path="./"
|
24
24
|
|
25
25
|
function default_range() {
|
26
|
-
local latest_version_tag=`cd $repository_path && git
|
26
|
+
local latest_version_tag=`cd $repository_path && git describe --abbrev=0 --tags | tail -1`
|
27
27
|
# a ".." range tag causes the `git log` command to fail
|
28
28
|
if [ -z "$latest_version_tag" ]; then
|
29
29
|
echo ''
|
@@ -18,7 +18,9 @@ RUBYGEM_NAMES = [
|
|
18
18
|
'hydra-role-management',
|
19
19
|
'hydra-file_characterization',
|
20
20
|
'jettywrapper',
|
21
|
+
'curate',
|
21
22
|
'om',
|
23
|
+
'qa',
|
22
24
|
'rubydora',
|
23
25
|
'solrizer',
|
24
26
|
'solrizer-fedora',
|
@@ -39,7 +41,6 @@ HYDRA_COMMITTER_EMAILS = [
|
|
39
41
|
"jeremy.n.friesen@gmail.com",
|
40
42
|
"jessie.keck@gmail.com",
|
41
43
|
"jim.coble@duke.edu",
|
42
|
-
"john.scofield@yourmediashelf.com",
|
43
44
|
"justin@curationexperts.com",
|
44
45
|
"leftwing@alumni.rutgers.edu",
|
45
46
|
"matt@curationexperts.com",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env ruby -
|
1
|
+
#!/usr/bin/env ruby -KU
|
2
2
|
|
3
3
|
# Given that the Hydra gem is pegged against specific versions other gems
|
4
4
|
# When we update the Hydra gem and its underlying dependent gems
|
@@ -10,7 +10,7 @@ require 'fileutils'
|
|
10
10
|
include Open3
|
11
11
|
|
12
12
|
PREVIOUS_HYDRA_VERSION = 'v6.0.0'
|
13
|
-
NEXT_HYDRA_VERSION = 'v6.1.0
|
13
|
+
NEXT_HYDRA_VERSION = 'v6.1.0'
|
14
14
|
DIFF_SUFFIX = 'diff'
|
15
15
|
TEMP_DIRECTORY = File.expand_path("../../tmp/", __FILE__)
|
16
16
|
|
@@ -21,34 +21,58 @@ class GemChange
|
|
21
21
|
@name, @previous_version, @next_version = name, previous_version, next_version
|
22
22
|
end
|
23
23
|
|
24
|
-
def
|
25
|
-
|
24
|
+
def with_projecthydra_changes
|
25
|
+
url = github_project_url
|
26
|
+
if url && commit_ids.any?
|
27
|
+
yield(url, commit_ids)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def commit_ids
|
32
|
+
@commit_ids ||= begin
|
26
33
|
# Assuming that you have all of your git project hydra repos in the same parent directory
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
out = stdout.read
|
32
|
-
err = stderr.read
|
33
|
-
exit_status = wait_thr.value
|
34
|
-
raise "Unable to execute command \"#{command}\"\n#{err}" unless exit_status.success?
|
35
|
-
ensure
|
36
|
-
stdin.close
|
37
|
-
stdout.close
|
38
|
-
stderr.close
|
39
|
-
end
|
40
|
-
if out.strip != ""
|
41
|
-
filenames = out.split("\n").collect(&:strip).uniq
|
42
|
-
filenames.each do |filename|
|
43
|
-
flat_filename = name + '-' + filename.gsub("/", '-')
|
44
|
-
`cd #{repository_directory} && git diff v#{previous_version}..v#{next_version} #{filename} > #{File.join(TEMP_DIRECTORY, flat_filename)}.#{DIFF_SUFFIX}`
|
45
|
-
end
|
46
|
-
filenames
|
34
|
+
command = "cd #{repository_directory} && git log -G'deprecat' -i v#{previous_version}..v#{next_version} --pretty=format:%H"
|
35
|
+
output = execute_command(command)
|
36
|
+
if output.strip != ""
|
37
|
+
output.split("\n").collect(&:strip).uniq
|
47
38
|
else
|
48
39
|
[]
|
49
40
|
end
|
50
41
|
end
|
51
42
|
end
|
43
|
+
|
44
|
+
protected
|
45
|
+
|
46
|
+
def github_project_url
|
47
|
+
command = "cd #{repository_directory} && git config --get remote.origin.url"
|
48
|
+
remote_url = execute_command(command).strip
|
49
|
+
if remote_url =~ /projecthydra/
|
50
|
+
remote_url.sub(/\A.*projecthydra\/([\w-]*).*\Z/, 'https://github.com/projecthydra/\1')
|
51
|
+
elsif remote_url =~ /projectblacklight/
|
52
|
+
remote_url.sub(/\A.*projectblacklight\/([\w-]*).*\Z/, 'https://github.com/projectblacklight/\1')
|
53
|
+
else
|
54
|
+
nil
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def repository_directory
|
59
|
+
File.expand_path("../../../#{name}", __FILE__)
|
60
|
+
end
|
61
|
+
|
62
|
+
def execute_command(command)
|
63
|
+
stdin, stdout, stderr, wait_thr = popen3(command)
|
64
|
+
begin
|
65
|
+
out = stdout.read
|
66
|
+
err = stderr.read
|
67
|
+
exit_status = wait_thr.value
|
68
|
+
raise "Unable to execute command \"#{command}\"\n#{err}" unless exit_status.success?
|
69
|
+
out
|
70
|
+
ensure
|
71
|
+
stdin.close
|
72
|
+
stdout.close
|
73
|
+
stderr.close
|
74
|
+
end
|
75
|
+
end
|
52
76
|
end
|
53
77
|
|
54
78
|
class Changes < Array
|
@@ -57,12 +81,17 @@ class Changes < Array
|
|
57
81
|
@previous_version, @next_version = previous_version, next_version
|
58
82
|
end
|
59
83
|
def print
|
60
|
-
$stdout.puts "Deprecation changes for Hydra #{previous_version}..#{next_version}"
|
84
|
+
$stdout.puts "Deprecation changes for Hydra #{previous_version}..#{next_version}\n\n"
|
61
85
|
each do |change|
|
62
|
-
|
63
|
-
|
64
|
-
|
86
|
+
change.with_projecthydra_changes do |github_project_url, commit_ids|
|
87
|
+
$stdout.puts "\tCommits for #{change.name} v#{change.previous_version}..v#{change.next_version}"
|
88
|
+
change.commit_ids.each do |commit_id|
|
89
|
+
$stdout.puts "\t\t" << commit_id << "\t" << File.join(github_project_url, 'commit', commit_id)
|
90
|
+
end
|
91
|
+
$stdout.puts "\n"
|
92
|
+
end
|
65
93
|
end
|
94
|
+
|
66
95
|
if any?
|
67
96
|
$stdout.puts "See tmp/ dir for diff output and review"
|
68
97
|
end
|
@@ -76,8 +105,6 @@ next_gemspec = File.new(File.expand_path("../../hydra-#{changes.next_version}.ge
|
|
76
105
|
|
77
106
|
begin
|
78
107
|
|
79
|
-
system("rm #{File.join(TEMP_DIRECTORY, "*.#{DIFF_SUFFIX}")}")
|
80
|
-
|
81
108
|
File.open(previous_gemspec.path, 'w+') do |f|
|
82
109
|
f.write `git show #{changes.previous_version}:hydra.gemspec`
|
83
110
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.2.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hydra-head
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 6.
|
20
|
+
version: 6.5.0.rc2
|
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
|
-
version: 6.
|
27
|
+
version: 6.5.0.rc2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: jettywrapper
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 6.7.
|
48
|
+
version: 6.7.6
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 6.7.
|
55
|
+
version: 6.7.6
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rails
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,14 +121,14 @@ dependencies:
|
|
121
121
|
requirements:
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 4.
|
124
|
+
version: 4.7.0
|
125
125
|
type: :runtime
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 4.
|
131
|
+
version: 4.7.0
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: nokogiri
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,14 +149,14 @@ dependencies:
|
|
149
149
|
requirements:
|
150
150
|
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
152
|
+
version: 1.7.1
|
153
153
|
type: :runtime
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.7.1
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
161
|
name: nom-xml
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,14 +228,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
228
|
version: '0'
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
230
|
requirements:
|
231
|
-
- - '
|
231
|
+
- - '>'
|
232
232
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
233
|
+
version: 1.3.1
|
234
234
|
requirements: []
|
235
235
|
rubyforge_project:
|
236
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.2.2
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: Project Hydra Stack Dependencies
|
240
240
|
test_files: []
|
241
|
-
has_rdoc:
|