intellisense-ruby 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,8 @@ module IntellisenseRuby
68
68
  entityId: entity_id,
69
69
  properties: properties,
70
70
  timestamp: timestamp.iso8601,
71
- action: 'describe'})
71
+ action: 'describe',
72
+ apiKey: @secret})
72
73
  end
73
74
 
74
75
  # public: describe entities in the graph
@@ -103,7 +104,8 @@ module IntellisenseRuby
103
104
  entityId: entity_id,
104
105
  properties: properties,
105
106
  timestamp: timestamp.iso8601,
106
- action: 'measure'})
107
+ action: 'measure',
108
+ apiKey: @secret})
107
109
  end
108
110
 
109
111
 
@@ -19,6 +19,7 @@ module IntellisenseRuby
19
19
  # on_error - Proc of what to do on an error
20
20
  #
21
21
  def initialize(queue, secret, options = {})
22
+ @options = options
22
23
  @queue = queue
23
24
  @secret = secret
24
25
  @batch_size = options[:batch_size] || IntellisenseRuby::Defaults::Queue::BATCH_SIZE
@@ -69,7 +70,7 @@ module IntellisenseRuby
69
70
  }
70
71
  when 'sqs'
71
72
  log('DEBUG ############## SENSOR using SQS transport to send ' + @current_batch.to_s)
72
- sqs = IntellisenseRuby::SQS_Publisher.new logger: @logger
73
+ sqs = IntellisenseRuby::SQS_Publisher.new @options
73
74
  sqs.send_message(@current_batch)
74
75
  @mutex.synchronize {
75
76
  @current_batch = []
@@ -10,10 +10,10 @@ module IntellisenseRuby
10
10
  def initialize(options = {})
11
11
 
12
12
  @sqs = AWS::SQS.new(
13
- :access_key_id => 'AKIAJPYU646KQOWWZ4SA',
14
- :secret_access_key => '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')
13
+ :access_key_id => options[:warehouse_access_key_id],
14
+ :secret_access_key => options[:warehouse_secret_access_key])
15
15
 
16
- @sqs_queue = @sqs.queues['https://sqs.us-east-1.amazonaws.com/691677686063/yoda-events']
16
+ @sqs_queue = @sqs.queues[options[:warehouse_queue_url]]
17
17
 
18
18
  @logger = options[:logger]
19
19
  log('DEBUG ############## SQS_Publisher created! with queue ' + @sqs_queue.to_s)
@@ -1,3 +1,3 @@
1
1
  module IntellisenseRuby
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intellisense-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-14 00:00:00.000000000 Z
12
+ date: 2013-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -150,7 +150,6 @@ files:
150
150
  - lib/intellisense-ruby/consumer.rb
151
151
  - lib/intellisense-ruby/client.rb
152
152
  - lib/intellisense-ruby/defaults.rb
153
- - intellisense-ruby-0.6.4.gem
154
153
  - intellisense-ruby.sublime-project
155
154
  - intellisense-ruby.sublime-workspace
156
155
  - README.md
Binary file