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 +4 -4
- data/.gitignore +1 -0
- data/lib/operationcode/airtable.rb +2 -2
- data/lib/operationcode/airtable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6026424f5b925fa2d99d03c5a3c55118c9b34a6
|
4
|
+
data.tar.gz: f48699cfb65ffdeaebb5ad8267c91f78bacc5b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1686ddfe510033813e3ddc33eae6ce84112bd28f656c89e03998c1254144ed221cadbda8625ac893aaab536c513fc02fb38c7e6579a1f2889bcc8533b0c45adc
|
7
|
+
data.tar.gz: 750a5ad514a08bbb0e8ab053b83adcaadb711f5942ab6182118bfc7f7fa88dea1ea33c35f5aed66d3cedc140ec37865b7018e5ea0e0cf4ca792ead9aaca6d4d9
|
data/.gitignore
CHANGED
@@ -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)
|
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.
|
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-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|