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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a023526383cad15921c3f13bc028a8b4fe4afc91d654718c1b0cdc4228fbd15
4
- data.tar.gz: d0b1328cd2b3b13151e9b5aa918b4ad094d7de4e267ae01c3a56ae0ab80a8171
3
+ metadata.gz: b544d578de12edc604590ebd706fe50bb816a66c83d52e5db9b8381fcb04e07b
4
+ data.tar.gz: d211ea4f8bd965c70579cc122d45060786ef8d311131cfb0ca128a8ac5e91109
5
5
  SHA512:
6
- metadata.gz: c2cbb07ab603c108eba4fadb72a0ab0680d5f23ae6433352a7a92dfb61da4ca2c7b37a8c9e63635b3f84136ff962a308b7bd1ae890a55d385b6fd9062a012982
7
- data.tar.gz: b060fdd0bc38828e0d92c9696ddfe452ae38977bff3c03cc5e9420218d65b68fb351af4f56e4ac59634e6e73667b1aa4c79c4070f1ad26d41da8f6a5b376f057
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 devcycle-server-sdk.gemspec
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 ./devcycle-server-sdk-1.0.0.gem
162
+ gem install ./ruby-server-sdk-1.0.0.gem
163
163
  ```
164
164
 
165
- (for development, run `gem install --dev ./devcycle-server-sdk-1.0.0.gem` to install the development dependencies)
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 'devcycle-server-sdk', '~> 1.0.0'
171
+ gem 'ruby-server-sdk', '~> 1.0.0'
data/docs/UserData.md CHANGED
@@ -24,7 +24,7 @@
24
24
  ## Example
25
25
 
26
26
  ```ruby
27
- require 'devcycle-server-sdk'
27
+ require 'ruby-server-sdk'
28
28
 
29
29
  instance = DevCycle::UserData.new(
30
30
  user_id: null,
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  gem 'sinatra'
4
4
  gem 'sinatra-contrib'
5
5
  gem 'thin'
6
- gem 'devcycle-server-sdk'
6
+ gem 'ruby-server-sdk'
@@ -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
- devcycle-server-sdk
42
+ ruby-server-sdk
42
43
  sinatra
43
44
  sinatra-contrib
44
45
  thin
@@ -1,10 +1,10 @@
1
1
  require 'sinatra'
2
2
  require "sinatra/reloader" if development?
3
- require 'devcycle-server-sdk'
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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module DevCycle
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  end
@@ -11,22 +11,22 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  # Common files
14
- require 'devcycle-server-sdk/api_client'
15
- require 'devcycle-server-sdk/api_error'
16
- require 'devcycle-server-sdk/version'
17
- require 'devcycle-server-sdk/configuration'
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 'devcycle-server-sdk/models/error_response'
21
- require 'devcycle-server-sdk/models/event'
22
- require 'devcycle-server-sdk/models/feature'
23
- require 'devcycle-server-sdk/models/inline_response201'
24
- require 'devcycle-server-sdk/models/user_data'
25
- require 'devcycle-server-sdk/models/user_data_and_events_body'
26
- require 'devcycle-server-sdk/models/variable'
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 'devcycle-server-sdk/api/devcycle_api'
29
+ require 'ruby-server-sdk/api/devcycle_api'
30
30
 
31
31
  module DevCycle
32
32
  class << self
@@ -9,7 +9,7 @@ OpenAPI Generator version: 5.3.0
9
9
  =end
10
10
 
11
11
  $:.push File.expand_path("../lib", __FILE__)
12
- require "devcycle-server-sdk/version"
12
+ require "ruby-server-sdk/version"
13
13
 
14
14
  Gem::Specification.new do |s|
15
15
  s.name = "ruby-server-sdk"
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.1
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/devcycle-server-sdk.rb
78
- - lib/devcycle-server-sdk/api/devcycle_api.rb
79
- - lib/devcycle-server-sdk/api_client.rb
80
- - lib/devcycle-server-sdk/api_error.rb
81
- - lib/devcycle-server-sdk/configuration.rb
82
- - lib/devcycle-server-sdk/models/error_response.rb
83
- - lib/devcycle-server-sdk/models/event.rb
84
- - lib/devcycle-server-sdk/models/feature.rb
85
- - lib/devcycle-server-sdk/models/inline_response201.rb
86
- - lib/devcycle-server-sdk/models/user_data.rb
87
- - lib/devcycle-server-sdk/models/user_data_and_events_body.rb
88
- - lib/devcycle-server-sdk/models/variable.rb
89
- - lib/devcycle-server-sdk/version.rb
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