maestrano-rails 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/lib/maestrano/rails/models/maestrano_auth_resource.rb +7 -1
  2. data/lib/maestrano/rails/version.rb +1 -1
  3. data/test/{dummy → dummy_activerecord}/README.rdoc +0 -0
  4. data/test/{dummy → dummy_activerecord}/Rakefile +0 -0
  5. data/test/{dummy → dummy_activerecord}/app/assets/javascripts/application.js +0 -0
  6. data/test/{dummy → dummy_activerecord}/app/assets/javascripts/pages.js +0 -0
  7. data/test/{dummy → dummy_activerecord}/app/assets/stylesheets/application.css +0 -0
  8. data/test/{dummy → dummy_activerecord}/app/assets/stylesheets/pages.css +0 -0
  9. data/test/{dummy → dummy_activerecord}/app/controllers/application_controller.rb +0 -0
  10. data/test/{dummy → dummy_activerecord}/app/controllers/maestrano/account/group_users_controller.rb +0 -0
  11. data/test/{dummy → dummy_activerecord}/app/controllers/maestrano/account/groups_controller.rb +0 -0
  12. data/test/{dummy → dummy_activerecord}/app/controllers/maestrano/auth/saml_controller.rb +0 -0
  13. data/test/{dummy → dummy_activerecord}/app/controllers/pages_controller.rb +0 -0
  14. data/test/{dummy → dummy_activerecord}/app/helpers/application_helper.rb +0 -0
  15. data/test/{dummy → dummy_activerecord}/app/helpers/pages_helper.rb +0 -0
  16. data/test/{dummy → dummy_activerecord}/app/models/admin.rb +0 -0
  17. data/test/{dummy → dummy_activerecord}/app/models/admin/monster.rb +0 -0
  18. data/test/{dummy → dummy_activerecord}/app/models/mno_crew.rb +0 -0
  19. data/test/{dummy → dummy_activerecord}/app/models/mno_monster.rb +0 -0
  20. data/test/{dummy → dummy_activerecord}/app/models/monster.rb +0 -0
  21. data/test/{dummy → dummy_activerecord}/app/views/layouts/application.html.erb +0 -0
  22. data/test/{dummy → dummy_activerecord}/app/views/pages/home.html.erb +0 -0
  23. data/test/{dummy → dummy_activerecord}/config.ru +0 -0
  24. data/test/{dummy → dummy_activerecord}/config/application.rb +0 -0
  25. data/test/{dummy → dummy_activerecord}/config/boot.rb +0 -0
  26. data/test/{dummy → dummy_activerecord}/config/database.yml +0 -0
  27. data/test/{dummy → dummy_activerecord}/config/environment.rb +0 -0
  28. data/test/{dummy → dummy_activerecord}/config/environments/development.rb +0 -0
  29. data/test/{dummy → dummy_activerecord}/config/environments/production.rb +0 -0
  30. data/test/{dummy → dummy_activerecord}/config/environments/test.rb +0 -0
  31. data/test/{dummy → dummy_activerecord}/config/initializers/backtrace_silencers.rb +0 -0
  32. data/test/{dummy → dummy_activerecord}/config/initializers/inflections.rb +0 -0
  33. data/test/{dummy → dummy_activerecord}/config/initializers/maestrano.rb +0 -0
  34. data/test/{dummy → dummy_activerecord}/config/initializers/mime_types.rb +0 -0
  35. data/test/{dummy → dummy_activerecord}/config/initializers/secret_token.rb +0 -0
  36. data/test/{dummy → dummy_activerecord}/config/initializers/session_store.rb +0 -0
  37. data/test/{dummy → dummy_activerecord}/config/initializers/wrap_parameters.rb +0 -0
  38. data/test/{dummy → dummy_activerecord}/config/locales/en.yml +0 -0
  39. data/test/{dummy → dummy_activerecord}/config/routes.rb +0 -0
  40. data/test/{dummy → dummy_activerecord}/db/development.sqlite3 +0 -0
  41. data/test/{dummy → dummy_activerecord}/db/migrate/20140526125222_create_monsters.rb +0 -0
  42. data/test/{dummy → dummy_activerecord}/db/migrate/20140526125242_create_admin_monsters.rb +0 -0
  43. data/test/{dummy → dummy_activerecord}/db/migrate/20140526144828_create_mno_monsters.rb +0 -0
  44. data/test/{dummy → dummy_activerecord}/db/migrate/20140526151139_create_mno_crews.rb +0 -0
  45. data/test/{dummy → dummy_activerecord}/db/schema.rb +0 -0
  46. data/test/{dummy → dummy_activerecord}/db/test.sqlite3 +0 -0
  47. data/test/dummy_activerecord/log/development.log +76 -0
  48. data/test/dummy_activerecord/log/test.log +1761 -0
  49. data/test/{dummy → dummy_activerecord}/public/404.html +0 -0
  50. data/test/{dummy → dummy_activerecord}/public/422.html +0 -0
  51. data/test/{dummy → dummy_activerecord}/public/500.html +0 -0
  52. data/test/{dummy → dummy_activerecord}/public/favicon.ico +0 -0
  53. data/test/{dummy → dummy_activerecord}/script/rails +0 -0
  54. data/test/dummy_mongoid/README.rdoc +261 -0
  55. data/test/dummy_mongoid/Rakefile +7 -0
  56. data/test/dummy_mongoid/app/assets/javascripts/application.js +15 -0
  57. data/test/dummy_mongoid/app/assets/javascripts/pages.js +2 -0
  58. data/test/dummy_mongoid/app/assets/stylesheets/application.css +13 -0
  59. data/test/dummy_mongoid/app/assets/stylesheets/pages.css +4 -0
  60. data/test/dummy_mongoid/app/controllers/application_controller.rb +3 -0
  61. data/test/dummy_mongoid/app/controllers/maestrano/account/group_users_controller.rb +27 -0
  62. data/test/dummy_mongoid/app/controllers/maestrano/account/groups_controller.rb +37 -0
  63. data/test/dummy_mongoid/app/controllers/maestrano/auth/saml_controller.rb +14 -0
  64. data/test/dummy_mongoid/app/controllers/pages_controller.rb +4 -0
  65. data/test/dummy_mongoid/app/helpers/application_helper.rb +2 -0
  66. data/test/dummy_mongoid/app/helpers/pages_helper.rb +2 -0
  67. data/test/dummy_mongoid/app/models/mno_crew.rb +11 -0
  68. data/test/dummy_mongoid/app/models/mno_monster.rb +14 -0
  69. data/test/dummy_mongoid/app/models/monster.rb +3 -0
  70. data/test/dummy_mongoid/app/views/layouts/application.html.erb +14 -0
  71. data/test/dummy_mongoid/app/views/pages/home.html.erb +2 -0
  72. data/test/dummy_mongoid/config.ru +4 -0
  73. data/test/dummy_mongoid/config/application.rb +59 -0
  74. data/test/dummy_mongoid/config/boot.rb +10 -0
  75. data/test/dummy_mongoid/config/environment.rb +5 -0
  76. data/test/dummy_mongoid/config/environments/development.rb +37 -0
  77. data/test/dummy_mongoid/config/environments/production.rb +67 -0
  78. data/test/dummy_mongoid/config/environments/test.rb +37 -0
  79. data/test/dummy_mongoid/config/initializers/backtrace_silencers.rb +7 -0
  80. data/test/dummy_mongoid/config/initializers/inflections.rb +15 -0
  81. data/test/dummy_mongoid/config/initializers/maestrano.rb +85 -0
  82. data/test/dummy_mongoid/config/initializers/mime_types.rb +5 -0
  83. data/test/dummy_mongoid/config/initializers/secret_token.rb +7 -0
  84. data/test/dummy_mongoid/config/initializers/session_store.rb +8 -0
  85. data/test/dummy_mongoid/config/initializers/wrap_parameters.rb +14 -0
  86. data/test/dummy_mongoid/config/locales/en.yml +5 -0
  87. data/test/dummy_mongoid/config/mongoid.yml +80 -0
  88. data/test/dummy_mongoid/config/routes.rb +63 -0
  89. data/test/dummy_mongoid/db/migrate/20140526125222_create_monsters.rb +8 -0
  90. data/test/dummy_mongoid/db/migrate/20140526125242_create_admin_monsters.rb +8 -0
  91. data/test/dummy_mongoid/db/migrate/20140526144828_create_mno_monsters.rb +13 -0
  92. data/test/dummy_mongoid/db/migrate/20140526151139_create_mno_crews.rb +11 -0
  93. data/test/dummy_mongoid/db/schema.rb +44 -0
  94. data/test/dummy_mongoid/log/test.log +244 -0
  95. data/test/dummy_mongoid/public/404.html +26 -0
  96. data/test/dummy_mongoid/public/422.html +26 -0
  97. data/test/dummy_mongoid/public/500.html +25 -0
  98. data/test/dummy_mongoid/public/favicon.ico +0 -0
  99. data/test/dummy_mongoid/script/rails +6 -0
  100. data/test/generators/group/active_record_generator_test.rb +1 -1
  101. data/test/generators/group/mongoid_generator_test.rb +1 -1
  102. data/test/generators/group_generator_test.rb +1 -1
  103. data/test/generators/user/active_record_generator_test.rb +1 -1
  104. data/test/generators/user/mongoid_generator_test.rb +1 -1
  105. data/test/generators/user_generator_test.rb +1 -1
  106. data/test/test_helper.rb +20 -2
  107. metadata +312 -217
  108. checksums.yaml +0 -7
  109. data/test/dummy/log/development.log +0 -44
  110. data/test/dummy/log/test.log +0 -6179
  111. data/test/dummy/test/fixtures/admin/monsters.yml +0 -11
  112. data/test/dummy/test/fixtures/mno_crews.yml +0 -11
  113. data/test/dummy/test/fixtures/mno_monsters.yml +0 -15
  114. data/test/dummy/test/fixtures/monsters.yml +0 -11
  115. data/test/dummy/test/functional/pages_controller_test.rb +0 -9
  116. data/test/dummy/test/unit/admin/monster_test.rb +0 -7
  117. data/test/dummy/test/unit/helpers/pages_helper_test.rb +0 -4
  118. data/test/dummy/test/unit/mno_crew_test.rb +0 -7
  119. data/test/dummy/test/unit/mno_monster_test.rb +0 -7
  120. data/test/dummy/test/unit/monster_test.rb +0 -7
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -65,7 +65,7 @@ if TEST_ORM == :active_record
65
65
 
