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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a613e5aa0a63b38a1e25e7d87e1230b12615893
4
- data.tar.gz: 1e9c07594df4c1cbbaf652d38eda69b8e4ce4104
3
+ metadata.gz: 9284e993f34211bfbb920de74e13dbfc8327f20e
4
+ data.tar.gz: ab277642364c2c6e17534b3d58b1464fcf863b06
5
5
  SHA512:
6
- metadata.gz: ff59581c3305d9f8a77198c58ac79c3d9653a37ac2945cdce5bc751084cde6298cb4d120b13c1ba66be7798499f0ffd55eee14dc2a131f31cae3215581f1256b
7
- data.tar.gz: 62878ce4da7dfd256133f8aa5e5c0f5e38f565deef13fca8f7262f729f906c36b25ac2ff1705c7cec31f288559040586b4eb2c7c90a40ce4ceafa83d4b200dd5
6
+ metadata.gz: fd363055dde9350b69f31265f7c5fe2b101e5ffb6b9221ff8d494875acf99c511ad7f84691bde03e38148ce59a81142f21cd9eb4a5f0906813a7c3433c269aaf
7
+ data.tar.gz: 0ade95cc7176e3bc4fb237bd23169307f74667c890bb6b46aee03753db7f8cdd209a27efd6c1d1555d0f4e8540b9ce5bbd03f31718b28b979af3220c42abfa7a
@@ -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)
@@ -1,3 +1,3 @@
1
1
  class Jettywrapper
2
- VERSION = "1.5.2"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -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.5.2
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-01-30 00:00:00.000000000 Z
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.0
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.