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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a83eb77e65e439aea43027810dc2c33464547c05
4
- data.tar.gz: 73b6dc56ad6bf6e2e8ec76bcfe498361d2e4436e
3
+ metadata.gz: 0cb074f5605b7ce3caa0db90d40c3cbf4e8b5302
4
+ data.tar.gz: e1167522705d5bb19fcfd6d2f0a4d4fda18acd6f
5
5
  SHA512:
6
- metadata.gz: cdc83b3ba61c97e385f3b20b831815858c38e19b1c85321245fffc580c17805c4e4a850e19fcc4b3b9f42e6bfefbba0a0747ad5547df68f6da5025ab9760c728
7
- data.tar.gz: 9b266c00725852b9ce5c2cefbf689d38fd087db0a5b99034695cfa08cf9521b5b55af06727c43f5be95c848043f511f14856ebf81f778fa76a2af3b93e54b2b9
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
@@ -1,7 +1,7 @@
1
1
  module Wes
2
2
  module Data
3
3
  module API
4
- VERSION = "1.3.0".freeze
4
+ VERSION = "1.4.0".freeze
5
5
  end
6
6
  end
7
7
  end
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.11"
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.3.0
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-06 00:00:00.000000000 Z
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.11'
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.11'
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