litmos-api-client 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/litmos_api_client/users.rb +9 -1
- data/litmos-api-client.gemspec +4 -2
- metadata +33 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2792b4846cdb61aee7ef181edb1524a5590f995f
|
4
|
+
data.tar.gz: c68df2f8bac0e11db6f0d1e1a363142ce1c48b6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc83a15f90cde22e06ac8bd3c3ffcec3934ba6c7c8dab8583e0179e6ad517d44c9ee9458ec06c91f23d8232e2469c0cb7f0e1ea8f9265c507b86584b3d5d921f
|
7
|
+
data.tar.gz: 7fe71f813e737bd2b8392173a1e74d72c9cded13c8448949eef5ca5455a62496b7db08e97b959f5f9d564745e6e7eb7228cf9bba57dedcc857a9d2ab410dd905
|
@@ -34,7 +34,15 @@ module LitmosApiClient
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def update_user(id, options={})
|
37
|
-
|
37
|
+
params = {
|
38
|
+
'Id' => options[:id],
|
39
|
+
'UserName' => options[:username],
|
40
|
+
'FirstName' => options[:first_name],
|
41
|
+
'LastName' => options[:last_name],
|
42
|
+
'Email' => options[:email],
|
43
|
+
'Active' => options[:active]
|
44
|
+
}
|
45
|
+
put "users/#{id}", params
|
38
46
|
end
|
39
47
|
end
|
40
48
|
end
|
data/litmos-api-client.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'litmos-api-client'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.4'
|
4
4
|
s.date = '2014-05-09'
|
5
5
|
s.summary = "Simple lib to consume litmos api"
|
6
6
|
s.description = "Simple lib to consume litmos api from litmos platform"
|
@@ -18,5 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.homepage = 'https://github.com/garciaf/litmos-api-client'
|
19
19
|
s.license = 'MIT'
|
20
20
|
|
21
|
-
s.add_runtime_dependency 'rest-client', '
|
21
|
+
s.add_runtime_dependency 'rest-client', '~> 1'
|
22
|
+
s.add_development_dependency 'rake', '~> 10.3'
|
23
|
+
s.add_development_dependency 'rspec', '~> 2.14'
|
22
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: litmos-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabien Garcia
|
@@ -14,16 +14,44 @@ dependencies:
|
|
14
14
|
name: rest-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1'
|
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
|
-
version: '
|
26
|
+
version: '1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.14'
|
27
55
|
description: Simple lib to consume litmos api from litmos platform
|
28
56
|
email: fab0670312047@gmail.com
|
29
57
|
executables: []
|