moesif_api 1.0.0 → 1.0.1

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: 135adc3a0b9e77788fc3e44c590989af8c6f42b5
4
- data.tar.gz: 2cc15b30740683c4c16c68cc68e905a63ccd8310
3
+ metadata.gz: a8716a727d0b4b1481d8fdc15e19a6ee86aab08a
4
+ data.tar.gz: 0452d5aebb3ad5a0805ff16cfc5db22db9d87f36
5
5
  SHA512:
6
- metadata.gz: 5c7ebe96c975c087ec86a69298bc48d64b0a666c52b6e966e8e6c1a4c02ceb2322c7026932aecc6ff7a7bf7d1e98da1fc97dd09f33a22a571bf19ad377ec7f8f
7
- data.tar.gz: 97f1ea4a0f21246e5ce75a7ab3200841ebbff031bc91e82a827a28baaf9f77ca8baf92bf69fd0d6df2a892a7aebac60e489f7271e85c4388ad1e2cf60ca0f32b
6
+ metadata.gz: 7d38dd020f138aeac217dadb8a43a5d7ad8b57c29d9e9cdebc073ce324594d11c302c7f621cbe32f4fae315e99fbedba29d1e2527d1080179707c823d0882339
7
+ data.tar.gz: f4c65a1f5dd3f7e44cab967aec97f5ba64b8fe713c0b3bb97eb3b8a5badc7ceff945ba5e2e47a9ec386df6f626a2efd3fc0ff265c4571321a9ebaffdaf730e4f
data/README.md CHANGED
@@ -10,9 +10,12 @@ Alternatively, you can modify the Configuration parameters at run-time through t
10
10
  ```
11
11
  MoesifApi::Configuration.your_paramater = YOUR_VALUE
12
12
  ```
13
+ Install from RubyGems
14
+ =====================
15
+ gem install moesif_api
13
16
 
14
- How to build and install:
15
- =============================
17
+ How to build and install manually:
18
+ ==================================
16
19
  The generated code depends on a few Ruby gems. The references to these gems are
17
20
  added in the gemspec file. The easiest way to resolve the dependencies,
18
21
  build the gem and install it is through Rake:
@@ -47,7 +50,7 @@ After having installed the gem, you can easily use the SDK following these steps
47
50
  ```ruby
48
51
  require 'moesif_api'
49
52
 
50
- api_client = MoesifApi::MoesifAPIClient.new
53
+ api_client = MoesifApi::MoesifAPIClient.new(my_application_id)
51
54
  controller = api_client.api_controller
52
55
  response = controller.create_event(<required parameters if any>)
53
56
  ```
@@ -15,7 +15,7 @@ module MoesifApi
15
15
  end
16
16
 
17
17
  # Initializer with authentication and configuration parameters
18
- def initialize(application_id: nil)
18
+ def initialize(application_id)
19
19
  Configuration.application_id = application_id
20
20
  end
21
21
  end
@@ -15,10 +15,9 @@ class ControllerTestBase < Test::Unit::TestCase
15
15
 
16
16
  # Called only once for a test class before any test has executed.
17
17
  def self.startup
18
- @@api_client = MoesifAPIClient.new
18
+ @@api_client = MoesifAPIClient.new("eyJhcHAiOiIzNjU6NiIsInZlciI6IjIuMCIsIm9yZyI6IjM1OTo0IiwiaWF0IjoxNDczMzc5MjAwfQ.9WOx3D357PGMxrXzFm3pV3IzJSYNsO4oRudiMI8mQ3Q")
19
19
  @@request_timeout = 30
20
20
  @@assert_precision = 0.01
21
- Configuration.application_id = "eyJhcHAiOiIzNjU6NiIsInZlciI6IjIuMCIsIm9yZyI6IjM1OTo0IiwiaWF0IjoxNDczMzc5MjAwfQ.9WOx3D357PGMxrXzFm3pV3IzJSYNsO4oRudiMI8mQ3Q"
22
21
  end
23
22
 
24
23
  # Called once before every test case.
metadata CHANGED
@@ -1,56 +1,56 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moesif_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moesif, Inc
8
8
  - Derric Gilling
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2016-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ name: test-unit
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ~>
18
+ - - "~>"
18
19
  - !ruby/object:Gem::Version
19
20
  version: 3.1.5
20
- name: test-unit
21
- prerelease: false
22
21
  type: :runtime
22
+ prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: 3.1.5
28
28
  - !ruby/object:Gem::Dependency
29
+ name: unirest
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ~>
32
+ - - "~>"
32
33
  - !ruby/object:Gem::Version
33
34
  version: 1.1.2
34
- name: unirest
35
- prerelease: false
36
35
  type: :runtime
36
+ prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: 1.1.2
42
42
  - !ruby/object:Gem::Dependency
43
+ name: json_mapper
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - ~>
46
+ - - "~>"
46
47
  - !ruby/object:Gem::Version
47
48
  version: 0.2.1
48
- name: json_mapper
49
- prerelease: false
50
49
  type: :runtime
50
+ prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: 0.2.1
56
56
  description: Collection/Data Ingestion API
@@ -89,24 +89,24 @@ homepage: https://moesif.com
89
89
  licenses:
90
90
  - MIT
91
91
  metadata: {}
92
- post_install_message:
92
+ post_install_message:
93
93
  rdoc_options: []
94
94
  require_paths:
95
95
  - lib
96
96
  required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ~>
98
+ - - "~>"
99
99
  - !ruby/object:Gem::Version
100
100
  version: '2.0'
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 2.4.5
109
- signing_key:
107
+ rubyforge_project:
108
+ rubygems_version: 2.5.1
109
+ signing_key:
110
110
  specification_version: 4
111
111
  summary: moesif_api
112
112
  test_files: []