dimelo_ccp_api 0.4.2 → 0.4.3

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: 8d0e8f60e484353d7ad6eba299f41ae62ab14810
4
- data.tar.gz: 8d75f69d236b5409a1e48007fa95d0597f63b676
3
+ metadata.gz: 288df445d03bba0e5e1c96fbe4989ab2adf06a27
4
+ data.tar.gz: ee17df74e8e46ac6484a98001e89266d5f7c07d7
5
5
  SHA512:
6
- metadata.gz: 1a4f2ee8939da3f420f967f26915d7d5fcc5f628e26d779a1e5fb26058fba60c8102fbb29ee6d67168f4814bf386bf5efe9af138d513c774f3f37ac77bfcb71b
7
- data.tar.gz: eda7aa6d80330e16b177424701a4759d807c5e44896306c0ffda312dd1a7359f8fdf0f7d67160df1bd15f585641067f52f598ab173772091915be8233ef6e6c9
6
+ metadata.gz: c11306a616de9b2f9058dcec9c3fc1224492631a41fcf106eb9fb7c04154394470c0b5486c75a3115da6ef8420824619fca533a449150846efd632c5828f9fe8
7
+ data.tar.gz: 2120b67a1a4cddaa771f012097f33ab1668353260abaf7799e4c041d02e6dd35826e63ccf045b77d1683f5709933674dd0c64ef1d3258fb96b1b178cec2e2142
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -16,6 +16,7 @@ answers_client = Dimelo::CCP::API::Client.new('https://domain-test.api.answers.d
16
16
  feedbacks_client = Dimelo::CCP::API::Client.new('https://domain-test.api.ideas.dimelo.com/1.0', 'access_token' => ENV['DIMELO_API_KEY'])
17
17
 
18
18
  user = Dimelo::CCP::User.find(1, users_client)
19
+ puts user.attributes
19
20
  questions = user.questions(answers_client)
20
21
  puts "question count: #{questions.count}"
21
22
 
@@ -3,7 +3,7 @@ module Dimelo::CCP
3
3
  CUSTOM_FIELD_COUNT = 10
4
4
  CUSTOM_FIELD_ATTRIBUTES = (1..CUSTOM_FIELD_COUNT).map { |i| "custom_field_#{i}".to_sym }.freeze
5
5
 
6
- attributes :id, :firstname, :lastname, :signature, :email, :private_message, :type, :username, :flow_state, :about, :avatar, :created_at, :updated_at, :blocked, :team, :avatar_url
6
+ attributes :id, :firstname, :lastname, :screenname, :signature, :email, :private_message, :type, :username, :flow_state, :about, :avatar, :created_at, :updated_at, :blocked, :team, :avatar_url
7
7
  attributes *CUSTOM_FIELD_ATTRIBUTES
8
8
 
9
9
  submit_attributes :type, :firstname, :lastname, :email, :username, :avatar_url, :about, :password, :created_at, :confirmed_at, *CUSTOM_FIELD_ATTRIBUTES
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dimelo_ccp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-03 00:00:00.000000000 Z
12
+ date: 2015-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport