screenbeacon 0.1.0
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 +7 -0
- data/.gitignore +4 -0
- data/.travis.yml +29 -0
- data/Gemfile +8 -0
- data/LICENSE +21 -0
- data/README.rdoc +44 -0
- data/Rakefile +7 -0
- data/VERSION +1 -0
- data/bin/screenbeacon-console +7 -0
- data/gemfiles/default-with-activesupport.gemfile +10 -0
- data/gemfiles/json.gemfile +12 -0
- data/gemfiles/yajl.gemfile +12 -0
- data/lib/data/ca-certificates.crt +5165 -0
- data/lib/screenbeacon/alert.rb +32 -0
- data/lib/screenbeacon/api_operations/create.rb +16 -0
- data/lib/screenbeacon/api_operations/delete.rb +11 -0
- data/lib/screenbeacon/api_operations/list.rb +17 -0
- data/lib/screenbeacon/api_operations/request.rb +42 -0
- data/lib/screenbeacon/api_operations/update.rb +17 -0
- data/lib/screenbeacon/api_resource.rb +35 -0
- data/lib/screenbeacon/errors/api_connection_error.rb +4 -0
- data/lib/screenbeacon/errors/api_error.rb +4 -0
- data/lib/screenbeacon/errors/authentication_error.rb +4 -0
- data/lib/screenbeacon/errors/invalid_request_error.rb +10 -0
- data/lib/screenbeacon/errors/screenbeacon_error.rb +20 -0
- data/lib/screenbeacon/project.rb +13 -0
- data/lib/screenbeacon/screenbeacon_object.rb +263 -0
- data/lib/screenbeacon/test.rb +8 -0
- data/lib/screenbeacon/util.rb +130 -0
- data/lib/screenbeacon/version.rb +3 -0
- data/lib/screenbeacon.rb +305 -0
- data/screenbeacon.gemspec +27 -0
- data/test/screenbeacon/alert_test.rb +14 -0
- data/test/screenbeacon/api_resource_test.rb +82 -0
- data/test/screenbeacon/project_test.rb +36 -0
- data/test/screenbeacon/screenbeacon_object_test.rb +28 -0
- data/test/screenbeacon/test_test.rb +36 -0
- data/test/screenbeacon/util_test.rb +34 -0
- data/test/test_data.rb +147 -0
- data/test/test_helper.rb +43 -0
- metadata +176 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 32499c7e82d4ba199cbf24eca7329015d6940e5d
|
4
|
+
data.tar.gz: c49c440227d80b0ea05a96fb8d9080d191d24d11
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7578f2209999bd3af712ced47098413d3867d72f1bb61233bb7129fc1db27889cfb5262c2748d72c2a4881eeddd2ba0a0721a1d987eeecd93b49771260b5ce9e
|
7
|
+
data.tar.gz: a0d2d7597ddec40ab8c45ab48cee57c0a1d923bf46e86ced76abde368e01e8b1221352597debf86258e68a9c9be7d90e0668a50654b6f0b9e9f3580954e32c58
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
rvm:
|
4
|
+
- 1.8.7
|
5
|
+
- 1.9.2
|
6
|
+
- 1.9.3
|
7
|
+
- 2.0.0
|
8
|
+
- 2.1
|
9
|
+
- 2.2
|
10
|
+
- jruby-19mode
|
11
|
+
|
12
|
+
gemfile:
|
13
|
+
- gemfiles/default-with-activesupport.gemfile
|
14
|
+
- gemfiles/json.gemfile
|
15
|
+
- gemfiles/yajl.gemfile
|
16
|
+
|
17
|
+
matrix:
|
18
|
+
exclude:
|
19
|
+
- rvm: jruby-19mode
|
20
|
+
gemfile: gemfiles/yajl.gemfile
|
21
|
+
|
22
|
+
sudo: false
|
23
|
+
|
24
|
+
branches:
|
25
|
+
only:
|
26
|
+
- master
|
27
|
+
|
28
|
+
addons:
|
29
|
+
code_climate: 27c67395673ed8b89ce84de4c89fe0cc9f397147daaae4e583796ef9f5b67640
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2015- Screenbeacon, Inc. (https://www.screenbeacon.com)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
= Screenbeacon Ruby Libary {<img src="https://travis-ci.org/screenbeacon/screenbeacon-ruby.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/screenbeacon/screenbeacon-ruby]
|
2
|
+
|
3
|
+
== Documentation
|
4
|
+
|
5
|
+
{Screenbeacon API Docs}[https://screenbeacon.readme.io]
|
6
|
+
|
7
|
+
|
8
|
+
== Installation
|
9
|
+
|
10
|
+
You don't need this source code unless you want to modify the gem. If
|
11
|
+
you just want to use the Screenbeacon Ruby bindings, you should run:
|
12
|
+
|
13
|
+
gem install screenbeacon
|
14
|
+
|
15
|
+
If you want to build the gem from source:
|
16
|
+
|
17
|
+
gem build screenbeacon.gemspec
|
18
|
+
|
19
|
+
== Requirements
|
20
|
+
|
21
|
+
* Ruby 1.8.7 or above. (Ruby 1.8.6 may work if you load
|
22
|
+
ActiveSupport.) For Ruby versions before 1.9.2, you'll need to add this to your Gemfile:
|
23
|
+
|
24
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.2')
|
25
|
+
gem 'rest-client', '~> 1.6.8'
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
* rest-client, json
|
30
|
+
|
31
|
+
== Bundler
|
32
|
+
|
33
|
+
If you are installing via bundler, you should be sure to use the https
|
34
|
+
rubygems source in your Gemfile, as any gems fetched over http could potentially be
|
35
|
+
compromised in transit and alter the code of gems fetched securely over https:
|
36
|
+
|
37
|
+
source 'https://rubygems.org'
|
38
|
+
|
39
|
+
gem 'rails'
|
40
|
+
gem 'screenbeacon'
|
41
|
+
|
42
|
+
== Development
|
43
|
+
|
44
|
+
Test cases can be run with: `bundle exec rake test`
|
data/Rakefile
ADDED
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
@@ -0,0 +1,10 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
3
|
+
|
4
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
|
5
|
+
gem 'i18n', '< 0.7'
|
6
|
+
gem 'rest-client', '~> 1.6.8'
|
7
|
+
gem 'activesupport', '~> 3.2'
|
8
|
+
else
|
9
|
+
gem 'activesupport'
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
3
|
+
|
4
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
|
5
|
+
gem 'i18n', '< 0.7'
|
6
|
+
gem 'rest-client', '~> 1.6.8'
|
7
|
+
gem 'activesupport', '~> 3.2'
|
8
|
+
else
|
9
|
+
gem 'activesupport'
|
10
|
+
end
|
11
|
+
|
12
|
+
gem 'json'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
3
|
+
|
4
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
|
5
|
+
gem 'i18n', '< 0.7'
|
6
|
+
gem 'rest-client', '~> 1.6.8'
|
7
|
+
gem 'activesupport', '~> 3.2'
|
8
|
+
else
|
9
|
+
gem 'activesupport'
|
10
|
+
end
|
11
|
+
|
12
|
+
gem 'yajl-ruby'
|