cul_scv_hydra 0.15.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjMwMTA4NzFkZDdjYzVlNDFkZWY4MTUxMzIwNWRjMzlhZjNkZjY5Mw==
4
+ NDVmYWExNmFiMzM4ZTJiZDRkYzI4MjNkNjhmNzA4ODBjYzI2OTJiMg==
5
5
  data.tar.gz: !binary |-
6
- YjYwYzkxNjFlY2VmY2UzOTRiY2MwZmJhNWEwMGJhOWJhODhhY2UwYg==
6
+ ZTA2YmI3ZGYxZTkzYmViOWQyNTgwOGI5ZGVlZjJmNjY3ZDJhZjgzNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2NiZjkxOTQ4YjEyNGE1NTE0YWVhNzQxNTdlZDVmMGRlOTk0NmU4ZDNlMzgw
10
- NWJhNDJlMGY4MmFkYWQzMjg5MmVjYjY4NGM5NjhhMDgzZTRkNzE3MWFhYWE1
11
- MjllZTg4Y2NkODhlNDZjYmE1NDdiZWYwYTQxNDY3ZmUyODYzY2Q=
9
+ YmUzMmRiYTZjOGVkNDJjMjdlODVjNjk4NjJhZjVkNWQ2NWVjOWY2N2Y0ZjVj
10
+ ODMyM2Q2Y2RkZGJkMDMxZDE3NTA5ZWVlMDE4MmZkOWI5MjU2OGI1YjZkOTQw
11
+ N2EzNjczNTBkMmFhMjUyOTgzMTExNjk1ODlkOTcwYWQwNmFmMmI=
12
12
  data.tar.gz: !binary |-
13
- NDY3Njc4ZTJjOTRjMzNjNWE0ZWE1YjZlNzVkM2Q4MTUxZGU4ZjI0NzYwMDE0
14
- YmI4YmRmMzdhODUzNTNmNzNjN2YyZGExNGI3MzJlMmE5MGRjNGMwYWM1MDQ4
15
- NTkyN2VmMjJkNjBhMTE5NmM5MWNiNmNlZDExZTBiMWYzMTZiNDA=
13
+ MjJmYzMyOTVlOWY5NWQ5N2M3YjYwYjEzY2I5NDY0OWEyOWEzYjRhZWJlOTU4
14
+ MTljNGE5YzdjZTc2MmJlZTYzZWUxNzZmMDRiNmQ3NWNhODk1Y2FkMDU4YTg3
15
+ MDRkYjYyMTY0N2MzNzg5NGIyNjVmYWQ3OWZmNDE4Njk4ZDM5MGI=
@@ -1,7 +1,7 @@
1
1
  module Cul
2
2
  module Scv
3
3
  module Hydra
4
- VERSION = '0.15.0'
4
+ VERSION = '0.15.1'
5
5
  def self.version
6
6
  VERSION
7
7
  end
@@ -5,39 +5,44 @@ JETTY_ZIP_BASENAME = 'master'
5
5
  Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/#{JETTY_ZIP_BASENAME}.zip"
6
6
 
7
7
  namespace :cul_hydra do
8
- require 'rspec/core/rake_task'
9
- RSpec::Core::RakeTask.new(:rspec) do |spec|
10
- spec.pattern = FileList['spec/**/*_spec.rb']
11
- spec.pattern += FileList['spec/*_spec.rb']
12
- spec.rspec_opts = ['--backtrace'] if ENV['CI']
13
- end
8
+ begin
9
+ require 'rspec/core/rake_task'
10
+ RSpec::Core::RakeTask.new(:rspec) do |spec|
11
+ spec.pattern = FileList['spec/**/*_spec.rb']
12
+ spec.pattern += FileList['spec/*_spec.rb']
13
+ spec.rspec_opts = ['--backtrace'] if ENV['CI']
14
+ end
14
15
 
15
- RSpec::Core::RakeTask.new(:rcov) do |spec|
16
- spec.pattern = FileList['spec/**/*_spec.rb']
17
- spec.pattern += FileList['spec/*_spec.rb']
18
- spec.rcov = true
16
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
17
+ spec.pattern = FileList['spec/**/*_spec.rb']
18
+ spec.pattern += FileList['spec/*_spec.rb']
19
+ spec.rcov = true
20
+ end
21
+ rescue Exception => e
22
+ puts "Exception creating rspec rake tasks: check for development environment?"
23
+ puts e
19
24
  end
20
25
 
21
- desc "CI build"
22
- task :ci do
23
- ENV['environment'] = "test"
24
- #Rake::Task["active_fedora:configure_jetty"].invoke
25
- jetty_params = Jettywrapper.load_config
26
- error = Jettywrapper.wrap(jetty_params) do
27
- Rake::Task["cul_scv_hydra:cmodel:reload_all"].invoke
28
- Rake::Task['cul_hydra:coverage'].invoke
26
+ desc "CI build"
27
+ task :ci do
28
+ ENV['environment'] = "test"
29
+ #Rake::Task["active_fedora:configure_jetty"].invoke
30
+ jetty_params = Jettywrapper.load_config
31
+ error = Jettywrapper.wrap(jetty_params) do
32
+ Rake::Task["cul_scv_hydra:cmodel:reload_all"].invoke
33
+ Rake::Task['cul_hydra:coverage'].invoke
34
+ end
35
+ raise "test failures: #{error}" if error
29
36
  end
30
- raise "test failures: #{error}" if error
31
- end
32
37
 
33
- desc "Execute specs with coverage"
34
- task :coverage do
35
- # Put spec opts in a file named .rspec in root
36
- ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"
37
- ENV['COVERAGE'] = 'true' unless ruby_engine == 'jruby'
38
+ desc "Execute specs with coverage"
39
+ task :coverage do
40
+ # Put spec opts in a file named .rspec in root
41
+ ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"
42
+ ENV['COVERAGE'] = 'true' unless ruby_engine == 'jruby'
38
43
 
39
- # Rake::Task["active_fedora:fixtures"].invoke
40
- Rake::Task["cul_hydra:rspec"].invoke
41
- end
44
+ # Rake::Task["active_fedora:fixtures"].invoke
45
+ Rake::Task["cul_hydra:rspec"].invoke
46
+ end
42
47
 
43
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor