airtable_base_builder 1.0.1 → 1.0.2

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: b757ef7fd274623b7415f4c3323c77103151f5183372ed01d43dcd75d67fb4b5
4
+ data.tar.gz: 956976dd16ca1916acb4338c5924ea7ad16320b9557ae360bf5019a209926ca0
5
5
  SHA512:
6
- metadata.gz: 6de19ea588db2e0a76d3402b8dbf2187015f8c7b967cd453ab44af2500b18637d2417722ded80ca3c2ffc821d785d02a3ce9086f8e24a94474763ceeba57525f
7
- data.tar.gz: 4e48ec47e4efaa16ca8cd9894c0bc6bf230142edb80f1e8f18470b0a8f249b68b617d1ed132791b23b87b28b5298cf19103b682a8facb157051c9236baf1f078
6
+ metadata.gz: a11671584bb196856989cc481c1a0796db0162c0eb89b445d60b7d362fa21093f6889b51063bff940835c492b56cf8cf0ae30fa4b5d381c35d29c330f9e64902
7
+ data.tar.gz: de8a97b33f4394404ba58e09909dd3d3f8ba5a7f03441e81a506df5a366cc07240933962bdb5cec85dfd82b6339bdec418c8010b57700e0d961903ebf304e589
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.2)
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("`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
@@ -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.2"
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.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
@@ -1 +0,0 @@
1
- wspI6Yx5z1nIZhwni