66
66
  # Copy model like: 'monster' or 'admin/monster'
67
67
  def copy_model(relative_model_path)
68
- model_path = File.expand_path("../../../dummy/app/models/#{relative_model_path}.rb", __FILE__)
68
+ model_path = File.expand_path("../../../dummy_activerecord/app/models/#{relative_model_path}.rb", __FILE__)
69
69
  if (path_ary = relative_model_path.split('/')) && path_ary.size > 1
70
70
  destination = File.join(destination_root, "app", "models",*path_ary[0..-2])
71
71
  else
@@ -54,7 +54,7 @@ if TEST_ORM == :mongoid
54
54
 
55
55
  # Copy model like: 'monster' or 'admin/monster'
56
56
  def copy_model(relative_model_path)
57
- model_path = File.expand_path("../../../dummy/app/models/#{relative_model_path}.rb", __FILE__)
57
+ model_path = File.expand_path("../../../dummy_activerecord/app/models/#{relative_model_path}.rb", __FILE__)
58
58
  if (path_ary = relative_model_path.split('/')) && path_ary.size > 1
59
59
  destination = File.join(destination_root, "app", "models",*path_ary[0..-2])
60
60
  else
@@ -19,7 +19,7 @@ class GroupGeneratorTest < Rails::Generators::TestCase
19
19
 
20
20
  # Copy model like: 'monster' or 'admin/monster'
21
21
  def copy_model(relative_model_path)
22
- model_path = File.expand_path("../../dummy/app/models/#{relative_model_path}.rb", __FILE__)
22
+ model_path = File.expand_path("../../dummy_activerecord/app/models/#{relative_model_path}.rb", __FILE__)
23
23
  if (path_ary = relative_model_path.split('/')) && path_ary.size > 1
24
24
  destination = File.join(destination_root, "app", "models",*path_ary[0..-2])
25
25
  else
@@ -65,7 +65,7 @@ if TEST_ORM == :active_record
65
65
 
66
66
  # Copy model like: 'monster' or 'admin/monster'
67
67
  def copy_model(relative_model_path)
68
- model_path = File.expand_path("../../../dummy/app/models/#{relative_model_path}.rb", __FILE__)
68
+ model_path = File.expand_path("../../../dummy_activerecord/app/models/#{relative_model_path}.rb", __FILE__)
69
69
  if (path_ary = relative_model_path.split('/')) && path_ary.size > 1
70
70
  destination = File.join(destination_root, "app", "models",*path_ary[0..-2])
71
71
  else
@@ -54,7 +54,7 @@ if TEST_ORM == :mongoid
54
54
 
55
55
  # Copy model like: 'monster' or 'admin/monster'
56
56
  def copy_model(relative_model_path)
57
- model_path = File.expand_path("../../../dummy/app/models/#{relative_model_path}.rb", __FILE__)
57
+ model_path = File.expand_path("../../../dummy_activerecord/app/models/#{relative_model_path}.rb", __FILE__)
58
58
  if (path_ary = relative_model_path.split('/')) && path_ary.size > 1
59
59
  destination = File.join(destination_root, "app", "models",*path_ary[0..-2])
60
60
  else
@@ -19,7 +19,7 @@ class UserGeneratorTest < Rails::Generators::TestCase
19
19
 
20
20
  # Copy model like: 'monster' or 'admin/monster'
21
21
  def copy_model(relative_model_path)
22
- model_path = File.expand_path("../../dummy/app/models/#{relative_model_path}.rb", __FILE__)
22
+ model_path = File.expand_path("../../dummy_activerecord/app/models/#{relative_model_path}.rb", __FILE__)
23
23
  if (path_ary = relative_model_path.split('/')) && path_ary.size > 1
24
24
  destination = File.join(destination_root, "app", "models",*path_ary[0..-2])
25
25
  else
data/test/test_helper.rb CHANGED
@@ -2,10 +2,16 @@
2
2
  ENV["RAILS_ENV"] = "test"
3
3
  TEST_ORM = (ENV["TEST_ORM"] || :active_record).to_sym
4
4
 
5
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ if TEST_ORM == :mongoid
6
+ require 'mongoid'
7
+ require File.expand_path("../dummy_mongoid/config/environment.rb", __FILE__)
8
+ else
9
+ require File.expand_path("../dummy_activerecord/config/environment.rb", __FILE__)
10
+ end
6
11
  require "rails/test_help"
7
12
  require "shoulda"
8
- require "mocha"
13
+ require "mocha/setup"
14
+ require "database_cleaner"
9
15
 
10
16
  Rails.backtrace_cleaner.remove_silencers!
11
17
 
@@ -17,6 +23,18 @@ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
17
23
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
18
24
  end
19
25
 
26
+ # Configure database cleaning
27
+ DatabaseCleaner.strategy = (TEST_ORM == :mongoid ? :truncation : :transaction)
28
+ class ActiveSupport::TestCase
29
+ # Stop ActiveRecord from wrapping tests in transactions
30
+ if TEST_ORM == :active_record
31
+ self.use_transactional_fixtures = false
32
+ end
33
+
34
+ setup { DatabaseCleaner.start }
35
+ teardown { DatabaseCleaner.clean }
36
+ end
37
+
20
38
  # For generators
21
39
  require "rails/generators/test_case"
22
40
  require "generators/maestrano/install_generator"
metadata CHANGED
@@ -1,117 +1,132 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: maestrano-rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.0
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.8.0
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Arnaud Lachaume
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2014-06-10 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
14
16
  name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: 3.2.3
20
- type: :runtime
21
17
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
24
21
  - - ~>
25
- - !ruby/object:Gem::Version
22
+ - !ruby/object:Gem::Version
26
23
  version: 3.2.3
