operationcode-airtable 0.2.1 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84e389cf66389fe2054dff2b6e9fdbc24b45b08c
4
- data.tar.gz: 799c8a2fba14e3e2dbb71c3aa59b57cd6eef33f6
3
+ metadata.gz: e6026424f5b925fa2d99d03c5a3c55118c9b34a6
4
+ data.tar.gz: f48699cfb65ffdeaebb5ad8267c91f78bacc5b2d
5
5
  SHA512:
6
- metadata.gz: ebb023262b3bd5f45341c4a0d7f3e7dcf97a9dc077eb5b37e5b70c27fabc77fc50df9604d4b1e5d912eb60f7950cb2b88a10cfea9166a24a4a39d175814b432d
7
- data.tar.gz: 8a89947c7603348e3b2fe4e6f8e921439e404a93817372a7dce793ff27dea6bb3582539e25e439234a4f9b2434d4f2873af3d156262b894f8082d5f40a8066ec
6
+ metadata.gz: 1686ddfe510033813e3ddc33eae6ce84112bd28f656c89e03998c1254144ed221cadbda8625ac893aaab536c513fc02fb38c7e6579a1f2889bcc8533b0c45adc
7
+ data.tar.gz: 750a5ad514a08bbb0e8ab053b83adcaadb711f5942ab6182118bfc7f7fa88dea1ea33c35f5aed66d3cedc140ec37865b7018e5ea0e0cf4ca792ead9aaca6d4d9
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /*.gem
@@ -14,8 +14,8 @@ module Operationcode
14
14
  # @param base_id [String] base_id for the airtable base. This can be found on the tables API page
15
15
  # @param table [String] the name of the airbase table
16
16
  # @return [OperationCode::Airtable]
17
- def initialize(base_id:, table:)
18
- api_key = ENV.fetch('AIRTABLE_API_KEY')
17
+ def initialize(api_key: nil, base_id:, table:)
18
+ api_key = ENV.fetch('AIRTABLE_API_KEY') if api_key.nil?
19
19
  raise(KeyError, 'AIRTABLE_API_KEY is blank') if api_key.delete(' ') == ''
20
20
 
21
21
  client = ::Airtable::Client.new(api_key)
@@ -1,5 +1,5 @@
1
1
  module Operationcode
2
2
  class Airtable
3
- VERSION = '0.2.1'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: operationcode-airtable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RickR
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-07 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler