yodeler 0.0.9 → 0.0.10

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: e3b6de4e46a81133f10692f5ec5594cb096c9a2c
4
- data.tar.gz: 3cdb96c2c9a439475c7ab8b34e4597f57484d8c2
3
+ metadata.gz: 3e61910148974128f8852d2b671187a588150737
4
+ data.tar.gz: 7b22137cdea54c279888833b91729b8eb85c7ae4
5
5
  SHA512:
6
- metadata.gz: 27d98f591d650b19c4565f2a0fa6c909b73b1ea7ed4aa243453e673b68675cb5e6bcea890af6d2ca48d9f7ee078f1ee75a624fcdf1c4a1a9322d3dcffcc7f470
7
- data.tar.gz: 26ec8aca4c553cf40a7d2b2039c5fa023d194c6e9cfc8b842d210230b21a07022521553f427f1b573563eaa581a4bda8de71753dd6cd6927580973977b94bba1
6
+ metadata.gz: 7dda2288ceb0a4e29d9f9927faefbb113f124c754a6e77318c29f980aa178ede37f3362b7e8b153b8f91f502fa0d7eb32193aee92665f484f831dc6184094a7a
7
+ data.tar.gz: 88e3857b1b847f493d2fe8609d0e143d4f29f8cff66885ac68144e078dbbe8fbee8f95d6ae545e0b9eca63b173a1d6f29a2b6948ed8954037bef0b45bb2b2738
data/README.md CHANGED
@@ -99,4 +99,8 @@ Getting around the objects
99
99
  @subscription.notifications #=> all notifications of this event type for this subscriber
100
100
  @subscription.event
101
101
 
102
- ```
102
+ ```
103
+
104
+ TODO
105
+ =======
106
+ * Pluggable back-end, redis, obvi
@@ -35,7 +35,7 @@ class CreateYodelerTables < ActiveRecord::Migration
35
35
 
36
36
  # sqlite3 has an index name length limitation of 62(?!) characters
37
37
  unless Rails.env.test?
38
- add_index :yodeler_event_types, :name
38
+ add_index :yodeler_event_types, :name, unique: true
39
39
 
40
40
  add_index :yodeler_events, :yodeler_event_type_id
41
41
 
@@ -13,7 +13,7 @@ module Yodeler
13
13
  self.yodeler_notifications_name = notifications_association_name
14
14
 
15
15
  has_many self.yodeler_subscriptions_name,
16
- dependent: :destroy,
16
+ dependent: :delete_all,
17
17
  class_name: "Yodeler::Subscription",
18
18
  foreign_key: :subscriber_id
19
19
 
@@ -11,7 +11,7 @@ module Yodeler
11
11
  delegate :name, to: :event_type
12
12
 
13
13
  def duration
14
- finished_at - started_at if finished_at.present? and started_at.present?
14
+ finished_at - started_at if finished_at.present? && started_at.present?
15
15
  end
16
16
  end
17
17
  end
@@ -18,12 +18,12 @@ module Yodeler
18
18
  validates_uniqueness_of :name
19
19
 
20
20
  has_many :events,
21
- dependent: :destroy,
21
+ dependent: :delete_all,
22
22
  class_name: "Yodeler::Event",
23
23
  foreign_key: :yodeler_event_type_id
24
24
 
25
25
  has_many :subscriptions,
26
- dependent: :destroy,
26
+ dependent: :delete_all,
27
27
  class_name: "Yodeler::Subscription",
28
28
  foreign_key: :yodeler_event_type_id
29
29
 
@@ -1,3 +1,3 @@
1
1
  module Yodeler
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,181 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yodeler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory O'Daniel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>'
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.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: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
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: :development
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: railties
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: :development
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: rspec-rails
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: :development
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: factory_girl_rails
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: :development
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: generator_spec
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: guard-rspec
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
111
  - !ruby/object:Gem::Dependency
112
112
  name: guard-bundler
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: shoulda-matchers
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: database_cleaner
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: debugger
168
+ name: byebug
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  description:
@@ -219,17 +219,17 @@ require_paths:
219
219
  - lib
220
220
  required_ruby_version: !ruby/object:Gem::Requirement
221
221
  requirements:
222
- - - '>='
222
+ - - ">="
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - '>='
227
+ - - ">="
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  requirements: []
231
231
  rubyforge_project: yodeler
232
- rubygems_version: 2.2.2
232
+ rubygems_version: 2.4.3
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Subscribable database-stored event notifications for Rails