rightsignature 0.1.7 → 0.1.8
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.
- data/README.md +3 -3
- data/lib/rightsignature/template.rb +2 -2
- data/lib/rightsignature/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -8,7 +8,7 @@ gem install rightsignature
|
|
8
8
|
```
|
9
9
|
or in your Gemfile
|
10
10
|
```
|
11
|
-
gem 'rightsignature', '~> 0.1.
|
11
|
+
gem 'rightsignature', '~> 0.1.8'
|
12
12
|
```
|
13
13
|
|
14
14
|
Setup
|
@@ -343,7 +343,7 @@ You can also add restrictions to what the person can do:
|
|
343
343
|
* redirect_location: A URI encoded URL that specifies the location we will redirect the user to, after they have created a template.
|
344
344
|
* tags: tags to add to the template. an array of strings (for simple tag) or hashes like {'tag_name' => 'tag_value'} (for tuples pairs)
|
345
345
|
Ex. ['created_from_api', {"user_id" => "123"}]
|
346
|
-
*
|
346
|
+
* acceptable_role_names: The user creating the Template will be forced to select one of the values provided.
|
347
347
|
There will be no free-form name entry when adding roles to the Template. An array of strings.
|
348
348
|
Ex. ["Employee", "Employeer"]
|
349
349
|
* acceptable_merge_field_names: The user creating the Template will be forced to select one of the values provided.
|
@@ -357,7 +357,7 @@ options = {
|
|
357
357
|
{:name => "Site ID"},
|
358
358
|
{:name => "Starting City"}
|
359
359
|
],
|
360
|
-
:
|
360
|
+
:acceptable_role_names =>
|
361
361
|
[
|
362
362
|
{:name => "Http Monster"},
|
363
363
|
{:name => "Party Monster"}
|
@@ -148,7 +148,7 @@ module RightSignature
|
|
148
148
|
# - redirect_location: A URI encoded URL that specifies the location we will redirect the user to, after they have created a template.
|
149
149
|
# - tags: tags to add to the template. an array of 'tag_name' (for simple tag) or {'tag_name' => 'value'} (for tuples pairs)
|
150
150
|
# Ex. ['created_from_api', {"user_id" => "123"}]
|
151
|
-
# -
|
151
|
+
# - acceptable_role_names: The user creating the Template will be forced to select one of the values provided.
|
152
152
|
# There will be no free-form name entry when adding roles to the Template. An array of strings.
|
153
153
|
# Ex. ["Employee", "Employeer"]
|
154
154
|
# - acceptable_merge_field_names: The user creating the Template will be forced to select one of the values provided.
|
@@ -158,7 +158,7 @@ module RightSignature
|
|
158
158
|
xml_hash = {:template => {}}
|
159
159
|
xml_hash[:template][:tags] = TagsHelper.array_to_xml_hash(options[:tags]) if options[:tags]
|
160
160
|
|
161
|
-
[:acceptable_merge_field_names, :
|
161
|
+
[:acceptable_merge_field_names, :acceptable_role_names].each do |option|
|
162
162
|
xml_hash[:template][option] = array_to_acceptable_names_hash(options[option]) if options[option]
|
163
163
|
end
|
164
164
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rightsignature
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-10-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|