cul_hydra_models 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cul_hydra_models/version.rb +1 -1
- data/lib/cul_hydra_models/version.rb~ +1 -1
- data/lib/tasks/ci.rake +11 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eb145dbc19156b81e92a6b0489c8379e6ebe5df
|
4
|
+
data.tar.gz: b723f982ba7e772e9783dd59192e2e2e84515112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb7c5a010d14f45ba4889d064f459bb15046933a2c5d50dbf92f37ff82e3364b0fcfe8802b6290e7902f3849f903dc3aba62e1c74c9805f36d997bafea6b56c6
|
7
|
+
data.tar.gz: e77365f1d97baa3d16e7f0ad16aeaef456a66fe23c6bc8982a7868ba1484b954d6ab37e4871e157ae407fdc23730530796aa2d7011192cfa5310932f0cabc212
|
data/lib/tasks/ci.rake
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
require 'jettywrapper'
|
2
|
+
Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/7.x-stable.zip"
|
3
|
+
Jettywrapper.jetty_dir = File.join(Rails.root, 'jetty') # This places the jetty directory inside of the dummy app
|
4
|
+
|
1
5
|
namespace :cul_hydra_models do
|
2
6
|
|
3
7
|
begin
|
@@ -33,24 +37,24 @@ namespace :cul_hydra_models do
|
|
33
37
|
|
34
38
|
desc "CI build without rubocop"
|
35
39
|
task :ci_nocop do
|
36
|
-
|
40
|
+
ENV['RAILS_ENV'] = 'test'
|
41
|
+
Rails.env = ENV['RAILS_ENV']
|
42
|
+
Rake::Task["cul_hydra_models:ci_task"].invoke
|
37
43
|
end
|
38
44
|
|
39
45
|
desc "CI build with Rubocop validation"
|
40
46
|
task ci: ['cul_hydra_models:rubocop'] do
|
41
|
-
|
47
|
+
ENV['RAILS_ENV'] = 'test'
|
48
|
+
Rails.env = ENV['RAILS_ENV']
|
49
|
+
Rake::Task["cul_hydra_models:ci_task"].invoke
|
42
50
|
end
|
43
51
|
|
44
52
|
desc "CI build"
|
45
53
|
task :ci_task do
|
46
|
-
require 'jettywrapper'
|
47
|
-
Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/7.x-stable.zip"
|
48
|
-
Jettywrapper.jetty_dir = File.join(Rails.root, 'tmp', 'jetty-test')
|
49
|
-
|
50
54
|
unless File.exists?(Jettywrapper.jetty_dir)
|
51
55
|
puts "\nNo test jetty found. Will download / unzip a copy now.\n"
|
52
56
|
end
|
53
|
-
Rake::Task["jetty:clean"].invoke
|
57
|
+
Rake::Task["app:jetty:clean"].invoke
|
54
58
|
|
55
59
|
jetty_params = Jettywrapper.load_config.merge(jetty_home: Jettywrapper.jetty_dir)
|
56
60
|
puts "Starting Fedora 3 (jettywrapper)...\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cul_hydra_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric O'Hanlon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|