socialcast 1.3.12 → 1.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 610338f9bd0ce308510f29fe684fc4ed7f876fd4
4
- data.tar.gz: 67eadbc1549337bbc9c0bafeaa4f934c8f9d1d70
3
+ metadata.gz: e47c7a2ae5e15e428bb10de22c9c82314e7b3cae
4
+ data.tar.gz: a9eb506a41820efa452980829fcc0f49f22ae24a
5
5
  SHA512:
6
- metadata.gz: bbc659eefaace5269780c1052706eb9fe860f3e585bff2d23353b58924c331533e1005eb11d1546b98b5a30b403fd6e5593f943bf4b0da958c07247ec308692b
7
- data.tar.gz: c85326a13ca5c7c637e70b474497a1827c05a9f5f370859b29eb311f52f171e922ca7c01161670f84d895be36d3800662eb32bbe20ecaed017ec78b25c56c4f4
6
+ metadata.gz: 0199e8f8d5ef41ccbcda5c9f83a0dfedbb170f63718681f31431b8df98ab2a347e0818a1368898be5171adb77eed1ef46a421c7f359e6067856d9e7ee6496ed2
7
+ data.tar.gz: 2f8e999cc04e34c4bfb975f0579c044dba57e811a58351ca10aacb696a6daa73caa867ab7f311725eb808c2496a6c7c1ed37073dde8392ec087542fb81a14ae1
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.2
data/.travis.yml CHANGED
@@ -3,3 +3,4 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.1
6
+ - 2.1.2
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
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module CommandLine
3
- VERSION = "1.3.12"
3
+ VERSION = "1.3.13"
4
4
  end
5
5
  end
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.12
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-06-19 00:00:00.000000000 Z
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
- - ".rvmrc"
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