teamdrive_api 0.3.6 → 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,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 140a180be0f2a968ff6ca3dbbba52b0de1e7a1c8
4
- data.tar.gz: ef0633d60afb58ef2a758a1b95949663c9b3e5db
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTU1MGRiYjdhNjQ5MTMxMWNmZGIzMjZlMzY5ZDA3M2VhN2Y3NTdhZA==
5
+ data.tar.gz: !binary |-
6
+ MjRlMDY0ZGFjZTE0Njk1MGZjOWYxNTY4ZjAzNGNhNjk1ZDIxYjAzNA==
5
7
  SHA512:
6
- metadata.gz: 71d4d409cd90e7d14b5a90fbbe724b59d075b0c3e692e7dc0d453dc1c8666149c5e72426568a3defbfbf06e0f39a6546c77ebc3fda38792595d24c6e4bce4c25
7
- data.tar.gz: 5cb9837662e432e873522a4c3bc6dfd7fd1f8a4c08ca30933c18e30df2d2c4eba6d7c53196bf54d9b14885e3a4ad7120709eea0bc2aaf922272f2b792e81c1ec
8
+ metadata.gz: !binary |-
9
+ OTY0ZDg2OWI3ZGRjNmE3ZmU4N2EyNGQwZTJlYjc3NTJhOTBkMjI1NjU3MDY4
10
+ MjU5ZjM1MzgzMmZmZThjNWE4YWU3MWI5ZTRiYjIyMmI0NDU4ZDc0ODM1N2Jj
11
+ Y2Y5N2Y2NDdlZTFhNjE5ZTM0NmRkNDg2MTExMmIwNGE1OWU5NDU=
12
+ data.tar.gz: !binary |-
13
+ YWMxOWM1MDlkMTUxY2FjMzIwZDA1ZTNjYzMzYThjNjAxZDY4Y2RlOTQ1YzQ5
14
+ ZDQ2OWEyYzBkZTA5MmQyMWQyNjExZDVjOTgwNzRmZjY0ZTY3YTc1YWZjOTAw
15
+ Mzc5MDg4ZjdmZDdjNDIxMDg0MDI5ZjRhMWRmM2YxZmEzY2JlN2I=
data/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ **0.4.0** (2015-11-09)
2
+
3
+ * **BREAKING** You now have to provide the complete URI to the TD-API, not only the host name!
4
+
5
+ **0.1.0 - 0.3.6** (2015-06-02)
6
+
7
+ * added `Registration: assign user to license`
8
+ * added `Registration: create license`
9
+ * added `Registration: create license without user`
10
+ * added `Registration: downgrade default license`
11
+ * added `Registration: get default license for user`
12
+ * added `Registration: get license data for user`
13
+ * added `Registration: get user data`
14
+ * added `Registration: register user`
15
+ * added `Registration: remove user`
16
+ * added `Registration: remove user`
17
+ * added `Registration: reset password`
18
+ * added `Registration: search user`
19
+ * added `Registration: upgrade default license`
data/README.md CHANGED
@@ -30,8 +30,10 @@ Or install it yourself as:
30
30
 
31
31
  ## Usage
32
32
 
33
+ **Note about the URI:** For Pre-3.5-Versions of TeamDrive, this is usually `https://server/pbas/td2api/api/api.htm`. From 3.5 onward, it is usually `https://server/yvva/td2api/api/api.htm`.
34
+
33
35
  ```ruby
34
- api = TeamdriveApi::Register.new('example.com', 'd3b07384d113edec49eaa6238ad5ff00', '1.0.005')
36
+ api = TeamdriveApi::Register.new('example.com/yvva/api/api.htm', 'd3b07384d113edec49eaa6238ad5ff00', '1.0.005')
35
37
 
36
38
  api.remove_user 'foobar'
37
39
  #=> true
@@ -72,6 +74,10 @@ api.search_user username: '$CODE-*'
72
74
 
73
75
  For more Information see {TeamdriveApi::Register}
74
76
 
77
+ ### Version History
78
+
79
+ See the [CHANGELOG](https://github.com/mhutter/teamdrive_api/tree/master/CHANGELOG.md)
80
+
75
81
  ## Development
76
82
 
77
83
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -9,10 +9,16 @@ module TeamdriveApi
9
9
  attr_reader :uri
10
10
  format :xml
11
11
 
12
- def initialize(host, api_checksum_salt, api_version)
12
+ # Create a new TD API Client.
13
+ #
14
+ # @param [String] uri URI to the API. See README.
15
+ # @param [String] api_checksum_salt the +APIChecksumSalt+ system setting
16
+ # ("Edit Settings -> RegServer").
17
+ # @param [String] api_version optionally overwrite the api_version
18
+ def initialize(uri, api_checksum_salt, api_version)
13
19
  @api_checksum_salt = api_checksum_salt
14
20
  @api_version = api_version
15
- @host = host.start_with?('http') ? host : 'https://' + host
21
+ @uri = uri.start_with?('http') ? uri : 'https://' + uri
16
22
  end
17
23
 
18
24
  # Generates the XML payload for the RPC
@@ -2,17 +2,6 @@ module TeamdriveApi
2
2
  # API Client for the TeamDrive Register Server. See the TeamDrive Register
3
3
  # docs for more informations on specific commands.
4
4
  class Register < Base
5
- # Create a new Register API Client.
6
- #
7
- # @param [String] host the API Server
8
- # @param [String] api_checksum_salt the +APIChecksumSalt+ system setting
9
- # ("Edit Settings -> RegServer").
10
- # @param [String] api_version optionally overwrite the api_version
11
- def initialize(host, api_checksum_salt, api_version = '1.0.005')
12
- super
13
- @uri = URI.join(@host + '/', 'pbas/td2api/api/api.htm').to_s
14
- end
15
-
16
5
  # Assign license to client (added in RegServ API 1.0.004)
17
6
  #
18
7
  # @param [String] username
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module TeamdriveApi
3
- VERSION = '0.3.6'
3
+ VERSION = '0.4.0'
4
4
  end
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamdrive_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Hutter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.13'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.13'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.8'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.10'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.10'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: codeclimate-test-reporter
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '5.8'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '5.8'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: minitest-reporters
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: '1.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.20'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.20'
125
125
  description: Client library for the TeamDrive XML API. Currently only supports the
@@ -129,6 +129,7 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - CHANGELOG.md
132
133
  - LICENSE
133
134
  - README.md
134
135
  - lib/teamdrive_api.rb
@@ -148,12 +149,12 @@ require_paths:
148
149
  - lib
149
150
  required_ruby_version: !ruby/object:Gem::Requirement
150
151
  requirements:
151
- - - ">="
152
+ - - ! '>='
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  required_rubygems_version: !ruby/object:Gem::Requirement
155
156
  requirements:
156
- - - ">="
157
+ - - ! '>='
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0'
159
160
  requirements: []