tessitura_rest 2.3.0 → 2.3.1
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ebd2cc83324d691c7f33290eead3a0bd285ff590ee25abb7052ad52af6f713d
|
|
4
|
+
data.tar.gz: 460fe76f83a487ad77e7a830539013ea9d8d60e7421bfbcae15c89dc2ded1f83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9551906c8912019f44cf7beae5ae8c6d33ebe0a0e37f08b2dc34fab57d80cb2c622e8f5be734221c0adfe074cac29d4a9b22f9c512eac9b43d6187461a0cb48
|
|
7
|
+
data.tar.gz: cc29f3ff6e14406e4f5b95ae6f53ce49228634d10c3b7c35943dd06de3acecb65736240c5474e369d7eb421d17c8d43778c03bc91bfea6b4e052ca1f765376e0
|
|
@@ -10,26 +10,31 @@ jobs:
|
|
|
10
10
|
name: Build + Publish
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
permissions:
|
|
13
|
-
|
|
14
|
-
contents: write
|
|
13
|
+
contents: read
|
|
15
14
|
id-token: write
|
|
15
|
+
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
18
|
-
|
|
17
|
+
- uses: actions/checkout@v5
|
|
18
|
+
with:
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
|
|
21
|
+
- name: Set up Ruby 3.3.1
|
|
19
22
|
uses: ruby/setup-ruby@v1
|
|
20
23
|
with:
|
|
21
|
-
ruby-version: '
|
|
24
|
+
ruby-version: '3.3.1'
|
|
25
|
+
bundler: '4.0.1'
|
|
26
|
+
bundler-cache: true
|
|
22
27
|
|
|
23
|
-
- name:
|
|
28
|
+
- name: Configure RubyGems Credentials
|
|
29
|
+
uses: rubygems/configure-rubygems-credentials@v1.0.0
|
|
30
|
+
|
|
31
|
+
- name: Build gem
|
|
24
32
|
run: |
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
gem push *.gem
|
|
31
|
-
env:
|
|
32
|
-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
|
33
|
+
echo "GEM_FILE=$(ruby -e 'spec = Gem::Specification.load("tessitura_rest.gemspec"); print "#{spec.name}-#{spec.version}.gem"')" >> "$GITHUB_ENV"
|
|
34
|
+
gem build tessitura_rest.gemspec
|
|
35
|
+
|
|
36
|
+
- name: Publish gem
|
|
37
|
+
run: gem push "$GEM_FILE"
|
|
33
38
|
|
|
34
39
|
- name: Remove gem build file
|
|
35
40
|
run: rm *.gem
|
|
@@ -5,7 +5,7 @@ module Constituencies
|
|
|
5
5
|
JSON.parse(response.body)
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
-
def create_constituencies(constituency, id, end_date = nil, options = {})
|
|
8
|
+
def create_constituencies(constituency, id, start_date = nil, end_date = nil, options = {})
|
|
9
9
|
parameters =
|
|
10
10
|
{
|
|
11
11
|
'ConstituencyType': {
|
|
@@ -16,6 +16,7 @@ module Constituencies
|
|
|
16
16
|
},
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
parameters['StartDate'] = start_date if start_date
|
|
19
20
|
parameters['EndDate'] = end_date if end_date
|
|
20
21
|
|
|
21
22
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
require 'cgi'
|
|
2
|
+
|
|
1
3
|
module WebLogins
|
|
2
4
|
def get_web_login(email, login_type, options = {})
|
|
3
5
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
4
|
-
|
|
6
|
+
encoded_email = CGI.escape(email)
|
|
7
|
+
response = self.class.get(base_api_endpoint("CRM/WebLogins/Search?emailAddress=#{encoded_email}&loginTypeId=#{login_type}"), options)
|
|
5
8
|
JSON.parse(response.body)
|
|
6
9
|
end
|
|
7
10
|
|