azure-loganalytics-datacollector-api 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: daf49dbf92029301348d64dc66385db82a7c130d
4
- data.tar.gz: 6fd642535b7b1a12d4053f211e9308a144bf8022
3
+ metadata.gz: 289c1de41f3d63641f197810952cf057f277e706
4
+ data.tar.gz: 8b9d43f3a7662397e337233dc1a04fabd61aa719
5
5
  SHA512:
6
- metadata.gz: ab57e162e60914424738f67094b812b1c87f6669bf70a08b67c7dbdaa057f747cb2f4f321a1126a755e25368776a3750137db394e1efb830de14ce64caafe015
7
- data.tar.gz: 3c98b7dba31bb69b6e3fa3c562a807f28d1b23017ca521b19f9c94652a943973eacfa7a10b7009c719d9f3a930fb743f13adba84c91f09d55341ae5310d8ada0
6
+ metadata.gz: 0dc5740b1f862fa5c905b221fc074e806661b463b297d2c25a64b09aa38b6e6352dd10961be0080dcc40cd2bc3407ae700d03c042f60d91b24eb72e762067019
7
+ data.tar.gz: a19bfe626d076973886886dd59e2488f202ce801e5b8776e2b8d6b6a8f7d38b0505781172160ebd4c1ff7522d8d285e51379210461fe80fdd0c0539da6fc2765
data/ChangeLog.md ADDED
@@ -0,0 +1,7 @@
1
+ ## 0.1.1
2
+
3
+ * rm helper.rb and include helper functions in client.rb
4
+
5
+ ## 0.1.0
6
+
7
+ * Inital Release
data/README.md CHANGED
@@ -1,28 +1,19 @@
1
- # Azure::Loganalytics::Datacollectorapi
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/azure/loganalytics/datacollectorapi/client`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
1
+ # azure-log-analytics-data-collector Ruby Client
2
+ Azure Log Analytics Data Collector API Ruby Client
6
3
 
7
4
  ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'azure-loganalytics-datacollector-api'
5
+ ```
6
+ gem install azure-loganalytics-datacollector-api
13
7
  ```
14
8
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
9
+ ## Change log
20
10
 
21
- $ gem install azure-loganalytics-datacollector-api
11
+ * [Changelog](ChangeLog.md)
22
12
 
23
- ## Usage
13
+ ## Links
24
14
 
25
- TODO: Write usage instructions here
15
+ * https://rubygems.org/gems/azure-loganalytics-datacollector-api
16
+ * [Azure Log Analytics Data Collecotr API](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-data-collector-api)
26
17
 
27
18
  ## Development
28
19
 
@@ -32,8 +23,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
23
 
33
24
  ## Contributing
34
25
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/azure-loganalytics-datacollectorapi-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
26
+ Bug reports and pull requests are welcome on GitHub at https://github.com/yokawasa/azure-log-analytics-data-collector. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
27
 
38
28
  ## License
39
29
 
@@ -41,6 +41,10 @@ module Azure
41
41
  res
42
42
  end
43
43
 
44
+ def self.is_success(res)
45
+ return (res.code == 202) ? true : false
46
+ end
47
+
44
48
  private
45
49
 
46
50
  def is_alpha(s)
@@ -1,7 +1,7 @@
1
1
  module Azure
2
2
  module Loganalytics
3
3
  module Datacollectorapi
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -44,7 +44,7 @@ describe Azure::Loganalytics::Datacollectorapi::Client do
44
44
 
45
45
  client=Azure::Loganalytics::Datacollectorapi::Client::new( customer_id, shared_key)
46
46
  res = client.post_data(log_type, json_records)
47
- expect(res.code).to eq(202)
47
+ expect(Azure::Loganalytics::Datacollectorapi::Client.is_success(res)).to eq(true)
48
48
  end
49
49
 
50
50
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,2 @@
1
1
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
2
  require "azure/loganalytics/datacollectorapi/client"
3
- require "azure/loganalytics/datacollectorapi/helper"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-loganalytics-datacollector-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichi Kawasaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -77,6 +77,7 @@ extra_rdoc_files: []
77
77
  files:
78
78
  - ".gitignore"
79
79
  - ".rspec"
80
+ - ChangeLog.md
80
81
  - Gemfile
81
82
  - LICENSE.txt
82
83
  - README.md
@@ -85,7 +86,6 @@ files:
85
86
  - bin/console
86
87
  - bin/setup
87
88
  - lib/azure/loganalytics/datacollectorapi/client.rb
88
- - lib/azure/loganalytics/datacollectorapi/helper.rb
89
89
  - lib/azure/loganalytics/datacollectorapi/version.rb
90
90
  - spec/azure/loganalytics/datacollectorapi/client_spec.rb
91
91
  - spec/spec_helper.rb
@@ -1,11 +0,0 @@
1
- module Azure
2
- module Loganalytics
3
- module Datacollectorapi
4
-
5
- def is_success(res)
6
- return (res.code == 202) ? true : false
7
- end
8
-
9
- end
10
- end
11
- end