teamdrive_api 0.3.5 → 0.3.6

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: 5902b38ba32c886b739e8ef4ff04d7391339fd04
4
- data.tar.gz: 2fdd61e169a1dbe061257899a408308b2d9552ed
3
+ metadata.gz: 140a180be0f2a968ff6ca3dbbba52b0de1e7a1c8
4
+ data.tar.gz: ef0633d60afb58ef2a758a1b95949663c9b3e5db
5
5
  SHA512:
6
- metadata.gz: feef0512be72b9a388d3eae0c6b74945e80b19ebde973dfe8337345cbf396e0cdc5d1bfb85154a03751febfbccc9fcfec64831a3fa2f447946061c0e2a2241d6
7
- data.tar.gz: c4790b975de7a5be8326a42387c53d2473a6940cbfbc5115175cb70d27005dae6c4eda02a16bdd6f3d888cd9b70bdaa8585adfce62bde60ef83960c955f69cfb
6
+ metadata.gz: 71d4d409cd90e7d14b5a90fbbe724b59d075b0c3e692e7dc0d453dc1c8666149c5e72426568a3defbfbf06e0f39a6546c77ebc3fda38792595d24c6e4bce4c25
7
+ data.tar.gz: 5cb9837662e432e873522a4c3bc6dfd7fd1f8a4c08ca30933c18e30df2d2c4eba6d7c53196bf54d9b14885e3a4ad7120709eea0bc2aaf922272f2b792e81c1ec
File without changes
@@ -202,5 +202,16 @@ module TeamdriveApi
202
202
  }.merge(query)
203
203
  send_request :searchuser, query
204
204
  end
205
+
206
+ # Reset Password (added in RegServ API v1.0.003)
207
+ #
208
+ # Resetting a user's password will set it to a random value.
209
+ #
210
+ # @param [String] username of the user to reset the password.
211
+ # @return [Boolean] success?
212
+ def reset_password(username)
213
+ opts = { username: username }
214
+ send_request :resetpassword, opts
215
+ end
205
216
  end
206
217
  end
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module TeamdriveApi
3
- VERSION = '0.3.5'
3
+ VERSION = '0.3.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamdrive_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Hutter
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-02 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -39,61 +39,75 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.8'
41
41
  - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
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
- version: '0'
54
+ version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.5'
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
- version: '5.5'
68
+ version: '0.10'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry
70
+ name: codeclimate-test-reporter
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.10'
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
- version: '0.10'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
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
- version: '10.0'
96
+ version: '5.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest-reporters
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: webmock
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -110,21 +124,13 @@ dependencies:
110
124
  version: '1.20'
111
125
  description: Client library for the TeamDrive XML API. Currently only supports the
112
126
  RegServer API
113
- email:
114
- - git@mhutter.net
127
+ email: manuel@hutter.io
115
128
  executables: []
116
129
  extensions: []
117
130
  extra_rdoc_files: []
118
131
  files:
119
- - ".gitignore"
120
- - ".rubocop.yml"
121
- - ".travis.yml"
122
- - Gemfile
123
- - LICENSE.txt
132
+ - LICENSE
124
133
  - README.md
125
- - Rakefile
126
- - bin/console
127
- - bin/setup
128
134
  - lib/teamdrive_api.rb
129
135
  - lib/teamdrive_api/base.rb
130
136
  - lib/teamdrive_api/core_ext/array.rb
@@ -132,7 +138,6 @@ files:
132
138
  - lib/teamdrive_api/error.rb
133
139
  - lib/teamdrive_api/register.rb
134
140
  - lib/teamdrive_api/version.rb
135
- - teamdrive_api.gemspec
136
141
  homepage: https://github.com/mhutter/teamdrive_api
137
142
  licenses:
138
143
  - MIT
@@ -153,9 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
158
  version: '0'
154
159
  requirements: []
155
160
  rubyforge_project:
156
- rubygems_version: 2.4.6
161
+ rubygems_version: 2.4.5
157
162
  signing_key:
158
163
  specification_version: 4
159
164
  summary: TeamDrive API Client
160
165
  test_files: []
161
- has_rdoc:
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /.ruby-version
11
- /.ruby-gemset
data/.rubocop.yml DELETED
@@ -1,3 +0,0 @@
1
- Metrics/LineLength:
2
- Exclude:
3
- - teamdrive_api.gemspec
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.1
4
- addons:
5
- code_climate:
6
- repo_token: e3716abd1175de1df9e93752138689064884581ad221e4d02d79c8ce734fe916
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in teamdrive_api.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
3
-
4
- Rake::TestTask.new do |t|
5
- t.pattern = 'test/*_test.rb'
6
- t.libs << 'test'
7
- t.verbose = true
8
- end
9
-
10
- task default: [:test]
data/bin/console DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'teamdrive_api'
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- require 'pry'
10
- Pry.start
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
@@ -1,34 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'teamdrive_api/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = 'teamdrive_api'
8
- spec.version = TeamdriveApi::VERSION
9
- spec.authors = ['Manuel Hutter']
10
- spec.email = ['git@mhutter.net']
11
-
12
- if spec.respond_to?(:metadata)
13
- # spec.metadata['allowed_push_host'] = 'TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server.'
14
- end
15
-
16
- spec.summary = 'TeamDrive API Client'
17
- spec.description = 'Client library for the TeamDrive XML API. Currently only supports the RegServer API'
18
- spec.homepage = 'https://github.com/mhutter/teamdrive_api'
19
- spec.license = 'MIT'
20
-
21
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
- spec.bindir = 'exe'
23
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
- spec.require_paths = ['lib']
25
-
26
- spec.add_runtime_dependency 'httparty', '~> 0.13'
27
-
28
- spec.add_development_dependency 'bundler', '~> 1.8'
29
- spec.add_development_dependency 'codeclimate-test-reporter'
30
- spec.add_development_dependency 'minitest', '~> 5.5'
31
- spec.add_development_dependency 'pry', '~> 0.10'
32
- spec.add_development_dependency 'rake', '~> 10.0'
33
- spec.add_development_dependency 'webmock', '~> 1.20'
34
- end