productive 0.5.12 → 0.6.0

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
  SHA1:
3
- metadata.gz: 09949ce03c1f1d2c4e4cc193bd278982351bbb3c
4
- data.tar.gz: 54916ae19fa91ba0171c60132d9abc4ce520ceee
3
+ metadata.gz: e1ac03df1bc7818717c5ade878db3237a2d6089c
4
+ data.tar.gz: dd48a757c4fe46bb6aee4bc2b5cad46ee8ca9737
5
5
  SHA512:
6
- metadata.gz: 0129a0a9c9255211ac8cb45475561610a2f19b7febd74aa15f5d4de9d23d660b14b291fa8a1cfac8330fac6fcc66e84a83f8d3e53a6c7976579d9950c6018207
7
- data.tar.gz: 410c0e3a0727b6cf9598d321935b3663cbbdcafad01f7daa2eeb921297adf5f509d977c67105d33328be04fceb79cb8d3bad3c621f84fb04619178cb620603ad
6
+ metadata.gz: 8ac463a2480aedbd27133b2ab74d9e16485e01241987510ad97a0894d5a9684776ec4529c34c81ef20a0aca8febd1e6754be1455e3957927f61ea8f71e26886b
7
+ data.tar.gz: 318568fff4aedf3e619796b2b356bfe45d956793e1528422fbaccfd4f93e24ab9a42b6be66315946ef4313c152f97f032e7afea30a197270da2e2d4e3b142040
@@ -1,23 +1,13 @@
1
1
  module Productive
2
2
  class BaseAccount < Base
3
- def self.site
4
- RequestStore.store[:json_api_client_base_account_site]
5
- end
6
-
7
- def self.site=(site)
8
- RequestStore.store[:json_api_client_base_account_site] = site
9
- end
10
-
11
- def self.connection_object
12
- RequestStore.store[:json_api_client_base_account_connection_object]
13
- end
14
-
15
- def self.connection_object=(connection)
16
- RequestStore.store[:json_api_client_base_account_connection_object] = connection
17
- end
18
-
19
- def self.site_setup(config)
20
- self.site = File.join config.base_url, config.account_id.to_s, '/'
3
+ def self.connection_options_setup(config)
4
+ if config.connection_options[:headers].nil?
5
+ config.connection_options[:headers] = { 'X-Organization-Id' => config.account_id }
6
+ else
7
+ config.connection_options[:headers]['X-Organization-Id'] = config.account_id.to_s
8
+ end
9
+
10
+ super(config)
21
11
  end
22
12
  end
23
13
  end
@@ -1,3 +1,3 @@
1
1
  module Productive
2
- VERSION = '0.5.12'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: productive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josip Bišćan