hydra 6.0.0 → 6.1.0.pre1

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: 5f1e7d6a4d66a02b94e2577628ecfa01068b9bfe
4
- data.tar.gz: 87e14e52b73e41dc746d4412085e3d540cc84517
3
+ metadata.gz: 927eb8b7fa0597bb763acb9ded156d34fd027ac9
4
+ data.tar.gz: d92d8544fba8e69dd0ffd6fe040295cac3f5d13f
5
5
  SHA512:
6
- metadata.gz: cd5b10252b0f4a65be6b9d6efb896497ef0e68947041a13fb15c34bc98bfe3f7b157b7c9dbfaa6e3b559c97acd6e41493149df46e347b6b278abd8bb6c978b8c
7
- data.tar.gz: 8131f787bb558c7a8417bc7d84f10f296d8d1b0894a3474d7a584b94946ab80197c8be3349b225a89095b2c0643d16ca551c3e9e52d83bb94b1beae787356368
6
+ metadata.gz: 0272fdda5893ebec1d8edf707c610cf6069a1620d52f42a7f126d572fd51167ee5b102f257f41208a8d0bba3ead015f67bce9636d5ecf4159447c8157c934f03
7
+ data.tar.gz: ea7a2c202ab0ae712d03ca7de253fc1a50fbf1054240577096256bedb0bcc6f651eae8b8fd05c035ed7c94d755f7bdbb399c92ac950f25224acf65c89dc08e44
@@ -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/README.md CHANGED
@@ -1,18 +1,25 @@
1
- # Hydra
2
- This gem provides a distibution-like snapshot of all dependencies within the core hydra technology stack.
1
+ # Hydra
2
+ This gem provides a distibution-like snapshot of all dependencies within the core hydra technology stack.
3
3
 
4
- ## Code Status
4
+ ## Code Status
5
+ [![Gem Version](https://badge.fury.io/rb/hydra.png)](http://badge.fury.io/rb/hydra)
5
6
  [![Build Status](https://travis-ci.org/projecthydra/hydra-head.png?branch=master)](https://travis-ci.org/projecthydrahydra/hydra-head)
6
7
  [![Dependencies Status](https://gemnasium.com/projecthydra/hydra.png)](https://gemnasium.com/projecthydra/hydra)
7
8
 
8
- ## Contributing
9
- [Contributing to Project Hydra](CONTRIBUTING.md)
9
+ ## For Developers
10
10
 
11
- ## Developer Wiki
12
- https://github.com/projecthydra/hydra/wiki
11
+ * [Dive Into Hydra Tutorial](https://github.com/projecthydra/hydra/wiki/Dive-into-Hydra)
12
+ * [Developer Wiki](https://github.com/projecthydra/hydra/wiki)
13
+
14
+ ## Contributing
15
+ * [Contributing to Project Hydra](CONTRIBUTING.md)
13
16
 
14
17
  ## Installation
15
18
 
19
+ You may want to consider the [Dive Into Hydra Tutorial](https://github.com/projecthydra/hydra/wiki/Dive-into-Hydra).
20
+ Or perhaps you want a little more self-directed.
21
+ If so:
22
+
16
23
  Add this line to your application's Gemfile:
17
24
 
18
25
  gem 'hydra', :require => 'hydra6'
@@ -24,22 +31,22 @@ And then execute:
24
31
  Then run:
25
32
 
26
33
  $ rails g hydra:install
27
-
28
- ## Acknowledgements
29
- The initial insights and ideas behind producting a "distro-like" gem to reflect a particular known-good,
30
- point-in-time state of the Hydra technology stack resulted from a series of community discussions online,
34
+
35
+ ## Acknowledgements
36
+ The initial insights and ideas behind producting a "distro-like" gem to reflect a particular known-good,
37
+ point-in-time state of the Hydra technology stack resulted from a series of community discussions online,
31
38
  in e-mail, and in person during the period from December 2012 through June 2013. Huge thanks are owed to
32
39
  Jeremy Friesen (Notre Dame), Drew Myers (WGBH), Justin Coyne (Data Curation Experts),
33
- and Mark Bussey (Data Curation Experts) for activating on these ideas and implementing this gem.
40
+ and Mark Bussey (Data Curation Experts) for activating on these ideas and implementing this gem.
34
41
 
35
- A giant thank you is also owed to [Nick Gauthier](https://github.com/ngauthier) for offering up the Hydra gem name:
42
+ A giant thank you is also owed to [Nick Gauthier](https://github.com/ngauthier) for offering up the Hydra gem name.
36
43
 
37
- ### ngauthier-hydra
44
+ ### ngauthier-hydra
38
45
  If you are looking for the previous hydra gem, a distributed testing framework,
39
46
  please visit [https://github.com/ngauthier/hydra](https://github.com/ngauthier/hydra).
40
47
  If you need to previous hydra gem, you can use `gem ngauthier-hydra`.
41
48
 
42
- # Project Hydra
49
+ # Project Hydra
43
50
  This software has been developed by and is brought to you by the Hydra community. Learn more at the
44
51
  [Project Hydra website](http://projecthydra.org)
45
52
 
@@ -22,15 +22,17 @@ Gem::Specification.new do |gem|
22
22
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
23
23
  gem.require_paths = ["lib"]
24
24
 
25
- gem.add_dependency 'hydra-head', '~> 6.3.1'
25
+ gem.add_dependency 'hydra-head', '6.4.0.pre1'
26
26
  gem.add_dependency 'jettywrapper', '~> 1.4.1'
27
- gem.add_dependency 'active-fedora', '~> 6.4.0'
27
+ gem.add_dependency 'active-fedora', '6.6.0.pre1'
28
28
  gem.add_dependency 'rails', '>= 3.2.13', '< 5.0'
29
29
  gem.add_dependency 'om', '~> 3.0.1'
30
30
  gem.add_dependency 'solrizer', '~> 3.1.0'
31
31
  gem.add_dependency 'rsolr', '~> 1.0.9'
32
- gem.add_dependency 'blacklight', '~> 4.2.1'
32
+ # TODO Bl 4.5.0
33
+ gem.add_dependency 'blacklight', '~> 4.3.0'
33
34
  gem.add_dependency 'nokogiri', '~> 1.6.0'
34
35
  gem.add_dependency 'rubydora', '~> 1.6.5'
35
36
  gem.add_dependency 'nom-xml', '~> 0.5.1'
37
+ gem.add_development_dependency 'github_api', '~> 0.10.1'
36
38
  end
@@ -0,0 +1,11 @@
1
+ puts "REQUIRING HYDRA"
2
+ require "hydra/version"
3
+ require 'hydra-head'
4
+ require 'active-fedora'
5
+ require 'rails'
6
+ require 'om'
7
+ require 'solrizer'
8
+ require 'rsolr'
9
+ require 'blacklight'
10
+ require 'nokogiri'
11
+ require 'rubydora'
@@ -1,3 +1,3 @@
1
1
  module Hydra
2
- VERSION = "6.0.0"
2
+ VERSION = "6.1.0.pre1"
3
3
  end
@@ -6,20 +6,24 @@ function show_help() {
6
6
  echo " are merges or contain the following: \"$skip_tag\""
7
7
  echo
8
8
  echo "Format:"
9
- echo "commit subject [committer name]"
9
+ echo "YYYY-MM-DD: commit subject [committer name]"
10
10
  echo
11
11
  echo "Options:"
12
12
  echo "-v Verbose output (i.e. include full commit messages)"
13
13
  echo "-r <since>..<until> Range of commits to query, see \`git log\` for more"
14
14
  echo " defaults to most recent version tag (i.e. \"`default_range`\")"
15
+ echo "-b Add a banner to the output"
16
+ echo "-p Specify the working directory of the repository (default: \"$repository_path\")"
15
17
  }
16
18
 
17
19
  verbose=0
18
20
  range_parameter=0
21
+ banner=0
19
22
  skip_tag="\[log skip\]"
23
+ repository_path="./"
20
24
 
21
25
  function default_range() {
22
- local latest_version_tag=`git tag | grep ^v | sort | tail -1`
26
+ local latest_version_tag=`cd $repository_path && git tag | grep ^v | sort | tail -1`
23
27
  # a ".." range tag causes the `git log` command to fail
24
28
  if [ -z "$latest_version_tag" ]; then
25
29
  echo ''
@@ -28,22 +32,27 @@ function default_range() {
28
32
  fi
29
33
  }
30
34
 
31
- while getopts "h?vr:" opt; do
35
+ while getopts "h?bvp:r:" opt; do
32
36
  case $opt in
33
37
  h|\?)
34
38
  show_help
35
39
  exit 0
36
40
  ;;
41
+ b )
42
+ banner=1
43
+ ;;
37
44
  v )
38
45
  verbose=1
39
46
  ;;
40
47
  r )
41
48
  range_parameter=$OPTARG
42
49
  ;;
50
+ p )
51
+ repository_path=$OPTARG
52
+ ;;
43
53
  esac
44
54
  done;
45
55
 
46
-
47
56
  function get_range() {
48
57
  if [ $range_parameter = 0 ]; then
49
58
  default_range
@@ -56,7 +65,7 @@ range=`get_range`
56
65
 
57
66
  function get_format() {
58
67
  # Subject/author line wraps at 80 characters, no padding
59
- local format_subject_author="%w(80,0,0)%s [%cN]%n"
68
+ local format_subject_author="%w(80,0,0)%ad: %s [%cN]%n"
60
69
  if [ $verbose = 0 ]; then
61
70
  echo "tformat:$format_subject_author"
62
71
  else
@@ -65,13 +74,22 @@ function get_format() {
65
74
  }
66
75
  pretty_format=`get_format`
67
76
 
68
- function main() {
77
+ function changelog() {
69
78
  # Get a list of all SHA1 commits
70
79
  # Filter the list to exclude all SHA1 commits with $skip_tag
71
80
  # Then requery the log and output format
72
- git log $range --no-merges --format=%H $@ |
73
- grep -v -f <(git log $range --no-merges --format=%H "--grep=$skip_tag" $@) |
74
- git log $range --no-merges --pretty="$pretty_format" --stdin --no-walk
81
+ cd $repository_path && git log $range --no-merges --format=%H $@ |
82
+ grep -v -f <(cd $repository_path && git log $range --no-merges --format=%H --grep="$skip_tag" $@) |
83
+ git log $range --no-merges --pretty="$pretty_format" --date=short --stdin --no-walk
84
+ }
85
+
86
+ function main() {
87
+ if [ $banner = 1 ]; then
88
+ echo $range
89
+ echo $range | sed -e 's/./-/g'
90
+ echo ''
91
+ fi
92
+ changelog
75
93
  }
76
94
 
77
95
  main
@@ -0,0 +1,75 @@
1
+ # To run:
2
+ # $ ruby ./script/grant_revoke_gem_authority.rb
3
+ RUBYGEM_NAMES = [
4
+ 'active-fedora',
5
+ 'active_fedora-registered_attributes',
6
+ 'active_fedora_relsint',
7
+ 'fcrepo_admin',
8
+ 'hydra',
9
+ 'hydra-access-controls',
10
+ 'hydra-batch-edit',
11
+ 'hydra-core',
12
+ 'hydra-derivatives',
13
+ 'hydra-editor',
14
+ 'hydra-head',
15
+ 'hydra-ldap',
16
+ 'hydra-migrate',
17
+ 'hydra-mods',
18
+ 'hydra-role-management',
19
+ 'jettywrapper',
20
+ 'om',
21
+ 'rubydora',
22
+ 'solrizer',
23
+ 'solrizer-fedora',
24
+ 'sufia',
25
+ 'sufia-models',
26
+ ]
27
+
28
+ HYDRA_COMMITTER_EMAILS = [
29
+ "amsterdamos@gmail.com",
30
+ "armintor@gmail.com",
31
+ "bess@stanford.edu",
32
+ "cam156@psu.edu",
33
+ "chris@cbeer.info",
34
+ "cjcolvar@indiana.edu",
35
+ "dan.coughlin@gmail.com",
36
+ "dchandekstark@gmail.com",
37
+ "edwin.shin@yourmediashelf.com",
38
+ "jeremy.n.friesen@gmail.com",
39
+ "jessie.keck@gmail.com",
40
+ "john.scofield@yourmediashelf.com",
41
+ "justin@curationexperts.com",
42
+ "leftwing@alumni.rutgers.edu",
43
+ "matt@curationexperts.com",
44
+ "mbklein@gmail.com",
45
+ "montyhindman@gmail.com",
46
+ "mstrom81@gmail.com",
47
+ "ndushay@stanford.edu",
48
+ ]
49
+
50
+ @errors = []
51
+
52
+ def system_command_with_error_check(command)
53
+ if !system(command)
54
+ @errors << "ERROR FOR: #{command}"
55
+ end
56
+ end
57
+ RUBYGEM_NAMES.each do |gemname|
58
+ current_committers = `gem owner #{gemname} | grep -e ^-`.split("\n")
59
+ current_committers.collect! { |cc| cc.sub(/^.\s+/,'')}
60
+ committers_to_remove = current_committers - HYDRA_COMMITTER_EMAILS
61
+ committers_to_add = HYDRA_COMMITTER_EMAILS - current_committers
62
+
63
+ committers_to_remove.each do |email_to_remove|
64
+ system_command_with_error_check("gem owner #{gemname} -r #{email_to_remove}")
65
+ end
66
+
67
+ committers_to_add.each do |email_to_add|
68
+ system_command_with_error_check("gem owner #{gemname} -a #{email_to_add}")
69
+ end
70
+ end
71
+
72
+ if ! @errors.empty?
73
+ $stderr.puts("The following errors were encountered:")
74
+ $stderr.puts(%(#{@errors.join("\n")}))
75
+ end
@@ -0,0 +1,46 @@
1
+ require 'github_api'
2
+ require File.expand_path('../../lib/hydra/version', __FILE__)
3
+
4
+ ORGANIZATION_NAME = 'projecthydra'
5
+
6
+ #
7
+ # You will need to use one of your properly scoped Github authentication keys:
8
+ # $ curl -u 'YOUR GITHUB USERNAME' -d '{"scopes":["repo"],"note":"Read/Write for your Repos"}' https://api.github.com/authorizations
9
+ #
10
+ # Then run this script:
11
+ # `ruby script/push_contributing_docuemnt.rb SUPER-SECRET-TOKEN`
12
+ #
13
+ AUTHORIZATION_TOKEN = ARGV.fetch(0)
14
+
15
+ github = Github.new oauth_token: AUTHORIZATION_TOKEN
16
+
17
+ repos = github.repos.list(org: ORGANIZATION_NAME)
18
+ contributing_content = File.read(File.expand_path('../../CONTRIBUTING.md', __FILE__))
19
+
20
+ repos.each do |repo|
21
+ puts "Processing #{repo.full_name}"
22
+ begin
23
+ output = github.repos.contents.get(
24
+ ORGANIZATION_NAME, repo.name, 'CONTRIBUTING.md',
25
+ path:'CONTRIBUTING.md'
26
+ )
27
+ github.repos.contents.update(
28
+ ORGANIZATION_NAME, repo.name, 'CONTRIBUTING.md',
29
+ path:'CONTRIBUTING.md',
30
+ content: contributing_content,
31
+ sha: output.sha,
32
+ message: "Updating CONTRIBUTING.md as per Hydra v#{Hydra::VERSION}\n\n[ci skip]"
33
+ )
34
+ puts "Updated #{repo.full_name} CONTRIBUTING.md"
35
+ rescue Github::Error::NotFound
36
+ github.repos.contents.create(
37
+ ORGANIZATION_NAME, repo.name, 'CONTRIBUTING.md',
38
+ path:'CONTRIBUTING.md',
39
+ content: contributing_content,
40
+ message: "Updating CONTRIBUTING.md as per Hydra v#{Hydra::VERSION}\n\n[ci skip]"
41
+
42
+ )
43
+ puts "Created #{repo.full_name} CONTRIBUTING.md"
44
+ end
45
+ puts "Processed #{repo.full_name}"
46
+ 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.0.0
4
+ version: 6.1.0.pre1
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: 2013-07-05 00:00:00.000000000 Z
12
+ date: 2013-09-27 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.3.1
20
+ version: 6.4.0.pre1
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.3.1
27
+ version: 6.4.0.pre1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: jettywrapper
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -43,16 +43,16 @@ dependencies:
43
43
  name: active-fedora
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 6.4.0
48
+ version: 6.6.0.pre1
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.4.0
55
+ version: 6.6.0.pre1
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.2.1
124
+ version: 4.3.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.2.1
131
+ version: 4.3.0
132
132
  - !ruby/object:Gem::Dependency
133
133
  name: nokogiri
134
134
  requirement: !ruby/object:Gem::Requirement
@@ -171,6 +171,20 @@ dependencies:
171
171
  - - ~>
172
172
  - !ruby/object:Gem::Version
173
173
  version: 0.5.1
174
+ - !ruby/object:Gem::Dependency
175
+ name: github_api
176
+ requirement: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: 0.10.1
181
+ type: :development
182
+ prerelease: false
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: 0.10.1
174
188
  description: Project Hydra Stack Dependencies
175
189
  email:
176
190
  - jeremy.n.friesen@gmail.com
@@ -190,10 +204,13 @@ files:
190
204
  - Rakefile
191
205
  - hydra.gemspec
192
206
  - lib/generators/hydra/install_generator.rb
207
+ - lib/hydra.rb
193
208
  - lib/hydra/version.rb
194
209
  - lib/hydra6.rb
195
210
  - script/changelog.sh
196
211
  - script/contributors.sh
212
+ - script/grant_revoke_gem_authority.rb
213
+ - script/push_contributing_document.rb
197
214
  homepage: http://projecthydra.org/
198
215
  licenses: []
199
216
  metadata: {}
@@ -208,12 +225,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
225
  version: '0'
209
226
  required_rubygems_version: !ruby/object:Gem::Requirement
210
227
  requirements:
211
- - - '>='
228
+ - - '>'
212
229
  - !ruby/object:Gem::Version
213
- version: '0'
230
+ version: 1.3.1
214
231
  requirements: []
215
232
  rubyforge_project:
216
- rubygems_version: 2.0.3
233
+ rubygems_version: 2.0.5
217
234
  signing_key:
218
235
  specification_version: 4
219
236
  summary: Project Hydra Stack Dependencies