wes-data-api 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wes/data/api/collective.rb +34 -0
- data/lib/wes/data/api/version.rb +1 -1
- data/wes-data-api.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cb074f5605b7ce3caa0db90d40c3cbf4e8b5302
|
4
|
+
data.tar.gz: e1167522705d5bb19fcfd6d2f0a4d4fda18acd6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ae7c2baffe799cdcc173336e09def722039d882497a36b151103e49edcdbc5706fc3dbebb99d4661249b13b06f45256277bfa18e87b2793a7d3e5282d6e2026
|
7
|
+
data.tar.gz: 270cee484913b9956c7382a08c6c8519ce5e8d5139204a0c0607946f81d1de9ccedfa11b80e01effdf330e29f00474a54664c837ee5f88c48ece836e58ad7cdf
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require "wes/data/api/client"
|
2
|
+
require "wes/data/api/configuration"
|
3
|
+
|
4
|
+
module Wes
|
5
|
+
module Data
|
6
|
+
module API
|
7
|
+
class Collective
|
8
|
+
def self.all
|
9
|
+
new.all
|
10
|
+
end
|
11
|
+
|
12
|
+
def all
|
13
|
+
client.get "#{routes.collectives}"
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
attr_reader :id
|
19
|
+
|
20
|
+
def client
|
21
|
+
Client.new
|
22
|
+
end
|
23
|
+
|
24
|
+
def configuration
|
25
|
+
Configuration
|
26
|
+
end
|
27
|
+
|
28
|
+
def routes
|
29
|
+
configuration.routes
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/lib/wes/data/api/version.rb
CHANGED
data/wes-data-api.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_development_dependency "bundler", "~> 1.
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
21
21
|
spec.add_development_dependency "pry"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
spec.add_development_dependency "rspec", "~> 3.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wes-data-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.9'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- lib/wes/data/api/brand.rb
|
121
121
|
- lib/wes/data/api/challenge.rb
|
122
122
|
- lib/wes/data/api/client.rb
|
123
|
+
- lib/wes/data/api/collective.rb
|
123
124
|
- lib/wes/data/api/configuration.rb
|
124
125
|
- lib/wes/data/api/error/response.rb
|
125
126
|
- lib/wes/data/api/error/unexpected.rb
|