Skip to content

Commit

Permalink
License notes and automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Massimo Rossello committed Jan 3, 2019
1 parent 9fd7503 commit aebd7f2
Show file tree
Hide file tree
Showing 9 changed files with 722 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 maxrossello
Copyright (c) 2018 Massimo Rossello

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 21 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# Redmine plugin for Better Overviews
# Copyright (C) 2018 Massimo Rossello
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

require 'redmine'

Rails.logger.info 'Better project overview'
Expand Down
53 changes: 53 additions & 0 deletions test/fixtures/member_roles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
member_roles_001:
id: 1
role_id: 1
member_id: 1
member_roles_002:
id: 2
role_id: 2
member_id: 2
member_roles_003:
id: 3
role_id: 2
member_id: 3
member_roles_004:
id: 4
role_id: 2
member_id: 4
member_roles_005:
id: 5
role_id: 1
member_id: 5
member_roles_006:
id: 6
role_id: 1
member_id: 6
member_roles_007:
id: 7
role_id: 2
member_id: 6
member_roles_008:
id: 8
role_id: 1
member_id: 7
inherited_from: 6
member_roles_009:
id: 9
role_id: 2
member_id: 7
inherited_from: 7
member_roles_010:
id: 10
role_id: 2
member_id: 9
inherited_from:
member_roles_011:
id: 11
role_id: 2
member_id: 10
inherited_from: 10
member_roles_012:
id: 12
role_id: 1
member_id: 8
62 changes: 62 additions & 0 deletions test/fixtures/members.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
members_001:
created_on: 2006-07-19 19:35:33 +02:00
project_id: 1
id: 1
user_id: 2
mail_notification: true
members_002:
created_on: 2006-07-19 19:35:36 +02:00
project_id: 1
id: 2
user_id: 3
mail_notification: true
members_003:
created_on: 2006-07-19 19:35:36 +02:00
project_id: 2
id: 3
user_id: 2
mail_notification: true
members_004:
id: 4
created_on: 2006-07-19 19:35:36 +02:00
project_id: 1
# Locked user
user_id: 5
mail_notification: true
members_005:
id: 5
created_on: 2006-07-19 19:35:33 +02:00
project_id: 5
user_id: 2
mail_notification: true
members_006:
id: 6
created_on: 2006-07-19 19:35:33 +02:00
project_id: 5
user_id: 10
mail_notification: false
members_007:
id: 7
created_on: 2006-07-19 19:35:33 +02:00
project_id: 5
user_id: 8
mail_notification: false
members_008:
created_on: 2006-07-19 19:35:33 +02:00
project_id: 5
id: 8
user_id: 1
mail_notification: true
members_009:
id: 9
created_on: 2006-07-19 19:35:33 +02:00
project_id: 2
user_id: 11
mail_notification: false
members_010:
id: 10
created_on: 2006-07-19 19:35:33 +02:00
project_id: 2
user_id: 8
mail_notification: false
73 changes: 73 additions & 0 deletions test/fixtures/projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
projects_001:
created_on: 2006-07-19 19:13:59 +02:00
name: eCookbook
updated_on: 2006-07-19 22:53:01 +02:00
id: 1
description: Recipes management application
homepage: http://ecookbook.somenet.foo/
is_public: true
identifier: ecookbook
parent_id:
lft: 1
rgt: 10
projects_002:
created_on: 2006-07-19 19:14:19 +02:00
name: OnlineStore
updated_on: 2006-07-19 19:14:19 +02:00
id: 2
description: E-commerce web site
homepage: ""
is_public: false
identifier: onlinestore
parent_id:
lft: 11
rgt: 12
projects_003:
created_on: 2006-07-19 19:15:21 +02:00
name: eCookbook Subproject 1
updated_on: 2006-07-19 19:18:12 +02:00
id: 3
description: eCookBook Subproject 1
homepage: ""
is_public: true
identifier: subproject1
parent_id: 1
lft: 6
rgt: 7
projects_004:
created_on: 2006-07-19 19:15:51 +02:00
name: eCookbook Subproject 2
updated_on: 2006-07-19 19:17:07 +02:00
id: 4
description: eCookbook Subproject 2
homepage: ""
is_public: true
identifier: subproject2
parent_id: 1
lft: 8
rgt: 9
projects_005:
created_on: 2006-07-19 19:15:51 +02:00
name: Private child of eCookbook
updated_on: 2006-07-19 19:17:07 +02:00
id: 5
description: This is a private subproject of a public project
homepage: ""
is_public: false
identifier: private-child
parent_id: 1
lft: 2
rgt: 5
projects_006:
created_on: 2006-07-19 19:15:51 +02:00
name: Child of private child
updated_on: 2006-07-19 19:17:07 +02:00
id: 6
description: This is a public subproject of a private project
homepage: ""
is_public: true
identifier: project6
parent_id: 5
lft: 3
rgt: 4
Loading

0 comments on commit aebd7f2

Please sign in to comment.