openproject-meeting 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +9 -9
- data/CHANGELOG.md +28 -0
- data/README.md +3 -3
- data/app/assets/stylesheets/meeting/meeting.css.erb +19 -10
- data/app/controllers/meeting_agendas_controller.rb +11 -3
- data/app/controllers/meeting_contents_controller.rb +21 -7
- data/app/controllers/meeting_minutes_controller.rb +11 -3
- data/app/controllers/meetings_controller.rb +11 -3
- data/app/helpers/meeting_contents_helper.rb +11 -3
- data/app/helpers/meetings_helper.rb +17 -3
- data/app/mailers/meeting_mailer.rb +11 -3
- data/app/models/journal/meeting_content_journal.rb +40 -0
- data/app/models/journal/meeting_journal.rb +38 -0
- data/app/models/meeting.rb +17 -6
- data/app/models/meeting_agenda.rb +11 -66
- data/app/models/meeting_content.rb +30 -4
- data/app/models/meeting_minutes.rb +11 -67
- data/app/models/meeting_participant.rb +11 -3
- data/app/views/hooks/meetings/_activity_index_head.html.erb +21 -0
- data/app/views/meeting_contents/_form.html.erb +11 -3
- data/app/views/meeting_contents/_show.html.erb +11 -3
- data/app/views/meeting_contents/diff.html.erb +13 -6
- data/app/views/meeting_contents/history.html.erb +11 -3
- data/app/views/meeting_contents/show.html.erb +11 -3
- data/app/views/meeting_mailer/content_for_review.html.erb +11 -3
- data/app/views/meeting_mailer/content_for_review.text.erb +20 -0
- data/app/views/meetings/_form.html.erb +11 -3
- data/app/views/meetings/edit.html.erb +11 -3
- data/app/views/meetings/index.html.erb +11 -3
- data/app/views/meetings/new.html.erb +11 -3
- data/app/views/meetings/show.html.erb +12 -4
- data/app/views/shared/_meeting_header.html.erb +11 -3
- data/config/locales/de.yml +22 -0
- data/config/locales/en.yml +22 -0
- data/config/routes.rb +11 -3
- data/db/migrate/20110106210555_create_meetings.rb +11 -3
- data/db/migrate/20110106221214_create_meeting_contents.rb +11 -3
- data/db/migrate/20110106221946_create_meeting_content_versions.rb +11 -3
- data/db/migrate/20110108230721_create_meeting_participants.rb +11 -3
- data/db/migrate/20110224180804_add_lock_to_meeting_content.rb +11 -3
- data/db/migrate/20110819162852_create_initial_meeting_journals.rb +11 -3
- data/db/migrate/20111605171815_merge_meeting_content_versions_with_journals.rb +11 -3
- data/db/migrate/20130731151542_remove_meeting_role_id_from_meeting_participants.rb +11 -3
- data/db/migrate/20130822113942_create_meeting_journals.rb +39 -0
- data/db/migrate/20130924091342_legacy_meeting_journal_data.rb +36 -0
- data/db/migrate/20130924093842_legacy_meeting_agenda_journal_data.rb +62 -0
- data/db/migrate/20130924114042_legacy_meeting_minutes_journal_data.rb +62 -0
- data/doc/{COPYRIGHT.rdoc → COPYRIGHT.md} +1 -1
- data/doc/COPYRIGHT_short.md +16 -0
- data/lib/open_project/meeting.rb +11 -3
- data/lib/open_project/meeting/engine.rb +12 -4
- data/lib/open_project/meeting/hooks.rb +12 -4
- data/lib/open_project/meeting/patches/project_patch.rb +11 -3
- data/lib/open_project/meeting/version.rb +12 -4
- data/lib/openproject-meeting.rb +11 -3
- data/spec/controllers/meetings_controller_spec.rb +11 -3
- data/spec/factories/meeting_agenda_factory.rb +11 -3
- data/spec/factories/meeting_content_journal_factory.rb +23 -0
- data/spec/factories/meeting_factory.rb +11 -3
- data/spec/factories/meeting_journal_factory.rb +31 -0
- data/spec/factories/meeting_minutes_factory.rb +11 -3
- data/spec/factories/meeting_participant_factory.rb +11 -3
- data/spec/mailers/meeting_mailer_spec.rb +11 -3
- data/spec/models/meeting_agenda_spec.rb +14 -6
- data/spec/models/meeting_content_journal_spec.rb +30 -0
- data/spec/models/meeting_minutes_spec.rb +11 -3
- data/spec/models/meeting_spec.rb +11 -3
- data/spec/models/user_deletion_spec.rb +16 -14
- data/spec/spec_helper.rb +11 -3
- data/spec/support/plugin_spec_helper.rb +14 -22
- metadata +18 -13
- data/app/views/hooks/_activity_index_head.html.erb +0 -13
- data/spec/factories/meeting_agenda_journal_factory.rb +0 -18
- data/spec/factories/meeting_minutes_journal_factory.rb +0 -18
- data/spec/models/meeting_agenda_journal_spec.rb +0 -21
- data/spec/models/meeting_minutes_journal_spec.rb +0 -21
@@ -0,0 +1,62 @@
|
|
1
|
+
#-- encoding: UTF-8
|
2
|
+
#-- copyright
|
3
|
+
# OpenProject is a project management system.
|
4
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License version 3.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program; if not, write to the Free Software
|
16
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
17
|
+
#
|
18
|
+
# See doc/COPYRIGHT.md for more details.
|
19
|
+
#++
|
20
|
+
#
|
21
|
+
|
22
|
+
require_relative 'migration_utils/legacy_journal_migrator'
|
23
|
+
|
24
|
+
class LegacyMeetingAgendaJournalData < ActiveRecord::Migration
|
25
|
+
class UnsupportedMeetingAgendaJournalCompressionError < ::StandardError
|
26
|
+
end
|
27
|
+
|
28
|
+
def up
|
29
|
+
migrator.run
|
30
|
+
end
|
31
|
+
|
32
|
+
def down
|
33
|
+
migrator.remove_journals_derived_from_legacy_journals 'meeting_content_journals'
|
34
|
+
end
|
35
|
+
|
36
|
+
def migrator
|
37
|
+
@migrator ||= Migration::LegacyJournalMigrator.new "MeetingAgendaJournal", "meeting_content_journals" do
|
38
|
+
|
39
|
+
self.journable_class = "MeetingContent"
|
40
|
+
|
41
|
+
def migrate_key_value_pairs!(to_insert, legacy_journal, journal_id)
|
42
|
+
if to_insert.has_key?("data")
|
43
|
+
|
44
|
+
# Why is that checked but than the compression is not used in any way to read the data
|
45
|
+
if !to_insert.has_key?("compression")
|
46
|
+
|
47
|
+
raise UnsupportedMeetingAgendaJournalCompressionError, <<-MESSAGE.split("\n").map(&:strip!).join(" ") + "\n"
|
48
|
+
There is a MeetingAgenda journal that contains data in an
|
49
|
+
unsupported compression: #{compression}
|
50
|
+
MESSAGE
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
# as the old journals used the format [old_value, new_value] we have to fake it here
|
55
|
+
to_insert["text"] = [nil, to_insert.delete("data")]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
#-- encoding: UTF-8
|
2
|
+
#-- copyright
|
3
|
+
# OpenProject is a project management system.
|
4
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License version 3.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program; if not, write to the Free Software
|
16
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
17
|
+
#
|
18
|
+
# See doc/COPYRIGHT.md for more details.
|
19
|
+
#++
|
20
|
+
#
|
21
|
+
|
22
|
+
require_relative 'migration_utils/legacy_journal_migrator'
|
23
|
+
|
24
|
+
class LegacyMeetingMinutesJournalData < ActiveRecord::Migration
|
25
|
+
class UnsupportedMeetingMinutesJournalCompressionError < ::StandardError
|
26
|
+
end
|
27
|
+
|
28
|
+
def up
|
29
|
+
migrator.run
|
30
|
+
end
|
31
|
+
|
32
|
+
def down
|
33
|
+
migrator.remove_journals_derived_from_legacy_journals 'meeting_content_journals'
|
34
|
+
end
|
35
|
+
|
36
|
+
def migrator
|
37
|
+
@migrator ||= Migration::LegacyJournalMigrator.new "MeetingMinutesJournal", "meeting_content_journals" do
|
38
|
+
|
39
|
+
self.journable_class = "MeetingContent"
|
40
|
+
|
41
|
+
def migrate_key_value_pairs!(to_insert, legacy_journal, journal_id)
|
42
|
+
if to_insert.has_key?("data")
|
43
|
+
|
44
|
+
# Why is that checked but than the compression is not used in any way to read the data
|
45
|
+
if !to_insert.has_key?("compression")
|
46
|
+
|
47
|
+
raise UnsupportedMeetingMinutesJournalCompressionError, <<-MESSAGE.split("\n").map(&:strip!).join(" ") + "\n"
|
48
|
+
There is a MeetingMinutes journal that contains data in an
|
49
|
+
unsupported compression: #{compression}
|
50
|
+
MESSAGE
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
# as the old journals used the format [old_value, new_value] we have to fake it here
|
55
|
+
to_insert["text"] = [nil, to_insert.delete("data")]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
OpenProject is a project management system.
|
2
2
|
|
3
|
-
Copyright (C)2011-2013 the OpenProject
|
3
|
+
Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
4
4
|
|
5
5
|
This program is free software; you can redistribute it and/or
|
6
6
|
modify it under the terms of the GNU General Public License
|
@@ -0,0 +1,16 @@
|
|
1
|
+
OpenProject is a project management system.
|
2
|
+
Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
3
|
+
|
4
|
+
This program is free software; you can redistribute it and/or
|
5
|
+
modify it under the terms of the GNU General Public License version 3.
|
6
|
+
|
7
|
+
This program is distributed in the hope that it will be useful,
|
8
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
10
|
+
GNU General Public License for more details.
|
11
|
+
|
12
|
+
You should have received a copy of the GNU General Public License
|
13
|
+
along with this program; if not, write to the Free Software
|
14
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
15
|
+
|
16
|
+
See doc/COPYRIGHT.md for more details.
|
data/lib/open_project/meeting.rb
CHANGED
@@ -1,12 +1,20 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
module OpenProject
|
@@ -1,12 +1,20 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
module OpenProject::Meeting
|
12
20
|
class Engine < ::Rails::Engine
|
@@ -25,7 +33,7 @@ module OpenProject::Meeting
|
|
25
33
|
version spec.version
|
26
34
|
url spec.homepage
|
27
35
|
|
28
|
-
requires_openproject ">= 3.0.
|
36
|
+
requires_openproject ">= 3.0.0pre18"
|
29
37
|
|
30
38
|
project_module :meetings do
|
31
39
|
permission :create_meetings, {:meetings => [:new, :create, :copy]}, :require => :member
|
@@ -1,17 +1,25 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
module OpenProject::Meeting
|
13
21
|
class Hooks < Redmine::Hook::ViewListener
|
14
22
|
render_on :activity_index_head,
|
15
|
-
:partial => 'hooks/activity_index_head'
|
23
|
+
:partial => 'hooks/meetings/activity_index_head'
|
16
24
|
end
|
17
25
|
end
|
@@ -1,12 +1,20 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
module OpenProject::Meeting
|
@@ -1,16 +1,24 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
module OpenProject
|
13
21
|
module Meeting
|
14
|
-
VERSION = "3.0.
|
22
|
+
VERSION = "3.0.3"
|
15
23
|
end
|
16
24
|
end
|
data/lib/openproject-meeting.rb
CHANGED
@@ -1,12 +1,20 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
require 'open_project/meeting'
|
@@ -1,12 +1,20 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
require File.dirname(__FILE__) + '/../spec_helper'
|
@@ -1,12 +1,20 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
FactoryGirl.define do
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#-- copyright
|
2
|
+
# OpenProject is a project management system.
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
4
|
+
#
|
5
|
+
# This program is free software; you can redistribute it and/or
|
6
|
+
# modify it under the terms of the GNU General Public License version 3.
|
7
|
+
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
18
|
+
#++
|
19
|
+
|
20
|
+
FactoryGirl.define do
|
21
|
+
factory :journal_meeting_content_journal, :class => Journal::MeetingContentJournal do
|
22
|
+
end
|
23
|
+
end
|
@@ -1,12 +1,20 @@
|
|
1
1
|
#-- copyright
|
2
2
|
# OpenProject is a project management system.
|
3
|
-
#
|
4
|
-
# Copyright (C) 2011-2013 the OpenProject Team
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
5
4
|
#
|
6
5
|
# This program is free software; you can redistribute it and/or
|
7
6
|
# modify it under the terms of the GNU General Public License version 3.
|
8
7
|
#
|
9
|
-
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
10
18
|
#++
|
11
19
|
|
12
20
|
FactoryGirl.define do
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#-- copyright
|
2
|
+
# OpenProject is a project management system.
|
3
|
+
# Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
|
4
|
+
#
|
5
|
+
# This program is free software; you can redistribute it and/or
|
6
|
+
# modify it under the terms of the GNU General Public License version 3.
|
7
|
+
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License
|
14
|
+
# along with this program; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
16
|
+
#
|
17
|
+
# See doc/COPYRIGHT.md for more details.
|
18
|
+
#++
|
19
|
+
|
20
|
+
FactoryGirl.define do
|
21
|
+
factory :meeting_journal do
|
22
|
+
created_at Time.now
|
23
|
+
sequence(:version) {|n| n}
|
24
|
+
|
25
|
+
factory :meeting_content_journal, class: Journal do
|
26
|
+
journable_type "MeetingContent"
|
27
|
+
activity_type "meetings"
|
28
|
+
data FactoryGirl.build(:journal_meeting_content_journal)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|