27
- - !ruby/object:Gem::Dependency
28
- name: maestrano
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '0.7'
34
24
  type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: maestrano
35
28
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
38
32
  - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '0.7'
41
- - !ruby/object:Gem::Dependency
33
+ - !ruby/object:Gem::Version
34
+ version: "0.7"
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
42
38
  name: test-unit
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '2'
48
- type: :development
49
39
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
52
43
  - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '2'
55
- - !ruby/object:Gem::Dependency
56
- name: mocha
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '0.13'
44
+ - !ruby/object:Gem::Version
45
+ version: "2"
62
46
  type: :development
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: mocha
63
50
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
66
54
  - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '0.13'
69
- - !ruby/object:Gem::Dependency
55
+ - !ruby/object:Gem::Version
56
+ version: "0.13"
57
+ type: :development
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
70
60
  name: shoulda
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
61
+ prerelease: false
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
73
65
  - - ~>
74
- - !ruby/object:Gem::Version
75
- version: '2.11'
66
+ - !ruby/object:Gem::Version
67
+ version: "2.11"
76
68
  type: :development
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: database_cleaner
77
72
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ~>
81
- - !ruby/object:Gem::Version
82
- version: '2.11'
83
- - !ruby/object:Gem::Dependency
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ type: :development
80
+ version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
84
82
  name: sqlite3
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
83
+ prerelease: false
84
+ requirement: &id007 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: "0"
90
90
  type: :development
91
+ version_requirements: *id007
92
+ - !ruby/object:Gem::Dependency
93
+ name: mongoid
91
94
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- description: Maestrano is the next generation marketplace for SME applications. See
98
- https://maestrano.com for details.
99
- email:
95
+ requirement: &id008 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: "2.4"
101
+ type: :development
102
+ version_requirements: *id008
103
+ - !ruby/object:Gem::Dependency
104
+ name: bson_ext
105
+ prerelease: false
106
+ requirement: &id009 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: "0"
112
+ type: :development
113
+ version_requirements: *id009
114
+ description: Maestrano is the next generation marketplace for SME applications. See https://maestrano.com for details.
115
+ email:
100
116
  - arnaud.lachaume@maestrano.com
101
117
  executables: []
118
+
102
119
  extensions: []
120
+
103
121
  extra_rdoc_files: []
104
- files:
105
- - LICENSE
106
- - README.md
107
- - Rakefile
122
+
123
+ files:
108
124
  - app/controllers/maestrano/rails/metadata_controller.rb
109
125
  - app/controllers/maestrano/rails/saml_base_controller.rb
110
126
  - app/controllers/maestrano/rails/web_hook_controller.rb
111
127
  - lib/generators/active_record/maestrano_group_generator.rb
112
128
  - lib/generators/active_record/maestrano_user_generator.rb
113
129
  - lib/generators/active_record/templates/migration.rb
114
- - lib/generators/maestrano/USAGE
115
130
  - lib/generators/maestrano/group_generator.rb
116
131
  - lib/generators/maestrano/install_generator.rb
117
132
  - lib/generators/maestrano/orm_helpers.rb
@@ -119,81 +134,121 @@ files:
119
134
  - lib/generators/maestrano/templates/groups_controller.rb
120
135
  - lib/generators/maestrano/templates/maestrano.rb
121
136
  - lib/generators/maestrano/templates/saml_controller.rb
137
+ - lib/generators/maestrano/USAGE
122
138
  - lib/generators/maestrano/user_generator.rb
123
139
  - lib/generators/mongoid/maestrano_group_generator.rb
124
140
  - lib/generators/mongoid/maestrano_user_generator.rb
125
- - lib/maestrano-rails.rb
126
- - lib/maestrano/rails.rb
127
141
  - lib/maestrano/rails/controllers/maestrano_security.rb
128
142
  - lib/maestrano/rails/models/maestrano_auth_resource.rb
129
143
  - lib/maestrano/rails/routing/routes.rb
130
144
  - lib/maestrano/rails/version.rb
145
+ - lib/maestrano/rails.rb
146
+ - lib/maestrano-rails.rb
147
+ - LICENSE
148
+ - Rakefile
149
+ - README.md
131
150
  - test/controllers/generic_controller_test.rb
132
151
  - test/controllers/group_users_controller_test.rb
133
152
  - test/controllers/groups_controller_test.rb
134
153
  - test/controllers/metadata_controller_test.rb
135
154
  - test/controllers/saml_controller_test.rb
