random_org_http_api 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.travis.yml +10 -0
- data/Gemfile +5 -0
- data/README.md +3 -1
- data/lib/random_org_http_api/version.rb +1 -1
- data/spec/random_org_http_api/generator_spec.rb +1 -1
- data/spec/spec_helper.rb +10 -3
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 467e2abb74244f0f471b85fd48166f1e0c0261fd
|
4
|
+
data.tar.gz: f26795a3c1ff117a12e6a228fd6c529c65d457c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# RandomOrgHttpApi
|
2
|
-
[](http://badge.fury.io/rb/random_org_http_api)
|
3
|
+
[](https://codeclimate.com/github/istickz/random_org_http_api)
|
4
|
+
[](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.
|
@@ -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 '
|
2
|
-
require '
|
3
|
-
|
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.
|
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-
|
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
|