basecampeverest 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdc19cfbd65fa72b6a9cc06abfd42deb8654786a
4
- data.tar.gz: 9708a0095ef896b1f8d4428b755588e1da00602d
3
+ metadata.gz: 70726638b40f614cee73986a839aa976a437dc30
4
+ data.tar.gz: 9c708f37e0f7ebbc7f2afcbccdf0a2fd278c29c5
5
5
  SHA512:
6
- metadata.gz: 06593eef433d58d8cfc29a964f338dd3a44ffa6e8683608a919bb98132ca228099413a3191a9940937d53564243b84394e83aef347e8b5eb6d0d7594869bae1c
7
- data.tar.gz: 21ef64f1d1793acc6c33488f4002a57204387a0eb55b67767b53302bb9e2bd99851f15faae229610c207adf150c657fae1926c976025dadf6dcef7c9fa394dab
6
+ metadata.gz: 35f1c11eaf6f9a57216a344974a5277003b3f3ed7915c59f59946fc06a3619b05d0d9968def3c31802fc81d3d7fa66aafb1fbaeb295c606896b7e09483e87328
7
+ data.tar.gz: 17e6c8d93bac275d151e792f47b02e67891a253cde487e1731e9b1937a13a32cb9f5408d1fda8f9c1bb3eddea31adca28cc291da4c29e78203d9ba2ee6425f4c
@@ -1,83 +1,87 @@
1
1
  module Basecampeverest; class Topics
2
2
 
3
- # find all #### via the Basecamp API
4
- #
5
- # @return [Basecampeverest::Project] #### from the Basecamp API
6
- def self.all
7
- response = Basecampeverest::Connect.get
3
+ # find all #### via the Basecamp API
4
+ #
5
+ # @return [Basecampeverest::Project] #### from the Basecamp API
6
+ def self.all
7
+ url =
8
+ response = Basecampeverest::Connect.get
8
9
 
9
- # parse the response to remove HTTParty info
10
- response.parsed_response
11
- end
10
+ # parse the response to remove HTTParty info
11
+ response.parsed_response
12
+ end
12
13
 
13
- # #### via the Basecamp API
14
- #
15
- # @param [Basecampeverest::Project] ####
16
- # @return [Basecampeverest::Project] #### from the Basecamp API
17
- def self.find(####)
18
- response = Basecampeverest::Connect.get
14
+ # #### via the Basecamp API
15
+ #
16
+ # @param [Basecampeverest::Project] ####
17
+ # @return [Basecampeverest::Project] #### from the Basecamp API
18
+ def self.find()
19
+ url =
20
+ response = Basecampeverest::Connect.get
19
21
 
20
- # parse the response to remove HTTParty info
21
- response.parsed_response
22
- end
22
+ # parse the response to remove HTTParty info
23
+ response.parsed_response
24
+ end
23
25
 
24
- # #### via the Basecamp API
25
- #
26
- #
27
- # @param [Basecampeverest::Project] ####
28
- # @param [Basecampeverest::Project] ####
29
- # @return [Basecampeverest::Project] #### from the Basecamp API
30
- def self.new(options={})
31
- post_params = {
32
- :body => options.to_json,
33
- :headers => Basecampeverest::Connect.headers.merge({'Content-Type' => 'application/json'})
34
- }
35
- # make the http basecamp call
36
- response = Basecampeverest::Connect.post "####", post_params
26
+ # #### via the Basecamp API
27
+ #
28
+ #
29
+ # @param [Basecampeverest::Project] ####
30
+ # @param [Basecampeverest::Project] ####
31
+ # @return [Basecampeverest::Project] #### from the Basecamp API
32
+ def self.new(options={})
33
+ post_params = {
34
+ :body => options.to_json,
35
+ :headers => Basecampeverest::Connect.headers.merge({'Content-Type' => 'application/json'})
36
+ }
37
+ # make the http basecamp call
38
+ url = "####"
39
+ response = Basecampeverest::Connect.post url, post_params
37
40
 
38
- # parse the response to remove HTTParty info
39
- response.parsed_response
40
- end
41
+ # parse the response to remove HTTParty info
42
+ response.parsed_response
43
+ end
41
44
 
42
- # #### via the Basecamp API
43
- #
44
- # @param [Basecampeverest::Project] ####
45
- # @param [Basecampeverest::Project] ####
46
- # @return [Basecampeverest::Project] from the Basecamp API
47
- def self.update()
48
- post_params = {
49
- :body => options.to_json,
50
- :headers => Basecampeverest::Connect.merge({'Content-Type' => 'application/json'})
51
- }
45
+ # #### via the Basecamp API
46
+ #
47
+ # @param [Basecampeverest::Project] ####
48
+ # @param [Basecampeverest::Project] ####
49
+ # @return [Basecampeverest::Project] from the Basecamp API
50
+ def self.update()
51
+ post_params = {
52
+ :body => options.to_json,
53
+ :headers => Basecampeverest::Connect.merge({'Content-Type' => 'application/json'})
54
+ }
52
55
 
53
- # make the http basecamp call
54
- response = Basecampeverest::Connect.put "####", post_params
56
+ # make the http basecamp call
57
+ url =
58
+ response = Basecampeverest::Connect.put url, post_params
55
59
 
56
- # parse the response to remove HTTParty info
57
- response.parsed_response
58
- end
60
+ # parse the response to remove HTTParty info
61
+ response.parsed_response
62
+ end
59
63
 
60
64
 
61
- # #### via the Basecamp API
62
- #
63
- # @param [Basecampeverest::Project] ####
64
- # @return [Basecampeverest::Project] ####
65
- def self.delete()
66
- url = "####"
67
- response = Basecampeverest::Connect.delete url
65
+ # #### via the Basecamp API
66
+ #
67
+ # @param [Basecampeverest::Project] ####
68
+ # @return [Basecampeverest::Project] ####
69
+ def self.delete()
70
+ url = "####"
71
+ response = Basecampeverest::Connect.delete url
68
72
 
69
- # This checks the response code for validity and error checking
70
- if response.code == 204
71
- message = "#### successfully deleted"
72
- elsif response.code == 403
73
- message = "You do not have permission to delete this ####"
74
- else
75
- message = "Invalid project ID or authentication. The #### was not deleted."
76
- end
73
+ # This checks the response code for validity and error checking
74
+ if response.code == 204
75
+ message = "#### successfully deleted"
76
+ elsif response.code == 403
77
+ message = "You do not have permission to delete this ####"
78
+ else
79
+ message = "Invalid project ID or authentication. The #### was not deleted."
80
+ end
77
81
 
78
- # return the message
79
- message
80
- end
82
+ # return the message
83
+ message
84
+ end
81
85
 
82
- # end module and class
86
+ # end module and class
83
87
  end; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecampeverest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Gordon