catalogapi 0.1.0rc1 → 0.1.0rc2

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
  SHA256:
3
- metadata.gz: c9c28867fd78f2bf1b6e7d6b057d53a4fd471af73a0476e36b6dc48c459b6862
4
- data.tar.gz: 8ba13d73491d7c3dd241f6a4be279637a70f79267cea4f05e39330105d360f44
3
+ metadata.gz: 7777621a27305433fe2451d6b9a47345ec3413c0c1a6651c5ff2c956ef6421df
4
+ data.tar.gz: fbd52474bed71781657a49f034b72d08721f2c3868197c3351ad19c8d5c9ba35
5
5
  SHA512:
6
- metadata.gz: 17b9fc60b840d8681866eeb58ee62c3ca419bf5d22336f50907ac7fac20534fc4ceafca7679b6750e58af338ecb726b143d8ad490316cca8e62fd34d44c4d506
7
- data.tar.gz: 258662e822644bfa46291eff01d1a048f837d39bbcb1a6af62adecd24a9f84edde02e6f51d16cc17b9a84cbd0668aec2d92b80655580ae36e27ef3ed26b318bd
6
+ metadata.gz: 241a1d5351fe0fd5b13cc5c66cb81d63d0dc66da1069fdaaaf50540577da527802d62197f92f3d0c09e872df612425f11ea8831e3e4c2954ef050d70522cdae2
7
+ data.tar.gz: 8405e70af322adf470f01e150cc1799ee585f85c3c28027bbcfcec83bdb88943b7c7a7895941bdcc13b1151a3eafaa2869148efccdd9fe3db4d5f44e19fa64f6
@@ -0,0 +1,39 @@
1
+ name: CI RSpec
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
10
+ jobs:
11
+ # This workflow contains a single job called "build"
12
+ build:
13
+ # The type of runner that the job will run on
14
+ runs-on: ubuntu-18.04
15
+
16
+ steps:
17
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18
+ - uses: actions/checkout@v2
19
+
20
+ - name: Set up Ruby 2.6
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: 2.6.3
24
+
25
+ - uses: actions/cache@v1
26
+ with:
27
+ path: vendor/bundle
28
+ key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
29
+ restore-keys: |
30
+ ${{ runner.os }}-gems-
31
+
32
+ - name: Bundle Install
33
+ run: |
34
+ gem install bundler -v 1.17.3
35
+ bundle install --path vendor/bundle
36
+
37
+ - name: Rspec
38
+ run: |
39
+ bundle exec rspec spec
@@ -3,7 +3,6 @@ PATH
3
3
  specs:
4
4
  catalogapi (0.1.0rc1)
5
5
  http (~> 4.0)
6
- openssl (~> 2.2)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -32,7 +31,6 @@ GEM
32
31
  http-parser (1.2.1)
33
32
  ffi-compiler (>= 1.0, < 2.0)
34
33
  method_source (1.0.0)
35
- openssl (2.2.0)
36
34
  pry (0.13.1)
37
35
  coderay (~> 1.1)
38
36
  method_source (~> 1.0)
@@ -29,5 +29,4 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ['lib']
30
30
 
31
31
  spec.add_dependency 'http', '~> 4.0'
32
- spec.add_dependency 'openssl', '~> 2.2'
33
32
  end
@@ -28,7 +28,6 @@ module CatalogAPI
28
28
 
29
29
  def post(params = {})
30
30
  url = "#{base_url}/json/#{path}"
31
- puts params
32
31
  self.response = HTTP.post(url, { json: params })
33
32
  json_response
34
33
  end
@@ -43,8 +42,6 @@ module CatalogAPI
43
42
  class Error < StandardError
44
43
  attr_accessor :code, :body
45
44
  def initialize(response)
46
- puts response.inspect
47
- puts response.body
48
45
  @body = response.body
49
46
  @code = response.code
50
47
  end
@@ -86,7 +83,7 @@ module CatalogAPI
86
83
 
87
84
  private
88
85
 
89
- # http://memberhub.catalogapi.com/docs/checksums/
86
+ # http://username.catalogapi.com/docs/checksums/
90
87
  def checksum
91
88
  Base64.encode64(OpenSSL::HMAC.digest('sha1', CatalogAPI.key, concatted))
92
89
  .gsub("\n", '')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CatalogAPI
4
- VERSION = '0.1.0rc1'
4
+ VERSION = '0.1.0rc2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catalogapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0rc1
4
+ version: 0.1.0rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - davidrichey
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
- - !ruby/object:Gem::Dependency
28
- name: openssl
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.2'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.2'
41
27
  description: Simple ruby library to interact with the http://catalogapi.com/ API
42
28
  email:
43
29
  - david.richey@memberhub.com
@@ -45,6 +31,7 @@ executables: []
45
31
  extensions: []
46
32
  extra_rdoc_files: []
47
33
  files:
34
+ - ".github/workflows/rspec.yml"
48
35
  - ".gitignore"
49
36
  - ".rspec"
50
37
  - ".travis.yml"