offline 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +1 -4
- data/README.md +6 -0
- data/lib/offline.rb +1 -0
- data/lib/offline/github.rb +2 -2
- data/lib/offline/version.rb +1 -1
- data/offline.gemspec +1 -0
- data/spec/offline/github_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fa01a786e6e82d07341184c96fefc1ddef467c2
|
4
|
+
data.tar.gz: c9021f527ba0272b69a8036aaa1839be74b00480
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403cc51c6b175c1d20d2cb81dcaa0cbf371c77574479d5c49427b577c0101666e1897da4550755cdfcf0b3d80f01412aa398e6fce2eafeb989b4edb8e6155f56
|
7
|
+
data.tar.gz: e29667c56efdec4d700df63261f9af9e97a80bb300ac7c2b30937e253ced84ee80117d3e2d9b084b367f6f13473eb5769a0c0f41c5f99cf35826afd273a5aad5
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
# Offline
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/offline.png)](https://rubygems.org/gems/offline)
|
3
|
+
[![Build Status](https://travis-ci.org/vertis/offline.png?branch=master)](https://travis-ci.org/vertis/offline)
|
4
|
+
[![Dependency Status](https://gemnasium.com/vertis/offline.png?travis)](https://gemnasium.com/vertis/offline)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/vertis/offline.png)](https://codeclimate.com/github/vertis/offline)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/vertis/offline/badge.png?branch=master)](https://coveralls.io/r/vertis/offline)
|
7
|
+
|
2
8
|
|
3
9
|
Offline is an open source command line tool for mirroring & cloning github projects.
|
4
10
|
|
data/lib/offline.rb
CHANGED
data/lib/offline/github.rb
CHANGED
@@ -11,8 +11,8 @@ module Offline
|
|
11
11
|
if pass
|
12
12
|
self.class.basic_auth user, pass
|
13
13
|
response = self.class.get("/user")
|
14
|
-
if response.code
|
15
|
-
raise Exception.new({"error"=>"
|
14
|
+
if response.code >= 400 && response.code < 500
|
15
|
+
raise Exception.new({ "code" => response.code, "error" => response.parsed_response["message"] })
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/offline/version.rb
CHANGED
data/offline.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.add_development_dependency('rake')
|
22
22
|
s.add_development_dependency('rspec')
|
23
|
+
s.add_development_dependency('coveralls')
|
23
24
|
|
24
25
|
s.files = `git ls-files`.split("\n")
|
25
26
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/spec/offline/github_spec.rb
CHANGED
@@ -7,7 +7,7 @@ describe Offline::Github do
|
|
7
7
|
|
8
8
|
context "authenticated user" do
|
9
9
|
it "should fail if I give the wrong password" do
|
10
|
-
expect { Offline::Github.new(
|
10
|
+
expect { Offline::Github.new("notarealaccount#{rand(9999)}", 'password') }.to raise_error
|
11
11
|
end
|
12
12
|
|
13
13
|
unless ENV['TRAVIS']
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: offline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Chadwick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coveralls
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Tools for working with github
|
70
84
|
email:
|
71
85
|
- me@vertis.io
|