phearb 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/README.md +5 -2
- data/lib/phearb/version.rb +1 -1
- data/phearb.gemspec +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22bc3131cddf809780e9a7bdd8d2f3c08e82471c
|
4
|
+
data.tar.gz: e0c6d31f128d5ba6513bb3541c7408481fee760e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70280d364d983a9e5e7f74546222ca6b5bd05284cb12bd19b97ba3f1f3a6f74791c2e4742c75a6b4753c270c6a359517d64b1a0a1b175310709b279c04f4624e
|
7
|
+
data.tar.gz: 5ad2927c60b0002b6b0f8ab94329fe4b3f3121f87078e6f1c82591be8d29321e95237bce82893cf18d0fc2fdd41ae19840443a2bdfe4c1d0fcb549eb45ae6815
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Phearb
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/phearb.svg)](https://badge.fury.io/rb/phearb)
|
4
|
+
[![Build Status](https://travis-ci.org/joaquinrulin/phearb.svg?branch=master)](https://travis-ci.org/joaquinrulin/phearb)
|
5
|
+
|
3
6
|
Phearb is a library for handling connections to [**phear**](https://github.com/Tomtomgo/phearjs) servers. It allows ruby apps to easy fetch sites source code using phear.
|
4
7
|
|
5
8
|
## Installation
|
@@ -29,13 +32,13 @@ Phearb.configure do |config|
|
|
29
32
|
end
|
30
33
|
```
|
31
34
|
|
32
|
-
## Usage
|
35
|
+
## Usage
|
33
36
|
```ruby
|
34
37
|
response = Phearb.fetch('http://www.google.com')
|
35
38
|
puts response.content if response.success
|
36
39
|
```
|
37
40
|
|
38
|
-
Simply calling `Phearb.fetch(<url>)` will do the job. It returns an `Phearb::Response` object wrapping the phearb server response with one method per key:
|
41
|
+
Simply calling `Phearb.fetch(<url>)` will do the job. It returns an `Phearb::Response` object wrapping the phearb server response with one method per key:
|
39
42
|
```
|
40
43
|
{
|
41
44
|
"success": true,
|
data/lib/phearb/version.rb
CHANGED
data/phearb.gemspec
CHANGED
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
+
spec.required_ruby_version = '>= 2.0'
|
21
|
+
|
20
22
|
spec.add_development_dependency "bundler", "~> 1.12"
|
21
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
22
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phearb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joaquín Moreira
|
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
140
|
requirements:
|
141
141
|
- - ">="
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: '0'
|
143
|
+
version: '2.0'
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
146
|
- - ">="
|