netstats24-client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/coverage.data +1 -0
- data/lib/netstats24-client.rb +48 -0
- data/lib/netstats24-client/errors.rb +7 -0
- data/lib/netstats24-client/version.rb +5 -0
- data/netstats24-client.gemspec +23 -0
- data/spec/lib/methods/apps_spec.rb +7 -0
- data/spec/lib/methods/auth_spec.rb +38 -0
- data/spec/lib/netstats24-client_spec.rb +20 -0
- data/spec/spec_helper.rb +29 -0
- metadata +97 -0
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color --format d
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Sergio Tulentsev
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Netstats24::Client
|
2
|
+
|
3
|
+
This is a client library for Netstats web service.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'netstats24-client'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install netstats24-client
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Initialize the client with an access token.
|
22
|
+
|
23
|
+
``` ruby
|
24
|
+
client = Netstats24::Client.new access_token: '4f25085903770ad22287f4922582ffeac0b65463'
|
25
|
+
```
|
26
|
+
|
27
|
+
Then you can call methods
|
28
|
+
|
29
|
+
``` ruby
|
30
|
+
apps = client.apps_list
|
31
|
+
```
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
1. Fork it
|
36
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/coverage.data
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/mocking/with_rspec.rb"=>[2, nil, 2, 2, 2, nil, 4, nil, 2, 2, nil, nil, 2, 2, nil, nil, 2, 2, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks.rb"=>[2, 2, 2, nil, 2, 2, 2, 2, nil, 2, 2, 4, 2, nil, 2, nil, nil, 2, 2, nil, nil, 2, 2, nil, nil, 2, nil, 2, 4, 4, 2, nil, nil, 2, 2, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/framework.rb"=>[nil, nil, nil, nil, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/extensions/instance_exec.rb"=>[2, 2, nil, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0, 0, 0, 0, 0, 0, 0, nil, 0, nil, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/method_double.rb"=>[2, 2, nil, 2, nil, 2, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, 0, 0, nil, 0, nil, 0, 0, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/methods.rb"=>[2, 2, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, nil, 0, 0, 0, nil, nil, 0, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, nil, 0, 0, nil, 0, nil, nil, 0, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/argument_matchers.rb"=>[2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, 2, 0, nil, nil, nil, 2, 2, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, nil, 2, 0, 0, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/proxy.rb"=>[2, 2, nil, 2, 2, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 0, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, 0, 0, 0, nil, nil, nil, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, nil, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/test_double.rb"=>[2, 2, nil, nil, nil, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, 0, nil, 0, nil, 0, 0, nil, nil, 2, 0, 0, 0, nil, 0, 0, 0, 0, nil, nil, nil, 2, 0, 0, 0, nil, 0, 0, 0, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/mock.rb"=>[2, 2, 2, 2, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/argument_list_matcher.rb"=>[2, nil, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/message_expectation.rb"=>[2, 2, nil, 2, nil, 2, 2, 2, 2, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, 2, 0, 0, nil, 2, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, 0, nil, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, 0, nil, 0, 0, 0, nil, 0, nil, 0, 0, 0, 0, nil, 0, nil, nil, 0, nil, nil, nil, nil, 2, nil, 0, 0, nil, nil, nil, nil, 0, nil, nil, nil, nil, 2, nil, 0, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, nil, 0, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, 0, 0, 0, nil, 0, nil, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, nil, nil, nil, nil, 2, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/order_group.rb"=>[2, 2, nil, 2, 2, 2, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, nil, nil, 2, 2, nil, nil, 2, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/errors.rb"=>[2, 2, nil, 2, nil, nil, nil, 2, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/error_generator.rb"=>[2, 2, nil, 2, 2, nil, 2, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, nil, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/space.rb"=>[2, 2, nil, 2, 2, 0, nil, nil, 2, 2, 0, nil, nil, nil, 2, 2, 0, nil, 2, 2, nil, nil, 2, 2, nil, nil, 2, nil, 2, 6, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/serialization.rb"=>[2, 2, nil, 2, 2, nil, 2, nil, 2, 0, nil, nil, nil, nil, nil, 2, nil, 2, 0, 0, nil, 0, 0, nil, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/extensions/marshal.rb"=>[2, 2, 2, 0, 0, nil, 0, 0, nil, 0, nil, 0, 0, nil, 0, nil, nil, nil, 2, 2, 2, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/extensions/psych.rb"=>[2, 2, 2, 2, 0, nil, 0, 0, nil, 0, nil, 0, 0, nil, 0, nil, nil, nil, 2, 2, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/any_instance.rb"=>[2, 2, 2, 2, 2, 2, nil, 2, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, 2, 0, 0, nil, 0, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, nil, nil, 2, 2, 0, 0, 0, 0, 0, nil, nil, 0, 0, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/any_instance/chain.rb"=>[2, 2, 2, 2, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, 2, 26, nil, nil, nil, nil, nil, nil, nil, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, nil, nil, 2, 0, 0, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/any_instance/stub_chain.rb"=>[2, 2, 2, nil, 2, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, nil, nil, nil, nil, nil, nil, 0, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb"=>[2, 2, 2, nil, 2, nil, nil, 2, 0, nil, nil, 2, nil, 2, nil, nil, nil, nil, nil, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/any_instance/expectation_chain.rb"=>[2, 2, 2, nil, 2, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 2, nil, nil, nil, nil, 2, 2, 0, nil, nil, 2, nil, 2, nil, nil, nil, nil, nil, 0, nil, nil, nil, nil, 2, 2, 0, nil, nil, 2, nil, 2, nil, nil, nil, nil, nil, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/any_instance/message_chains.rb"=>[2, 2, 2, nil, 2, 2, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, nil, nil, 2, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/any_instance/recorder.rb"=>[2, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, nil, 2, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, 0, 0, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, nil, nil, 2, 0, 0, 0, nil, nil, 2, 0, 0, nil, 0, nil, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/stub_const.rb"=>[2, 2, nil, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, 0, 0, 0, nil, nil, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, 2, 2, nil, nil, 2, 0, nil, nil, nil, 2, nil, nil, nil, nil, 2, nil, nil, 2, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, 2, nil, nil, 2, 0, 0, 0, 0, nil, 0, nil, 2, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, 0, nil, nil, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, 2, 2, nil, 2, nil, 2, 0, 0, 0, 0, 0, nil, nil, 2, 0, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, 2, 2, 0, 0, nil, 0, nil, 0, 0, nil, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, nil, 0, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, 2, 2, 0, 0, 0, 0, 0, nil, nil, 0, 0, nil, nil, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 0, nil, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/version.rb"=>[2, 2, 2, 2, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.11.2/lib/rspec/mocks/example_methods.rb"=>[2, 2, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations.rb"=>[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/extensions.rb"=>[2, 2], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/extensions/array.rb"=>[nil, 2, 376, nil, 0, 0, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/extensions/object.rb"=>[2, 2, 2, nil, nil, 2, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0, nil, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers.rb"=>[2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, nil, nil, nil, nil, 2, 0, nil, 2, 0, nil, nil, nil, nil, 2, 2, nil, 2, 2, 2, 2, nil, 2, 2, 2, 2, nil, 2, 2, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/extensions/instance_eval_with_args.rb"=>[2, 2, 2, 2, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, 0, nil, 0, 0, 0, 0, 0, 0, nil, 0, nil, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/pretty.rb"=>[2, 2, 2, 2, 0, nil, nil, 2, 0, 0, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, 0, nil, nil, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/built_in.rb"=>[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/built_in/base_matcher.rb"=>[2, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, nil, 2, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/matcher.rb"=>[2, nil, 2, 2, 2, nil, nil, 2, 2, 2, 2, nil, 2, 2, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, 0, nil, 0, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, 0, nil, 0, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, nil, 0, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, 0, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/operator_matcher.rb"=>[2, 2, 2, 2, 2, 4, nil, nil, 2, 2, 2, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, 14, 0, 0, nil, 0, nil, nil, nil, 14, 14, 4, 0, nil, 0, nil, nil, nil, nil, 2, 14, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, 0, 0, nil, nil, nil, 2, 2, 2, 0, 0, 0, 0, nil, 0, nil, nil, nil, nil, 2, 2, 0, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/be_close.rb"=>[2, 2, nil, 2, 0, 0, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/generated_descriptions.rb"=>[2, 2, 2, 2, nil, nil, 2, 2, 2, nil, nil, 2, 0, 0, nil, nil, 2, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/method_missing.rb"=>[2, 2, nil, 2, nil, 2, 0, 0, 0, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/compatibility.rb"=>[2, 10, 160, 0, 0, nil, nil, 160, 0, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/dsl.rb"=>[2, 2, 2, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, nil, 2, nil, 2, 4, nil, nil, nil, nil, nil, 2], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/built_in/match_array.rb"=>[2, 2, 2, 2, 2, 0, 0, 0, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, nil, nil, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/expectation_target.rb"=>[2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, 2, 2, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, 2, nil, 2, 2, nil, 2, 0, 0, nil, nil, 2, 0, 0, nil, nil, 2, nil, nil, 2, 0, nil, 0, 0, nil, 0, nil, nil, 2, nil, 2, 0, nil, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/matchers/configuration.rb"=>[2, nil, 2, 2, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, 2, nil, 0, nil, nil, 2, 2, nil, 0, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, 2, 2, nil, nil, nil, 2, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/syntax.rb"=>[2, 2, nil, nil, nil, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 4, nil, nil, nil, nil, 2, 2, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, nil, nil, nil, nil, 2, 0, nil, 0, 0, 0, nil, nil, 0, nil, nil, nil, nil, 2, 2, nil, 2, 2, 0, 0, 0, nil, nil, nil, 2, nil, nil, nil, nil, 2, 0, nil, 0, 0, nil, nil, 0, nil, nil, nil, nil, 2, 4, nil, nil, nil, nil, 2, 4, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/fail_with.rb"=>[2, 2, 2, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, 0, 0, 0, 0, 0, nil, nil, 0, nil, nil, nil, 0, nil, nil, 2, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/errors.rb"=>[2, 2, 2, 0, nil, 2, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/deprecation.rb"=>[2, 2, 0, nil, nil, nil, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0, nil, nil, 0, nil, nil, 0, 0, nil, nil, nil, nil, nil, 0, 0, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/handler.rb"=>[2, 2, 2, 2, 0, 0, 0, nil, 0, 0, nil, nil, nil, 0, nil, 0, 0, nil, 0, nil, nil, nil, nil, 2, 2, 0, 0, 0, nil, 0, nil, nil, 0, nil, nil, nil, 0, nil, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/version.rb"=>[2, 2, nil, 2, 2, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.11.3/lib/rspec/expectations/differ.rb"=>[2, 2, 2, nil, 2, 2, 2, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, nil, nil, nil, 0, 0, nil, 0, nil, nil, 0, 0, nil, nil, nil, 0, nil, nil, 2, 0, 0, 0, nil, 0, 0, nil, nil, nil, 0, nil, nil, nil, 2, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, 0, 0, nil, nil, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/diff-lcs-1.1.3/lib/diff/lcs.rb"=>[nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, nil, nil, nil, 2, nil, 2, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, nil, 0, nil, nil, nil, nil, nil, 2, nil, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, 0, nil, nil, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, 0, nil, 0, 0, 0, 0, nil, 0, nil, nil, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, 0, nil, 0, 0, 0, 0, nil, 0, nil, nil, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, 0, 0, nil, 0, 0, 0, nil, 0, 0, nil, 0, 0, nil, 0, 0, 0, 0, 0, nil, nil, 0, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, nil, 0, nil, 0, nil, nil, nil, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, nil, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, nil, 0, nil, 0, 0, 0, nil, nil, 0, 0, nil, nil, 0, 0, 0, nil, 0, nil, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, 0, 0, nil, 0, 0, 0, 0, nil, nil, nil, nil, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, 0, nil, 0, nil, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, 0, 0, nil, 0, 0, 0, 0, nil, nil, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, 0, nil, nil, 0, nil, 0, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, 0, 0, 0, nil, 0, 0, 0, nil, nil, 0, nil, 0, 0, 0, 0, nil, 0, nil, 0, 0, 0, 0, nil, nil, 0, 0, nil, nil, nil, nil, 0, nil, 0, 0, nil, 0, 0, 0, 0, nil, nil, 0, 0, nil, 0, nil, nil, 0, nil, 0, 0, 0, 0, nil, 0, nil, 0, 0, 0, 0, nil, nil, 0, nil, 0, nil, nil, nil, nil, 0, 0, 0, 0, nil, nil, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, 0, 0, 0, 0, 0, 0, nil, nil, nil, 0, 0, 0, 0, 0, 0, nil, nil, nil, 0, nil, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, nil, 0, nil, 0, nil, nil, nil, 0, 0, 0, 0, 0, nil, nil, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 0, 0, 0, nil, nil, nil, 0, 0, 0, 0, nil, 0, nil, 0, 0, nil, 0, nil, 0, nil, nil, nil, nil, nil, 0, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, 0, 0, nil, 0, nil, nil, nil, nil, 0, nil, 0, nil, 0, 0, nil, 0, nil, nil, 0, 0, nil, 0, nil, nil, 0, 0, 0, nil, nil, nil, 0, nil, 0, 0, 0, nil, 0, nil, nil, 0, 0, 0, nil, 0, nil, nil, 0, 0, nil, 0, 0, nil, 0, 0, 0, nil, 0, 0, 0, nil, 0, 0, nil, nil, nil, nil, nil, 0, nil, nil, 0, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, 0, nil, 0, 0, nil, 0, 0, nil, 0, nil, nil, nil, 0, 0, nil, 0, nil, nil, nil, nil, nil, 0, nil, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/diff-lcs-1.1.3/lib/diff/lcs/callbacks.rb"=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, nil, nil, nil, nil, nil, nil, nil, 2, 2, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, nil, 2, nil, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, nil, 2, 0, 0, nil, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 2, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/diff-lcs-1.1.3/lib/diff/lcs/change.rb"=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil, nil, 2, nil, nil, nil, nil, 2, 2, 2, nil, 2, 2, 0, 0, 0, nil, nil, 2, 0, 0, 0, 0, nil, nil, 2, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, nil, nil, nil, nil, 2, nil, nil, nil, nil, 2, 2, 2, 2, 2, nil, 2, nil, 2, 0, 0, 0, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, 2, 0, nil, nil, nil, 2, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, 0, nil, 0, nil, 0, 0, nil, 0, nil, 0, 0, nil, nil, 0, nil, nil, 2, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/diff-lcs-1.1.3/lib/diff/lcs/hunk.rb"=>[2, nil, nil, nil, nil, 2, nil, nil, 2, nil, 0, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, 0, 0, nil, 0, 0, nil, nil, 0, 0, nil, 0, 0, nil, nil, 0, 0, 0, 0, nil, 0, nil, nil, 2, 2, 2, 2, nil, nil, nil, 2, 2, 2, 0, nil, 0, 0, 0, nil, 0, 0, nil, 0, nil, 0, 0, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, 2, 0, nil, 0, 0, 0, nil, nil, 2, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, nil, nil, 2, 0, nil, nil, 2, nil, nil, 2, 0, 0, nil, 0, nil, nil, nil, nil, 0, nil, nil, 0, 0, 0, 0, nil, nil, 2, nil, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0, nil, 0, nil, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, nil, nil, nil, 0, nil, nil, 2, 0, 0, 0, nil, nil, nil, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, nil, nil, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, 0, nil, 0, nil, nil, 2, 0, 0, nil, 0, 0, nil, 0, nil, nil, 0, 0, 0, nil, 0, nil, nil, nil, nil, 2, 0, nil, 0, nil, 0, nil, nil, 0, nil, nil, nil, nil, nil, 2, 0, nil, 0, nil, 0, nil, nil, 0, 0, 0, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/diff-lcs-1.1.3/lib/diff/lcs/block.rb"=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, nil, 2, 0, 0, 0, nil, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, 0, nil, 0, nil, 0, nil, 0, nil, nil, nil], "/Users/sergio/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/pp.rb"=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, nil, 2, 0, nil, nil, 2, nil, nil, nil, 2, 0, 0, nil, 0, nil, 2, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 2, nil, nil, 2, nil, nil, 2, 2, 0, 0, nil, nil, 0, 0, nil, nil, 0, nil, 0, 0, 0, nil, 0, nil, nil, nil, 2, nil, 0, nil, nil, 2, 0, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, 0, 0, 0, nil, nil, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, 2, nil, 2, nil, 2, nil, 0, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, nil, 0, nil, 0, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, 2, nil, 2, 2, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, 0, 0, nil, nil, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, 0, nil, nil, nil, nil, 2, 2, 0, 0, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, 0, 0, nil, 0, nil, nil, nil, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, 0, 0, 0, 0, nil, nil, nil, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, nil, nil, 0, 0, 0, 0, 0, nil, nil, 0, 0, nil, nil, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, 2, 2, 0, 0, 0, nil, 0, 0, 0, 0, 0, nil, 0, 0, nil, 0, nil, 0, 0, nil, nil, nil, nil, nil, nil, 2, 2, nil, nil, 2, 12, 12, 0, nil, nil, nil, nil, 2, 8, 8, 0, nil, nil, nil], "/Users/sergio/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/prettyprint.rb"=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, 0, 0, 0, nil, 0, 0, 0, 0, nil, 2, 2, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, 0, 0, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, 0, nil, nil, 2, 0, 0, 0, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, 0, nil, nil, nil, nil, nil, 2, 0, 0, nil, 0, 0, nil, nil, 2, 2, 0, 0, nil, 2, nil, 2, 0, 0, nil, nil, 2, 0, 0, nil, nil, nil, 2, 2, 0, 0, 0, 0, 0, 0, nil, 2, nil, 2, 0, 0, 0, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, 2, 2, 0, 0, 0, nil, 2, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, 0, 0, nil, nil, nil, nil, 2, 2, 0, 0, nil, nil, 2, 0, 0, 0, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, nil, 0, 0, nil, nil, nil, nil, 2, 0, nil, nil, nil, 2, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, 0, 0, 0, nil, nil, 2, nil, nil, 2, 0, 0, 0, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/formatters/progress_formatter.rb"=>[2, 2, 2, 2, nil, 2, nil, 2, 2, 2, nil, nil, 2, 0, 0, nil, nil, 2, 0, 0, nil, nil, 2, 2, 2, nil, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/formatters/base_text_formatter.rb"=>[2, nil, 2, 2, 2, nil, 2, nil, 2, 0, nil, nil, 2, 2, 0, 0, 0, 0, 0, 0, nil, nil, nil, 2, 2, 0, 2, 0, nil, 2, nil, nil, nil, 2, 2, nil, 2, 2, 2, 2, nil, nil, 2, 2, 0, 0, 0, nil, 0, 0, nil, nil, nil, 2, 0, 0, nil, 0, 0, nil, 0, 0, nil, 0, nil, 0, 0, 0, nil, nil, nil, 2, 2, 2, 2, 2, nil, nil, 2, 2, 0, 0, 0, 0, 0, 0, nil, 0, 0, 0, nil, nil, nil, nil, nil, 2, 0, 0, 0, nil, nil, 2, 2, nil, nil, 2, nil, 2, 4, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 4, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, nil, 2, 0, 0, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, nil, 2, 0, 0, 0, 0, 0, 0, nil, nil, nil, 2, 0, nil, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/formatters/base_formatter.rb"=>[2, 2, nil, 2, 2, 2, nil, 2, 2, 2, 2, 2, 2, nil, 2, 2, 2, 2, 2, 2, 2, nil, nil, nil, nil, nil, nil, nil, nil, 2, 2, 2, nil, nil, nil, nil, nil, nil, nil, 2, 2, nil, nil, nil, nil, 2, nil, nil, 2, 2, nil, nil, 2, nil, nil, 2, 0, nil, nil, 2, 0, nil, nil, 2, nil, nil, 2, nil, nil, nil, nil, 2, nil, nil, nil, 2, nil, nil, nil, 2, 2, 2, 2, 2, nil, nil, nil, 2, nil, nil, 2, nil, nil, nil, 2, 0, nil, nil, 2, 0, 0, nil, 0, 0, nil, nil, 0, 0, nil, nil, 2, nil, 2, 6, nil, nil, 2, 0, 0, nil, nil, 2, 0, 0, nil, nil, 0, nil, 0, 0, nil, 0, nil, nil, nil, 2, 0, 0, 0, 0, nil, nil, nil, 2, 2, nil, nil, 2, 0, nil, nil, 2, 2, nil, nil, 2, 2, nil, nil, 2, 4, nil, nil, nil, nil, nil, nil, nil], "/Users/sergio/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/formatters/helpers.rb"=>[2, 2, 2, nil, 2, 2, 2, nil, 2, 2, 0, 0, nil, 0, nil, 2, nil, nil, nil, 2, 2, 2, 2, nil, nil, 2, 2, 2, nil, nil, 2, 4, nil, nil, nil, nil, nil, nil, nil]}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'net/http'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
require "netstats24-client/version"
|
5
|
+
require "netstats24-client/errors"
|
6
|
+
|
7
|
+
module Netstats24
|
8
|
+
class Client
|
9
|
+
def initialize opts = {}
|
10
|
+
|
11
|
+
default_server = ENV['RAILS_ENV'] == 'test' ?
|
12
|
+
'http://localhost:3000/api2' :
|
13
|
+
'http://api.netstats24.ru/api2'
|
14
|
+
|
15
|
+
self.server_url = opts[:server_url] || default_server
|
16
|
+
|
17
|
+
self.access_token = opts[:access_token] || ask_for_token(opts)
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :access_token, :server_url
|
21
|
+
|
22
|
+
def method_missing method, *args
|
23
|
+
# warn "method missing: #{method}, #{args.inspect}"
|
24
|
+
send_request method, *args
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
def send_request method, params = {}
|
29
|
+
# warn "server: #{server_url}"
|
30
|
+
uri = URI(server_url)
|
31
|
+
args = params.merge(method: method.to_s.gsub('_', '.'),
|
32
|
+
access_token: access_token)
|
33
|
+
|
34
|
+
res = Net::HTTP.post_form(uri, args).body
|
35
|
+
json = JSON.parse res
|
36
|
+
|
37
|
+
if json['status'] != 'ok'
|
38
|
+
raise Netstats24::Error.new res
|
39
|
+
end
|
40
|
+
json['data']
|
41
|
+
end
|
42
|
+
|
43
|
+
def ask_for_token opts
|
44
|
+
res = auth_login email: opts[:email], password: opts[:password]
|
45
|
+
res['access_token']
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'netstats24-client/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "netstats24-client"
|
8
|
+
gem.version = Netstats24::Client::VERSION
|
9
|
+
gem.authors = ["Sergio Tulentsev"]
|
10
|
+
gem.email = ["sergei.tulentsev@gmail.com"]
|
11
|
+
gem.description = %q{Ruby client for Netstat's API}
|
12
|
+
gem.summary = %q{Ruby client for Netstat's API}
|
13
|
+
gem.homepage = "https://github.com/stulentsev/netstats24-client"
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.add_dependency 'json'
|
21
|
+
|
22
|
+
gem.add_development_dependency 'rspec'
|
23
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Netstats24::Client do
|
4
|
+
subject(:client) { Netstats24::Client.new access_token: '4f25085903770ad22287f4922582ffeac0b65462',
|
5
|
+
server_url: 'http://localhost:3000/api2'}
|
6
|
+
|
7
|
+
describe 'auth_login' do
|
8
|
+
it 'gets access token with email and password' do
|
9
|
+
email = 'test@api.com'
|
10
|
+
password = 'testtest'
|
11
|
+
|
12
|
+
res = client.auth_login email: email, password: password
|
13
|
+
res.should be_a Hash
|
14
|
+
res.should have_key 'access_token'
|
15
|
+
res['access_token'].should_not be_nil
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'fails when email is missing/wrong' do
|
19
|
+
email = 'nonexistent@api.com'
|
20
|
+
password = 'testtest'
|
21
|
+
|
22
|
+
lambda {
|
23
|
+
res = client.auth_login email: email, password: password
|
24
|
+
puts "res: #{res}"
|
25
|
+
}.should raise_error(Netstats24::Error)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'fails when password is missing/wrong' do
|
29
|
+
email = 'test@api.com'
|
30
|
+
password = 'wrong_pwd'
|
31
|
+
|
32
|
+
lambda {
|
33
|
+
res = client.auth_login email: email, password: password
|
34
|
+
puts "res: #{res}"
|
35
|
+
}.should raise_error(Netstats24::Error)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Netstats24::Client do
|
4
|
+
# subject(:client) { Netstats24::Client.new '4f25085903770ad22287f4922582ffeac0b65462',
|
5
|
+
# server_url: 'http://localhost:3000/api2'}
|
6
|
+
|
7
|
+
describe 'constructor' do
|
8
|
+
it 'can work off access token' do
|
9
|
+
client = Netstats24::Client.new access_token: '4f25085903770ad22287f4922582ffeac0b65462'
|
10
|
+
client.ping.should == 'pong'
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'can work off email/password pair' do
|
14
|
+
client = Netstats24::Client.new email: 'test@api.com', password: 'testtest'
|
15
|
+
client.ping.should == 'pong'
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'can accept custom server url'
|
19
|
+
end
|
20
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# figure out where we are being loaded from
|
2
|
+
if $LOADED_FEATURES.grep(/spec\/spec_helper\.rb/).any?
|
3
|
+
begin
|
4
|
+
raise "foo"
|
5
|
+
rescue => e
|
6
|
+
puts <<-MSG
|
7
|
+
===================================================
|
8
|
+
It looks like spec_helper.rb has been loaded
|
9
|
+
multiple times. Normalize the require to:
|
10
|
+
|
11
|
+
require "spec/spec_helper"
|
12
|
+
|
13
|
+
Things like File.join and File.expand_path will
|
14
|
+
cause it to be loaded multiple times.
|
15
|
+
|
16
|
+
Loaded this time from:
|
17
|
+
|
18
|
+
#{e.backtrace.join("\n ")}
|
19
|
+
===================================================
|
20
|
+
MSG
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
require 'rubygems'
|
25
|
+
|
26
|
+
ENV['RAILS_ENV'] = 'test'
|
27
|
+
|
28
|
+
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f }
|
29
|
+
require_relative '../lib/netstats24-client'
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: netstats24-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Sergio Tulentsev
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Ruby client for Netstat's API
|
47
|
+
email:
|
48
|
+
- sergei.tulentsev@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- .rspec
|
55
|
+
- Gemfile
|
56
|
+
- LICENSE.txt
|
57
|
+
- README.md
|
58
|
+
- Rakefile
|
59
|
+
- coverage.data
|
60
|
+
- lib/netstats24-client.rb
|
61
|
+
- lib/netstats24-client/errors.rb
|
62
|
+
- lib/netstats24-client/version.rb
|
63
|
+
- netstats24-client.gemspec
|
64
|
+
- spec/lib/methods/apps_spec.rb
|
65
|
+
- spec/lib/methods/auth_spec.rb
|
66
|
+
- spec/lib/netstats24-client_spec.rb
|
67
|
+
- spec/spec_helper.rb
|
68
|
+
homepage: https://github.com/stulentsev/netstats24-client
|
69
|
+
licenses: []
|
70
|
+
post_install_message:
|
71
|
+
rdoc_options: []
|
72
|
+
require_paths:
|
73
|
+
- lib
|
74
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
requirements: []
|
87
|
+
rubyforge_project:
|
88
|
+
rubygems_version: 1.8.24
|
89
|
+
signing_key:
|
90
|
+
specification_version: 3
|
91
|
+
summary: Ruby client for Netstat's API
|
92
|
+
test_files:
|
93
|
+
- spec/lib/methods/apps_spec.rb
|
94
|
+
- spec/lib/methods/auth_spec.rb
|
95
|
+
- spec/lib/netstats24-client_spec.rb
|
96
|
+
- spec/spec_helper.rb
|
97
|
+
has_rdoc:
|