cliskip2 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cliskip2 (0.0.11)
4
+ cliskip2 (0.0.12)
5
5
  faraday_middleware (~> 0.8.7)
6
6
  json (~> 1.7.3)
7
- oauth (~> 0.4)
7
+ oauth (= 0.4.6)
8
8
  simple_oauth (~> 0.1.8)
9
9
 
10
10
  GEM
@@ -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', '~> 0.4'
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')
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Cliskip2
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
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.11
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-09 00:00:00.000000000 Z
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: '0.4'
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: '0.4'
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.24
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