app_rail-airtable 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/app_rail/airtable/application_record.rb +8 -0
- data/lib/app_rail/airtable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad788bfb14babba5e0216173a01c6e58d815756b8fcce1282d0acf86d1c3ffbc
|
4
|
+
data.tar.gz: d3dc7df90a92d215f0ceaab252aa914000b8a08bf0c3acc6ee8f36011611ad56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b8eb9d1d13e0a6f11494363b278fa4449912b925883dc9ba9b2b9224249ef0f80dd6b9c647baf4f26210898600992710bdd50622f75bf6a2edaed57fb0f413d
|
7
|
+
data.tar.gz: 1669de508317bc09821dc97bb3e4ea7fa5fb6c5b389bb8a32a9ac2702757ca9aa03b474f6d8dc9906e814b67eed4714bc36012ad63c29a39cb42d696139849aa
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
app_rail-airtable (0.2.
|
4
|
+
app_rail-airtable (0.2.1)
|
5
5
|
activesupport
|
6
6
|
airrecord
|
7
7
|
sinatra
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
concurrent-ruby (1.1.9)
|
22
22
|
connection_pool (2.2.5)
|
23
23
|
diff-lcs (1.4.4)
|
24
|
-
faraday (1.
|
24
|
+
faraday (1.8.0)
|
25
25
|
faraday-em_http (~> 1.0)
|
26
26
|
faraday-em_synchrony (~> 1.0)
|
27
27
|
faraday-excon (~> 1.1)
|
@@ -12,6 +12,14 @@ module AppRail
|
|
12
12
|
class ApplicationRecord < Airrecord::Table
|
13
13
|
include ActiveSupport::Inflector
|
14
14
|
|
15
|
+
def self.base_key
|
16
|
+
ENV.fetch("AIRTABLE_BASE_ID")
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.table_name
|
20
|
+
self.name.pluralize
|
21
|
+
end
|
22
|
+
|
15
23
|
def self.airtable_attr(*attributes)
|
16
24
|
attributes.each do |attribute|
|
17
25
|
define_method(attribute.to_s.snake_case) { self[attribute] }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_rail-airtable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|