apiaryio 0.16.0 → 0.16.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0285a16e62857c93d0102d3b35bf5c4b413ae412f13972ab12af5b8201ee3dcb'
4
- data.tar.gz: 4d45af225fb2df5579cbd9d0cc8262e286c45a0281451fe14555703fe54c420e
3
+ metadata.gz: a3f826ea9db9773c47de22a91b8627ab015c4aaab3356453e15d9e7c9a7a6c2f
4
+ data.tar.gz: d325cd4be26355139c01e2e1f8cb62ff49a148e7740042ad5cfb8933e9aec3ed
5
5
  SHA512:
6
- metadata.gz: 6a7e045cae664b7357e965f80fe126e9ffa213869284e23fd806768a78b5217eb8734d1cdaefe53ceda3bd574db9b8e4cdf76c6b54793654b132618ecfb2e5dd
7
- data.tar.gz: e70b4ae7a5dc7e0d93dc97a57f7ca7f7a8df7821534bc93dd2fc0e5fe769b090f878a01fd825051599400f93e783907d69066eb0ab13a29bd0f72bae4f2b9ecd
6
+ metadata.gz: 908a8d90749ab666fb1427ab8f2950badb74ac91dde5c54faf7a6c2b3372015f12c9066df6a622590090d59af6fdea9a96749e4b68b862ae307c1e8ebc23920a
7
+ data.tar.gz: 5cb3e36dfbd29a7cd81056ccf9273b665dc2a780a18404b226e70b7a8e8697aad359b638bd4f3dfacdf06fe521cab4161edd931bd1539ab07f06593288538242
data/README.md CHANGED
@@ -77,6 +77,7 @@ Usage:
77
77
  apiary archive
78
78
 
79
79
  Options:
80
+ [--exclude-team-projects], [--no-exclude-team-projects] # Skip team projects
80
81
 
81
82
  Archive All Your API Description Documents from apiary.io to local files named following [api-project-subdomain.apib] pattern.
82
83
  ```
data/lib/apiary/cli.rb CHANGED
@@ -12,6 +12,7 @@ module Apiary
12
12
 
13
13
  desc 'archive', 'Archive All Your API Description Documents from apiary.io to local files named following [api-project-subdomain.apib] pattern.'
14
14
  method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
15
+ method_option :exclude_team_projects, type: :boolean, default: false, desc: 'Skip team projects'
15
16
 
16
17
  def archive
17
18
  cmd = Apiary::Command::Archive.new options
@@ -37,7 +37,12 @@ module Apiary::Command
37
37
  response = query_apiary
38
38
 
39
39
  response['apis'].each do |api|
40
+ if api['apiIsTeam'] == true && @options.exclude_team_projects == true
41
+ puts "#{api['apiSubdomain']}... Team API skipping"
42
+ next
43
+ end
40
44
  puts api['apiSubdomain']
45
+
41
46
  @options = OpenStruct.new
42
47
  @options.api_host ||= 'api.apiary.io'
43
48
  @options.api_name ||= api['apiSubdomain']
@@ -1,3 +1,3 @@
1
1
  module Apiary
2
- VERSION = '0.16.0'.freeze
2
+ VERSION = '0.16.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiaryio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apiary Ltd.