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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c0a12ed829c1a2953eecc31c9df864ee637c1b3
4
- data.tar.gz: b63a6f03671a94269064c9a1f30621308107b7e4
3
+ metadata.gz: 2792b4846cdb61aee7ef181edb1524a5590f995f
4
+ data.tar.gz: c68df2f8bac0e11db6f0d1e1a363142ce1c48b6c
5
5
  SHA512:
6
- metadata.gz: 51d5dd9749e56f54a45c72d053fa11ccbebeeeffeae32d8c9a541bfd2627a1e7484d0440c86de4e605455961c413c7fe87ba89d0f953d92020ffc9fd2e56098c
7
- data.tar.gz: 21c833f30a6906aa139d7126db61b8f9ba472fa870e407df06e770133a352ac805d034c636c1de5c53a72c94805307be7574f420b0c65f8bd92b6d43c5358c33
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
- put "users/#{id}", options
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'litmos-api-client'
3
- s.version = '0.0.3'
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', '>= 0'
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.3
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: '0'
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: '0'
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: []