opentie-core 0.0.3 → 0.0.4
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 +4 -4
- data/lib/opentie/core.rb +2 -0
- data/lib/opentie/core/account.rb +13 -0
- data/lib/opentie/core/message.rb +25 -0
- data/lib/opentie/core/persona.rb +14 -0
- data/lib/opentie/core/version.rb +1 -1
- data/opentie-core.gemspec +1 -0
- data/spec/spec_helper.rb +1 -1
- metadata +18 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 477ed24cea14be6af67f16259a8e03909771fa21
|
4
|
+
data.tar.gz: d22cecd40f6cd4944b7a601519c7bed047d7c62a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3436d24b08e00f14b3e37648bc13f30ee18cb940060c89b11c742c6182944c8442351621266c6123cd56c2acf88304ba1d10f9dd73c78359a8a984a473b45719
|
7
|
+
data.tar.gz: 9ff25aaff9713caf275a122a958228c089623863a7b4562f61856c8db3e94cde8a8bfca103cf0e0beb3f20e2b9806c454a8249934faf7562f2079951a2d982c0
|
data/lib/opentie/core.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'mongoid'
|
2
|
+
require_relative 'message'
|
3
|
+
|
4
|
+
module Opentie
|
5
|
+
module Core
|
6
|
+
class Message
|
7
|
+
include Mongoid::Document
|
8
|
+
|
9
|
+
has_one :persona, as: :from
|
10
|
+
has_one :persona, as: :to
|
11
|
+
|
12
|
+
has_one :message, as: :in_reply_to
|
13
|
+
belongs_to :message
|
14
|
+
|
15
|
+
field :created_at, type: Time
|
16
|
+
|
17
|
+
field :subject, type: String
|
18
|
+
field :body, type: String
|
19
|
+
|
20
|
+
def get_thread
|
21
|
+
Message.find _id: self._id
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/opentie/core/version.rb
CHANGED
data/opentie-core.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentie-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- polamjag
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: factory_girl
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description:
|
98
112
|
email:
|
99
113
|
- s@polamjag.info
|
@@ -109,8 +123,11 @@ files:
|
|
109
123
|
- Rakefile
|
110
124
|
- circle.yml
|
111
125
|
- lib/opentie/core.rb
|
126
|
+
- lib/opentie/core/account.rb
|
112
127
|
- lib/opentie/core/bureau.rb
|
113
128
|
- lib/opentie/core/group.rb
|
129
|
+
- lib/opentie/core/message.rb
|
130
|
+
- lib/opentie/core/persona.rb
|
114
131
|
- lib/opentie/core/project.rb
|
115
132
|
- lib/opentie/core/request.rb
|
116
133
|
- lib/opentie/core/version.rb
|