136
- - test/dummy/README.rdoc
137
- - test/dummy/Rakefile
138
- - test/dummy/app/assets/javascripts/application.js
139
- - test/dummy/app/assets/javascripts/pages.js
140
- - test/dummy/app/assets/stylesheets/application.css
141
- - test/dummy/app/assets/stylesheets/pages.css
142
- - test/dummy/app/controllers/application_controller.rb
143
- - test/dummy/app/controllers/maestrano/account/group_users_controller.rb
144
- - test/dummy/app/controllers/maestrano/account/groups_controller.rb
145
- - test/dummy/app/controllers/maestrano/auth/saml_controller.rb
146
- - test/dummy/app/controllers/pages_controller.rb
147
- - test/dummy/app/helpers/application_helper.rb
148
- - test/dummy/app/helpers/pages_helper.rb
149
- - test/dummy/app/models/admin.rb
150
- - test/dummy/app/models/admin/monster.rb
151
- - test/dummy/app/models/mno_crew.rb
152
- - test/dummy/app/models/mno_monster.rb
153
- - test/dummy/app/models/monster.rb
154
- - test/dummy/app/views/layouts/application.html.erb
155
- - test/dummy/app/views/pages/home.html.erb
156
- - test/dummy/config.ru
157
- - test/dummy/config/application.rb
158
- - test/dummy/config/boot.rb
159
- - test/dummy/config/database.yml
160
- - test/dummy/config/environment.rb
161
- - test/dummy/config/environments/development.rb
162
- - test/dummy/config/environments/production.rb
163
- - test/dummy/config/environments/test.rb
164
- - test/dummy/config/initializers/backtrace_silencers.rb
165
- - test/dummy/config/initializers/inflections.rb
166
- - test/dummy/config/initializers/maestrano.rb
167
- - test/dummy/config/initializers/mime_types.rb
168
- - test/dummy/config/initializers/secret_token.rb
169
- - test/dummy/config/initializers/session_store.rb
170
- - test/dummy/config/initializers/wrap_parameters.rb
171
- - test/dummy/config/locales/en.yml
172
- - test/dummy/config/routes.rb
173
- - test/dummy/db/development.sqlite3
174
- - test/dummy/db/migrate/20140526125222_create_monsters.rb
175
- - test/dummy/db/migrate/20140526125242_create_admin_monsters.rb
176
- - test/dummy/db/migrate/20140526144828_create_mno_monsters.rb
177
- - test/dummy/db/migrate/20140526151139_create_mno_crews.rb
178
- - test/dummy/db/schema.rb
179
- - test/dummy/db/test.sqlite3
180
- - test/dummy/log/development.log
181
- - test/dummy/log/test.log
182
- - test/dummy/public/404.html
183
- - test/dummy/public/422.html
184
- - test/dummy/public/500.html
185
- - test/dummy/public/favicon.ico
186
- - test/dummy/script/rails
187
- - test/dummy/test/fixtures/admin/monsters.yml
188
- - test/dummy/test/fixtures/mno_crews.yml
189
- - test/dummy/test/fixtures/mno_monsters.yml
190
- - test/dummy/test/fixtures/monsters.yml
191
- - test/dummy/test/functional/pages_controller_test.rb
192
- - test/dummy/test/unit/admin/monster_test.rb
193
- - test/dummy/test/unit/helpers/pages_helper_test.rb
194
- - test/dummy/test/unit/mno_crew_test.rb
195
- - test/dummy/test/unit/mno_monster_test.rb
196
- - test/dummy/test/unit/monster_test.rb
155
+ - test/dummy_activerecord/app/assets/javascripts/application.js
156
+ - test/dummy_activerecord/app/assets/javascripts/pages.js
157
+ - test/dummy_activerecord/app/assets/stylesheets/application.css
158
+ - test/dummy_activerecord/app/assets/stylesheets/pages.css
159
+ - test/dummy_activerecord/app/controllers/application_controller.rb
160
+ - test/dummy_activerecord/app/controllers/maestrano/account/group_users_controller.rb
161
+ - test/dummy_activerecord/app/controllers/maestrano/account/groups_controller.rb
162
+ - test/dummy_activerecord/app/controllers/maestrano/auth/saml_controller.rb
163
+ - test/dummy_activerecord/app/controllers/pages_controller.rb
164
+ - test/dummy_activerecord/app/helpers/application_helper.rb
165
+ - test/dummy_activerecord/app/helpers/pages_helper.rb
166
+ - test/dummy_activerecord/app/models/admin/monster.rb
167
+ - test/dummy_activerecord/app/models/admin.rb
168
+ - test/dummy_activerecord/app/models/mno_crew.rb
169
+ - test/dummy_activerecord/app/models/mno_monster.rb
170
+ - test/dummy_activerecord/app/models/monster.rb
171
+ - test/dummy_activerecord/app/views/layouts/application.html.erb
172
+ - test/dummy_activerecord/app/views/pages/home.html.erb
173
+ - test/dummy_activerecord/config/application.rb
174
+ - test/dummy_activerecord/config/boot.rb
175
+ - test/dummy_activerecord/config/database.yml
176
+ - test/dummy_activerecord/config/environment.rb
177
+ - test/dummy_activerecord/config/environments/development.rb
178
+ - test/dummy_activerecord/config/environments/production.rb
179
+ - test/dummy_activerecord/config/environments/test.rb
180
+ - test/dummy_activerecord/config/initializers/backtrace_silencers.rb
181
+ - test/dummy_activerecord/config/initializers/inflections.rb
182
+ - test/dummy_activerecord/config/initializers/maestrano.rb
183
+ - test/dummy_activerecord/config/initializers/mime_types.rb
184
+ - test/dummy_activerecord/config/initializers/secret_token.rb
185
+ - test/dummy_activerecord/config/initializers/session_store.rb
186
+ - test/dummy_activerecord/config/initializers/wrap_parameters.rb
187
+ - test/dummy_activerecord/config/locales/en.yml
188
+ - test/dummy_activerecord/config/routes.rb
189
+ - test/dummy_activerecord/config.ru
190
+ - test/dummy_activerecord/db/development.sqlite3
191
+ - test/dummy_activerecord/db/migrate/20140526125222_create_monsters.rb
192
+ - test/dummy_activerecord/db/migrate/20140526125242_create_admin_monsters.rb
193
+ - test/dummy_activerecord/db/migrate/20140526144828_create_mno_monsters.rb
194
+ - test/dummy_activerecord/db/migrate/20140526151139_create_mno_crews.rb
195
+ - test/dummy_activerecord/db/schema.rb
196
+ - test/dummy_activerecord/db/test.sqlite3
197
+ - test/dummy_activerecord/log/development.log
198
+ - test/dummy_activerecord/log/test.log
199
+ - test/dummy_activerecord/public/404.html
200
+ - test/dummy_activerecord/public/422.html
201
+ - test/dummy_activerecord/public/500.html
202
+ - test/dummy_activerecord/public/favicon.ico
203
+ - test/dummy_activerecord/Rakefile
204
+ - test/dummy_activerecord/README.rdoc
205
+ - test/dummy_activerecord/script/rails
206
+ - test/dummy_mongoid/app/assets/javascripts/application.js
207
+ - test/dummy_mongoid/app/assets/javascripts/pages.js
208
+ - test/dummy_mongoid/app/assets/stylesheets/application.css
209
+ - test/dummy_mongoid/app/assets/stylesheets/pages.css
210
+ - test/dummy_mongoid/app/controllers/application_controller.rb
211
+ - test/dummy_mongoid/app/controllers/maestrano/account/group_users_controller.rb
212
+ - test/dummy_mongoid/app/controllers/maestrano/account/groups_controller.rb
213
+ - test/dummy_mongoid/app/controllers/maestrano/auth/saml_controller.rb
214
+ - test/dummy_mongoid/app/controllers/pages_controller.rb
215
+ - test/dummy_mongoid/app/helpers/application_helper.rb
216
+ - test/dummy_mongoid/app/helpers/pages_helper.rb
217
+ - test/dummy_mongoid/app/models/mno_crew.rb
218
+ - test/dummy_mongoid/app/models/mno_monster.rb
219
+ - test/dummy_mongoid/app/models/monster.rb
220
+ - test/dummy_mongoid/app/views/layouts/application.html.erb
221
+ - test/dummy_mongoid/app/views/pages/home.html.erb
222
+ - test/dummy_mongoid/config/application.rb
223
+ - test/dummy_mongoid/config/boot.rb
224
+ - test/dummy_mongoid/config/environment.rb
225
+ - test/dummy_mongoid/config/environments/development.rb
226
+ - test/dummy_mongoid/config/environments/production.rb
227
+ - test/dummy_mongoid/config/environments/test.rb
228
+ - test/dummy_mongoid/config/initializers/backtrace_silencers.rb
229
+ - test/dummy_mongoid/config/initializers/inflections.rb
230
+ - test/dummy_mongoid/config/initializers/maestrano.rb
231
+ - test/dummy_mongoid/config/initializers/mime_types.rb
232
+ - test/dummy_mongoid/config/initializers/secret_token.rb
233
+ - test/dummy_mongoid/config/initializers/session_store.rb
234
+ - test/dummy_mongoid/config/initializers/wrap_parameters.rb
235
+ - test/dummy_mongoid/config/locales/en.yml
236
+ - test/dummy_mongoid/config/mongoid.yml
237
+ - test/dummy_mongoid/config/routes.rb
238
+ - test/dummy_mongoid/config.ru
239
+ - test/dummy_mongoid/db/migrate/20140526125222_create_monsters.rb
240
+ - test/dummy_mongoid/db/migrate/20140526125242_create_admin_monsters.rb
241
+ - test/dummy_mongoid/db/migrate/20140526144828_create_mno_monsters.rb
242
+ - test/dummy_mongoid/db/migrate/20140526151139_create_mno_crews.rb
243
+ - test/dummy_mongoid/db/schema.rb
244
+ - test/dummy_mongoid/log/test.log
245
+ - test/dummy_mongoid/public/404.html
246
+ - test/dummy_mongoid/public/422.html
247
+ - test/dummy_mongoid/public/500.html
248
+ - test/dummy_mongoid/public/favicon.ico
249
+ - test/dummy_mongoid/Rakefile
250
+ - test/dummy_mongoid/README.rdoc
251
+ - test/dummy_mongoid/script/rails
197
252
  - test/generators/group/active_record_generator_test.rb
