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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2cda720c0a16cbc2b3d796f4aa49910857cae99c83d4254a033a5079ea4214e
4
- data.tar.gz: 4c1e32d16636f3c5854b1ad49d2ce6646c7db82732d9696f4c495b8ad39d1533
3
+ metadata.gz: fb09b5d6b4fe6bf958022bdb428cfe369cf753869b1184e02782deefb02baf15
4
+ data.tar.gz: 040fa3c95134be5e8277d9b15bd9b4843c5db6c446ebd9a386ac1ac9d138f185
5
5
  SHA512:
6
- metadata.gz: 6de19ea588db2e0a76d3402b8dbf2187015f8c7b967cd453ab44af2500b18637d2417722ded80ca3c2ffc821d785d02a3ce9086f8e24a94474763ceeba57525f
7
- data.tar.gz: 4e48ec47e4efaa16ca8cd9894c0bc6bf230142edb80f1e8f18470b0a8f249b68b617d1ed132791b23b87b28b5298cf19103b682a8facb157051c9236baf1f078
6
+ metadata.gz: cd478875147cacfb8014f97b4f31fe3d84b6eea3c19197585e1847056668d117e3dead9bd3ceed185ebe2b722ea9c68c2c1fc8698bfb98f5d71b95c6eb72cc45
7
+ data.tar.gz: 753457d2bd5c95ef1f6f15b5e4e3747143a04e7c1d8facfa053d884fb2d8a84f3f76f3c2066d0576a999bf8a52d29a8cea742c141c5ed999dc8560b052e18f30
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- airtable_base_builder (1.0.1)
4
+ airtable_base_builder (1.0.3)
5
5
  faraday
6
6
  require_all (~> 3.0)
7
7
  thor
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AirtableBaseBuilder
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.3"
5
5
  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.1
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
@@ -1 +0,0 @@
1
- wspI6Yx5z1nIZhwni