smalltalk 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Smalltalk
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/smalltalk.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency "activesupport"
22
22
  s.add_dependency "activerecord", "~> 3.0"
23
23
  s.add_dependency "i18n"
24
- s.add_dependency "workflow", '= 0.8.7'
24
+ s.add_dependency "workflow"
25
25
 
26
26
  s.add_development_dependency 'combustion', '~> 0.3.1'
27
27
  s.add_development_dependency 'database_cleaner', '~> 1.2.0'
@@ -1,51 +1,19 @@
1
1
  ActiveRecord::Schema.define do
2
2
 
3
- create_table :smalltalk_lists do |t|
4
- t.string :name
5
- t.references :trollable, polymorphic: true
6
- t.timestamps
3
+ create_table "smalltalk_messages", :force => true do |t|
4
+ t.integer "sender_id", :null => false
5
+ t.string "sender_type", :null => false
6
+ t.integer "recipient_id", :null => false
7
+ t.string "recipient_type", :null => false
8
+ t.text "content"
9
+ t.boolean "viewed"
10
+ t.boolean "hidden"
11
+ t.string "workflow_state"
12
+ t.datetime "created_at", :null => false
13
+ t.datetime "updated_at", :null => false
7
14
  end
8
15
 
9
- create_table :smalltalk_cards do |t|
10
- t.references :list
11
- t.integer :ordinal
12
- t.string :name
13
- t.string :workflow_state
14
- t.timestamp :due_at
15
- t.references :trollable, polymorphic: true
16
- t.timestamps
17
- end
18
-
19
- create_table :smalltalk_tasklists do |t|
20
- t.references :card
21
- t.integer :ordinal
22
- t.string :name
23
- t.string :workflow_state
24
- t.timestamp :due_at
25
- t.references :trollable, polymorphic: true
26
- t.timestamps
27
- end
28
-
29
- create_table :smalltalk_tasks do |t|
30
- t.references :tasklist
31
- t.integer :ordinal
32
- t.string :name
33
- t.string :group
34
- t.string :workflow_state
35
- t.timestamp :due_at
36
- t.references :trollable, polymorphic: true
37
- t.timestamps
38
- end
39
-
40
- add_index :smalltalk_lists, [:trollable_type, :trollable_id]
41
-
42
- add_index :smalltalk_cards, :list_id
43
- add_index :smalltalk_cards, [:trollable_type, :trollable_id]
44
-
45
- add_index :smalltalk_tasklists, :card_id
46
- add_index :smalltalk_tasklists, [:trollable_type, :trollable_id]
47
-
48
- add_index :smalltalk_tasks, :tasklist_id
49
- add_index :smalltalk_tasks, [:trollable_type, :trollable_id]
16
+ add_index "smalltalk_messages", ["recipient_id", "recipient_type"], :name => "index_smalltalk_messages_on_recipient_id_and_recipient_type"
17
+ add_index "smalltalk_messages", ["sender_id", "sender_type"], :name => "index_smalltalk_messages_on_sender_id_and_sender_type"
50
18
 
51
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smalltalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-26 00:00:00.000000000 Z
12
+ date: 2014-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -64,17 +64,17 @@ dependencies:
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - '='
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.8.7
69
+ version: '0'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - '='
75
+ - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.8.7
77
+ version: '0'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: combustion
80
80
  requirement: !ruby/object:Gem::Requirement