198
253
  - test/generators/group/mongoid_generator_test.rb
199
254
  - test/generators/group_generator_test.rb
@@ -209,94 +264,134 @@ files:
209
264
  - test/tmp/app/models/monster.rb
210
265
  homepage: https://maestrano.com
211
266
  licenses: []
212
- metadata: {}
267
+
213
268
  post_install_message:
214
269
  rdoc_options: []
215
- require_paths:
270
+
271
+ require_paths:
216
272
  - lib
217
- required_ruby_version: !ruby/object:Gem::Requirement
218
- requirements:
219
- - - ! '>='
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- required_rubygems_version: !ruby/object:Gem::Requirement
223
- requirements:
224
- - - ! '>='
225
- - !ruby/object:Gem::Version
226
- version: '0'
273
+ required_ruby_version: !ruby/object:Gem::Requirement
274
+ none: false
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: "0"
279
+ required_rubygems_version: !ruby/object:Gem::Requirement
280
+ none: false
281
+ requirements:
282
+ - - ">="
283
+ - !ruby/object:Gem::Version
284
+ version: "0"
227
285
  requirements: []
286
+
228
287
  rubyforge_project:
229
- rubygems_version: 2.2.1
288
+ rubygems_version: 1.8.21
230
289
  signing_key:
231
- specification_version: 4
290
+ specification_version: 3
232
291
  summary: Rails plugin for Maestrano API
233
- test_files:
292
+ test_files:
234
293
  - test/controllers/generic_controller_test.rb
