random_org_http_api 0.0.2 → 0.0.3

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: 339dec176cb7f910f4a76ef4d4ee7c9045290303
4
- data.tar.gz: 414d5c5d5befa1894beeb772274977758798cea8
3
+ metadata.gz: 467e2abb74244f0f471b85fd48166f1e0c0261fd
4
+ data.tar.gz: f26795a3c1ff117a12e6a228fd6c529c65d457c2
5
5
  SHA512:
6
- metadata.gz: db15484b5cec99715f23c35431a3aaa1e2f859d09093860bc00d57395e541542694bf1422d19193d520b245ca5732a375da81efe19cf4da3f6ddb5918bda6636
7
- data.tar.gz: 9262f1a2299054ef678005c7a1f3541f2ca7c62b8af8960a64b878ab16315a9c18c2e81c342bf52699077c583f0000ce20e3c27089669591b828c127182bdac9
6
+ metadata.gz: 47d7b7ffbbde6c941fb3e74dd926184b81ca39dd3cec6af4d8b88987b04499b110aedae61aebd75753c0fcfa5d987b7655958670d9b8483be2da64be9c2f827b
7
+ data.tar.gz: 464d646843b502f4a20c08d6193953f04888c1b905d1939134f94f79059a358a77b6e333c207c07ff6672400fd6af234586f1b346b7d54042b51db682a885b7b
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.1
6
+ branches:
7
+ only:
8
+ - master
9
+
10
+
data/Gemfile CHANGED
@@ -2,3 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in random_org_http_api.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'simplecov', :require => false
8
+ gem 'coveralls', require: false
9
+ end
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # RandomOrgHttpApi
2
- [![Gem Version](https://badge.fury.io/rb/random_org_http_api.svg)](http://badge.fury.io/rb/random_org_http_api)
2
+ [![Gem Version](https://badge.fury.io/rb/random_org_http_api.png)](http://badge.fury.io/rb/random_org_http_api)
3
+ [![Code Climate](https://codeclimate.com/github/istickz/random_org_http_api.png)](https://codeclimate.com/github/istickz/random_org_http_api)
4
+ [![Coverage Status](https://coveralls.io/repos/istickz/random_org_http_api/badge.png)](https://coveralls.io/r/istickz/random_org_http_api)
3
5
 
4
6
  Realization of old [HTTP API](http://www.random.org/clients/http/) provided by the random.org service.
5
7
  Not to confuse to new [JSON-RPC API](https://api.random.org/json-rpc/1/) which now is in beta release.
@@ -1,3 +1,3 @@
1
1
  module RandomOrgHttpApi
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -47,7 +47,7 @@ describe RandomOrgHttpApi::Generator do
47
47
  describe '#request' do
48
48
  domain = 'www.random.org'
49
49
 
50
- it 'should do string with error message if request have bad response' do
50
+ it 'should do return string with error message if request have bad response' do
51
51
  bad_query = '/strings/?num=HelloWorld&len=5&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new'
52
52
  expect(@generator.send(:request, domain, bad_query).class).to eq(String)
53
53
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,10 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
- require 'random_org_http_api'
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+
4
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
+ SimpleCov::Formatter::HTMLFormatter,
6
+ Coveralls::SimpleCov::Formatter
7
+ ]
8
+ SimpleCov.start
9
+
10
+ require File.expand_path("../../lib/random_org_http_api", __FILE__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: random_org_http_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Temur Fatkulin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-24 00:00:00.000000000 Z
11
+ date: 2014-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,8 +59,10 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".coveralls.yml"
62
63
  - ".gitignore"
63
64
  - ".rspec"
65
+ - ".travis.yml"
64
66
  - Gemfile
65
67
  - LICENSE.txt
66
68
  - README.md