airtable_base_builder 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- 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: fb09b5d6b4fe6bf958022bdb428cfe369cf753869b1184e02782deefb02baf15
|
4
|
+
data.tar.gz: 040fa3c95134be5e8277d9b15bd9b4843c5db6c446ebd9a386ac1ac9d138f185
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd478875147cacfb8014f97b4f31fe3d84b6eea3c19197585e1847056668d117e3dead9bd3ceed185ebe2b722ea9c68c2c1fc8698bfb98f5d71b95c6eb72cc45
|
7
|
+
data.tar.gz: 753457d2bd5c95ef1f6f15b5e4e3747143a04e7c1d8facfa053d884fb2d8a84f3f76f3c2066d0576a999bf8a52d29a8cea742c141c5ed999dc8560b052e18f30
|
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("`atbb 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("`atbb 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.3
|
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
|