ecoportal-api-graphql 0.1.1 → 0.1.3

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: 31998ba790529d40b944c8ee9160a0b916d951f6c2fba7b356316a039fc2464c
4
- data.tar.gz: bf5db71077c3cdc628b09d558c0a5c224bd93339148fd23deff4f0ac8cb4ef7d
3
+ metadata.gz: 07ba83146627efb03fc8dff405390cafd4f5cfdb4ad2f3bc4411a49d42d8a259
4
+ data.tar.gz: 7be60f892e80c06418312fe6f566cc57b7f8c23bd45ebc339305439df8e5ca80
5
5
  SHA512:
6
- metadata.gz: e6d6eef572e2cc6dedf127094e27eca4b2af148b94272f034367ce886d90e228dcbfe9661b101c018c030bf992df1e3624fdcb1fafdda35a7e008ac1b596ea66
7
- data.tar.gz: bf1ff8931b054e38904ac0e4df51b3bee5c4826e99b5132cf2ae383192c599aa109ff1140e635ee5feb5e79e22e83f899d6878c5261d1d1d4de1e7ba9cc78993
6
+ metadata.gz: 59d820cad74807d561595cb157d92ec16094a028c1354501c8e5ea43efc4f962cee87f10bb0689055acd81839902319db4903bcd5ce8b4c1bbd84f97ff1fd2a2
7
+ data.tar.gz: e60dea5941855d499dbdaa60f2f835607612560a11b047623adbbd5f71a646492c37df234d265ac05a932bd3e784194ac921580329b35b1aaf5a1e418b5b2af6
data/CHANGELOG.md CHANGED
@@ -1,13 +1,11 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.0.3] - 2022-09-xx
4
+ ## [0.1.4] - 2022-09-xx
5
5
 
6
6
  ### Added
7
7
 
8
8
  ### Changed
9
- - `Ecoportal::API::GraphQL` addded `email` and `pass` parameters on initialization
10
- - This allows for integration in some client lib
11
9
 
12
10
  ### Fixed
13
11
 
@@ -18,13 +16,19 @@ All notable changes to this project will be documented in this file.
18
16
  - Analyse how to "DSL" currentOrganization.action.activities
19
17
  - review `path` tracking
20
18
 
21
- ## [0.0.2] - 2022-09-15
19
+
20
+ ## [0.1.3] - 2022-09-15
21
+
22
+ ### Fixed
23
+ - Fixed circular reference to `org_id` in `Ecoportal::API::Common::GraphQL::Client`
24
+
25
+ ## [0.1.2] - 2022-09-15
22
26
 
23
27
  ### Changed
24
28
  - `Ecoportal::API::GraphQL` addded `email` and `pass` parameters on initialization
25
29
  - This allows for integration in some client lib
26
30
 
27
- ## [0.0.1] - 2022-09-15
31
+ ## [0.1.0] - 2022-09-15
28
32
 
29
33
  ### Added
30
34
  - First commit with some basic structure
@@ -8,7 +8,7 @@ module Ecoportal
8
8
 
9
9
  include Ecoportal::API::Common::GraphQL::AuthService
10
10
 
11
- def initialize(email: nil, pass: nil, org_id: org_id,
11
+ def initialize(email: nil, pass: nil, org_id: self.org_id,
12
12
  host: server, schema_path: host, no_schema: false)
13
13
  @org_id = org_id
14
14
  @host = host
@@ -34,12 +34,12 @@ module Ecoportal
34
34
  self.class.new(org_id: org_id, host: host, schema_path: schema_path, no_schema: no_schema)
35
35
  end
36
36
 
37
- private
38
-
39
37
  def org_id
40
38
  @org_id || fetch_env_required("ORGANIZATION_ID")
41
39
  end
42
40
 
41
+ private
42
+
43
43
  def url
44
44
  "#{Ecoportal::API::Common::GraphQL::HttpClient.base_url(host)}/api/#{org_id}/graphql"
45
45
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = "0.1.1"
3
+ GRAPQL_VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler