trollo 0.2.7 → 0.2.8

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: c91286aac8a3b741a77592b00cb7b95093e6eadb
4
- data.tar.gz: e95e16ee855e07828b8c1ca346b091ade1aedc71
3
+ metadata.gz: 4c719753c79a0d06eb7c2456113346dff0564cea
4
+ data.tar.gz: 1d9025a12136a1a86a4e805d33a77b6698dccb5e
5
5
  SHA512:
6
- metadata.gz: b85ff28773834a5d77d675a3f2cf5ecd2f21406539866e5f6a992efa4f1f1fcd7e84e632a0d5fe9e04b47203258255ff614c55305fa8c21a4c2cca005f36e711
7
- data.tar.gz: 8c5504144ddfa27c1a3940cae9a0810de3444307470a8f0afbe9709e357984fa5212e3f35be4666faa2ae2642af0eaeb5c876e0af9b27882bbff0eea06547a71
6
+ metadata.gz: adb405c6b52cd774ecc49560764bb745ae68a5647753d0e4e349e8d2d03269b12d107d7ee6ed36f0d4f843922ad086617b88a69ef4346dd31546f1239cd029da
7
+ data.tar.gz: 92acd49a58a9c8f8b28a6cc0d572bad2783da38e759d8f4e428f6718d7b9ff312824c3416f9343487c7e6e192427a1aaf3b1dbe9eaea60565865cd454eb61d9c
data/lib/trollo/board.rb CHANGED
@@ -4,7 +4,6 @@ module Trollo
4
4
  has_many :lists, order: 'ordinal ASC', dependent: :destroy
5
5
  has_many :subscriptions, dependent: :destroy
6
6
  has_and_belongs_to_many :labels, join_table: 'trollo_boards_labels'
7
- attr_accessible :name
8
7
 
9
8
  def tasks
10
9
  card_ids = Trollo::Card.where(list_id: list_ids).pluck(:id)
data/lib/trollo/card.rb CHANGED
@@ -9,9 +9,10 @@ module Trollo
9
9
  has_many :tasklists, order: :ordinal, dependent: :destroy
10
10
  has_and_belongs_to_many :labels, join_table: 'trollo_cards_labels'
11
11
  before_save :set_ordinal
12
- attr_accessible :name, :description, :workflow_state, :due_at, :trollable
13
12
 
14
- scope :overdue, lambda { where('due_at < ?', Time.now) }
13
+ def self.overdue
14
+ where('due_at < ?', Time.now)
15
+ end
15
16
 
16
17
  workflow do
17
18
  state :active do
data/lib/trollo/label.rb CHANGED
@@ -3,7 +3,6 @@ module Trollo
3
3
  class Label < ActiveRecord::Base
4
4
  has_and_belongs_to_many :lists, join_table: 'trollo_labels_lists'
5
5
  has_and_belongs_to_many :cards, join_table: 'trollo_cards_labels'
6
- attr_accessible :name
7
6
  end
8
7
 
9
8
  end
data/lib/trollo/list.rb CHANGED
@@ -3,7 +3,6 @@ module Trollo
3
3
  class List < ActiveRecord::Base
4
4
  belongs_to :board
5
5
  has_many :cards, order: 'due_at ASC', dependent: :destroy
6
- attr_accessible :name
7
6
 
8
7
  def named(name)
9
8
  where(name: name).first
data/lib/trollo/task.rb CHANGED
@@ -8,11 +8,17 @@ module Trollo
8
8
  before_save :set_ordinal
9
9
  after_save :update_tasklist
10
10
  after_destroy :update_tasklist
11
- attr_accessible :name, :identifier, :data, :workflow_state, :due_at, :trollable
12
11
  serialize :data
13
12
 
14
- scope :search, lambda {|term| unless term.blank?;where("name LIKE :q", q: "%#{term}%");end;}
15
- scope :overdue, lambda { with_incomplete_state.where('due_at IS NOT NULL AND due_at < ?', Time.now) }
13
+ def self.search(term)
14
+ unless term.blank?
15
+ where("name LIKE :q", q: "%#{term}%")
16
+ end
17
+ end
18
+
19
+ def self.overdue
20
+ with_incomplete_state.where('due_at IS NOT NULL AND due_at < ?', Time.now)
21
+ end
16
22
 
17
23
  workflow do
18
24
  state :incomplete do
@@ -8,7 +8,6 @@ module Trollo
8
8
  has_many :tasks, order: :ordinal, dependent: :destroy
9
9
  before_save :set_ordinal
10
10
  after_save :update_card
11
- attr_accessible :name, :workflow_state, :trollable
12
11
 
13
12
  workflow do
14
13
  state :complete do
@@ -1,3 +1,3 @@
1
1
  module Trollo
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trollo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Anderson
@@ -14,110 +14,110 @@ dependencies:
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: i18n
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: workflow
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: acts_as_commentable
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: combustion
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: database_cleaner
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: ! ' Trolololo. '
111
+ description: " Trolololo. "
112
112
  email:
113
113
  - i.am.douglas.anderson@gmail.com
114
114
  executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - .gitignore
119
- - .rvmrc
120
- - .travis.yml
118
+ - ".gitignore"
119
+ - ".rvmrc"
120
+ - ".travis.yml"
121
121
  - Gemfile
122
122
  - README.md
123
123
  - Rakefile
@@ -154,17 +154,17 @@ require_paths:
154
154
  - lib
155
155
  required_ruby_version: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ! '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ! '>='
162
+ - - ">="
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project: trollo
167
- rubygems_version: 2.4.1
167
+ rubygems_version: 2.2.2
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: A trollo gem.