ddr-aux-client 1.0.0.pre.1 → 1.0.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -1
- data/.travis.yml +2 -0
- data/Rakefile +79 -0
- data/ddr-aux-client.gemspec +1 -0
- data/lib/ddr_aux/client/connection.rb +1 -0
- data/lib/ddr_aux/client/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31197b9651a51315445e6f9bfc04e6faa0de2f40
|
4
|
+
data.tar.gz: ff33e60db4077f1ea983e11aefda299d0b1d9724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d50c615065904036ca7c202a62bcbdb9ea36c905f8fd9ad60b3707a201e9bd38aacb432e90e23552853f3a5157470a5159651e9c3bfbb0827322627745ba2e7f
|
7
|
+
data.tar.gz: 24ef52d637adfccf4b534d560b71846597781d0d2fc32189a98e6a0d879c339a22e0b307728a1a8421f0c1bea72bf8152c6526fa4c580e9afa9abe58860004f0
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
@@ -4,3 +4,82 @@ require "rspec/core/rake_task"
|
|
4
4
|
RSpec::Core::RakeTask.new(:spec)
|
5
5
|
|
6
6
|
task :default => :spec
|
7
|
+
|
8
|
+
DDR_AUX_VERSION = "1.0.0.rc2"
|
9
|
+
DDR_AUX_DOWNLOAD = "https://github.com/duke-libraries/ddr-aux/archive/v#{DDR_AUX_VERSION}.zip"
|
10
|
+
DDR_AUX_ZIP = "ddr-aux.zip"
|
11
|
+
DDR_AUX_HOST = "127.0.0.1"
|
12
|
+
DDR_AUX_PORT = "3030"
|
13
|
+
|
14
|
+
namespace :tmp do
|
15
|
+
desc "Create tmp directory"
|
16
|
+
task :create do
|
17
|
+
system "mkdir -p tmp"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
namespace :ddr_aux do
|
22
|
+
desc "Cleanup ddr-aux app"
|
23
|
+
task :clean do
|
24
|
+
Dir.chdir("tmp") do
|
25
|
+
system "rm -rf ddr-aux"
|
26
|
+
system "rm", DDR_AUX_ZIP
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
desc "Download ddr-aux release"
|
31
|
+
task :download => ["tmp:create"] do
|
32
|
+
Dir.chdir("tmp") do
|
33
|
+
system "curl", "-kL", "-o", DDR_AUX_ZIP, DDR_AUX_DOWNLOAD
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
desc "Unzip ddr-aux download"
|
38
|
+
task :unzip do
|
39
|
+
Dir.chdir("tmp") do
|
40
|
+
system "unzip", DDR_AUX_ZIP
|
41
|
+
system "mv ddr-aux-#{DDR_AUX_VERSION} ddr-aux"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
desc "Initialize ddr-aux app"
|
46
|
+
task :init do
|
47
|
+
Dir.chdir("tmp/ddr-aux") do
|
48
|
+
system "bin/bundle install"
|
49
|
+
system "bin/bundle exec bin/rake db:setup"
|
50
|
+
end
|
51
|
+
puts "ddr-aux app installed."
|
52
|
+
end
|
53
|
+
|
54
|
+
desc "Install ddr-aux app"
|
55
|
+
task :install => [:clean, :download, :unzip, :init]
|
56
|
+
|
57
|
+
desc "Start ddr-aux development server"
|
58
|
+
task :start do
|
59
|
+
Dir.chdir("tmp/ddr-aux") do
|
60
|
+
system("bin/bundle exec bin/rails server -d -b #{DDR_AUX_HOST} -p #{DDR_AUX_PORT}")
|
61
|
+
end
|
62
|
+
puts "ddr-aux development server started."
|
63
|
+
end
|
64
|
+
|
65
|
+
desc "Stop ddr-aux development server"
|
66
|
+
task :stop do
|
67
|
+
Dir.chdir("tmp/ddr-aux") do
|
68
|
+
system "kill -s QUIT $(cat tmp/pids/server.pid)"
|
69
|
+
end
|
70
|
+
puts "ddr-aux development server stopped."
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
desc "CI build"
|
75
|
+
task :ci do
|
76
|
+
unless Dir.exist?("tmp/ddr-aux")
|
77
|
+
Rake::Task["ddr_aux:install"].invoke
|
78
|
+
end
|
79
|
+
Rake::Task["ddr_aux:start"].invoke
|
80
|
+
begin
|
81
|
+
Rake::Task["spec"].invoke
|
82
|
+
ensure
|
83
|
+
Rake::Task["ddr_aux:stop"].invoke
|
84
|
+
end
|
85
|
+
end
|
data/ddr-aux-client.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-aux-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chandek-Stark
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-its
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description:
|
56
70
|
email:
|
57
71
|
- dchandekstark@gmail.com
|