cliskip2 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/cliskip2.gemspec +1 -1
- data/lib/cliskip2/client.rb +7 -0
- data/lib/cliskip2/version.rb +1 -1
- metadata +16 -8
data/Gemfile.lock
CHANGED
data/cliskip2.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency 'faraday_middleware', '~> 0.8.7'
|
22
22
|
s.add_dependency 'simple_oauth', '~> 0.1.8'
|
23
23
|
s.add_dependency 'json', '~> 1.7.3'
|
24
|
-
s.add_dependency 'oauth', '
|
24
|
+
s.add_dependency 'oauth', '= 0.4.6'
|
25
25
|
s.add_development_dependency('rake')
|
26
26
|
s.add_development_dependency('rake-compiler')
|
27
27
|
s.add_development_dependency('rspec', '~> 2')
|
data/lib/cliskip2/client.rb
CHANGED
@@ -40,6 +40,13 @@ module Cliskip2
|
|
40
40
|
Cliskip2::User.new(user_attr['user'])
|
41
41
|
end
|
42
42
|
|
43
|
+
# Activate user by params
|
44
|
+
# @return [Cliskip2::User]
|
45
|
+
def activate_user user_id, params
|
46
|
+
user_attr = get("/admin/tenants/#{current_user.tenant_id}/users/#{user_id}/issue_activation_code.json", params)
|
47
|
+
Cliskip2::User.new(user_attr['user'])
|
48
|
+
end
|
49
|
+
|
43
50
|
# Get the user by params
|
44
51
|
# @return [Cliskip2::User]
|
45
52
|
def get_user params
|
data/lib/cliskip2/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cliskip2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday_middleware
|
@@ -64,17 +64,17 @@ dependencies:
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 0.4.6
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 0.4.6
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: rake
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,16 +161,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
161
|
- - ! '>='
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
|
+
segments:
|
165
|
+
- 0
|
166
|
+
hash: 3309336516294850079
|
164
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
168
|
none: false
|
166
169
|
requirements:
|
167
170
|
- - ! '>='
|
168
171
|
- !ruby/object:Gem::Version
|
169
172
|
version: '0'
|
173
|
+
segments:
|
174
|
+
- 0
|
175
|
+
hash: 3309336516294850079
|
170
176
|
requirements: []
|
171
177
|
rubyforge_project: cliskip2
|
172
|
-
rubygems_version: 1.8.
|
178
|
+
rubygems_version: 1.8.23
|
173
179
|
signing_key:
|
174
180
|
specification_version: 3
|
175
181
|
summary: A Ruby wrapper for the SKIP2 REST APIs
|
176
|
-
test_files:
|
182
|
+
test_files:
|
183
|
+
- spec/cliskip2_spec.rb
|
184
|
+
- spec/spec_helper.rb
|