user_engage 0.0.5 → 0.0.6

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
- SHA1:
3
- metadata.gz: da3af8406419bd6bb21a34eb3f69e9ed783566c8
4
- data.tar.gz: 849f53cb0ff4164e3aedeb551ac621cb97a05a4d
2
+ SHA256:
3
+ metadata.gz: 5d5c8b0799b961b88cc6ce8cffdcfa885368bd59729417a8ef8d26624a7a0222
4
+ data.tar.gz: f87d4b60a4f19ee75d1a79f169e12f5099f66941abcb9142bcd00dfde2c4c9fc
5
5
  SHA512:
6
- metadata.gz: 20f0b9b39f83a665f3067f2a42b6da7c9ddeeeeb4fc5dbdefaf288752954ec58865a51d8a74b71553c64b7fe50d625a4f9a04531bab34787e5e72c28b120d136
7
- data.tar.gz: 427891fcfcd0f11525faf2a3f9e95cd62f2fad50a9d66464d3161912a3ec74de503b23efb4db1445e03bfd2836d866567a80dfa37ebccc1014e03c25099eafc0
6
+ metadata.gz: e7f79290dcb2a635f1e5c4728fa687e2f5fc05275038f23bd1248d1533271fdfbdf7ea140fb7add43c7eb48768f3458a3b14d1f8dcf568286328a8c727cf2d9f
7
+ data.tar.gz: 1f8dc510a08007c963ee0ebb3c19b02b1a9780667093b3fd393d01ee2318d02a57aa2abea9305d389b0db081f35ebb51688e315b5f9bd67db184dc4e331a4e5f
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # v0.0.6
2
+
3
+ * update dry-struct from 0.4 to 0.5
4
+
5
+ ## Breaking changes
6
+
7
+ * `UserEngage::User.new.attributes` returns a Hash with all attributes of the UserEngage::User instance.
8
+ In previous versions, a call on `.attributes` would have returned an `Array` of UserEngage::Attribute.
9
+ If you want to get the `Array` of attributes you can use `.attributes[:attributes]`
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- user_engage (0.0.5)
5
- dry-struct (~> 0.4)
4
+ user_engage (0.0.6)
5
+ dry-struct (~> 0.5)
6
6
  faraday (>= 0.12)
7
7
 
8
8
  GEM
@@ -21,31 +21,30 @@ GEM
21
21
  dry-container (0.6.0)
22
22
  concurrent-ruby (~> 1.0)
23
23
  dry-configurable (~> 0.1, >= 0.1.3)
24
- dry-core (0.4.3)
24
+ dry-core (0.4.7)
25
25
  concurrent-ruby (~> 1.0)
26
- dry-equalizer (0.2.0)
26
+ dry-equalizer (0.2.1)
27
+ dry-inflector (0.1.2)
27
28
  dry-logic (0.4.2)
28
29
  dry-container (~> 0.2, >= 0.2.6)
29
30
  dry-core (~> 0.2)
30
31
  dry-equalizer (~> 0.2)
31
- dry-struct (0.4.0)
32
- dry-core (~> 0.4, >= 0.4.1)
32
+ dry-struct (0.5.0)
33
+ dry-core (~> 0.4, >= 0.4.3)
33
34
  dry-equalizer (~> 0.2)
34
- dry-types (~> 0.12, >= 0.12.2)
35
+ dry-types (~> 0.13)
35
36
  ice_nine (~> 0.11)
36
- dry-types (0.12.2)
37
+ dry-types (0.13.2)
37
38
  concurrent-ruby (~> 1.0)
38
- dry-configurable (~> 0.1)
39
39
  dry-container (~> 0.3)
40
- dry-core (~> 0.2, >= 0.2.1)
40
+ dry-core (~> 0.4, >= 0.4.4)
41
41
  dry-equalizer (~> 0.2)
42
+ dry-inflector (~> 0.1, >= 0.1.2)
42
43
  dry-logic (~> 0.4, >= 0.4.2)
43
- inflecto (~> 0.0.0, >= 0.0.2)
44
- faraday (0.14.0)
44
+ faraday (0.15.2)
45
45
  multipart-post (>= 1.2, < 3)
46
46
  hashdiff (0.3.7)
47
47
  ice_nine (0.11.2)
48
- inflecto (0.0.2)
49
48
  multipart-post (2.0.0)
50
49
  parallel (1.12.1)
51
50
  parser (2.4.0.2)
@@ -97,4 +96,4 @@ DEPENDENCIES
97
96
  webmock (~> 3.3)
98
97
 
99
98
  BUNDLED WITH
100
- 1.16.1
99
+ 1.16.2
data/README.md CHANGED
@@ -1,7 +1,12 @@
1
- # UserEngage - NOT READY YET! [![Build Status](https://travis-ci.org/CompanyMood/user_engage-ruby.svg?branch=master)](https://travis-ci.org/CompanyMood/user_engage-ruby)
1
+ # UserEngage [![Build Status](https://travis-ci.org/CompanyMood/user_engage-ruby.svg?branch=master)](https://travis-ci.org/CompanyMood/user_engage-ruby)
2
2
 
3
3
  This gem implements the ruby bindings for https://userengage.com.
4
4
 
5
+ ## Current state
6
+ By now, you're able to find and destroy users but functionality is very easy to add, as soon as all [operations](https://github.com/CompanyMood/user_engage-ruby/tree/master/lib/user_engage/operation) are implemented.
7
+
8
+ Look at [the open todo list](https://github.com/CompanyMood/user_engage-ruby/blob/master/TODO.md) for more details.
9
+
5
10
  ## Installation
6
11
 
7
12
  Add this line to your application's Gemfile:
@@ -48,10 +53,6 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
48
53
 
49
54
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
50
55
 
51
- ## Open ToDos
52
-
53
- See [our open todo list](https://github.com/CompanyMood/user_engage-ruby/blob/master/TODO.md)
54
-
55
56
  ## Contributing
56
57
 
57
58
  Bug reports and pull requests are welcome on GitHub at https://github.com/CompanyMood/user_engage-ruby. 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.
@@ -6,7 +6,7 @@ module UserEngage
6
6
  ## Attributes ##
7
7
  ################
8
8
  attribute :description, Types::String
9
- attribute :id, Types::Int
9
+ attribute :id, Types::Integer
10
10
  attribute :name_std, Types::String
11
11
  attribute :name, Types::String
12
12
  attribute :value, Types::Any
@@ -6,6 +6,8 @@ module UserEngage
6
6
  include Dry::Types.module
7
7
  end
8
8
 
9
- constructor_type :schema
9
+ transform_types do |type|
10
+ type.meta(omittable: true)
11
+ end
10
12
  end
11
13
  end
@@ -5,6 +5,8 @@ module UserEngage
5
5
  ################
6
6
  ## Attributes ##
7
7
  ################
8
- attr_accessor :id, :name, :description
8
+ attribute :id, Types::Integer
9
+ attribute :name, Types::String
10
+ attribute :description, Types::String
9
11
  end
10
12
  end
@@ -5,6 +5,7 @@ module UserEngage
5
5
  ################
6
6
  ## Attributes ##
7
7
  ################
8
- attr_accessor :id, :name
8
+ attribute :id, Types::Integer
9
+ attribute :name, Types::String
9
10
  end
10
11
  end
@@ -20,7 +20,7 @@ module UserEngage
20
20
  attribute :attributes, Types::Array.of(UserEngage::Attribute)
21
21
  attribute :browser, Types::String
22
22
  attribute :browser_language, Types::String
23
- attribute :chat_id, Types::Int
23
+ attribute :chat_id, Types::Integer
24
24
  attribute :city, Types::String
25
25
  attribute :country, Types::String
26
26
  attribute :created_at, Types::DateTime
@@ -30,7 +30,7 @@ module UserEngage
30
30
  attribute :gender, Types::String
31
31
  attribute :google_url, Types::String
32
32
  attribute :gravatar_url, Types::String
33
- attribute :id, Types::Int
33
+ attribute :id, Types::Integer
34
34
  attribute :key, Types::String
35
35
  attribute :last_contacted, Types::DateTime
36
36
  attribute :last_ip, Types::String
@@ -40,11 +40,11 @@ module UserEngage
40
40
  attribute :name, Types::String
41
41
  attribute :notifications, Types::Bool
42
42
  attribute :os_type, Types::String
43
- attribute :page_views, Types::Int
43
+ attribute :page_views, Types::Integer
44
44
  attribute :phone_number, Types::String
45
45
  attribute :region, Types::String
46
46
  attribute :resolution, Types::String
47
- attribute :score, Types::Int
47
+ attribute :score, Types::Integer
48
48
  attribute :status, Types::String
49
49
  attribute :tags, Types::Array.of(UserEngage::Tag)
50
50
  attribute :timezone, Types::String
@@ -1,3 +1,3 @@
1
1
  module UserEngage
2
- VERSION = '0.0.5'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
data/user_engage.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_runtime_dependency 'dry-struct', '~> 0.4'
26
+ spec.add_runtime_dependency 'dry-struct', '~> 0.5'
27
27
  spec.add_runtime_dependency 'faraday', '>= 0.12'
28
28
 
29
29
  spec.add_development_dependency 'bundler', '~> 1.16'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_engage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schwed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.4'
26
+ version: '0.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -148,6 +148,7 @@ files:
148
148
  - ".rspec"
149
149
  - ".rubocop.yml"
150
150
  - ".travis.yml"
151
+ - CHANGELOG.md
151
152
  - CODE_OF_CONDUCT.md
152
153
  - Gemfile
153
154
  - Gemfile.lock
@@ -191,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
192
  version: '0'
192
193
  requirements: []
193
194
  rubyforge_project:
194
- rubygems_version: 2.6.14
195
+ rubygems_version: 2.7.3
195
196
  signing_key:
196
197
  specification_version: 4
197
198
  summary: NOT READY YET!! - Ruby bindings for the UserEngage API