cognito-client 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -6
- data/README.md +8 -2
- data/circle.yml +5 -4
- data/circleci.sh +35 -0
- data/cognito.gemspec +2 -2
- data/config/flog.yml +0 -1
- data/lib/cognito/client.rb +0 -2
- data/lib/cognito/version.rb +1 -1
- metadata +7 -3
- data/Guardfile +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c66b88f6616e6681225850d0a0cb7fe3b79efb99
|
4
|
+
data.tar.gz: 7667ddecc066851b8c7c550cc9e186c0173eec5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 [](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'
|
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
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
data/lib/cognito/client.rb
CHANGED
data/lib/cognito/version.rb
CHANGED
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.
|
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-
|
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