airtable_base_builder 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +93 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +12 -0
- data/config/pat.txt +1 -0
- data/config/workspace_id.txt +1 -0
- data/exe/atbb +4 -0
- data/lib/airtable_base_builder/airtable/base.rb +21 -0
- data/lib/airtable_base_builder/airtable/client.rb +40 -0
- data/lib/airtable_base_builder/airtable/field.rb +69 -0
- data/lib/airtable_base_builder/airtable/table.rb +23 -0
- data/lib/airtable_base_builder/base_builder.rb +57 -0
- data/lib/airtable_base_builder/cli.rb +20 -0
- data/lib/airtable_base_builder/config.rb +38 -0
- data/lib/airtable_base_builder/csv_importer.rb +7 -0
- data/lib/airtable_base_builder/version.rb +5 -0
- data/lib/airtable_base_builder.rb +10 -0
- data/sig/airtable_base_builder.rbs +4 -0
- metadata +167 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 239324ebba69f84f6210c2b191908ce8201efdc532e345019706da461283a961
|
4
|
+
data.tar.gz: 8414cdd71d0126a85b886e544e8b3483db99d1a524439f1893fc3f7a495e8249
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f026377a5c05b3ed53499e2e18190448e798083dcf06bf4512b9b8608be41ec007a2db8287a93c1310f5097280c1275c94b17d5cd0ec22b5eed22d65b3db977e
|
7
|
+
data.tar.gz: 7f369be2db51bcd5e853edb58c5c0811e65bf93c7dd39a03b4dd7060e5a30cf2e2caba11d2191ea3bcb33de1b5823e8b1ff26072cca35c726f61ef1dc5006ab9
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
airtable_base_builder (1.0.0)
|
5
|
+
faraday
|
6
|
+
require_all (~> 3.0)
|
7
|
+
thor
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
aruba (2.1.0)
|
13
|
+
bundler (>= 1.17, < 3.0)
|
14
|
+
childprocess (>= 2.0, < 5.0)
|
15
|
+
contracts (>= 0.16.0, < 0.18.0)
|
16
|
+
cucumber (>= 4.0, < 9.0)
|
17
|
+
rspec-expectations (~> 3.4)
|
18
|
+
thor (~> 1.0)
|
19
|
+
builder (3.2.4)
|
20
|
+
childprocess (4.1.0)
|
21
|
+
coderay (1.1.3)
|
22
|
+
contracts (0.17)
|
23
|
+
cucumber (8.0.0)
|
24
|
+
builder (~> 3.2, >= 3.2.4)
|
25
|
+
cucumber-ci-environment (~> 9.0, >= 9.0.4)
|
26
|
+
cucumber-core (~> 11.0, >= 11.0.0)
|
27
|
+
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
|
28
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
29
|
+
cucumber-html-formatter (~> 19.1, >= 19.1.0)
|
30
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
31
|
+
diff-lcs (~> 1.5, >= 1.5.0)
|
32
|
+
mime-types (~> 3.4, >= 3.4.1)
|
33
|
+
multi_test (~> 1.1, >= 1.1.0)
|
34
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
35
|
+
cucumber-ci-environment (9.2.0)
|
36
|
+
cucumber-core (11.0.0)
|
37
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
38
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
39
|
+
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
|
40
|
+
cucumber-cucumber-expressions (15.2.0)
|
41
|
+
cucumber-gherkin (23.0.1)
|
42
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
43
|
+
cucumber-html-formatter (19.2.0)
|
44
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
45
|
+
cucumber-messages (18.0.0)
|
46
|
+
cucumber-tag-expressions (4.1.0)
|
47
|
+
diff-lcs (1.5.0)
|
48
|
+
faraday (2.7.5)
|
49
|
+
faraday-net_http (>= 2.0, < 3.1)
|
50
|
+
ruby2_keywords (>= 0.0.4)
|
51
|
+
faraday-net_http (3.0.2)
|
52
|
+
ffi (1.15.5)
|
53
|
+
method_source (1.0.0)
|
54
|
+
mime-types (3.4.1)
|
55
|
+
mime-types-data (~> 3.2015)
|
56
|
+
mime-types-data (3.2023.0218.1)
|
57
|
+
multi_test (1.1.0)
|
58
|
+
pry (0.14.2)
|
59
|
+
coderay (~> 1.1)
|
60
|
+
method_source (~> 1.0)
|
61
|
+
rake (13.0.6)
|
62
|
+
require_all (3.0.0)
|
63
|
+
rspec (3.12.0)
|
64
|
+
rspec-core (~> 3.12.0)
|
65
|
+
rspec-expectations (~> 3.12.0)
|
66
|
+
rspec-mocks (~> 3.12.0)
|
67
|
+
rspec-core (3.12.2)
|
68
|
+
rspec-support (~> 3.12.0)
|
69
|
+
rspec-expectations (3.12.3)
|
70
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
71
|
+
rspec-support (~> 3.12.0)
|
72
|
+
rspec-mocks (3.12.5)
|
73
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
74
|
+
rspec-support (~> 3.12.0)
|
75
|
+
rspec-support (3.12.0)
|
76
|
+
ruby2_keywords (0.0.5)
|
77
|
+
sys-uname (1.2.3)
|
78
|
+
ffi (~> 1.1)
|
79
|
+
thor (1.2.2)
|
80
|
+
|
81
|
+
PLATFORMS
|
82
|
+
arm64-darwin-22
|
83
|
+
|
84
|
+
DEPENDENCIES
|
85
|
+
airtable_base_builder!
|
86
|
+
aruba
|
87
|
+
cucumber
|
88
|
+
pry
|
89
|
+
rake (~> 13.0)
|
90
|
+
rspec
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
2.4.13
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2023 Jeremy Oglesby
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# AirtableBaseBuilder
|
2
|
+
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
4
|
+
|
5
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/airtable_base_builder`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
+
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
12
|
+
|
13
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
14
|
+
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
+
|
17
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Development
|
24
|
+
|
25
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
+
|
27
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
+
|
29
|
+
## Contributing
|
30
|
+
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/airtable_base_builder.
|
32
|
+
|
33
|
+
## License
|
34
|
+
|
35
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/config/pat.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
patzShunx1ILUq95k.885cf325c6d5fa5cddfca2ce0e6525afae1618b9183c1316d06322bba5372be9
|
@@ -0,0 +1 @@
|
|
1
|
+
wspI6Yx5z1nIZhwni
|
data/exe/atbb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'client'
|
4
|
+
|
5
|
+
module AirtableBaseBuilder
|
6
|
+
module Airtable
|
7
|
+
class Base < Client
|
8
|
+
def initialize(table_names, fields)
|
9
|
+
@table_names = table_names
|
10
|
+
@fields = fields
|
11
|
+
end
|
12
|
+
|
13
|
+
def tables
|
14
|
+
@table_names.map do |table_name|
|
15
|
+
table_fields = @fields.select { |field| field[:table] == table_name }
|
16
|
+
Airtable::Table.new(table_name, table_fields).build
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'faraday'
|
4
|
+
|
5
|
+
module AirtableBaseBuilder
|
6
|
+
module Airtable
|
7
|
+
class Client
|
8
|
+
def initialize
|
9
|
+
@pat = AirtableBaseBuilder::Config.new.pat
|
10
|
+
end
|
11
|
+
|
12
|
+
# params: { name: 'My Base', workspaceId: 'wrk123', tables: [{}, {}] }
|
13
|
+
def post(params: {})
|
14
|
+
http_connection.post(
|
15
|
+
"https://api.airtable.com/v0/meta/bases",
|
16
|
+
params.to_json
|
17
|
+
)
|
18
|
+
rescue Faraday::ClientError => e
|
19
|
+
errors_response(e.response[:body].values)
|
20
|
+
rescue Faraday::ServerError
|
21
|
+
errors_response(["The server responded with status 500"])
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def http_connection
|
27
|
+
@http_connection ||= Faraday.new do |f|
|
28
|
+
f.request :json
|
29
|
+
f.response :raise_error
|
30
|
+
f.response :json
|
31
|
+
f.headers = { 'Authorization' => "Bearer #{@pat}" }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def errors_response(errors)
|
36
|
+
{ "errors" => errors }
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'client'
|
4
|
+
|
5
|
+
module AirtableBaseBuilder
|
6
|
+
module Airtable
|
7
|
+
class Field < Client
|
8
|
+
include Thor::Shell
|
9
|
+
|
10
|
+
FIELD_TYPES = %w[
|
11
|
+
singleLineText email url multilineText number percent currency singleSelect multipleSelects
|
12
|
+
singleCollaborator multipleCollaborators date dateTime phoneNumber
|
13
|
+
multipleAttachments checkbox barcode rating richText duration
|
14
|
+
].freeze
|
15
|
+
|
16
|
+
def initialize(data)
|
17
|
+
@data = data
|
18
|
+
end
|
19
|
+
|
20
|
+
def build
|
21
|
+
validate_field_type
|
22
|
+
|
23
|
+
field = {
|
24
|
+
name: @data[:name],
|
25
|
+
type: @data[:type],
|
26
|
+
}
|
27
|
+
|
28
|
+
field[:options] = options if options
|
29
|
+
|
30
|
+
field
|
31
|
+
end
|
32
|
+
|
33
|
+
def options
|
34
|
+
case @data[:type]
|
35
|
+
when 'singleSelect', 'multipleSelects'
|
36
|
+
{ choices: [{ name: 'Option 1' }, { name: 'Option 2' }] }
|
37
|
+
when 'number', 'percent'
|
38
|
+
{ precision: 0 }
|
39
|
+
when 'currency'
|
40
|
+
{ precision: 0, symbol: '$' }
|
41
|
+
when 'date'
|
42
|
+
{ dateFormat: { name: "local" } }
|
43
|
+
when 'dateTime'
|
44
|
+
{ timeZone: "utc", dateFormat: { name: "local" }, timeFormat: { name: "12hour" } }
|
45
|
+
# when 'multipleAttachments'
|
46
|
+
# { isReversed: true }
|
47
|
+
when 'checkbox'
|
48
|
+
{ color: "greenBright", icon: "check" }
|
49
|
+
when 'rating'
|
50
|
+
{ color: "yellowBright", icon: "star", max: 5 }
|
51
|
+
when 'duration'
|
52
|
+
{ durationFormat: "h:mm" }
|
53
|
+
else
|
54
|
+
nil
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def validate_field_type
|
59
|
+
return if FIELD_TYPES.include?(@data[:type])
|
60
|
+
|
61
|
+
valid_field_types = FIELD_TYPES.join("\n - ")
|
62
|
+
say_error("Invalid field type provided: #{@data[:type]}", color = :red)
|
63
|
+
say("Valid field types are:\n - #{valid_field_types}", color = :green)
|
64
|
+
|
65
|
+
exit
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'client'
|
4
|
+
|
5
|
+
module AirtableBaseBuilder
|
6
|
+
module Airtable
|
7
|
+
class Table < Client
|
8
|
+
def initialize(name, fields)
|
9
|
+
@name = name
|
10
|
+
@fields = fields
|
11
|
+
end
|
12
|
+
|
13
|
+
def build
|
14
|
+
{
|
15
|
+
name: @name,
|
16
|
+
fields: @fields.map do |field|
|
17
|
+
Airtable::Field.new(field).build
|
18
|
+
end
|
19
|
+
}
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'csv'
|
4
|
+
|
5
|
+
module AirtableBaseBuilder
|
6
|
+
class BaseBuilder < Thor::Group
|
7
|
+
include Thor::Actions
|
8
|
+
|
9
|
+
def initialize(name, csv, delete_file)
|
10
|
+
@name = name
|
11
|
+
@csv = csv
|
12
|
+
@delete_file = delete_file
|
13
|
+
end
|
14
|
+
|
15
|
+
def build
|
16
|
+
csv = CSV.read(@csv, headers: true)
|
17
|
+
|
18
|
+
csv_errors = check_for_csv_errors(csv)
|
19
|
+
if csv_errors
|
20
|
+
say_error(csv_errors, color = :red)
|
21
|
+
exit
|
22
|
+
end
|
23
|
+
|
24
|
+
table_names = csv.by_col["Table"].uniq
|
25
|
+
fields = csv.each.map do |row|
|
26
|
+
{ table: row["Table"], name: row["Name"], type: row["Type"], primary: row["Primary"] }
|
27
|
+
end
|
28
|
+
|
29
|
+
atb = Airtable::Base.new(table_names, fields)
|
30
|
+
response = Airtable::Client.new.post(params: {
|
31
|
+
name: @name,
|
32
|
+
workspaceId: Config.new.workspace_id,
|
33
|
+
tables: atb.tables
|
34
|
+
})
|
35
|
+
|
36
|
+
if response["errors"]
|
37
|
+
say_error("There were errors creating the base:", color = :red)
|
38
|
+
say_error(response["errors"].join("\n"), color = :red)
|
39
|
+
else
|
40
|
+
say("Base created successfully!", color = :green)
|
41
|
+
base_link = set_color("https://airtable.com/#{response.body["id"]}", :blue, :bold)
|
42
|
+
say("You can view it here: #{base_link}")
|
43
|
+
end
|
44
|
+
|
45
|
+
File.delete(@csv) if @delete_file
|
46
|
+
end
|
47
|
+
|
48
|
+
def check_for_csv_errors(csv)
|
49
|
+
return "CSV must have a 'Table' column defining the Table each field should be in" unless
|
50
|
+
csv.headers.include?("Table")
|
51
|
+
return "CSV must have a 'Name' column defining the Name of each field" unless
|
52
|
+
csv.headers.include?("Name")
|
53
|
+
return "CSV must have a 'Type' column defining the Type of field each should be" unless
|
54
|
+
csv.headers.include?("Type")
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'require_all'
|
3
|
+
require_all 'lib/airtable_base_builder'
|
4
|
+
|
5
|
+
require 'pry'
|
6
|
+
|
7
|
+
module AirtableBaseBuilder
|
8
|
+
class CLI < Thor
|
9
|
+
desc "config OPTION VALUE", "Configuration options"
|
10
|
+
def config(option, value)
|
11
|
+
AirtableBaseBuilder::Config.new.add_option(option, value)
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "build_base BASE_NAME PATH_TO_CSV_FILE", "Builds a base in Airtable from a CSV file"
|
15
|
+
method_option :delete_file, type: :boolean, default: false, aliases: "-d"
|
16
|
+
def build_base(name, csv)
|
17
|
+
AirtableBaseBuilder::BaseBuilder.new(name, csv, options[:delete_file]).build
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AirtableBaseBuilder
|
4
|
+
class Config < Thor::Group
|
5
|
+
include Thor::Actions
|
6
|
+
|
7
|
+
VALID_OPTIONS = %w[pat workspace_id].freeze
|
8
|
+
|
9
|
+
def add_option(option, value)
|
10
|
+
# TODO: Handle this option validation with thor conventions
|
11
|
+
unless VALID_OPTIONS.include?(option)
|
12
|
+
say_error("Option must be one of: #{VALID_OPTIONS.join(', ')}", color = :red)
|
13
|
+
exit
|
14
|
+
end
|
15
|
+
|
16
|
+
unless File.directory?('config')
|
17
|
+
say("Creating `config/` directory", color = :green)
|
18
|
+
empty_directory('config')
|
19
|
+
end
|
20
|
+
|
21
|
+
if File.exist?("config/#{option}.txt")
|
22
|
+
say("Removing old `config/#{option}.txt`", color = :green)
|
23
|
+
remove_file("config/#{option}.txt")
|
24
|
+
end
|
25
|
+
|
26
|
+
say("Creating `config/#{option}.txt` to store your value", color = :green)
|
27
|
+
create_file("config/#{option}.txt", value)
|
28
|
+
end
|
29
|
+
|
30
|
+
def pat
|
31
|
+
File.read("config/pat.txt")
|
32
|
+
end
|
33
|
+
|
34
|
+
def workspace_id
|
35
|
+
File.read("config/workspace_id.txt")
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: airtable_base_builder
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeremy Oglesby
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-06-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: require_all
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: cucumber
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: aruba
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: This command line tool ingests a CSV file with a specific format and
|
112
|
+
creates an Airtable base out of the contents.
|
113
|
+
email:
|
114
|
+
- jeremy@oglesby.life
|
115
|
+
executables:
|
116
|
+
- atbb
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- CHANGELOG.md
|
121
|
+
- Gemfile
|
122
|
+
- Gemfile.lock
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- config/pat.txt
|
127
|
+
- config/workspace_id.txt
|
128
|
+
- exe/atbb
|
129
|
+
- lib/airtable_base_builder.rb
|
130
|
+
- lib/airtable_base_builder/airtable/base.rb
|
131
|
+
- lib/airtable_base_builder/airtable/client.rb
|
132
|
+
- lib/airtable_base_builder/airtable/field.rb
|
133
|
+
- lib/airtable_base_builder/airtable/table.rb
|
134
|
+
- lib/airtable_base_builder/base_builder.rb
|
135
|
+
- lib/airtable_base_builder/cli.rb
|
136
|
+
- lib/airtable_base_builder/config.rb
|
137
|
+
- lib/airtable_base_builder/csv_importer.rb
|
138
|
+
- lib/airtable_base_builder/version.rb
|
139
|
+
- sig/airtable_base_builder.rbs
|
140
|
+
homepage: https://github.com/jmoglesby/airtable_base_builder
|
141
|
+
licenses:
|
142
|
+
- MIT
|
143
|
+
metadata:
|
144
|
+
allowed_push_host: https://rubygems.org/
|
145
|
+
homepage_uri: https://github.com/jmoglesby/airtable_base_builder
|
146
|
+
source_code_uri: https://github.com/jmoglesby/airtable_base_builder
|
147
|
+
changelog_uri: https://github.com/jmoglesby/airtable_base_builder/blob/master/CHANGELOG.md
|
148
|
+
post_install_message:
|
149
|
+
rdoc_options: []
|
150
|
+
require_paths:
|
151
|
+
- lib
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: 2.6.0
|
157
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
requirements: []
|
163
|
+
rubygems_version: 3.4.13
|
164
|
+
signing_key:
|
165
|
+
specification_version: 4
|
166
|
+
summary: A command line tool for generating Airtable bases
|
167
|
+
test_files: []
|