lockstep_rails 0.3.39 → 0.3.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfb0c056e179b80111fd68271a50bf76233e0c9dee36f948078bc8ff913be73b
4
- data.tar.gz: 9316cc0356ab72af687e58788316d57baed43dd4dbd732849b1004e09e45f984
3
+ metadata.gz: 6e65c6ad7031ef59bab67ddc732c5f45897eff15bbfdd09c049924fdbdb827ad
4
+ data.tar.gz: 1bce4651a840e05e86bae6ff81dbdfdda9a6865c5744932d646f91832bf581ca
5
5
  SHA512:
6
- metadata.gz: e369535d4e98a9e88a69028b33b17b9a4c61fcd16a17c4cbce8d695c86b60ad0c3f0e710a4fa0f11121ddbc3814e5fa17d305b1ff795d86564ed8441bf6fe822
7
- data.tar.gz: e9684ff9e497026495147f08fc36e72fc04f41347ac6375dc149f8c5d6b7f78413eb5583e7282b9caabc1888887f8a0dff4f5a9568d5262b88b1697e197e69a3
6
+ metadata.gz: f4daa23908e58992340c31888f34a877930358762b2f22070ee22abd8066fa1764363957433cf44516798d4a08a1d71f154bf1220f9e25b9dfbb1076d5a543ae
7
+ data.tar.gz: beff60594deadcc08ed9b34587ddf644c3d9d8b968069c9dac3f5f57a0946086b630f6ee6b408e4ecd951db5991e419aaf0f87882d99d0728b407b3499107e1c
data/README.md CHANGED
@@ -62,6 +62,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
62
62
  * Lockstep::ApiKey
63
63
  * Lockstep::InvoiceAtRiskSummary
64
64
  * Lockstep::MagicLink
65
+ * Lockstep::FeatureFlag
65
66
 
66
67
  ## ActiveModel Interfaces
67
68
 
@@ -0,0 +1,12 @@
1
+ class Lockstep::FeatureFlag < Lockstep::ApiRecord
2
+ self.model_name_uri = "v1/feature-flags"
3
+ self.query_path=""
4
+ load_schema(Schema::FeatureFlag)
5
+
6
+ # Create method to override conventional create in lockstep/api_record.rb for sending attrs as an enclosed hash/object
7
+ def create
8
+ resp = resource.post('', body: attributes)
9
+ result = post_result(resp)
10
+ end
11
+
12
+ end
@@ -3,8 +3,8 @@ class Lockstep::MagicLink < Lockstep::ApiRecord
3
3
  self.id_ref = "magicLinkId"
4
4
  self.query_path = ""
5
5
 
6
- def self.generate(email_id, expiry, app_id, user_role)
7
- body = {email: email_id, expiresInMinutes: expiry, applicationId: app_id, userRole: user_role}
6
+ def self.generate(email_id, expiry, app_id, user_role, company_id)
7
+ body = {email: email_id, expiresInMinutes: expiry, applicationId: app_id, userRole: user_role, companyId: company_id}
8
8
  resource.post_magic_link('', body: body, params: {})
9
9
  end
10
10
  end
@@ -0,0 +1,12 @@
1
+ class Schema::FeatureFlag < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Name of the feature flags
9
+ # @type: array
10
+ field :names
11
+
12
+ end
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = "0.3.39"
2
+ VERSION = "0.3.41"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.39
4
+ version: 0.3.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2022-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -51,6 +51,7 @@ files:
51
51
  - app/models/lockstep/connection.rb
52
52
  - app/models/lockstep/contact.rb
53
53
  - app/models/lockstep/customer_summary.rb
54
+ - app/models/lockstep/feature_flag.rb
54
55
  - app/models/lockstep/invoice.rb
55
56
  - app/models/lockstep/invoice_at_risk_summary.rb
56
57
  - app/models/lockstep/invoice_summary.rb
@@ -147,6 +148,7 @@ files:
147
148
  - app/platform_api/schema/erp_info_data.rb
148
149
  - app/platform_api/schema/event_info.rb
149
150
  - app/platform_api/schema/exception.rb
151
+ - app/platform_api/schema/feature_flag.rb
150
152
  - app/platform_api/schema/feature_flags_request.rb
151
153
  - app/platform_api/schema/feature_flags_response.rb
152
154
  - app/platform_api/schema/field_info.rb