jettywrapper 1.4.0 → 1.4.1

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: 0ec0896737d3b6280dd860cf58a545b7d2981a5f
4
- data.tar.gz: c07c9985c43d31605ad61466649cdecb62369995
3
+ metadata.gz: 5d5d0b9a04e3888b74d2ff224194e07561b8b585
4
+ data.tar.gz: 4ac859cff668c516cf5e09cb28901cecd8878c19
5
5
  SHA512:
6
- metadata.gz: cea4d28ccafdbc46d26899bc3b28dab6e0880e3d4108e7d78542407e8d1ff5d96ff06305e9db96ef139f887ac4d1a76140a05f465a0c9a97fe3f03e3fa4b0b99
7
- data.tar.gz: 49e83df77c93fdd816cd56cc2fba3d98440a9fe20ea9b5d43761803957fb3df9002a854733e9f9b1c7838173cce718afa28b90a7f7c9724a007ffe959850e506
6
+ metadata.gz: 1b3e543901d470e3d5b101e468d23c86ca71eee5476d4bae0095673364fb7eeef886b77fe2ce8ec9ee1da1a1663008c24c0e13175309f15e5f9011699f18684d
7
+ data.tar.gz: bb2ebeac2b6ee3bbe48d31cc03f12742a0db629d7f0381c4db981266267efbe4dcab1daa6c9551849bbd1a65a2ea40b0a8c14a042b7c5b92b99b9713604b2860
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour
@@ -1,5 +1,6 @@
1
1
  h1. jettywrapper
2
2
 
3
+ !https://travis-ci.org/projecthydra/jettywrapper.png?branch=master!:https://travis-ci.org/projecthydra/jettywrapper
3
4
 
4
5
  This gem is designed to make it easier to integrate a jetty servlet container into a rails project.
5
6
  Jettywrapper provides rake tasks for starting and stopping jetty, as well as a method (Jettywrapper.wrap) that will start the server before the block and stop the server after the block, which is useful for automated testing.
@@ -45,19 +46,11 @@ If you haven't already, clone the git repository
45
46
  cd jettywrapper
46
47
  </pre>
47
48
 
48
- If you're using RVM (recommended), use the .rvmrc
49
49
 
50
- <pre>
51
- source .rvmrc
52
- rvm list gemsets
53
- </pre>
54
-
55
- Install the gems and pull the submodules
50
+ Install the gems
56
51
 
57
52
  <pre>
58
53
  bundle install
59
- git submodule init
60
- git submodule update
61
54
  </pre>
62
55
 
63
56
  Run the tests
@@ -64,11 +64,11 @@ class Jettywrapper
64
64
  'jetty'
65
65
  end
66
66
 
67
- def download(url = 'https://github.com/projecthydra/hydra-jetty/archive/new-solr-schema.zip')
68
- self.url = url
69
- logger.info "Downloading jetty..."
67
+ def download(url = nil)
68
+ self.url = url if url
69
+ logger.info "Downloading jetty at #{self.url} ..."
70
70
  FileUtils.mkdir tmp_dir unless File.exists? tmp_dir
71
- system "curl -L #{url} -o #{zip_file}"
71
+ system "curl -L #{self.url} -o #{zip_file}"
72
72
  abort "Unable to download jetty from #{url}" unless $?.success?
73
73
  end
74
74
 
@@ -1 +1 @@
1
- GEMVERSION = "1.4.0"
1
+ GEMVERSION = "1.4.1"
@@ -9,10 +9,12 @@ namespace :jetty do
9
9
  Jettywrapper.download
10
10
  end
11
11
 
12
+ desc "unzip the downloaded jetty archive"
12
13
  task :unzip do
13
14
  Jettywrapper.unzip
14
15
  end
15
16
 
17
+ desc "remove the jetty directory and recreate it"
16
18
  task :clean do
17
19
  Jettywrapper.clean
18
20
  end
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.0
4
+ version: 1.4.1
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: 2013-03-08 00:00:00.000000000 Z
13
+ date: 2013-03-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: logger
@@ -148,6 +148,7 @@ extra_rdoc_files: []
148
148
  files:
149
149
  - .gitignore
150
150
  - .gitmodules
151
+ - .rspec
151
152
  - .travis.yml
152
153
  - Gemfile
153
154
  - History.txt