cellect-client 0.1.0 → 0.1.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: dd7ccc9dadde4698cc1ece04f0dabfe0473a7637
4
- data.tar.gz: d095442be297fe31ae2508fccb21d388c84e8117
3
+ metadata.gz: 129fe6dfd81a2dc3803eff22382bf4b4459f9dfa
4
+ data.tar.gz: 549e03b1ef6b3b13547572e6ddb954428ac6e5d7
5
5
  SHA512:
6
- metadata.gz: 693737c2f07639a1c923bcaf0d4234df7d695b39cad2f68e9709e777241b7e42fde5b5c3c60adbbc0acba60937ad92860a589d04015ac1b7c73338df7acc1588
7
- data.tar.gz: 72905c65b04ebd994af1a7016de1e2d5bde8cbd6efdecfef8b58090b98d6db8d99107f00ed02c153cad5041d113586bdc288401211e8d634c112a39493e23e07
6
+ metadata.gz: ed7f7ec09ce3ad76e90ec80b6f4ed0e5faedb88586fb25d991a0135f7270944fad5d93eeda6695c1e8559666e7620d8f178cac834c275d3de635925d75a932f2
7
+ data.tar.gz: bc3a249560c1ed274e85540a7bd228d4b9f52593aac0630a629b0d8b26833f5ae41c66232798740cb5e4b08cdb2d5a3b0f1025dfa97e852959a12d1e5ed5abb5
data/.travis.yml ADDED
@@ -0,0 +1,24 @@
1
+ language: ruby
2
+ cache: bundler
3
+
4
+ before_install:
5
+ - sudo add-apt-repository ppa:boost-latest/ppa -y
6
+ - sudo apt-get update -q
7
+ - sudo apt-get install -y autoconf automake boost1.55 libffi-dev
8
+
9
+ before_script:
10
+ - test `which zkServer.sh` && zkServer.sh stop && rm -rf /tmp/zookeeper/*; true
11
+ - wget -q -O - "http://mirrors.koehn.com/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz" | tar zx -C "$HOME/"
12
+ - export PATH="$PATH:/$HOME/zookeeper-3.4.6/bin"
13
+ - cp "$HOME/zookeeper-3.4.6/conf/zoo_sample.cfg" "$HOME/zookeeper-3.4.6/conf/zoo.cfg"
14
+ - zkServer.sh start
15
+
16
+ rvm:
17
+ - 2.1.5
18
+ - 2.1.2
19
+ - 2.2.0
20
+
21
+ jdk:
22
+ - openjdk7
23
+
24
+ script: ZK_URL=localhost:2181 bundle exec rake
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cellect
1
+ # Cellect [![Build Status](https://travis-ci.org/zooniverse/Cellect.svg?branch=master)](https://travis-ci.org/zooniverse/Cellect)
2
2
 
3
3
  This is a work in progress
4
4
 
@@ -1,3 +1,3 @@
1
1
  module Cellect
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -14,6 +14,7 @@ shared_examples_for 'node set' do
14
14
  end
15
15
 
16
16
  it 'should accept a connection string' do
17
+ url_before = ENV['ZK_URL']
17
18
  begin
18
19
  pass_until node_set, is: :ready
19
20
  ENV['ZK_URL'] = 'foobar'
@@ -21,7 +22,7 @@ shared_examples_for 'node set' do
21
22
  ENV.delete 'ZK_URL'
22
23
  expect(node_set.send(:zk_url)).to eq 'localhost:2181'
23
24
  ensure
24
- ENV['ZK_URL'] = 'localhost:21811'
25
+ ENV['ZK_URL'] = url_before
25
26
  end
26
27
  end
27
28
  end
@@ -6,8 +6,8 @@ shared_examples_for 'workflow' do |name|
6
6
  end
7
7
 
8
8
  it 'should add singleton instances to the registry' do
9
- expect(obj.class[:foo]).to be_a_kind_of Cellect::Server::Workflow
10
- expect(obj.class[:foo].object_id).to eq obj.class[:foo].object_id
9
+ expect(obj.class[obj.name]).to be_a_kind_of Cellect::Server::Workflow
10
+ expect(obj.class[obj.name].object_id).to eq obj.class[obj.name].object_id
11
11
  end
12
12
 
13
13
  it 'should initialize empty' do
@@ -1,8 +1,12 @@
1
1
  require 'oj'
2
2
 
3
3
  class SpecAdapter < Cellect::Server::Adapters::Default
4
- def workflow_list
5
- fixtures.values
4
+ def workflow_list(*names)
5
+ if names.empty?
6
+ fixtures.values
7
+ else
8
+ fixtures.values_at(*names)
9
+ end
6
10
  end
7
11
 
8
12
  def load_data_for(workflow_name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cellect-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Parrish
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-12 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -173,6 +173,7 @@ extra_rdoc_files: []
173
173
  files:
174
174
  - ".gitignore"
175
175
  - ".rspec"
176
+ - ".travis.yml"
176
177
  - Gemfile
177
178
  - README.md
178
179
  - Rakefile