235
294
  - test/controllers/group_users_controller_test.rb
236
295
  - test/controllers/groups_controller_test.rb
237
296
  - test/controllers/metadata_controller_test.rb
238
297
  - test/controllers/saml_controller_test.rb
239
- - test/dummy/app/assets/javascripts/application.js
240
- - test/dummy/app/assets/javascripts/pages.js
241
- - test/dummy/app/assets/stylesheets/application.css
242
- - test/dummy/app/assets/stylesheets/pages.css
243
- - test/dummy/app/controllers/application_controller.rb
244
- - test/dummy/app/controllers/maestrano/account/group_users_controller.rb
245
- - test/dummy/app/controllers/maestrano/account/groups_controller.rb
246
- - test/dummy/app/controllers/maestrano/auth/saml_controller.rb
247
- - test/dummy/app/controllers/pages_controller.rb
248
- - test/dummy/app/helpers/application_helper.rb
249
- - test/dummy/app/helpers/pages_helper.rb
250
- - test/dummy/app/models/admin/monster.rb
251
- - test/dummy/app/models/admin.rb
252
- - test/dummy/app/models/mno_crew.rb
253
- - test/dummy/app/models/mno_monster.rb
254
- - test/dummy/app/models/monster.rb
255
- - test/dummy/app/views/layouts/application.html.erb
256
- - test/dummy/app/views/pages/home.html.erb
257
- - test/dummy/config/application.rb
258
- - test/dummy/config/boot.rb
259
- - test/dummy/config/database.yml
260
- - test/dummy/config/environment.rb
261
- - test/dummy/config/environments/development.rb
262
- - test/dummy/config/environments/production.rb
263
- - test/dummy/config/environments/test.rb
264
- - test/dummy/config/initializers/backtrace_silencers.rb
265
- - test/dummy/config/initializers/inflections.rb
266
- - test/dummy/config/initializers/maestrano.rb
267
- - test/dummy/config/initializers/mime_types.rb
268
- - test/dummy/config/initializers/secret_token.rb
269
- - test/dummy/config/initializers/session_store.rb
270
- - test/dummy/config/initializers/wrap_parameters.rb
271
- - test/dummy/config/locales/en.yml
272
- - test/dummy/config/routes.rb
273
- - test/dummy/config.ru
274
- - test/dummy/db/development.sqlite3
275
- - test/dummy/db/migrate/20140526125222_create_monsters.rb
276
- - test/dummy/db/migrate/20140526125242_create_admin_monsters.rb
277
- - test/dummy/db/migrate/20140526144828_create_mno_monsters.rb
278
- - test/dummy/db/migrate/20140526151139_create_mno_crews.rb
279
- - test/dummy/db/schema.rb
280
- - test/dummy/db/test.sqlite3
281
- - test/dummy/log/development.log
282
- - test/dummy/log/test.log
283
- - test/dummy/public/404.html
284
- - test/dummy/public/422.html
285
- - test/dummy/public/500.html
286
- - test/dummy/public/favicon.ico
287
- - test/dummy/Rakefile
288
- - test/dummy/README.rdoc
289
- - test/dummy/script/rails
290
- - test/dummy/test/fixtures/admin/monsters.yml
291
- - test/dummy/test/fixtures/mno_crews.yml
292
- - test/dummy/test/fixtures/mno_monsters.yml
293
- - test/dummy/test/fixtures/monsters.yml
294
- - test/dummy/test/functional/pages_controller_test.rb
295
- - test/dummy/test/unit/admin/monster_test.rb
296
- - test/dummy/test/unit/helpers/pages_helper_test.rb
297
- - test/dummy/test/unit/mno_crew_test.rb
298
- - test/dummy/test/unit/mno_monster_test.rb
299
- - test/dummy/test/unit/monster_test.rb
298
+ - test/dummy_activerecord/app/assets/javascripts/application.js
299
+ - test/dummy_activerecord/app/assets/javascripts/pages.js
300
+ - test/dummy_activerecord/app/assets/stylesheets/application.css
301
+ - test/dummy_activerecord/app/assets/stylesheets/pages.css
302
+ - test/dummy_activerecord/app/controllers/application_controller.rb
303
+ - test/dummy_activerecord/app/controllers/maestrano/account/group_users_controller.rb
304
+ - test/dummy_activerecord/app/controllers/maestrano/account/groups_controller.rb
305
+ - test/dummy_activerecord/app/controllers/maestrano/auth/saml_controller.rb
306
+ - test/dummy_activerecord/app/controllers/pages_controller.rb
307
+ - test/dummy_activerecord/app/helpers/application_helper.rb
308
+ - test/dummy_activerecord/app/helpers/pages_helper.rb
309
+ - test/dummy_activerecord/app/models/admin/monster.rb
310
+ - test/dummy_activerecord/app/models/admin.rb
311
+ - test/dummy_activerecord/app/models/mno_crew.rb
312
+ - test/dummy_activerecord/app/models/mno_monster.rb
313
+ - test/dummy_activerecord/app/models/monster.rb
314
+ - test/dummy_activerecord/app/views/layouts/application.html.erb
315
+ - test/dummy_activerecord/app/views/pages/home.html.erb
316
+ - test/dummy_activerecord/config/application.rb
317
+ - test/dummy_activerecord/config/boot.rb
318
+ - test/dummy_activerecord/config/database.yml
319
+ - test/dummy_activerecord/config/environment.rb
320
+ - test/dummy_activerecord/config/environments/development.rb
321
+ - test/dummy_activerecord/config/environments/production.rb
322
+ - test/dummy_activerecord/config/environments/test.rb
323
+ - test/dummy_activerecord/config/initializers/backtrace_silencers.rb
324
+ - test/dummy_activerecord/config/initializers/inflections.rb
325
+ - test/dummy_activerecord/config/initializers/maestrano.rb
326
+ - test/dummy_activerecord/config/initializers/mime_types.rb
327
+ - test/dummy_activerecord/config/initializers/secret_token.rb
328
+ - test/dummy_activerecord/config/initializers/session_store.rb
329
+ - test/dummy_activerecord/config/initializers/wrap_parameters.rb
330
+ - test/dummy_activerecord/config/locales/en.yml
331
+ - test/dummy_activerecord/config/routes.rb
332
+ - test/dummy_activerecord/config.ru
333
+ - test/dummy_activerecord/db/development.sqlite3
334
+ - test/dummy_activerecord/db/migrate/20140526125222_create_monsters.rb
335
+ - test/dummy_activerecord/db/migrate/20140526125242_create_admin_monsters.rb
336
+ - test/dummy_activerecord/db/migrate/20140526144828_create_mno_monsters.rb
337
+ - test/dummy_activerecord/db/migrate/20140526151139_create_mno_crews.rb
338
+ - test/dummy_activerecord/db/schema.rb
339
+ - test/dummy_activerecord/db/test.sqlite3
340
+ - test/dummy_activerecord/log/development.log
341
+ - test/dummy_activerecord/log/test.log
342
+ - test/dummy_activerecord/public/404.html
343
+ - test/dummy_activerecord/public/422.html
344
+ - test/dummy_activerecord/public/500.html
345
+ - test/dummy_activerecord/public/favicon.ico
346
+ - test/dummy_activerecord/Rakefile
347
+ - test/dummy_activerecord/README.rdoc
348
+ - test/dummy_activerecord/script/rails
349
+ - test/dummy_mongoid/app/assets/javascripts/application.js
350
+ - test/dummy_mongoid/app/assets/javascripts/pages.js
351
+ - test/dummy_mongoid/app/assets/stylesheets/application.css
352
+ - test/dummy_mongoid/app/assets/stylesheets/pages.css
353
+ - test/dummy_mongoid/app/controllers/application_controller.rb
354
+ - test/dummy_mongoid/app/controllers/maestrano/account/group_users_controller.rb
355
+ - test/dummy_mongoid/app/controllers/maestrano/account/groups_controller.rb
356
+ - test/dummy_mongoid/app/controllers/maestrano/auth/saml_controller.rb
357
+ - test/dummy_mongoid/app/controllers/pages_controller.rb
358
+ - test/dummy_mongoid/app/helpers/application_helper.rb
359
+ - test/dummy_mongoid/app/helpers/pages_helper.rb
360
+ - test/dummy_mongoid/app/models/mno_crew.rb
361
+ - test/dummy_mongoid/app/models/mno_monster.rb
362
+ - test/dummy_mongoid/app/models/monster.rb
363
+ - test/dummy_mongoid/app/views/layouts/application.html.erb
364
+ - test/dummy_mongoid/app/views/pages/home.html.erb
365
+ - test/dummy_mongoid/config/application.rb
366
+ - test/dummy_mongoid/config/boot.rb
367
+ - test/dummy_mongoid/config/environment.rb
368
+ - test/dummy_mongoid/config/environments/development.rb
369
+ - test/dummy_mongoid/config/environments/production.rb
370
+ - test/dummy_mongoid/config/environments/test.rb
371
+ - test/dummy_mongoid/config/initializers/backtrace_silencers.rb
372
+ - test/dummy_mongoid/config/initializers/inflections.rb
373
+ - test/dummy_mongoid/config/initializers/maestrano.rb
374
+ - test/dummy_mongoid/config/initializers/mime_types.rb
375
+ - test/dummy_mongoid/config/initializers/secret_token.rb
376
+ - test/dummy_mongoid/config/initializers/session_store.rb
377
+ - test/dummy_mongoid/config/initializers/wrap_parameters.rb
378
+ - test/dummy_mongoid/config/locales/en.yml
379
+ - test/dummy_mongoid/config/mongoid.yml
380
+ - test/dummy_mongoid/config/routes.rb
381
+ - test/dummy_mongoid/config.ru
382
+ - test/dummy_mongoid/db/migrate/20140526125222_create_monsters.rb
383
+ - test/dummy_mongoid/db/migrate/20140526125242_create_admin_monsters.rb
384
+ - test/dummy_mongoid/db/migrate/20140526144828_create_mno_monsters.rb
385
+ - test/dummy_mongoid/db/migrate/20140526151139_create_mno_crews.rb
386
+ - test/dummy_mongoid/db/schema.rb
387
+ - test/dummy_mongoid/log/test.log
388
+ - test/dummy_mongoid/public/404.html
389
+ - test/dummy_mongoid/public/422.html
390
+ - test/dummy_mongoid/public/500.html
391
+ - test/dummy_mongoid/public/favicon.ico
392
+ - test/dummy_mongoid/Rakefile
393
+ - test/dummy_mongoid/README.rdoc
394
+ - test/dummy_mongoid/script/rails
300
395
  - test/generators/group/active_record_generator_test.rb
301
396
  - test/generators/group/mongoid_generator_test.rb
302
397
  - test/generators/group_generator_test.rb