gerry 0.1.4 → 0.1.5

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: 936f9713ab667e539c25a10ef8522775278899a7
4
- data.tar.gz: f1c041c4c60e5e3c941c86857636f6163982928e
3
+ metadata.gz: 91c40a7875d06760451c59c7fd5f1922e20d2847
4
+ data.tar.gz: b6851747cc68c4fd464e45ac2ccf1e631373b705
5
5
  SHA512:
6
- metadata.gz: e3195e85ec668d5b94b9ad94a3eabadff8ee38a9a69a317c174f6eb871fe56c87b41c4f28054f5e4dd49ce91a6348c805bafffaff7e82347b80a9588e358dc89
7
- data.tar.gz: b9fdda425e6fe193b5c238db28243a7e7e9bae15557c9d6f88cfd70b8419831b2a7062289d2c9e39a3c6d75c7da271716276a7b903cab702a46e424340b3dc95
6
+ metadata.gz: 4d4ecff2d29765f01447751a02acf6c1483511ddff30a97646e98db76af1cfdb2d70b7a4ef3215737a35ae512961a30cccd9e918b760bc99bdc2ae3a36741ac3
7
+ data.tar.gz: 1d136184cd7f27fcaac9d260683f72bc5312350de68935e64a376a6fdf530f39abb55b2334b68f7ac6511b96683e22b798ddd5e51ea72ef706b5bb4b4bc089f6
@@ -31,6 +31,9 @@ module Gerry
31
31
  if username && password
32
32
  @username = username
33
33
  @password = password
34
+ else
35
+ require 'netrc'
36
+ @username, @password = Netrc.read[URI.parse(url).host]
34
37
  end
35
38
  end
36
39
  end
@@ -1,5 +1,5 @@
1
1
  module Gerry
2
2
 
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gerry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Mettler
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-06-21 00:00:00.000000000 Z
15
+ date: 2018-06-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: httparty
@@ -126,7 +126,8 @@ dependencies:
126
126
  - - ">="
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
- description: " Simple Ruby wrapper for the Gerrit Code Review REST-API.\n"
129
+ description: |2
130
+ Simple Ruby wrapper for the Gerrit Code Review REST-API.
130
131
  email: trumant@gmail.com
131
132
  executables: []
132
133
  extensions: []
@@ -182,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
183
  version: '0'
183
184
  requirements: []
184
185
  rubyforge_project:
185
- rubygems_version: 2.5.1
186
+ rubygems_version: 2.2.2
186
187
  signing_key:
187
188
  specification_version: 4
188
189
  summary: Simple Ruby wrapper for the Gerrit Code Review REST-API.