airtable_base_builder 1.0.1 → 1.0.2
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/Gemfile.lock +1 -1
- data/lib/airtable_base_builder/config.rb +24 -0
- data/lib/airtable_base_builder/version.rb +1 -1
- metadata +1 -3
- data/config/pat.txt +0 -1
- data/config/workspace_id.txt +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b757ef7fd274623b7415f4c3323c77103151f5183372ed01d43dcd75d67fb4b5
|
|
4
|
+
data.tar.gz: 956976dd16ca1916acb4338c5924ea7ad16320b9557ae360bf5019a209926ca0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a11671584bb196856989cc481c1a0796db0162c0eb89b445d60b7d362fa21093f6889b51063bff940835c492b56cf8cf0ae30fa4b5d381c35d29c330f9e64902
|
|
7
|
+
data.tar.gz: de8a97b33f4394404ba58e09909dd3d3f8ba5a7f03441e81a506df5a366cc07240933962bdb5cec85dfd82b6339bdec418c8010b57700e0d961903ebf304e589
|
data/Gemfile.lock
CHANGED
|
@@ -29,10 +29,34 @@ module AirtableBaseBuilder
|
|
|
29
29
|
|
|
30
30
|
def pat
|
|
31
31
|
File.read("config/pat.txt")
|
|
32
|
+
rescue Errno::ENOENT
|
|
33
|
+
say_error("\n\nYou must set your Personal Access Token first", color = :red)
|
|
34
|
+
at_link = set_color("https://airtable.com/account", :blue, :bold)
|
|
35
|
+
say("If you do not have a Personal Access Token, you can create one here: #{at_link}", color = :green)
|
|
36
|
+
command = set_color("`airtable_base_builder config pat YOUR_TOKEN`", color = :magenta, :bold)
|
|
37
|
+
say(
|
|
38
|
+
"\nOnce you have your Personal Access Token, run #{command}\n\n",
|
|
39
|
+
color = :green
|
|
40
|
+
)
|
|
32
41
|
end
|
|
33
42
|
|
|
34
43
|
def workspace_id
|
|
35
44
|
File.read("config/workspace_id.txt")
|
|
45
|
+
rescue Errno::ENOENT
|
|
46
|
+
say_error("\n\nYou must set a Workspace ID in which to create bases first", color = :red)
|
|
47
|
+
say("You can find your Workspace ID in the URL of your Airtable Workspace", color = :green)
|
|
48
|
+
at_link = set_color("https://airtable.com/workspaces/wsp*******?", :blue, :bold)
|
|
49
|
+
say(
|
|
50
|
+
"From the Airtable homepage, click on your Workspace, and copy the ID from the URL
|
|
51
|
+
It will look something like this: #{at_link}
|
|
52
|
+
The ID is the part that starts with `wsp` and is a long string of letters and numbers (but does not include the `?`).",
|
|
53
|
+
color = :green
|
|
54
|
+
)
|
|
55
|
+
command = set_color("`airtable_base_builder config workspace_id YOUR_ID`", color = :magenta, :bold)
|
|
56
|
+
say(
|
|
57
|
+
"\nOnce you have your Workspace ID, run #{command}\n\n",
|
|
58
|
+
color = :green
|
|
59
|
+
)
|
|
36
60
|
end
|
|
37
61
|
end
|
|
38
62
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: airtable_base_builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Oglesby
|
|
@@ -123,8 +123,6 @@ files:
|
|
|
123
123
|
- LICENSE.txt
|
|
124
124
|
- README.md
|
|
125
125
|
- Rakefile
|
|
126
|
-
- config/pat.txt
|
|
127
|
-
- config/workspace_id.txt
|
|
128
126
|
- exe/atbb
|
|
129
127
|
- lib/airtable_base_builder.rb
|
|
130
128
|
- lib/airtable_base_builder/airtable/base.rb
|
data/config/pat.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
patzShunx1ILUq95k.885cf325c6d5fa5cddfca2ce0e6525afae1618b9183c1316d06322bba5372be9
|
data/config/workspace_id.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wspI6Yx5z1nIZhwni
|