cognito-client 0.5.0 → 0.5.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: 86e3186a7250f7e2aece863f01c09823bdff4864
4
- data.tar.gz: 7d3ac5b3649e5027f309ced4325b132e369b5385
3
+ metadata.gz: c66b88f6616e6681225850d0a0cb7fe3b79efb99
4
+ data.tar.gz: 7667ddecc066851b8c7c550cc9e186c0173eec5b
5
5
  SHA512:
6
- metadata.gz: f60da529529285bc97b3ead92afbd912a5c82314b2725b914afffb19b5d26769d111c1f20f8b78a00f4cc3dfce01d71898298b51bf58a4615dce2df49f705413
7
- data.tar.gz: 3c18ced1a8f32d98ab893982135b358851536b3822706bc824370eac98ef30a9ada94bfbaa34c35280b532c415cc19877ee5b7fd91d20e0fbf9d9b3b0a4cbd69
6
+ metadata.gz: ed5cda472d5e6957ed3cb726a20729685ab5db07459fe6b9ed6e965cc5c6687be032ba5bc0437f27a577a5f610bc8e67f07591dd3d35f7c12795f3b92f221df9
7
+ data.tar.gz: 74b03d62cc5df4944f0244dec3663929f3afd01360119c57ee9f3dad589f00f3ac586809a039377dea5675d74cc3bc274a8adcb294af24cfc3796d954f8a0dcf
data/Gemfile CHANGED
@@ -11,12 +11,6 @@ group(:tools) do
11
11
  # Rspec integration for mutant
12
12
  gem 'mutant-rspec', '~> 0.8.8'
13
13
 
14
- # Watches file system and invokes commands according to mapping rules
15
- gem 'guard', '~> 2.14.0'
16
-
17
- # Plugin to guard for RSpec tooling
18
- gem 'guard-rspec', '~> 4.7.2'
19
-
20
14
  # A metagem wrapping development tools:
21
15
  # procto,
22
16
  # adamantium,
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cognito Client
1
+ # Cognito Client [![CircleCI](https://circleci.com/gh/opendoor-labs/cognito.svg?style=shield)](https://circleci.com/gh/opendoor-labs/cognito)
2
2
 
