rails-scheduler 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/config/locales/en.yml +23 -0
- data/lib/scheduler/version.rb +1 -1
- data/test/unit/event_test.rb +5 -5
- metadata +13 -12
@@ -0,0 +1,23 @@
|
|
1
|
+
en:
|
2
|
+
scheduler:
|
3
|
+
frequency:
|
4
|
+
one_off:
|
5
|
+
form:
|
6
|
+
message: "Event does not have recurrence"
|
7
|
+
option: "one-off"
|
8
|
+
daily:
|
9
|
+
form:
|
10
|
+
option: "daily"
|
11
|
+
weekly:
|
12
|
+
form:
|
13
|
+
every_week: "Every %{form_field} week(s) on the following days:"
|
14
|
+
option: "weekly"
|
15
|
+
monthly:
|
16
|
+
form:
|
17
|
+
option: "monthly"
|
18
|
+
week_day: "The %{order_field} %{week_field} of every %{interval_field} month(s)"
|
19
|
+
week_day_order_option:
|
20
|
+
"1": "first"
|
21
|
+
"2": "second"
|
22
|
+
"3": "third"
|
23
|
+
"-1": "last"
|
data/lib/scheduler/version.rb
CHANGED
data/test/unit/event_test.rb
CHANGED
@@ -9,7 +9,7 @@ class EventTest < ActiveSupport::TestCase
|
|
9
9
|
assert Factory(:event).start_date.present?
|
10
10
|
end
|
11
11
|
|
12
|
-
test "
|
12
|
+
test "week_days" do
|
13
13
|
e = Factory(:event)
|
14
14
|
|
15
15
|
battery = {
|
@@ -23,11 +23,11 @@ class EventTest < ActiveSupport::TestCase
|
|
23
23
|
}
|
24
24
|
|
25
25
|
battery.each_pair do |flag, days|
|
26
|
-
e.
|
27
|
-
assert e.
|
26
|
+
e.days = flag
|
27
|
+
assert e.week_days.eql?(days)
|
28
28
|
|
29
|
-
e.
|
30
|
-
assert e.
|
29
|
+
e.week_days = days
|
30
|
+
assert e.days.eql?(flag)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &84921440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *84921440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: recurrence
|
27
|
-
requirement: &
|
27
|
+
requirement: &84921040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.2.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *84921040
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: mysql2
|
38
|
-
requirement: &
|
38
|
+
requirement: &84920600 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *84920600
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: factory_girl
|
49
|
-
requirement: &
|
49
|
+
requirement: &84920230 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *84920230
|
58
58
|
description: ! 'Scheduler support: daily, weekly and montly repetitions'
|
59
59
|
email:
|
60
60
|
- atapiador@dit.upm.es
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- app/assets/javascripts/scheduler.js
|
72
72
|
- app/helpers/scheduler_helper.rb
|
73
73
|
- app/views/scheduler/_form.html.erb
|
74
|
+
- config/locales/en.yml
|
74
75
|
- config/locales/es.yml
|
75
76
|
- db/migrate/20111204155637_add_scheduler.rb
|
76
77
|
- lib/rails-scheduler.rb
|
@@ -134,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
135
|
version: '0'
|
135
136
|
segments:
|
136
137
|
- 0
|
137
|
-
hash:
|
138
|
+
hash: 788638849
|
138
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
140
|
none: false
|
140
141
|
requirements:
|
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
144
|
version: '0'
|
144
145
|
segments:
|
145
146
|
- 0
|
146
|
-
hash:
|
147
|
+
hash: 788638849
|
147
148
|
requirements: []
|
148
149
|
rubyforge_project:
|
149
150
|
rubygems_version: 1.8.10
|