gemfury 0.12.0 → 0.12.1

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: 8d50766d71c2b10ccc4ec4f57b945cc4b2fed2e3444d96907434572ab2b7cadc
4
- data.tar.gz: ad62d9a9fd6504d4bc547f68a4fe460aca5ce786aa7c752672c51ea2164394f2
3
+ metadata.gz: '085b1527c75280eea2af851ba682cf633ad4c7254519e352ecaedce754067a4a'
4
+ data.tar.gz: 044cb832c6707879b7117e65895b1908f09e98b55a4641bb5c98504c264c52b5
5
5
  SHA512:
6
- metadata.gz: 9c25f64ac0534ba79f1c59c80043c31789eba91d56495f897326aeac345a679fe834c7b75d1d0d83177e3916b508b904698f11399d769d69fae574af2072bb66
7
- data.tar.gz: f127672f054ee53ab288363b6111dc9ecf54f36f4ee0a7a73bb56e55fd4da4d1f3f611b066ad1911057e23b91bb99f3422749c50bb1ca21e632687a88b8b82dc
6
+ metadata.gz: cd3c775925ff9095bbc708945dede4c78082f5e24920e141b5089181fec866551a7f9e1fc7895b137f39c8e38f97252491b5fe15c9e932c52b5ed36c81bc4911
7
+ data.tar.gz: d2c1fda36dbe5183821d728ac2982900f1b7f0c9730d8aade63255f9b1f248018d5b6519a68367e8b4f9a7cd24dde79986f472b6f0db2546e07eee0c1d48547b
data/README.md CHANGED
@@ -2,10 +2,10 @@ Gemfury CLI
2
2
  ===========
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/gemfury.svg)](http://badge.fury.io/rb/gemfury)
5
- [![Build Status](https://secure.travis-ci.org/gemfury/gemfury.svg?branch=master)](https://travis-ci.org/gemfury/gemfury)
6
- [![Code Climate](https://codeclimate.com/github/gemfury/gemfury/badges/gpa.svg)](https://codeclimate.com/github/gemfury/gemfury)
7
5
  [![Documentation](https://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/gemfury)
8
- [![Documentation completeness](https://inch-ci.org/github/gemfury/gemfury.svg?branch=master)](http://inch-ci.org/github/gemfury/gemfury)
6
+ [![Documentation completeness](https://inch-ci.org/github/gemfury/gemfury.svg?branch=main)](http://inch-ci.org/github/gemfury/gemfury)
7
+ [![Build Status](https://github.com/gemfury/gemfury/actions/workflows/specs.yml/badge.svg?branch=main)](https://github.com/gemfury/gemfury/actions/workflows/specs.yml)
8
+ [![Code Climate](https://codeclimate.com/github/gemfury/gemfury/badges/gpa.svg)](https://codeclimate.com/github/gemfury/gemfury)
9
9
 
10
10
  This is the Gemfury CLI used to manage your Gemfury packages from the command line. If you're
11
11
  familiar with the service and want to jump straight into command line action, please proceed to
@@ -273,7 +273,12 @@ private
273
273
 
274
274
  def with_checks_and_rescues(&block)
275
275
  @user_api_key = options[:api_token] if options[:api_token]
276
+
277
+ msg = '[DEPRECATED] This CLI is no longer supported. Please upgrade to the new CLI: https://gemfury.com/guide/cli'
278
+ shell.say(msg, :yellow) if !options[:quiet] && !current_command_chain.include?(:logout)
279
+
276
280
  with_authorization(&block)
281
+
277
282
  rescue Gemfury::InvalidGemVersion => e
278
283
  shell.say "You have a deprecated Gemfury client", :red
279
284
  if shell.yes? "Would you like to update it now? [yN]"
@@ -341,6 +346,9 @@ private
341
346
  shell.say "- this file is too much to handle", :red
342
347
  shell.say " Visit http://www.gemfury.com/large-package for more info"
343
348
  error_ex = e
349
+ rescue Gemfury::Error => e
350
+ shell.say "- #{e.message.downcase}", :red
351
+ error_ex = e
344
352
  rescue => e
345
353
  shell.say "- oops", :red
346
354
  error_ex = e
@@ -1,3 +1,3 @@
1
1
  module Gemfury
2
- VERSION = '0.12.0'
2
+ VERSION = '0.12.1'
3
3
  end
data/lib/gemfury.rb CHANGED
@@ -1,6 +1,10 @@
1
1
  gem "multi_json", "~> 1.10"
2
- gem "faraday", ">= 0.9.0", "< 1.1.0.pre"
3
2
  gem "netrc", ">= 0.10.0", "< 0.12.0.pre"
3
+ gem "faraday", ">= 0.9.0", begin
4
+ is_new = Gem::Dependency.new('ruby', '>= 2.3.0')
5
+ is_new = is_new.match?('ruby', RUBY_VERSION)
6
+ is_new ? "< 2.0.0.pre" : "< 1.5.0.pre"
7
+ end
4
8
 
5
9
  require 'time'
6
10
  require 'cgi'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemfury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rykov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -73,7 +73,7 @@ dependencies:
73
73
  version: 0.9.0
74
74
  - - "<"
75
75
  - !ruby/object:Gem::Version
76
- version: 1.1.0.pre
76
+ version: 2.0.0.pre
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ dependencies:
83
83
  version: 0.9.0
84
84
  - - "<"
85
85
  - !ruby/object:Gem::Version
86
- version: 1.1.0.pre
86
+ version: 2.0.0.pre
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: highline
89
89
  requirement: !ruby/object:Gem::Requirement