resto 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
5
+
6
+ require "resto/version"
7
+
8
+ desc "open console (require 'resto')"
9
+ task :c do
10
+ system "irb -I lib -r resto"
11
+ end
12
+
13
+ desc "adds encoding utf-8.."
14
+ task :clean do
15
+ system "code-cleaner . --encoding=utf-8"
16
+ end
17
+
18
+ desc "Runs all the specs."
19
+ task :spec => :clean do
20
+ system "bundle exec rspec spec"
21
+ end
22
+
23
+ task :default do
24
+ system "bundle exec rspec spec"
25
+ end
26
+
27
+ task :test => :default
data/lib/resto/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Resto
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/readme.markdown ADDED
@@ -0,0 +1,62 @@
1
+ # Resto
2
+
3
+ * http://github.com/unders/resto
4
+ * [![Build Status](http://travis-ci.org/unders/resto.png)](http://travis-ci.org/unders/resto)
5
+
6
+ ## Description:
7
+
8
+ Resto aims to simplify working with web services.
9
+ Documentation is available at [rubydoc](http://rubydoc.info/gems/resto)
10
+
11
+ ## Compatibility
12
+
13
+ Ruby version 1.9.2 and 1.8.7
14
+
15
+ ## Install
16
+
17
+ Install as a gem:
18
+
19
+ gem install resto
20
+
21
+ ## Getting Started
22
+
23
+ ### Working with the [Gists API](http://developer.github.com/v3/gists/)
24
+
25
+ #### 1. Test the API
26
+
27
+ Resto.url('https://api.github.com/users/unders/gists').format(:json).
28
+ params(:per_page => 1).get!
29
+
30
+ and the output will look like [this](https://github.com/unders/resto/raw/master/example/1_gists_output.txt).
31
+
32
+ ## Examples
33
+
34
+ To run all [examples](https://github.com/unders/resto/tree/master/example), rename:
35
+ [key_setup.rb.your_keys](https://github.com/unders/resto/tree/master/example/key_setup.rb.your_keys)
36
+ to key_setup.rb and add your API keys.
37
+
38
+
39
+ ## License:
40
+
41
+ (The MIT License)
42
+
43
+ Copyright (c) 2011 Anders Törnqvist
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining
46
+ a copy of this software and associated documentation files (the
47
+ 'Software'), to deal in the Software without restriction, including
48
+ without limitation the rights to use, copy, modify, merge, publish,
49
+ distribute, sublicense, and/or sell copies of the Software, and to
50
+ permit persons to whom the Software is furnished to do so, subject to
51
+ the following conditions:
52
+
53
+ The above copyright notice and this permission notice shall be
54
+ included in all copies or substantial portions of the Software.
55
+
56
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
57
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
58
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
59
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
60
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
61
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
62
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/resto.gemspec CHANGED
@@ -36,7 +36,8 @@ Gem::Specification.new do |s|
36
36
  # s.add_development_dependency "cucumber"
37
37
  # s.add_development_dependency "aruba"
38
38
 
39
- s.files = Dir.glob("{lib,spec}/**/*") + %w(resto.gemspec)
39
+ s.files = Dir.glob("{lib,spec}/**/*") + %w(resto.gemspec .gemtest Rakefile
40
+ readme.markdown)
40
41
  # s.files = `git ls-files`.split("\n")
41
42
  # s.executables = `git ls-files`.split("\n").map do |f|
42
43
  # f =~ /^bin\/(.*)/ ? $1 : nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resto
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Anders T\xC3\xB6rnqvist"
@@ -254,6 +254,9 @@ files:
254
254
  - spec/resto_spec.rb
255
255
  - spec/spec_helper.rb
256
256
  - resto.gemspec
257
+ - .gemtest
258
+ - Rakefile
259
+ - readme.markdown
257
260
  homepage: https://github.com/unders/resto
258
261
  licenses: []
259
262