projector 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,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c2b3dbd1610c6ce053ccd4e5a0566b6f77475ff5
4
- data.tar.gz: d39d7bcb4f57f8e9970de3b461db9b71f4ae4a75
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjE0MWMzOTlkNzMyZDIyYWI2MWFjOWIzZjU2YTcwYmI5NWM0MzcxOQ==
5
+ data.tar.gz: !binary |-
6
+ MmQyNDcxZWQ2ZWM1YjYzYTM3NWY1NzU3OTMyMDYzM2ZjYjFkNWUxOQ==
5
7
  SHA512:
6
- metadata.gz: a716767bae171e383ccc6ce0081bd7dcc520efabf3a6134e5556d1e08e87ba7dc14131b1347f71609b229ac115bdc170c83d126fa31d2b1f77a8d420144c42c5
7
- data.tar.gz: ab4278cfe220f32606c78a457414a57af849e5bf6dd4f10512e48668b194a28cfdf0ee5aea05cb76aa2d738490233c0c7464c4ff7cfd96ce57394d4bf1f31a93
8
+ metadata.gz: !binary |-
9
+ MGI4MjQ2MTU1M2YyMDNmZTNlYjllZWM3NDg3NmM2MDdkYTNkYzIwZGFkNGUw
10
+ ZDM3YWMzNDMyY2U1MjRlZDM1MGRjOWU0NDJkOGZmOTBlMGYwMjA2YzIzMWFk
11
+ N2YzMjRmYjc3ZWUwNWU5MGMzMWE3YjUyOTE3YzljMWRkNjBjMDY=
12
+ data.tar.gz: !binary |-
13
+ NmZjYTU3MDM0ODliNWY4MmEzYTgzMTA3OTY0YmJmYTY0NDcyMjkzOTJjOGEw
14
+ Yjc2MWQwNmJjODlkZGQzODBkYzEzZTRhMWU5YWE3YzMxYWM3Y2Y0ODI1NGRh
15
+ NDJmMDEzNTAzMGMwYzYzNmI0YzEwNmEyNzJkNzMyOGZjNWRjMWQ=
data/README.md CHANGED
@@ -17,5 +17,5 @@ gem 'projector', :source => 'https://gem.fury.io/projector/'
17
17
 
18
18
  ```
19
19
  bin/setup
20
- bundle exec run test
20
+ bundle exec rake test
21
21
  ```
@@ -1,7 +1,7 @@
1
1
  module Projector
2
2
  class EndUser
3
3
 
4
- SCHEMA = 'http://schemas.projector.com/schemas/com.projector/server_api/jsonschema/0-9-1#/definitions/end_user_post'
4
+ SCHEMA = 'http://schemas.projector.com/schemas/com.projector/server_api/jsonschema/0-9-2#/definitions/end_user_post'
5
5
 
6
6
  attr_accessor :id, :tags
7
7
 
@@ -17,11 +17,15 @@ module Projector
17
17
  end
18
18
 
19
19
  def to_hash
20
- {
21
- customer_end_user_id: id.to_s,
22
- tags: (tags || []),
23
- profile: {}
24
- }
20
+ basic_hash = {
21
+ id: self.id.to_s,
22
+ profile: {}
23
+ }
24
+ if tags && tags.any?
25
+ basic_hash.merge({tags: tags})
26
+ else
27
+ basic_hash
28
+ end
25
29
  end
26
30
  end
27
31
  end
@@ -1,3 +1,3 @@
1
1
  module Projector
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,33 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: projector
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
  - Projector
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-19 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http-persistent
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.9'
20
- - - ">="
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.9.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '2.9'
30
- - - ">="
30
+ - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.9.4
33
33
  description: Create and manage users, devices, and events going to Projector.
@@ -37,7 +37,7 @@ executables: []
37
37
  extensions: []
38
38
  extra_rdoc_files: []
39
39
  files:
40
- - ".gitignore"
40
+ - .gitignore
41
41
  - Gemfile
42
42
  - LICENSE
43
43
  - README.md
@@ -71,17 +71,17 @@ require_paths:
71
71
  - lib
72
72
  required_ruby_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - ! '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - ! '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.1
84
+ rubygems_version: 2.4.8
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Ruby SDK for interacting with the Projector SDK