airtable_base_builder 1.0.0 → 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: 239324ebba69f84f6210c2b191908ce8201efdc532e345019706da461283a961
4
- data.tar.gz: 8414cdd71d0126a85b886e544e8b3483db99d1a524439f1893fc3f7a495e8249
3
+ metadata.gz: b757ef7fd274623b7415f4c3323c77103151f5183372ed01d43dcd75d67fb4b5
4
+ data.tar.gz: 956976dd16ca1916acb4338c5924ea7ad16320b9557ae360bf5019a209926ca0
5
5
  SHA512:
6
- metadata.gz: f026377a5c05b3ed53499e2e18190448e798083dcf06bf4512b9b8608be41ec007a2db8287a93c1310f5097280c1275c94b17d5cd0ec22b5eed22d65b3db977e
7
- data.tar.gz: 7f369be2db51bcd5e853edb58c5c0811e65bf93c7dd39a03b4dd7060e5a30cf2e2caba11d2191ea3bcb33de1b5823e8b1ff26072cca35c726f61ef1dc5006ab9
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.0)
4
+ airtable_base_builder (1.0.2)
5
5
  faraday
6
6
  require_all (~> 3.0)
7
7
  thor
@@ -1,6 +1,6 @@
1
1
  require 'thor'
2
2
  require 'require_all'
3
- require_all 'lib/airtable_base_builder'
3
+ require_rel '../airtable_base_builder'
4
4
 
5
5
  require 'pry'
6
6
 
@@ -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.0"
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.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
@@ -1 +0,0 @@
1
- wspI6Yx5z1nIZhwni