gemfury 0.4.23 → 0.4.24.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/gemfury.rb +2 -3
- data/lib/gemfury/client.rb +1 -2
- data/lib/gemfury/client/middleware.rb +10 -0
- data/lib/gemfury/version.rb +1 -1
- metadata +5 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13a7f5400a9b8e89df9e7a44e29d5369c310e235
|
4
|
+
data.tar.gz: 1957e256827545da8d7abf5f634ee4a47e916cfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3813378c66d297ad7d2c1ec379d8d900d20ba6732b11abee40ee5723521caa7d878b5b2c347a4a1bca8ed9ba3c71242451d5833b32e6040b999c0526bd0b5ef5
|
7
|
+
data.tar.gz: 9d7d67c2e4b84e4e70f6ddebab6d81f27ad73a56b68fd19739fbc54f5164b15ae57da684f1f1bf1cc28c85c5c0af7dab52ad386e5985e41d7a7bbe826e7a35e6
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gemfury CLI
|
2
2
|
===========
|
3
3
|
|
4
|
-
<a href="http://badge.fury.io/rb/gemfury"><img src="https://badge.fury.io/rb/gemfury
|
5
|
-
[![Build Status](https://secure.travis-ci.org/gemfury/gemfury.
|
4
|
+
<a href="http://badge.fury.io/rb/gemfury"><img src="https://badge.fury.io/rb/gemfury.svg" alt="Gem Version" height="18"></a>
|
5
|
+
[![Build Status](https://secure.travis-ci.org/gemfury/gemfury.svg?branch=master)](https://travis-ci.org/gemfury/gemfury)
|
6
6
|
|
7
7
|
This is the Gemfury CLI used to manage your Gemfury packages from the command line. If you're
|
8
8
|
familiar with the service and want to jump straight into command line action, please proceed to
|
data/lib/gemfury.rb
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
gem "netrc", "~> 0.7.7"
|
2
2
|
gem "multi_json", "~> 1.0"
|
3
|
-
gem "faraday", ">= 0.7.4", "< 0.
|
4
|
-
gem "faraday_middleware", ">= 0.7", "< 0.10.0.pre"
|
3
|
+
gem "faraday", ">= 0.7.4", "< 0.10.0.pre"
|
5
4
|
|
6
5
|
require 'cgi'
|
7
6
|
require 'uri'
|
8
7
|
require 'netrc'
|
9
8
|
require 'multi_json'
|
10
|
-
require '
|
9
|
+
require 'faraday'
|
11
10
|
require 'faraday/request/multipart_with_file'
|
12
11
|
|
13
12
|
require 'gemfury/version'
|
data/lib/gemfury/client.rb
CHANGED
@@ -129,8 +129,7 @@ module Gemfury
|
|
129
129
|
builder.use Faraday::Request::MultipartWithFile
|
130
130
|
builder.use Faraday::Request::Multipart
|
131
131
|
builder.use Faraday::Request::UrlEncoded
|
132
|
-
|
133
|
-
builder.use Faraday::Response::ParseJson
|
132
|
+
builder.use ParseJson
|
134
133
|
builder.use Handle503
|
135
134
|
builder.adapter :net_http
|
136
135
|
end
|
@@ -8,5 +8,15 @@ module Gemfury
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
11
|
+
|
12
|
+
class ParseJson < Faraday::Response::Middleware
|
13
|
+
def parse(body)
|
14
|
+
body =~ /\A\s*\z/ ? nil : MultiJson.decode(body)
|
15
|
+
end
|
16
|
+
|
17
|
+
def on_complete(response)
|
18
|
+
response.body = parse(response.body)
|
19
|
+
end
|
20
|
+
end
|
11
21
|
end
|
12
22
|
end
|
data/lib/gemfury/version.rb
CHANGED
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.4.
|
4
|
+
version: 0.4.24.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Rykov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -79,26 +79,6 @@ dependencies:
|
|
79
79
|
- - '>='
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: 0.7.4
|
82
|
-
- - <
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 0.9.0.pre
|
85
|
-
type: :runtime
|
86
|
-
prerelease: false
|
87
|
-
version_requirements: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - '>='
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: 0.7.4
|
92
|
-
- - <
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 0.9.0.pre
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: faraday_middleware
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0.7'
|
102
82
|
- - <
|
103
83
|
- !ruby/object:Gem::Version
|
104
84
|
version: 0.10.0.pre
|
@@ -108,7 +88,7 @@ dependencies:
|
|
108
88
|
requirements:
|
109
89
|
- - '>='
|
110
90
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
91
|
+
version: 0.7.4
|
112
92
|
- - <
|
113
93
|
- !ruby/object:Gem::Version
|
114
94
|
version: 0.10.0.pre
|
@@ -171,9 +151,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
151
|
version: '0'
|
172
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
153
|
requirements:
|
174
|
-
- - '
|
154
|
+
- - '>'
|
175
155
|
- !ruby/object:Gem::Version
|
176
|
-
version:
|
156
|
+
version: 1.3.1
|
177
157
|
requirements: []
|
178
158
|
rubyforge_project:
|
179
159
|
rubygems_version: 2.2.1
|