socialcast 1.3.12 → 1.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.travis.yml +1 -0
- data/config/ldap.yml +4 -2
- data/lib/socialcast/command_line/cli.rb +2 -1
- data/lib/socialcast/command_line/provision_user.rb +1 -0
- data/lib/socialcast/command_line/version.rb +1 -1
- metadata +3 -3
- data/.rvmrc +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e47c7a2ae5e15e428bb10de22c9c82314e7b3cae
|
4
|
+
data.tar.gz: a9eb506a41820efa452980829fcc0f49f22ae24a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0199e8f8d5ef41ccbcda5c9f83a0dfedbb170f63718681f31431b8df98ab2a347e0818a1368898be5171adb77eed1ef46a421c7f359e6067856d9e7ee6496ed2
|
7
|
+
data.tar.gz: 2f8e999cc04e34c4bfb975f0579c044dba57e811a58351ca10aacb696a6daa73caa867ab7f311725eb808c2496a6c7c1ed37073dde8392ec087542fb81a14ae1
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.2
|
data/.travis.yml
CHANGED
data/config/ldap.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
# LDAP connections
|
3
3
|
connections:
|
4
4
|
example_connection_1:
|
@@ -26,7 +26,7 @@ connections:
|
|
26
26
|
|
27
27
|
|
28
28
|
# LDAP attribute mappings
|
29
|
-
mappings:
|
29
|
+
mappings:
|
30
30
|
first_name: givenName
|
31
31
|
last_name: sn
|
32
32
|
email: mail
|
@@ -82,6 +82,8 @@ options:
|
|
82
82
|
# do not actually provision accounts
|
83
83
|
# useful during testing
|
84
84
|
test: true
|
85
|
+
# Add users without terminating anyone. Default=false
|
86
|
+
# add_only: false
|
85
87
|
|
86
88
|
|
87
89
|
# http options for connecting to Socialcast servers
|
@@ -122,7 +122,8 @@ module Socialcast
|
|
122
122
|
method_option :setup, :type => :boolean, :desc => 'Create an example ldap config file and exit'
|
123
123
|
method_option :delete_users_file, :type => :boolean, :desc => 'Delete the output file'
|
124
124
|
method_option :test, :type => :boolean, :desc => 'Do not persist changes'
|
125
|
-
method_option :skip_emails, :type => :boolean, :desc => 'Do not send signup emails to users'
|
125
|
+
method_option :skip_emails, :type => :boolean, :default => false, :desc => 'Do not send signup emails to users'
|
126
|
+
method_option :add_only, :type => :boolean, :default => false, :desc => 'Only add users'
|
126
127
|
method_option :force, :type => :boolean, :aliases => '-f', :default => false, :desc => 'Proceed with provisioning even if no users are found, which would deactivate all users in the community'
|
127
128
|
method_option :plugins, :type => :array, :desc => "Pass in an array of plugins. Can be either the gem require or the absolute path to a ruby file"
|
128
129
|
method_option :external_system, :type => :boolean, :desc => "Use an external system for authentication purposes"
|
@@ -52,6 +52,7 @@ module Socialcast
|
|
52
52
|
request_params = {:file => file}
|
53
53
|
request_params[:skip_emails] = 'true' if (@ldap_config.fetch('options', {})["skip_emails"] || @options[:skip_emails])
|
54
54
|
request_params[:test] = 'true' if (@ldap_config.fetch('options', {})["test"] || @options[:test])
|
55
|
+
request_params[:add_only] = 'true' if (@ldap_config.fetch('options', {})['add_only'] || @options[:add_only])
|
55
56
|
resource.post request_params, :accept => :json
|
56
57
|
end
|
57
58
|
rescue RestClient::Unauthorized => e
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Sonnek
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -207,7 +207,7 @@ files:
|
|
207
207
|
- ".document"
|
208
208
|
- ".gitignore"
|
209
209
|
- ".rspec"
|
210
|
-
- ".
|
210
|
+
- ".ruby-version"
|
211
211
|
- ".travis.yml"
|
212
212
|
- CONTRIBUTORS.txt
|
213
213
|
- Gemfile
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use ruby-2.1.1@socialcast-command-line --create
|