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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b61f7264be61118ea520153359725d26fcca9fde
4
- data.tar.gz: 50e9500f36c7df7b237369d67cac26e8117cf741
3
+ metadata.gz: 31197b9651a51315445e6f9bfc04e6faa0de2f40
4
+ data.tar.gz: ff33e60db4077f1ea983e11aefda299d0b1d9724
5
5
  SHA512:
6
- metadata.gz: 0a4b97d343559d22563ac2de3c1262a3f6f8803c6a5d6acad9a6b9705ee2633db37ed5b3fb5977f58efc242d7295683b8fa1c0acf1484c741fd3ec27cafec108
7
- data.tar.gz: c9470a0dc51fb64753dd3ca7649dddc0b610f26f72487a21fa1b381971142c22a1420d4a34dd9153594cfd8073d12c9da10ba920dd69fb76c7be3da015ea837d
6
+ metadata.gz: d50c615065904036ca7c202a62bcbdb9ea36c905f8fd9ad60b3707a201e9bd38aacb432e90e23552853f3a5157470a5159651e9c3bfbb0827322627745ba2e7f
7
+ data.tar.gz: 24ef52d637adfccf4b534d560b71846597781d0d2fc32189a98e6a0d879c339a22e0b307728a1a8421f0c1bea72bf8152c6526fa4c580e9afa9abe58860004f0
data/.rspec CHANGED
@@ -1,2 +1,2 @@
1
- --format documentation
2
1
  --color
2
+ --require spec_helper
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2.1
4
+ - 2.1.5
4
5
  before_install: gem install bundler -v 1.10.2
6
+ script: rake ci
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
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency "bundler", "~> 1.10"
21
21
  spec.add_development_dependency "rake", "~> 10.0"
22
22
  spec.add_development_dependency "rspec"
23
+ spec.add_development_dependency "rspec-its"
23
24
  end
@@ -1,5 +1,6 @@
1
1
  require 'net/http'
2
2
  require 'json'
3
+ require 'delegate'
3
4
 
4
5
  module DdrAux::Client
5
6
  class Connection < SimpleDelegator
@@ -1,5 +1,5 @@
1
1
  module DdrAux
2
2
  module Client
3
- VERSION = "1.0.0.pre.1"
3
+ VERSION = "1.0.0.pre.2"
4
4
  end
5
5
  end
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.1
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-09 00:00:00.000000000 Z
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