ruby-server-sdk 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/UserData.md +1 -1
- data/examples/sinatra/Gemfile +1 -1
- data/examples/sinatra/Gemfile.lock +4 -3
- data/examples/sinatra/app.rb +4 -4
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/api/devcycle_api.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/api_client.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/api_error.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/configuration.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/models/error_response.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/models/event.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/models/feature.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/models/inline_response201.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/models/user_data.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/models/user_data_and_events_body.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/models/variable.rb +0 -0
- data/lib/{devcycle-server-sdk → ruby-server-sdk}/version.rb +1 -1
- data/lib/{devcycle-server-sdk.rb → ruby-server-sdk.rb} +12 -12
- data/{devcycle-server-sdk.gemspec → ruby-server-sdk.gemspec} +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b544d578de12edc604590ebd706fe50bb816a66c83d52e5db9b8381fcb04e07b
|
4
|
+
data.tar.gz: d211ea4f8bd965c70579cc122d45060786ef8d311131cfb0ca128a8ac5e91109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87d4d3f890a0bf1b5a610cf2dca57a18d20cc4e0c059e33125c91b3a7de96fde384fc8ec8d1b4a7d5f323d9a8603f7c68468cbbabeed756bdae368ab8632457a
|
7
|
+
data.tar.gz: 555b3e9238b1e85705cf05303dbe11aed9d8ecd081694a5718bc6d6d9bfc830e3c943a4a0dec69b04ad475679bcc4c72623072be61c044fa107e4da64cdf4bcc
|
data/README.md
CHANGED
@@ -153,19 +153,19 @@ end
|
|
153
153
|
To build the Ruby code into a gem:
|
154
154
|
|
155
155
|
```shell
|
156
|
-
gem build
|
156
|
+
gem build ruby-server-sdk.gemspec
|
157
157
|
```
|
158
158
|
|
159
159
|
Then either install the gem locally:
|
160
160
|
|
161
161
|
```shell
|
162
|
-
gem install ./
|
162
|
+
gem install ./ruby-server-sdk-1.0.0.gem
|
163
163
|
```
|
164
164
|
|
165
|
-
(for development, run `gem install --dev ./
|
165
|
+
(for development, run `gem install --dev ./ruby-server-sdk-1.0.0.gem` to install the development dependencies)
|
166
166
|
|
167
167
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
168
168
|
|
169
169
|
Finally add this to the Gemfile:
|
170
170
|
|
171
|
-
gem '
|
171
|
+
gem 'ruby-server-sdk', '~> 1.0.0'
|
data/docs/UserData.md
CHANGED
data/examples/sinatra/Gemfile
CHANGED
@@ -2,8 +2,6 @@ GEM
|
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
4
|
daemons (1.4.1)
|
5
|
-
devcycle-server-sdk (1.0.1)
|
6
|
-
typhoeus (~> 1.0, >= 1.0.1)
|
7
5
|
ethon (0.15.0)
|
8
6
|
ffi (>= 1.15.0)
|
9
7
|
eventmachine (1.2.7)
|
@@ -14,6 +12,8 @@ GEM
|
|
14
12
|
rack (2.2.3)
|
15
13
|
rack-protection (2.1.0)
|
16
14
|
rack
|
15
|
+
ruby-server-sdk (1.0.1)
|
16
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
17
17
|
ruby2_keywords (0.0.5)
|
18
18
|
sinatra (2.1.0)
|
19
19
|
mustermann (~> 1.0)
|
@@ -35,10 +35,11 @@ GEM
|
|
35
35
|
ethon (>= 0.9.0)
|
36
36
|
|
37
37
|
PLATFORMS
|
38
|
+
universal-darwin-20
|
38
39
|
x86_64-darwin-19
|
39
40
|
|
40
41
|
DEPENDENCIES
|
41
|
-
|
42
|
+
ruby-server-sdk
|
42
43
|
sinatra
|
43
44
|
sinatra-contrib
|
44
45
|
thin
|
data/examples/sinatra/app.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'sinatra'
|
2
2
|
require "sinatra/reloader" if development?
|
3
|
-
require '
|
3
|
+
require 'ruby-server-sdk'
|
4
4
|
|
5
5
|
token = ARGV[0]
|
6
6
|
|
7
|
-
if !token
|
7
|
+
if !token
|
8
8
|
fail Exception, 'Must provide server SDK token'
|
9
9
|
end
|
10
10
|
|
@@ -32,7 +32,7 @@ get '/experiment' do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
get '/track-event' do
|
35
|
-
event_data = DevCycle::Event.new({
|
35
|
+
event_data = DevCycle::Event.new({
|
36
36
|
type: "my-event",
|
37
37
|
target: "some_event_target",
|
38
38
|
value: 12,
|
@@ -44,4 +44,4 @@ get '/track-event' do
|
|
44
44
|
result = api_instance.track(user_data, event_data)
|
45
45
|
|
46
46
|
p result
|
47
|
-
end
|
47
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,22 +11,22 @@ OpenAPI Generator version: 5.3.0
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
# Common files
|
14
|
-
require '
|
15
|
-
require '
|
16
|
-
require '
|
17
|
-
require '
|
14
|
+
require 'ruby-server-sdk/api_client'
|
15
|
+
require 'ruby-server-sdk/api_error'
|
16
|
+
require 'ruby-server-sdk/version'
|
17
|
+
require 'ruby-server-sdk/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
-
require '
|
21
|
-
require '
|
22
|
-
require '
|
23
|
-
require '
|
24
|
-
require '
|
25
|
-
require '
|
26
|
-
require '
|
20
|
+
require 'ruby-server-sdk/models/error_response'
|
21
|
+
require 'ruby-server-sdk/models/event'
|
22
|
+
require 'ruby-server-sdk/models/feature'
|
23
|
+
require 'ruby-server-sdk/models/inline_response201'
|
24
|
+
require 'ruby-server-sdk/models/user_data'
|
25
|
+
require 'ruby-server-sdk/models/user_data_and_events_body'
|
26
|
+
require 'ruby-server-sdk/models/variable'
|
27
27
|
|
28
28
|
# APIs
|
29
|
-
require '
|
29
|
+
require 'ruby-server-sdk/api/devcycle_api'
|
30
30
|
|
31
31
|
module DevCycle
|
32
32
|
class << self
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DevCycleHQ
|
@@ -62,7 +62,6 @@ files:
|
|
62
62
|
- LICENSE
|
63
63
|
- README.md
|
64
64
|
- Rakefile
|
65
|
-
- devcycle-server-sdk.gemspec
|
66
65
|
- docs/DevcycleApi.md
|
67
66
|
- docs/ErrorResponse.md
|
68
67
|
- docs/Event.md
|
@@ -74,19 +73,20 @@ files:
|
|
74
73
|
- examples/sinatra/README.md
|
75
74
|
- examples/sinatra/app.rb
|
76
75
|
- git_push.sh
|
77
|
-
- lib/
|
78
|
-
- lib/
|
79
|
-
- lib/
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
85
|
-
- lib/
|
86
|
-
- lib/
|
87
|
-
- lib/
|
88
|
-
- lib/
|
89
|
-
- lib/
|
76
|
+
- lib/ruby-server-sdk.rb
|
77
|
+
- lib/ruby-server-sdk/api/devcycle_api.rb
|
78
|
+
- lib/ruby-server-sdk/api_client.rb
|
79
|
+
- lib/ruby-server-sdk/api_error.rb
|
80
|
+
- lib/ruby-server-sdk/configuration.rb
|
81
|
+
- lib/ruby-server-sdk/models/error_response.rb
|
82
|
+
- lib/ruby-server-sdk/models/event.rb
|
83
|
+
- lib/ruby-server-sdk/models/feature.rb
|
84
|
+
- lib/ruby-server-sdk/models/inline_response201.rb
|
85
|
+
- lib/ruby-server-sdk/models/user_data.rb
|
86
|
+
- lib/ruby-server-sdk/models/user_data_and_events_body.rb
|
87
|
+
- lib/ruby-server-sdk/models/variable.rb
|
88
|
+
- lib/ruby-server-sdk/version.rb
|
89
|
+
- ruby-server-sdk.gemspec
|
90
90
|
- spec/api/devcycle_api_spec.rb
|
91
91
|
- spec/api_client_spec.rb
|
92
92
|
- spec/configuration_spec.rb
|