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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2aa2acf23c1a19d2da51975f9ffcc4df977bb2161671c17ec353fa927180ddc
4
- data.tar.gz: 139e1d42de5b43f560e738b48675e8142b02f02662b67744d5a325c157f0e7be
3
+ metadata.gz: ad788bfb14babba5e0216173a01c6e58d815756b8fcce1282d0acf86d1c3ffbc
4
+ data.tar.gz: d3dc7df90a92d215f0ceaab252aa914000b8a08bf0c3acc6ee8f36011611ad56
5
5
  SHA512:
6
- metadata.gz: 2338dcc79c15c783900d9d5054e635f6dda8e6ca78802fb06d2cb3b9bdc2391e1be9839e6dc527a2d2746c64d56e5490256c6c1789240b3f54a81dad7e05d524
7
- data.tar.gz: da5ba11679f264dc1c96f2f123ff0aa04d5288d55405be12d539f874b6d96bd53cba4d950b735cb7de5a71322f052e018a86719454f202a44e0c7fe637aa608f
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.0)
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.7.2)
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] }
@@ -1,5 +1,5 @@
1
1
  module AppRail
2
2
  module Airtable
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2021-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport