timestamp_api 0.4.0 → 0.5.0

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
2
  SHA1:
3
- metadata.gz: 8eda86ccc06685b3025de57778e18b1943e0f134
4
- data.tar.gz: 939a0532a3315cef11d210ef6e538c9c1ec2f17f
3
+ metadata.gz: 4a0f32becb73b472f08339084946177bd46c4e91
4
+ data.tar.gz: 6231f1d36873b7467d6d5d70d4d2ea1db26e3e74
5
5
  SHA512:
6
- metadata.gz: df9a1a1057a2669dcaa5c236541ac01e56b50dbb741c287151e5c60e6ae2d04726bd322d2e97f80983fd3a4d1e8afd2527d9075f155d0161da09137944de42d7
7
- data.tar.gz: d762cc2172b2ed7884302fc5de2137a33ab34e0f5b47f7473123b77488766a00e6c4640a30f6dcb7ba75049fb62c7d460f6c161bca0857a3dbf300ba7bc28cc7
6
+ metadata.gz: 84bc0fe028acd831ee41d3e1f81d7c11e78a807974fcae420ab2f382fb808ea9bb112d4b1e90b8dce21b7f71908ed1a1d4e167fb39f5904a5774c0ed4a7e73ad
7
+ data.tar.gz: 71a13d05744b67fc07ec4f13ce5bc50135c9428a731b50157105ed7dfecbd67e27eac8383734f97124dd03c52e346d402b1e9dc73b24d3767946ef0a33899056
data/README.md CHANGED
@@ -128,6 +128,7 @@ There's also a `bin/console` executable provided with this gem, if you want a RE
128
128
  * [x] `Project` model
129
129
  * [x] `Client` model
130
130
  * [x] `Task` model
131
+ * [x] `User` model (their `roles` could be enhanced, though)
131
132
  * [x] `belongs_to` relationships
132
133
 
133
134
  ### What's not implemented yet ?
data/lib/timestamp_api.rb CHANGED
@@ -14,6 +14,7 @@ require "timestamp_api/collection"
14
14
  require "timestamp_api/models/project"
15
15
  require "timestamp_api/models/client"
16
16
  require "timestamp_api/models/task"
17
+ require "timestamp_api/models/user"
17
18
 
18
19
  module TimestampAPI
19
20
  extend Utils
@@ -0,0 +1,8 @@
1
+ module TimestampAPI
2
+ class User < Model
3
+ api_path "/users"
4
+
5
+ has_attributes :id, :created_at, :user_type, :first_name, :last_name, :email_address, :time_zone, :culture, :is_active,
6
+ :avatar_url, :last_accessed, :invited_at, :roles, :employment_type, :time_entry_mode, :importStatus, :invited
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module TimestampAPI
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timestamp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Baudino
@@ -167,6 +167,7 @@ files:
167
167
  - lib/timestamp_api/models/client.rb
168
168
  - lib/timestamp_api/models/project.rb
169
169
  - lib/timestamp_api/models/task.rb
170
+ - lib/timestamp_api/models/user.rb
170
171
  - lib/timestamp_api/utils.rb
171
172
  - lib/timestamp_api/version.rb
172
173
  - timestamp_api.gemspec