3
3
  Unofficial Ruby client for the BlockScore Cognito API. This library was designed using a [command-query separation principle](https://en.wikipedia.org/wiki/Command–query_separation).
4
4
 
@@ -7,13 +7,19 @@ Unofficial Ruby client for the BlockScore Cognito API. This library was designed
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'cognito-client', require: 'cognito'
10
+ gem 'cognito-client'
11
11
  ```
12
12
 
13
13
  And then execute:
14
14
 
15
15
  $ bundle
16
16
 
17
+ In your code or in IRB you can include the library with:
18
+
19
+ ```
20
+ require 'cognito/client'
21
+ ```
22
+
17
23
  ## Usage
18
24
 
19
25
  ### Creating a client
data/circle.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  ---
2
- machine:
3
- ruby:
4
- version: '2.3.1'
2
+ dependencies:
3
+ override:
4
+ - ./circleci.sh build
5
5
  test:
6
6
  override:
7
- - bundle exec rake ci
7
+ - ./circleci.sh spec:
8
+ parallel: true
data/circleci.sh ADDED
@@ -0,0 +1,35 @@
1
+ #!/bin/bash
2
+ RUBY_VERSIONS=(2.2.5 2.3.1)
3
+ CIRCLE_NODE_RUBY_VERSION="${RUBY_VERSIONS[$CIRCLE_NODE_INDEX]}"
4
+ NUM_RUBIES=${#RUBY_VERSIONS[@]}
5
+ METRICS_BUILD_RUBY_VERSION="2.3.1"
6
+
7
+ if [ "$CIRCLE_NODE_TOTAL" -le "$NUM_RUBIES" ]; then
8
+ echo "Cannot test $NUM_RUBIES ruby versions and metrics on $CIRCLE_NODE_TOTAL containers"
9
+ exit 1
10
+ fi
11
+
12
+ # Exit early if there are more containers than ruby versions to test
13
+ if [ "$CIRCLE_NODE_INDEX" -gt "$NUM_RUBIES" ]; then
14
+ echo "Ignoring extra container"
15
+ exit 0
16
+ fi
17
+
18
+ # Determine current build type (metrics or tests)
19
+ if [ "$CIRCLE_NODE_INDEX" -eq $((CIRCLE_NODE_TOTAL-1)) ]; then
20
+ BUILD="metrics"
21
+ CIRCLE_NODE_RUBY_VERSION=$METRICS_BUILD_RUBY_VERSION
22
+ else
23
+ BUILD="tests"
24
+ fi
25
+
26
+ if [[ "$1" = "build" ]]; then
27
+ echo "Bundle installing for $CIRCLE_NODE_RUBY_VERSION"
28
+ rvm-exec $CIRCLE_NODE_RUBY_VERSION bundle install;
29
+ elif [[ "$1" = "spec" && "$BUILD" = "tests" ]]; then
30
+ echo "Running tests for $CIRCLE_NODE_RUBY_VERSION"
31
+ rvm-exec $CIRCLE_NODE_RUBY_VERSION rspec;
32
+ elif [[ "$1" = "spec" && "$BUILD" = "metrics" ]]; then
33
+ echo "Running metrics for $CIRCLE_NODE_RUBY_VERSION"
34
+ rvm-exec $CIRCLE_NODE_RUBY_VERSION bundle exec rake ci;
35
+ fi
data/cognito.gemspec CHANGED
@@ -7,8 +7,8 @@ require 'cognito/version'
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'cognito-client'
9
9
  spec.version = Cognito::VERSION
10
- spec.authors = ['Connor Jacobsen']
11
- spec.email = ['connor@opendoor.com']
10
+ spec.authors = ['Connor Jacobsen', 'Delmer Reed', 'Alain Meier']
11
+ spec.email = ['connor@opendoor.com', 'delmer@blockscore.com', 'alain@blockscore.com']
12
12
 
13
13
  spec.summary = 'Unofficial Ruby client for the BlockScore Cognito API'
14
14
  spec.homepage = 'https://github.com/opendoor-labs/cognito'
data/config/flog.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  ---
2
2
  threshold: 17.8
3
3
  lib_dirs:
4
- - -lib/cog/client/request.rb # Uses squiggly heredoc
5
4
  - lib
@@ -1,6 +1,4 @@
1
1
  # frozen_string_literal: true
2
- require 'bundler/setup'
3
-
4
2
  require 'concord'
5
3
  require 'anima'
6
4
  require 'procto'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class Cognito
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end # Cognito
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cognito-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connor Jacobsen
8
+ - Delmer Reed
9
+ - Alain Meier
8
10
  autorequire:
9
11
  bindir: exe
10
12
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
13
+ date: 2016-10-13 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: bundler
@@ -165,6 +167,8 @@ dependencies:
165
167
  description:
166
168
  email:
167
169
  - connor@opendoor.com
170
+ - delmer@blockscore.com
171
+ - alain@blockscore.com
168
172
  executables: []
169
173
  extensions: []
170
174
  extra_rdoc_files: []
@@ -172,13 +176,13 @@ files:
172
176
  - ".gitignore"
173
177
  - ".rspec"
174
178
  - Gemfile
175
- - Guardfile
176
179
  - LICENSE.txt
177
180
  - README.md
178
181
  - Rakefile
179
182
  - bin/console
180
183
  - bin/setup
181
184
  - circle.yml
185
+ - circleci.sh
182
186
  - cognito.gemspec
183
187
  - config/devtools.yml
184
188
  - config/errors.yml
data/Guardfile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
- guard :rspec, cmd: 'bundle exec rspec' do
3
- watch(/.+\.rb$/) { 'spec' }
4
- end