jettywrapper 1.5.2 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jettywrapper.rb +2 -2
- data/lib/jettywrapper/version.rb +1 -1
- data/spec/lib/jettywrapper_spec.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9284e993f34211bfbb920de74e13dbfc8327f20e
|
4
|
+
data.tar.gz: ab277642364c2c6e17534b3d58b1464fcf863b06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd363055dde9350b69f31265f7c5fe2b101e5ffb6b9221ff8d494875acf99c511ad7f84691bde03e38148ce59a81142f21cd9eb4a5f0906813a7c3433c269aaf
|
7
|
+
data.tar.gz: 0ade95cc7176e3bc4fb237bd23169307f74667c890bb6b46aee03753db7f8cdd209a27efd6c1d1555d0f4e8540b9ce5bbd03f31718b28b979af3220c42abfa7a
|
data/lib/jettywrapper.rb
CHANGED
@@ -39,7 +39,7 @@ class Jettywrapper
|
|
39
39
|
# Methods outside the class << self block must be called on Jettywrapper.instance, as instance methods.
|
40
40
|
class << self
|
41
41
|
|
42
|
-
attr_writer :hydra_jetty_version, :url, :tmp_dir
|
42
|
+
attr_writer :hydra_jetty_version, :url, :tmp_dir, :jetty_dir
|
43
43
|
def hydra_jetty_version
|
44
44
|
@hydra_jetty_version ||= 'v7.0.0'
|
45
45
|
end
|
@@ -58,7 +58,7 @@ class Jettywrapper
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def jetty_dir
|
61
|
-
'jetty'
|
61
|
+
@jetty_dir ||= 'jetty'
|
62
62
|
end
|
63
63
|
|
64
64
|
def download(url = nil)
|
data/lib/jettywrapper/version.rb
CHANGED
@@ -118,6 +118,22 @@ require 'rubygems'
|
|
118
118
|
|
119
119
|
end
|
120
120
|
|
121
|
+
context ".jetty_dir" do
|
122
|
+
subject {Jettywrapper}
|
123
|
+
context "when a dir is set" do
|
124
|
+
before do
|
125
|
+
subject.jetty_dir = '/opt/jetty'
|
126
|
+
end
|
127
|
+
its(:jetty_dir) {should == '/opt/jetty'}
|
128
|
+
end
|
129
|
+
context "when dir is not set" do
|
130
|
+
before do
|
131
|
+
subject.jetty_dir = nil
|
132
|
+
end
|
133
|
+
its(:jetty_dir) {should == 'jetty'}
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
121
137
|
context "app_root" do
|
122
138
|
subject {Jettywrapper}
|
123
139
|
context "When rails is present" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jettywrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: logger
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: 1.3.6
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.2.
|
173
|
+
rubygems_version: 2.2.2
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Convenience tasks for working with jetty from within a ruby project.
|