plangrade-ruby 0.3.32 → 0.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: fc743979771ccff19399f4694d70b25cdbc0e463
4
- data.tar.gz: ce1f919586b7fb6805eccda3c6558ddd27884170
3
+ metadata.gz: 8a62fd8c0bde0561ab3bcecdd09f98646acb473b
4
+ data.tar.gz: 21604aade8021bc01c78fa529c1254c6533d50b5
5
5
  SHA512:
6
- metadata.gz: 98228818699dc8ba90eb793afee3c5fe1dadcd8b3757e1c2b6cc6f70f4d27fbf05eb1d672c00835fd88f13ed648e3903a3a44bafa14ba46093a7df24eaeac893
7
- data.tar.gz: 41a6a6697ac5748f936a30ea4cfd1b96491b27b10d5c254941e14449842f1632cfd3076958429b4e55d1dfeebaf86fc422828ce0d8869e70e27637b7c68805f6
6
+ metadata.gz: abdd4034ab079b81be350727dbc2278ef3f5349518f7c8b60628f1650b87b611daaa961916c6367dabb0a27cf3ee828a5a7255701d67fd5ccd450c88b7048333
7
+ data.tar.gz: 4c76d8811534ace8a4fbebc6f3b587c4fab7cbbd5596cf78057a9794f0d30c14fb797f175341210a5966bf57abd7c459561c2fed7b95c1f756abd99dce5c7fa7
checksums.yaml.gz.sig CHANGED
Binary file
data/.travis.yml CHANGED
@@ -14,6 +14,6 @@ before_install:
14
14
  notifications:
15
15
  email:
16
16
  recipients:
17
- - topherreynoso@gmail.com
17
+ - creynoso@plangrade.com
18
18
  on_failure: change
