focus-utils 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ require 'active_support/concern'
2
+
3
+ module ActiveResource
4
+ module Extend
5
+ module AddCustomHeaders
6
+ extend ActiveSupport::Concern
7
+
8
+ attr_accessor :custom_headers
9
+
10
+ def custom_headers
11
+ return @custom_headers.blank? ? {} : @custom_headers
12
+ end
13
+
14
+ end
15
+ end
16
+ end
data/lib/focus-utils.rb CHANGED
@@ -2,11 +2,11 @@ require 'active_resource'
2
2
  require 'yaml'
3
3
  require 'ares/add_relative_prefix'
4
4
  require 'ares/remove_format_extension'
5
- require 'ares/add_api_key'
5
+ require 'ares/add_custom_header'
6
6
  require 'ares/use_config_file'
7
7
 
8
8
  #ActiveResource::Base.include_format_in_path = false
9
9
  ActiveResource::Base.send(:include, ActiveResource::Extend::RemoveExtension)
10
- ActiveResource::Base.send(:include, ActiveResource::Extend::AuthWithApiKey)
11
10
  ActiveResource::Base.send(:include, ActiveResource::Extend::AddRelativePrefix)
11
+ ActiveResource::Base.send(:include, ActiveResource::Extend::AddCustomHeaders)
12
12
  ActiveResource::Base.establish_site_connection
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: focus-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -35,6 +35,7 @@ extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
37
  - lib/ares/add_api_key.rb
38
+ - lib/ares/add_custom_header.rb
38
39
  - lib/ares/add_relative_prefix.rb
39
40
  - lib/ares/remove_format_extension.rb
40
41
  - lib/ares/use_config_file.rb