traction 0.1.0 → 0.1.1
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/bin/console +2 -9
- data/lib/traction/version.rb +2 -2
- data/lib/traction/web_connection.rb +2 -0
- data/traction.gemspec +6 -5
- metadata +26 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a31dac6a900be7d5616b026ebd5a76bb15d7f76
|
|
4
|
+
data.tar.gz: cea3477e2e91ee28a335158f8a575655b73b4dd6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6d3759f73133929af7a2cce204bb2354fd0da2f4baa498377b8b41a44e3731ffeb560ad7a447638f68a36366fad8a298eb72ba1ecccbe378a6651dd4cf3a4d9
|
|
7
|
+
data.tar.gz: dada1d914757f89358e5ea65c3fed5e99ddc5b487a47d44a01e826d632b684a544feafbfa914f7ab8d932a70ea2752ac216ebe2b8e23818415f81e92b9cfe92e
|
data/bin/console
CHANGED
|
@@ -3,12 +3,5 @@
|
|
|
3
3
|
require "bundler/setup"
|
|
4
4
|
require "traction"
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start
|
|
6
|
+
require "pry"
|
|
7
|
+
Pry.start
|
data/lib/traction/version.rb
CHANGED
|
@@ -310,6 +310,8 @@ module Traction
|
|
|
310
310
|
JSON.parse(response.body)
|
|
311
311
|
when "401"
|
|
312
312
|
{ success: false, error: { code: 401, description: "Unauthorised Access", cause: "The API call was not authorised. Check your URL and password details." } }
|
|
313
|
+
when "403"
|
|
314
|
+
{ success: false, error: { code: 403, description: "Forbidden", cause: "The API call was forbidden. Often this means the URL was incorrect. Check your URL and password details." } }
|
|
313
315
|
when "404"
|
|
314
316
|
{ success: false, error: { code: 404, description: "Invalid URL", cause: "The URL was incorrect. Check your URL and password details." } }
|
|
315
317
|
when "503"
|
data/traction.gemspec
CHANGED
|
@@ -8,12 +8,12 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.version = Traction::VERSION
|
|
9
9
|
spec.date = Traction::DATE
|
|
10
10
|
|
|
11
|
-
spec.summary = ""
|
|
12
|
-
spec.description = ""
|
|
11
|
+
spec.summary = "A Ruby wrapper of the Traction Digital API"
|
|
12
|
+
spec.description = "A Ruby wrapper of the Traction Digital API. The wrapper contains only methods for endpoints for which previous access has been established. The addition of new methods when an API is created is encouraged."
|
|
13
13
|
|
|
14
|
-
spec.authors = [""]
|
|
15
|
-
spec.email = [""]
|
|
16
|
-
spec.homepage = ""
|
|
14
|
+
spec.authors = ["Philip Castiglione", "Andrew Buntine"]
|
|
15
|
+
spec.email = ["philipcastiglione@gmail.com", "dev@hhd.com.au"]
|
|
16
|
+
spec.homepage = "https://github.com/hardhatdigital/traction"
|
|
17
17
|
|
|
18
18
|
spec.license = "MIT"
|
|
19
19
|
|
|
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.9"
|
|
26
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
27
|
+
spec.add_development_dependency "pry", "~> 0"
|
|
27
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: traction
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Philip Castiglione
|
|
8
|
+
- Andrew Buntine
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: exe
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2016-02
|
|
12
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: bundler
|
|
@@ -38,9 +39,26 @@ dependencies:
|
|
|
38
39
|
- - "~>"
|
|
39
40
|
- !ruby/object:Gem::Version
|
|
40
41
|
version: '10.0'
|
|
41
|
-
|
|
42
|
+
- !ruby/object:Gem::Dependency
|
|
43
|
+
name: pry
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - "~>"
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
type: :development
|
|
50
|
+
prerelease: false
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - "~>"
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '0'
|
|
56
|
+
description: A Ruby wrapper of the Traction Digital API. The wrapper contains only
|
|
57
|
+
methods for endpoints for which previous access has been established. The addition
|
|
58
|
+
of new methods when an API is created is encouraged.
|
|
42
59
|
email:
|
|
43
|
-
-
|
|
60
|
+
- philipcastiglione@gmail.com
|
|
61
|
+
- dev@hhd.com.au
|
|
44
62
|
executables: []
|
|
45
63
|
extensions: []
|
|
46
64
|
extra_rdoc_files: []
|
|
@@ -56,7 +74,7 @@ files:
|
|
|
56
74
|
- lib/traction/version.rb
|
|
57
75
|
- lib/traction/web_connection.rb
|
|
58
76
|
- traction.gemspec
|
|
59
|
-
homepage:
|
|
77
|
+
homepage: https://github.com/hardhatdigital/traction
|
|
60
78
|
licenses:
|
|
61
79
|
- MIT
|
|
62
80
|
metadata: {}
|
|
@@ -76,9 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
94
|
version: '0'
|
|
77
95
|
requirements: []
|
|
78
96
|
rubyforge_project:
|
|
79
|
-
rubygems_version: 2.
|
|
97
|
+
rubygems_version: 2.5.1
|
|
80
98
|
signing_key:
|
|
81
99
|
specification_version: 4
|
|
82
|
-
summary:
|
|
100
|
+
summary: A Ruby wrapper of the Traction Digital API
|
|
83
101
|
test_files: []
|
|
84
|
-
has_rdoc:
|