19
19
  on_success: never
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Christopher Reynoso
1
+ Copyright (c) 2015 Plangrade Inc
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # plangrade API Gem
2
2
  [![Gem Version](https://badge.fury.io/rb/plangrade-ruby.svg)](http://badge.fury.io/rb/plangrade-ruby)
3
- [![Code Climate](https://codeclimate.com/github/topherreynoso/plangrade-ruby/badges/gpa.svg)](https://codeclimate.com/github/topherreynoso/plangrade-ruby)
4
- [![Coverage Status](https://coveralls.io/repos/topherreynoso/plangrade-ruby/badge.png?branch=master)](https://coveralls.io/r/topherreynoso/plangrade-ruby?branch=master)
5
- [![Build Status](https://travis-ci.org/topherreynoso/plangrade-ruby.svg?branch=master)](https://travis-ci.org/topherreynoso/plangrade-ruby)
3
+ [![Code Climate](https://codeclimate.com/github/plangrade/plangrade-ruby/badges/gpa.svg)](https://codeclimate.com/github/plangrade/plangrade-ruby)
4
+ [![Coverage Status](https://coveralls.io/repos/plangrade/plangrade-ruby/badge.png?branch=master)](https://coveralls.io/r/plangrade/plangrade-ruby?branch=master)
5
+ [![Build Status](https://travis-ci.org/plangrade/plangrade-ruby.svg?branch=master)](https://travis-ci.org/plangrade/plangrade-ruby)
6
6
 
7
7
  Ruby wrapper for the plangrade API.
8
8
 
9
9
  Supports OAuth 2.0 authentication, including `refresh_token`. Read the [plangrade docs](https://docs.plangrade.com/#authentication) for more details.
10
10
 
11
- Additionally, this may be used in conjunction with [omniauth-plangrade](https://github.com/topherreynoso/omniauth-plangrade) in order to facilitate authentication and obtaining a valid `access_token` and `refresh_token` pair for use with this gem to access plangrade API endpoints.
11
+ Additionally, this may be used in conjunction with [omniauth-plangrade](https://github.com/plangrade/omniauth-plangrade) in order to facilitate authentication and obtaining a valid `access_token` and `refresh_token` pair for use with this gem to access plangrade API endpoints.
12
12
 
13
- See the [plangrade-ruby-client](https://github.com/topherreynoso/plangrade-ruby-client) example for implementation of both omniauth-plangrade and plangrade-ruby.
13
+ See the [plangrade-ruby-client](https://github.com/plangrade/plangrade-ruby-client) example for implementation of both omniauth-plangrade and plangrade-ruby.
14
14
 
15
15
  This README provides only a basic overview of how to use this gem. For more information about the API endpoints, look at the [plangrade docs](https://docs.plangrade.com/#authentication).
16
16
 
@@ -34,7 +34,7 @@ Setup a plangrade client application at the [plangrade developer site](https://p
34
34
 
35
35
  ### Using omniauth-plangrade to obtain an access token
36
36
 
37
- You can use [omniauth-plangrade](https://github.com/topherreynoso/omniauth-plangrade) to obtain a valid access token, as demonstrated below.
37
+ You can use [omniauth-plangrade](https://github.com/plangrade/omniauth-plangrade) to obtain a valid access token, as demonstrated below.
38
38
 
39
39
  ```ruby
40
40
  # In your redirect_uri after the user authorized access, just parse the omniauth response
@@ -233,6 +233,22 @@ Delete participant
233
233
  plangrade.delete_participant(id)
234
234
  ```
235
235
 
236
+ **Activities**
237
+
238
+ Get all of a company's activities
239
+
240
+ ```ruby
241
+ activities = plangrade.all_activities(:company_id => id, params)
242
+ ```
243
+
244
+ **Notices**
245
+
246
+ Get all of a company's notices (documents)
247
+
248
+ ```ruby
249
+ notices = plangrade.all_notices(:company_id => id, params)
250
+ ```
251
+
236
252
  ### Using the object models
237
253
 
238
254
  The object model is an abstraction that makes it easy to manipulate the JSON data return when accessing plangrade's API. Each model has accessor methods for all keys contained in the JSON response for a given model type.
@@ -280,9 +296,19 @@ participant.archive!
280
296
  participant.delete!
281
297
  ```
282
298
 
299
+ **Activities**
300
+ ```ruby
301
+ activities = Plangrade::Resources::Activity.all
302
+ ```
303
+
304
+ **Notices**
305
+ ```ruby
306
+ notices = Plangrade::Resources::Notice.all
307
+ ```
308
+
283
309
  ## Supported Ruby Versions
284
310
 
285
- This library aims to support and is [tested against](https://travis-ci.org/topherreynoso/plangrade-ruby) the following Ruby versions:
311
+ This library aims to support and is [tested against](https://travis-ci.org/plangrade/plangrade-ruby) the following Ruby versions:
286
312
 
287
313
  1. Ruby 1.9.3
288
314
  2. Ruby 2.0.0
@@ -292,7 +318,7 @@ This library may inadvertently work (or seem to work) on other Ruby implementati
292
318
 
293
319
  ## License
294
320
 
295
- Copyright (c) 2014 Christopher Reynoso
321
+ Copyright (c) 2015 Plangrade Inc
296
322
 
297
323
  MIT License
298
324
 
@@ -0,0 +1,10 @@
1
+ module Plangrade
2
+ module Api
3
+ module Activity
4
+
5
+ def all_activities(company_id)
6
+ get("/api/v1/activities?company_id=#{company_id}")
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module Plangrade
2
+ module Api
3
+ module Notice
4
+
5
+ def all_notices(company_id)
6
+ get("/api/v1/notices?company_id=#{company_id}")
7
+ end
8
+ end
9
+ end
10
+ end
@@ -14,7 +14,7 @@ module Plangrade
14
14
  end
15
15
 
16
16
  def current_user
17
- get('/api/v1/me.json')
17
+ get('/api/v1/me')
18
18
  end
19
19
  end
20
20
  end
data/lib/plangrade/api.rb CHANGED
@@ -1,3 +1,5 @@
1
1
  require 'plangrade/api/company'
2
2
  require 'plangrade/api/participant'
3
- require 'plangrade/api/user'
3
+ require 'plangrade/api/user'
4
+ require 'plangrade/api/notice'
5
+ require 'plangrade/api/activity'
@@ -9,6 +9,8 @@ module Plangrade
9
9
  include Plangrade::Api::User
10
10
  include Plangrade::Api::Company
11
11
  include Plangrade::Api::Participant
12
+ include Plangrade::Api::Notice
13
+ include Plangrade::Api::Activity
12
14
 
13
15
  attr_reader :site_url, :default_headers, :connection_options
14
16
 
@@ -0,0 +1,19 @@
1
+ module Plangrade
2
+ module Resources
3
+ class Activity < Plangrade::Resources::Base
4
+
5
+ attr_accessor_deffered :name, :start_time
6
+
7
+ def self.all(company_id)
8
+ result = api_handler.all_activities(company_id)
9
+ parsed_result = JSON.parse(result.body)
10
+ activities ||= begin
11
+ parsed_result.map do |activity|
12
+ new(:id => activity["id"], :name => activity["name"], :start_time => activity["start_time"])
13
+ end
14
+ end
15
+ activities
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ module Plangrade
2
+ module Resources
3
+ class Notice < Plangrade::Resources::Base
4
+
5
+ attr_accessor_deffered :name
6
+
7
+ def self.all(company_id)
8
+ result = api_handler.all_notices(company_id)
9
+ parsed_result = JSON.parse(result.body)
10
+ notices ||= begin
11
+ parsed_result.map do |notice|
12
+ new(:id => notice["id"], :name => notice["name"], :plan_name => notice["plan_name"], :link => notice["link"], :created_at => notice["created_at"])
13
+ end
14
+ end
15
+ notices
16
+ end
17
+ end
18
+ end
19
+ end
@@ -6,7 +6,8 @@ module Plangrade
6
6
 
7
7
  def self.current_user
8
8
  result = api_handler.current_user
9
- new(:id => result[:id], :name => result[:name], :email => result[:email])
9
+ parsed_result = JSON.parse(result.body)
10
+ new(:id => parsed_result["id"], :name => parsed_result["name"], :email => parsed_result["email"])
10
11
  end
11
12
 
12
13
  def self.create(email, name)
@@ -2,4 +2,6 @@ require 'plangrade/resources/identity_map'
2
2
  require 'plangrade/resources/base'
3
3
  require 'plangrade/resources/user'
4
4
  require 'plangrade/resources/company'
5
- require 'plangrade/resources/participant'
5
+ require 'plangrade/resources/participant'
6
+ require 'plangrade/resources/notice'
7
+ require 'plangrade/resources/activity'
@@ -1,5 +1,5 @@
1
1
  module Plangrade
2
2
  module Ruby
3
- VERSION = "0.3.32"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -6,11 +6,11 @@ require 'plangrade/ruby/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "plangrade-ruby"
8
8
  spec.version = Plangrade::Ruby::VERSION
9
- spec.authors = ["Christopher Reynoso"]
10
- spec.email = ["topherreynoso@gmail.com"]
9
+ spec.authors = ["Plangrade Inc"]
10
+ spec.email = ["support@plangrade.com"]
11
11
  spec.summary = %q{plangrade API client}
12
12
  spec.description = %q{A ruby wrapper for accessing plangrade's REST API}
13
- spec.homepage = "https://github.com/topherreynoso/plangrade-ruby"
13
+ spec.homepage = "https://github.com/plangrade/plangrade-ruby"
14
14
  spec.licenses = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ # Copyright (c) Microsoft Corporation
4
+ # All rights reserved.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
13
+ # ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
14
+ # IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR
15
+ # PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
16
+ #
17
+ # See the Apache Version 2.0 License for specific language governing
18
+ # permissions and limitations under the License.
19
+
20
+ require File.expand_path('../../spec_helper', __FILE__)
21
+ require 'ostruct'
22
+
23
+ describe Plangrade::Api::Activity do
24
+
25
+ before :all do
26
+ @client = Plangrade::Client.new(
27
+ :site_url => 'https://plangrade.com',
28
+ :client_id => 'PRbTcg9qjgKsp4jjpm1pw',
29
+ :client_secret => 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U',
30
+ :access_token => 'TolNOFka9Uls2DxahNi78A'
31
+ )
32
+ end
33
+
34
+ subject { @client }
35
+
36
+ describe 'all_activities' do
37
+ it 'makes an http request' do
38
+ expect(@client).to receive(:get).with('/api/v1/activities?company_id=1')
39
+ @client.all_activities(1)
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ # Copyright (c) Microsoft Corporation
4
+ # All rights reserved.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
13
+ # ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
14
+ # IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR
15
+ # PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
16
+ #
17
+ # See the Apache Version 2.0 License for specific language governing
18
+ # permissions and limitations under the License.
19
+
20
+ require File.expand_path('../../spec_helper', __FILE__)
21
+ require 'ostruct'
22
+
23
+ describe Plangrade::Api::Notice do
24
+
25
+ before :all do
26
+ @client = Plangrade::Client.new(
27
+ :site_url => 'https://plangrade.com',
28
+ :client_id => 'PRbTcg9qjgKsp4jjpm1pw',
29
+ :client_secret => 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U',
30
+ :access_token => 'TolNOFka9Uls2DxahNi78A'
31
+ )
32
+ end
33
+
34
+ subject { @client }
35
+
36
+ describe 'all_notices' do
37
+ it 'makes an http request' do
38
+ expect(@client).to receive(:get).with('/api/v1/notices?company_id=1')
39
+ @client.all_notices(1)
40
+ end
41
+ end
42
+ end
@@ -58,7 +58,7 @@ describe Plangrade::Api::User do
58
58
 
59
59
  describe 'current_user' do
60
60
  it 'makes an http request' do
61
- expect(@client).to receive(:get).with('/api/v1/me.json')
61
+ expect(@client).to receive(:get).with('/api/v1/me')
62
62
  @client.current_user
63
63
  end
64
64
  end
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ # Copyright (c) Microsoft Corporation
4
+ # All rights reserved.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
13
+ # ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
14
+ # IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR
15
+ # PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
16
+ #
17
+ # See the Apache Version 2.0 License for specific language governing
18
+ # permissions and limitations under the License.
19
+
20
+ require File.expand_path('../../spec_helper', __FILE__)
21
+ require 'ostruct'
22
+
23
+ describe Plangrade::Api::Activity do
24
+
25
+ before :all do
26
+ @client = Plangrade::Client.new(
27
+ :site_url => 'https://plangrade.com',
28
+ :client_id => 'PRbTcg9qjgKsp4jjpm1pw',
29
+ :client_secret => 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U',
30
+ :access_token => 'TolNOFka9Uls2DxahNi78A'
31
+ )
32
+ end
33
+
34
+ subject { @client }
35
+
36
+ describe 'all_activities' do
37
+ it 'makes an http request' do
38
+ expect(@client).to receive(:get).with('/api/v1/activities?company_id=1')
39
+ @client.all_activities(1)
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ # Copyright (c) Microsoft Corporation
4
+ # All rights reserved.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
13
+ # ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
14
+ # IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR
15
+ # PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
16
+ #
17
+ # See the Apache Version 2.0 License for specific language governing
18
+ # permissions and limitations under the License.
19
+
20
+ require File.expand_path('../../spec_helper', __FILE__)
21
+ require 'ostruct'
22
+
23
+ describe Plangrade::Api::Notice do
24
+
25
+ before :all do
26
+ @client = Plangrade::Client.new(
27
+ :site_url => 'https://plangrade.com',
28
+ :client_id => 'PRbTcg9qjgKsp4jjpm1pw',
29
+ :client_secret => 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U',
30
+ :access_token => 'TolNOFka9Uls2DxahNi78A'
31
+ )
32
+ end
33
+
34
+ subject { @client }
35
+
36
+ describe 'all_notices' do
37
+ it 'makes an http request' do
38
+ expect(@client).to receive(:get).with('/api/v1/notices?company_id=1')
39
+ @client.all_notices(1)
40
+ end
41
+ end
42
+ end
@@ -53,23 +53,6 @@ describe Plangrade::Resources::User do
53
53
  subject.create("compliance@plangrade.com", "Compliance Man")
54
54
  end
55
55
  end
56
-
57
- describe '#current_user' do
58
- it "should fetch authenticated user's data" do
59
- stub_request(:get, "https://plangrade.com/api/v1/me.json").with(
60
- :headers => {
61
- 'Accept' => 'application/json',
62
- 'Authorization' => "Bearer #{Plangrade.access_token}",
63
- 'User-Agent' => "Plangrade Ruby Gem #{Plangrade::Ruby::VERSION}"
64
- }
65
- ).to_return(
66
- :status => 200,
67
- :body => fixture('user.json'),
68
- :headers => {}
69
- )
70
- subject.current_user
71
- end
72
- end
73
56
  end
74
57
 
75
58
  context 'new user object with id' do
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plangrade-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.32
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
- - Christopher Reynoso
7
+ - Plangrade Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
@@ -30,157 +30,157 @@ cert_chain:
30
30
  ELzPS5fItQUB4UE0DT9qDr7LmfnG1tLPIeDgMScUes6zSSckWtaXKjQRy7OG7yGu
31
31
  2YveeRgxu2nn/J4Q6Obf7PqMvpR0z5T8SUptXcRVhHBZDUzrBpNvtNM=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-11-14 00:00:00.000000000 Z
33
+ date: 2015-02-16 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: oj
37
37
  requirement: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '2.0'
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '2.0'
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: multi_json
51
51
  requirement: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1.8'
56
56
  type: :runtime
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '1.8'
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: rest-client
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '1.6'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: '1.6'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: addressable
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '2.3'
84
84
  type: :runtime
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: '2.3'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: oauth2-client
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: '2.0'
98
98
  type: :runtime
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ~>
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: '2.0'
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: rake
107
107
  requirement: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: rspec
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  type: :development
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: simplecov
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - '>='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0.8'
140
140
  type: :development
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - '>='
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0.8'
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: webmock
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - '>='
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '1.9'
154
154
  type: :development
155
155
  prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - '>='
158
+ - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '1.9'
161
161
  - !ruby/object:Gem::Dependency
162
162
  name: yard
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0.8'
168
168
  type: :development
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - '>='
172
+ - - ">="
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0.8'
175
175
  description: A ruby wrapper for accessing plangrade's REST API
176
176
  email:
177
- - topherreynoso@gmail.com
177
+ - support@plangrade.com
178
178
  executables: []
179
179
  extensions: []
180
180
  extra_rdoc_files: []
181
181
  files:
182
- - .gitignore
183
- - .travis.yml
182
+ - ".gitignore"
183
+ - ".travis.yml"
184
184
  - Gemfile
185
185
  - LICENSE.txt
186
186
  - README.md
@@ -188,7 +188,9 @@ files:
188
188
  - certs/public.pem
189
189
  - lib/plangrade.rb
190
190
  - lib/plangrade/api.rb
191
+ - lib/plangrade/api/activity.rb
191
192
  - lib/plangrade/api/company.rb
193
+ - lib/plangrade/api/notice.rb
192
194
  - lib/plangrade/api/participant.rb
193
195
  - lib/plangrade/api/user.rb
194
196
  - lib/plangrade/api_handler.rb
@@ -199,14 +201,18 @@ files:
199
201
  - lib/plangrade/http_adapter.rb
200
202
  - lib/plangrade/oauth2_client.rb
201
203
  - lib/plangrade/resources.rb
204
+ - lib/plangrade/resources/activity.rb
202
205
  - lib/plangrade/resources/base.rb
203
206
  - lib/plangrade/resources/company.rb
204
207
  - lib/plangrade/resources/identity_map.rb
208
+ - lib/plangrade/resources/notice.rb
205
209
  - lib/plangrade/resources/participant.rb
206
210
  - lib/plangrade/resources/user.rb
207
211
  - lib/plangrade/ruby/version.rb
208
212
  - plangrade-ruby.gemspec
213
+ - spec/api/activity_spec.rb
209
214
  - spec/api/company_spec.rb
215
+ - spec/api/notice_spec.rb
210
216
  - spec/api/participant_spec.rb
211
217
  - spec/api/user_spec.rb
212
218
  - spec/client_spec.rb
@@ -217,13 +223,15 @@ files:
217
223
  - spec/fixtures/user.json
218
224
  - spec/http_adapter_spec.rb
219
225
  - spec/oauth2_client_spec.rb
226
+ - spec/resources/activity_spec.rb
220
227
  - spec/resources/base_spec.rb
221
228
  - spec/resources/company_spec.rb
222
229
  - spec/resources/identity_map_spec.rb
230
+ - spec/resources/notice_spec.rb
223
231
  - spec/resources/participant_spec.rb
224
232
  - spec/resources/user_spec.rb
225
233
  - spec/spec_helper.rb
226
- homepage: https://github.com/topherreynoso/plangrade-ruby
234
+ homepage: https://github.com/plangrade/plangrade-ruby
227
235
  licenses:
228
236
  - MIT
229
237
  metadata: {}
@@ -233,22 +241,24 @@ require_paths:
233
241
  - lib
234
242
  required_ruby_version: !ruby/object:Gem::Requirement
235
243
  requirements:
236
- - - '>='
244
+ - - ">="
237
245
  - !ruby/object:Gem::Version
238
246
  version: '0'
239
247
  required_rubygems_version: !ruby/object:Gem::Requirement
240
248
  requirements:
241
- - - '>='
249
+ - - ">="
242
250
  - !ruby/object:Gem::Version
243
251
  version: '0'
244
252
  requirements: []
245
253
  rubyforge_project:
246
- rubygems_version: 2.1.9
254
+ rubygems_version: 2.2.2
247
255
  signing_key:
248
256
  specification_version: 4
249
257
  summary: plangrade API client
250
258
  test_files:
259
+ - spec/api/activity_spec.rb
251
260
  - spec/api/company_spec.rb
261
+ - spec/api/notice_spec.rb
252
262
  - spec/api/participant_spec.rb
253
263
  - spec/api/user_spec.rb
254
264
  - spec/client_spec.rb
@@ -259,9 +269,11 @@ test_files:
259
269
  - spec/fixtures/user.json
260
270
  - spec/http_adapter_spec.rb
261
271
  - spec/oauth2_client_spec.rb
272
+ - spec/resources/activity_spec.rb
262
273
  - spec/resources/base_spec.rb
263
274
  - spec/resources/company_spec.rb
264
275
  - spec/resources/identity_map_spec.rb
276
+ - spec/resources/notice_spec.rb
265
277
  - spec/resources/participant_spec.rb
266
278
  - spec/resources/user_spec.rb
267
279
  - spec/spec_helper.rb
metadata.gz.sig CHANGED
Binary file