dimelo_ccp_api 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/examples/dimelo_api_test +1 -0
- data/lib/dimelo/ccp/api/model/user.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 288df445d03bba0e5e1c96fbe4989ab2adf06a27
|
4
|
+
data.tar.gz: ee17df74e8e46ac6484a98001e89266d5f7c07d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c11306a616de9b2f9058dcec9c3fc1224492631a41fcf106eb9fb7c04154394470c0b5486c75a3115da6ef8420824619fca533a449150846efd632c5828f9fe8
|
7
|
+
data.tar.gz: 2120b67a1a4cddaa771f012097f33ab1668353260abaf7799e4c041d02e6dd35826e63ccf045b77d1683f5709933674dd0c64ef1d3258fb96b1b178cec2e2142
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/examples/dimelo_api_test
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|