event_calendar_engine 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +8 -4
- data/Gemfile.lock +71 -75
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/app/helpers/event_calendar/application_helper.rb +2 -2
- data/app/helpers/events_helper.rb +3 -1
- data/app/views/events/_calendar.html.erb +1 -1
- data/app/views/events/index.html.erb +2 -12
- data/config/cucumber.yml +1 -1
- data/lib/tasks/cucumber.rake +4 -0
- metadata +686 -151
data/Gemfile
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem '
|
4
|
-
gem '
|
5
|
-
gem '
|
2
|
+
group :development, :test do
|
3
|
+
gem 'formtastic'
|
4
|
+
gem 'RedCloth'
|
5
|
+
gem 'prarupa'
|
6
|
+
gem 'will_paginate', '~> 3.0.pre2'
|
7
|
+
gem 'database_cleaner'
|
8
|
+
gem 'capybara'
|
9
|
+
end
|
6
10
|
|
7
11
|
gemspec :path => File.expand_path("..", __FILE__)
|
8
12
|
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/inertialbit/acts_as_revisable.git
|
3
|
-
revision:
|
3
|
+
revision: 8f119c9cc7355756a763649c591a543d04e73bda
|
4
4
|
branch: rails3
|
5
5
|
specs:
|
6
6
|
acts_as_revisable (1.1.2)
|
@@ -8,18 +8,14 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
event_calendar_engine (0.2.
|
12
|
-
RedCloth
|
11
|
+
event_calendar_engine (0.2.14)
|
13
12
|
RedCloth
|
14
13
|
acts_as_revisable
|
15
14
|
acts_as_revisable
|
16
15
|
event_calendar_engine
|
17
16
|
formtastic
|
18
|
-
formtastic
|
19
17
|
prarupa
|
20
|
-
|
21
|
-
rails (= 3.0.3)
|
22
|
-
will_paginate (~> 3.0.pre2)
|
18
|
+
rails (~> 3.0.7)
|
23
19
|
will_paginate (~> 3.0.pre2)
|
24
20
|
|
25
21
|
GEM
|
@@ -27,80 +23,79 @@ GEM
|
|
27
23
|
specs:
|
28
24
|
RedCloth (4.2.7)
|
29
25
|
abstract (1.0.0)
|
30
|
-
actionmailer (3.0.
|
31
|
-
actionpack (= 3.0.
|
32
|
-
mail (~> 2.2.
|
33
|
-
actionpack (3.0.
|
34
|
-
activemodel (= 3.0.
|
35
|
-
activesupport (= 3.0.
|
26
|
+
actionmailer (3.0.7)
|
27
|
+
actionpack (= 3.0.7)
|
28
|
+
mail (~> 2.2.15)
|
29
|
+
actionpack (3.0.7)
|
30
|
+
activemodel (= 3.0.7)
|
31
|
+
activesupport (= 3.0.7)
|
36
32
|
builder (~> 2.1.2)
|
37
33
|
erubis (~> 2.6.6)
|
38
|
-
i18n (~> 0.
|
34
|
+
i18n (~> 0.5.0)
|
39
35
|
rack (~> 1.2.1)
|
40
|
-
rack-mount (~> 0.6.
|
41
|
-
rack-test (~> 0.5.
|
36
|
+
rack-mount (~> 0.6.14)
|
37
|
+
rack-test (~> 0.5.7)
|
42
38
|
tzinfo (~> 0.3.23)
|
43
|
-
activemodel (3.0.
|
44
|
-
activesupport (= 3.0.
|
39
|
+
activemodel (3.0.7)
|
40
|
+
activesupport (= 3.0.7)
|
45
41
|
builder (~> 2.1.2)
|
46
|
-
i18n (~> 0.
|
47
|
-
activerecord (3.0.
|
48
|
-
activemodel (= 3.0.
|
49
|
-
activesupport (= 3.0.
|
42
|
+
i18n (~> 0.5.0)
|
43
|
+
activerecord (3.0.7)
|
44
|
+
activemodel (= 3.0.7)
|
45
|
+
activesupport (= 3.0.7)
|
50
46
|
arel (~> 2.0.2)
|
51
47
|
tzinfo (~> 0.3.23)
|
52
|
-
activeresource (3.0.
|
53
|
-
activemodel (= 3.0.
|
54
|
-
activesupport (= 3.0.
|
55
|
-
activesupport (3.0.
|
48
|
+
activeresource (3.0.7)
|
49
|
+
activemodel (= 3.0.7)
|
50
|
+
activesupport (= 3.0.7)
|
51
|
+
activesupport (3.0.7)
|
56
52
|
acts_as_fu (0.0.7.2)
|
57
53
|
activerecord
|
58
54
|
sqlite3-ruby
|
59
|
-
arel (2.0.
|
55
|
+
arel (2.0.9)
|
60
56
|
builder (2.1.2)
|
61
|
-
capybara (0.
|
62
|
-
celerity (>= 0.7.9)
|
63
|
-
culerity (>= 0.2.4)
|
57
|
+
capybara (1.0.0.beta1)
|
64
58
|
mime-types (>= 1.16)
|
65
59
|
nokogiri (>= 1.3.3)
|
66
60
|
rack (>= 1.0.0)
|
67
61
|
rack-test (>= 0.5.4)
|
68
62
|
selenium-webdriver (>= 0.0.27)
|
69
|
-
xpath (~> 0.1.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
cucumber (0.10.0)
|
63
|
+
xpath (~> 0.1.4)
|
64
|
+
childprocess (0.1.9)
|
65
|
+
ffi (~> 1.0.6)
|
66
|
+
cucumber (0.10.2)
|
74
67
|
builder (>= 2.1.2)
|
75
|
-
diff-lcs (
|
76
|
-
gherkin (
|
77
|
-
json (
|
78
|
-
term-ansicolor (
|
79
|
-
cucumber-rails (0.
|
80
|
-
|
81
|
-
|
68
|
+
diff-lcs (>= 1.1.2)
|
69
|
+
gherkin (>= 2.3.5)
|
70
|
+
json (>= 1.4.6)
|
71
|
+
term-ansicolor (>= 1.0.5)
|
72
|
+
cucumber-rails (0.5.0)
|
73
|
+
capybara (>= 1.0.0.beta1)
|
74
|
+
cucumber (>= 0.10.2)
|
75
|
+
nokogiri (>= 1.4.4)
|
76
|
+
rack-test (>= 0.5.7)
|
77
|
+
database_cleaner (0.6.7)
|
82
78
|
diff-lcs (1.1.2)
|
83
79
|
engineer (0.2.3)
|
84
80
|
jeweler (>= 1.4.0)
|
85
81
|
erubis (2.6.6)
|
86
82
|
abstract (>= 1.0.0)
|
87
|
-
ffi (0.
|
88
|
-
rake (>= 0.8.7)
|
83
|
+
ffi (1.0.8)
|
89
84
|
formtastic (1.2.3)
|
90
85
|
actionpack (>= 2.3.7)
|
91
86
|
activesupport (>= 2.3.7)
|
92
87
|
i18n (~> 0.4)
|
93
|
-
gherkin (2.3.
|
94
|
-
json (
|
88
|
+
gherkin (2.3.8)
|
89
|
+
json (>= 1.4.6)
|
95
90
|
git (1.2.5)
|
96
91
|
i18n (0.5.0)
|
97
|
-
jeweler (1.
|
92
|
+
jeweler (1.6.0)
|
98
93
|
bundler (~> 1.0.0)
|
99
94
|
git (>= 1.2.5)
|
100
95
|
rake
|
101
|
-
json (1.
|
96
|
+
json (1.5.1)
|
102
97
|
json_pure (1.5.1)
|
103
|
-
mail (2.2.
|
98
|
+
mail (2.2.19)
|
104
99
|
activesupport (>= 2.3.6)
|
105
100
|
i18n (>= 0.4.0)
|
106
101
|
mime-types (~> 1.16)
|
@@ -111,44 +106,44 @@ GEM
|
|
111
106
|
prarupa (0.1.2)
|
112
107
|
RedCloth (~> 4.2)
|
113
108
|
rdiscount (~> 1.6)
|
114
|
-
rack (1.2.
|
115
|
-
rack-mount (0.6.
|
109
|
+
rack (1.2.2)
|
110
|
+
rack-mount (0.6.14)
|
116
111
|
rack (>= 1.0.0)
|
117
112
|
rack-test (0.5.7)
|
118
113
|
rack (>= 1.0)
|
119
|
-
rails (3.0.
|
120
|
-
actionmailer (= 3.0.
|
121
|
-
actionpack (= 3.0.
|
122
|
-
activerecord (= 3.0.
|
123
|
-
activeresource (= 3.0.
|
124
|
-
activesupport (= 3.0.
|
114
|
+
rails (3.0.7)
|
115
|
+
actionmailer (= 3.0.7)
|
116
|
+
actionpack (= 3.0.7)
|
117
|
+
activerecord (= 3.0.7)
|
118
|
+
activeresource (= 3.0.7)
|
119
|
+
activesupport (= 3.0.7)
|
125
120
|
bundler (~> 1.0)
|
126
|
-
railties (= 3.0.
|
127
|
-
railties (3.0.
|
128
|
-
actionpack (= 3.0.
|
129
|
-
activesupport (= 3.0.
|
121
|
+
railties (= 3.0.7)
|
122
|
+
railties (3.0.7)
|
123
|
+
actionpack (= 3.0.7)
|
124
|
+
activesupport (= 3.0.7)
|
130
125
|
rake (>= 0.8.7)
|
131
126
|
thor (~> 0.14.4)
|
132
127
|
rake (0.8.7)
|
133
128
|
rcov (0.9.9)
|
134
129
|
rdiscount (1.6.8)
|
135
|
-
rspec (2.
|
136
|
-
rspec-core (~> 2.
|
137
|
-
rspec-expectations (~> 2.
|
138
|
-
rspec-mocks (~> 2.
|
139
|
-
rspec-core (2.
|
140
|
-
rspec-expectations (2.
|
130
|
+
rspec (2.6.0)
|
131
|
+
rspec-core (~> 2.6.0)
|
132
|
+
rspec-expectations (~> 2.6.0)
|
133
|
+
rspec-mocks (~> 2.6.0)
|
134
|
+
rspec-core (2.6.0)
|
135
|
+
rspec-expectations (2.6.0)
|
141
136
|
diff-lcs (~> 1.1.2)
|
142
|
-
rspec-mocks (2.
|
143
|
-
rspec-rails (2.
|
137
|
+
rspec-mocks (2.6.0)
|
138
|
+
rspec-rails (2.6.0)
|
144
139
|
actionpack (~> 3.0)
|
145
140
|
activesupport (~> 3.0)
|
146
141
|
railties (~> 3.0)
|
147
|
-
rspec (~> 2.
|
142
|
+
rspec (~> 2.6.0)
|
148
143
|
rubyzip (0.9.4)
|
149
|
-
selenium-webdriver (0.
|
150
|
-
childprocess (
|
151
|
-
ffi (
|
144
|
+
selenium-webdriver (0.2.0)
|
145
|
+
childprocess (>= 0.1.7)
|
146
|
+
ffi (>= 1.0.7)
|
152
147
|
json_pure
|
153
148
|
rubyzip
|
154
149
|
sqlite3 (1.3.3)
|
@@ -158,9 +153,9 @@ GEM
|
|
158
153
|
thor (0.14.6)
|
159
154
|
treetop (1.4.9)
|
160
155
|
polyglot (>= 0.3.1)
|
161
|
-
tzinfo (0.3.
|
156
|
+
tzinfo (0.3.27)
|
162
157
|
will_paginate (3.0.pre2)
|
163
|
-
xpath (0.1.
|
158
|
+
xpath (0.1.4)
|
164
159
|
nokogiri (~> 1.3)
|
165
160
|
|
166
161
|
PLATFORMS
|
@@ -172,6 +167,7 @@ DEPENDENCIES
|
|
172
167
|
acts_as_revisable!
|
173
168
|
capybara
|
174
169
|
cucumber-rails
|
170
|
+
database_cleaner
|
175
171
|
engineer
|
176
172
|
event_calendar_engine!
|
177
173
|
formtastic
|
data/Rakefile
CHANGED
@@ -24,7 +24,7 @@ Jeweler::Tasks.new do |gem|
|
|
24
24
|
gem.test_files = FileList["spec/**/*"]
|
25
25
|
excluded_files.each{|f| gem.files.exclude(f)}
|
26
26
|
|
27
|
-
gem.add_dependency 'rails', '3.0.
|
27
|
+
gem.add_dependency 'rails', '~> 3.0.7'
|
28
28
|
gem.add_dependency 'RedCloth'
|
29
29
|
gem.add_dependency 'prarupa'
|
30
30
|
gem.add_dependency 'formtastic'
|
@@ -36,6 +36,7 @@ Jeweler::Tasks.new do |gem|
|
|
36
36
|
gem.add_development_dependency 'cucumber-rails'
|
37
37
|
gem.add_development_dependency 'capybara'
|
38
38
|
gem.add_development_dependency 'acts_as_fu'
|
39
|
+
gem.add_development_dependency 'database_cleaner'
|
39
40
|
gem.add_development_dependency 'rcov'
|
40
41
|
gem.add_development_dependency 'sqlite3'
|
41
42
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.14
|
@@ -156,7 +156,7 @@ module EventCalendar::ApplicationHelper
|
|
156
156
|
link_wrapper(edit_event_link_path(event, link), {
|
157
157
|
:no_wrapper => true
|
158
158
|
}.merge!(wrapper_options), {
|
159
|
-
:link_text => "
|
159
|
+
:link_text => "update"
|
160
160
|
}.merge!(link_options))
|
161
161
|
end
|
162
162
|
|
@@ -187,7 +187,7 @@ module EventCalendar::ApplicationHelper
|
|
187
187
|
link_to_edit_event(event, {
|
188
188
|
:no_wrapper => true
|
189
189
|
}.merge!(wrapper_options), {
|
190
|
-
:link_text => '
|
190
|
+
:link_text => 'update'
|
191
191
|
}.merge!(link_options)) + " " +
|
192
192
|
link_to_delete_event(event, {
|
193
193
|
:no_wrapper => true
|
@@ -37,7 +37,9 @@ module EventsHelper
|
|
37
37
|
content_tag :ul, :class => "#{wrapper_css_class} legend", :style => wrapper_css_style do
|
38
38
|
@event_types.map do |event_type|
|
39
39
|
css_class = event_type_css_class(event_type)
|
40
|
-
content_tag :li,
|
40
|
+
content_tag :li, :class => "#{css_class} category_label" do
|
41
|
+
link_to h(event_type), events_path(:event_type => event_type)
|
42
|
+
end
|
41
43
|
end.join("\n").html_safe
|
42
44
|
end
|
43
45
|
end
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<div style="clear:both"></div>
|
6
6
|
|
7
|
-
<div id="event_quick_description" class="span-
|
7
|
+
<div id="event_quick_description" class="span-12" style="display:none"></div>
|
8
8
|
|
9
9
|
<% content_for :javascript do %>
|
10
10
|
<script type="text/javascript">
|
@@ -22,18 +22,8 @@
|
|
22
22
|
<%= render :partial => 'calendar' %>
|
23
23
|
</div>
|
24
24
|
|
25
|
-
<div style="
|
25
|
+
<div style="float: right;">
|
26
|
+
<h2>Event Types</h2>
|
26
27
|
<%= event_type_legend("event_list") %>
|
27
28
|
<%= event_type_legend('event_calendar', 'display: none;') %>
|
28
29
|
</div>
|
29
|
-
|
30
|
-
<div>
|
31
|
-
Events filter:
|
32
|
-
<%= form_tag events_path, :method => :get, :style => 'display:inline' do %>
|
33
|
-
<%= select_tag :event_type, '<option value="">all</option>'.html_safe + options_for_select(@event_types, params[:event_type]) %>
|
34
|
-
<%= submit_tag "go" %>
|
35
|
-
<% end %>
|
36
|
-
</div>
|
37
|
-
|
38
|
-
<div style="clear:both;"></div>
|
39
|
-
|
data/config/cucumber.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%
|
2
2
|
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
3
3
|
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
4
|
-
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || '
|
4
|
+
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
|
5
5
|
%>
|
6
6
|
default: <%= std_opts %> features
|
7
7
|
wip: --tags @wip:3 --wip features
|
data/lib/tasks/cucumber.rake
CHANGED
@@ -43,6 +43,10 @@ begin
|
|
43
43
|
task :features => :cucumber do
|
44
44
|
STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
|
45
45
|
end
|
46
|
+
|
47
|
+
# In case we don't have ActiveRecord, append a no-op task that we can depend upon.
|
48
|
+
task 'db:test:prepare' do
|
49
|
+
end
|
46
50
|
rescue LoadError
|
47
51
|
desc 'cucumber rake task not available (cucumber not installed)'
|
48
52
|
task :cucumber do
|