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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2553539535112ec8be52a3a257ba8d6b36386d3
4
- data.tar.gz: 39f6446d83275606c1db1c6ce8e84feaedc8b048
3
+ metadata.gz: 13a7f5400a9b8e89df9e7a44e29d5369c310e235
4
+ data.tar.gz: 1957e256827545da8d7abf5f634ee4a47e916cfb
5
5
  SHA512:
6
- metadata.gz: e54f6b4e89d6fe2e3d999667955b344cf5c92481775729d3275a9a56bddbd69df4daae06550a7c1b60da009e1e964bef29e613fa0139f2cd9e6796aa6b4d83f8
7
- data.tar.gz: 2ab337df7f22b288dd10b1f10473866f82a707536a2891a76f70fe81a6e047d011c4e4c23849cc596f183fcec19c1a5e6b780a38dd0612fb67d119d160c95346
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@2x.png" alt="Gem Version" height="18"></a>
5
- [![Build Status](https://secure.travis-ci.org/gemfury/gemfury.png?branch=master)](https://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
@@ -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.9.0.pre"
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 'faraday_middleware'
9
+ require 'faraday'
11
10
  require 'faraday/request/multipart_with_file'
12
11
 
13
12
  require 'gemfury/version'
@@ -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
- #builder.use Faraday::Response::Logger
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
@@ -1,3 +1,3 @@
1
1
  module Gemfury
2
- VERSION = '0.4.23'
2
+ VERSION = '0.4.24.beta1'
3
3
  end
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.23
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-03-24 00:00:00.000000000 Z
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: '0.7'
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: '0'
156
+ version: 1.3.1
177
157
  requirements: []
178
158
  rubyforge_project:
179
159
  rubygems_version: 2.2.1