conversocial 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bdce617d639eeb0687d0cc62f0dfdadd1e1f736
4
- data.tar.gz: b7814f2c0f6cfea5feb0c09dba611eefb6a51ec6
3
+ metadata.gz: d6acff9c25ab3aae6a2020405a44fe7364825cca
4
+ data.tar.gz: c0ced2ec48afb4b8394e33db7107d3eb052cbcbd
5
5
  SHA512:
6
- metadata.gz: bb403f475573b8bedadd3383d143c90ad839fb8164f1321cd15e4c6d1fa9b163bc88c3eec156a7c95eaa1dd6bac63f8cb8dc7f9b37d2af15cd9e6cb289ebbad7
7
- data.tar.gz: 19bb8f65cddbc01a7dbe0fd5b2c7d428c9de58a331f702b469f849c3dbd23d0100939fa46f7ff82a57f44488d053a81416b47f77bb71fe5d7ef3837f69b13da8
6
+ metadata.gz: 92c07dd7fefbb1d7eb6caa83dcbb9a981f9464cb5e43071ba368a09f6fcb57a5e9b730e1252c0e9718344feb2172c5b1f768a5ff7a9c35ef8a6801430c488762
7
+ data.tar.gz: 89022683324da89ad5b30804ca3e70705bb97ab54b9ffd3516d1229e902686329c47bdc11a1c8b0a1f773eafbf00e1af8930aa4a434a5d4a69aaba4254612f59
@@ -90,6 +90,8 @@ module Conversocial
90
90
 
91
91
  if association_attribute? v
92
92
  v = client.send(pluralized_resource_type_from_association_attribute(v).to_sym).new v
93
+ elsif :sentiment == f && v
94
+ v = query_engine.send :new_instance_of_klass, Conversocial::Resources::Models::Sentiment, v
93
95
  end
94
96
  end
95
97
 
@@ -0,0 +1,16 @@
1
+ module Conversocial
2
+ module Resources
3
+ module Models
4
+ class Sentiment < Base
5
+ def self.fields
6
+ %w{created_by value}
7
+ end
8
+ attributize_tags
9
+
10
+ def refresh
11
+ self
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Conversocial
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/conversocial.rb CHANGED
@@ -19,6 +19,7 @@ require 'conversocial/resources/models/keyvalue'
19
19
  require 'conversocial/resources/models/report'
20
20
  require 'conversocial/resources/models/tag'
21
21
  require 'conversocial/resources/models/user'
22
+ require 'conversocial/resources/models/sentiment'
22
23
 
23
24
  #require query engines
24
25
  require 'conversocial/resources/query_engines/base'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conversocial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Misha Conway
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-18 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,6 +65,7 @@ files:
65
65
  - lib/conversocial/resources/models/conversation.rb
66
66
  - lib/conversocial/resources/models/keyvalue.rb
67
67
  - lib/conversocial/resources/models/report.rb
68
+ - lib/conversocial/resources/models/sentiment.rb
68
69
  - lib/conversocial/resources/models/tag.rb
69
70
  - lib/conversocial/resources/models/user.rb
70
71
  - lib/conversocial/resources/query_engines.rb
@@ -106,3 +107,4 @@ signing_key:
106
107
  specification_version: 4
107
108
  summary: Ruby gem that wraps the conversocial api in an ORM pattern
108
109
  test_files: []
110
+ has_rdoc: