maestrano-rails 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/app/controllers/maestrano/rails/web_hook_controller.rb +15 -0
- data/lib/generators/maestrano/install_generator.rb +9 -8
- data/lib/generators/maestrano/templates/group_users_controller.rb +26 -0
- data/lib/generators/maestrano/templates/groups_controller.rb +36 -0
- data/lib/maestrano/rails.rb +1 -0
- data/lib/maestrano/rails/controllers/maestrano_security.rb +1 -1
- data/lib/maestrano/rails/routing/routes.rb +20 -0
- data/lib/maestrano/rails/version.rb +1 -1
- data/test/controllers/generic_controller_test.rb +6 -4
- data/test/controllers/group_users_controller_test.rb +23 -0
- data/test/controllers/groups_controller_test.rb +24 -0
- data/test/controllers/saml_controller_test.rb +19 -14
- data/test/dummy/app/controllers/maestrano/account_hook/group_users_controller.rb +27 -0
- data/test/dummy/app/controllers/maestrano/account_hook/groups_controller.rb +37 -0
- data/test/dummy/config/routes.rb +2 -9
- data/test/dummy/log/test.log +3449 -0
- data/test/generators/install_generator_test.rb +12 -3
- metadata +14 -2
@@ -14,15 +14,24 @@ class InstallGeneratorTest < Rails::Generators::TestCase
|
|
14
14
|
assert_file "config/initializers/maestrano.rb"
|
15
15
|
end
|
16
16
|
|
17
|
-
should "create the maestrano/auth/
|
17
|
+
should "create the maestrano/auth/saml_controller" do
|
18
18
|
run_generator
|
19
19
|
assert_file "app/controllers/maestrano/auth/saml_controller.rb"
|
20
20
|
end
|
21
21
|
|
22
|
+
should "create the maestrano/account_hook/groups_controller" do
|
23
|
+
run_generator
|
24
|
+
assert_file "app/controllers/maestrano/account_hook/groups_controller.rb"
|
25
|
+
end
|
26
|
+
|
27
|
+
should "create the maestrano/account_hook/group_users_controller" do
|
28
|
+
run_generator
|
29
|
+
assert_file "app/controllers/maestrano/account_hook/group_users_controller.rb"
|
30
|
+
end
|
31
|
+
|
22
32
|
should "create the maestrano routes" do
|
23
|
-
|
24
33
|
run_generator
|
25
|
-
match = /
|
34
|
+
match = /maestrano_routes/
|
26
35
|
assert_file "config/routes.rb", match
|
27
36
|
end
|
28
37
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: maestrano-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.5.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Arnaud Lachaume
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: "0.
|
34
|
+
version: "0.5"
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id002
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -89,12 +89,15 @@ extra_rdoc_files: []
|
|
89
89
|
|
90
90
|
files:
|
91
91
|
- app/controllers/maestrano/rails/saml_base_controller.rb
|
92
|
+
- app/controllers/maestrano/rails/web_hook_controller.rb
|
92
93
|
- lib/generators/active_record/maestrano_group_generator.rb
|
93
94
|
- lib/generators/active_record/maestrano_user_generator.rb
|
94
95
|
- lib/generators/active_record/templates/migration.rb
|
95
96
|
- lib/generators/maestrano/group_generator.rb
|
96
97
|
- lib/generators/maestrano/install_generator.rb
|
97
98
|
- lib/generators/maestrano/orm_helpers.rb
|
99
|
+
- lib/generators/maestrano/templates/group_users_controller.rb
|
100
|
+
- lib/generators/maestrano/templates/groups_controller.rb
|
98
101
|
- lib/generators/maestrano/templates/maestrano.rb
|
99
102
|
- lib/generators/maestrano/templates/saml_controller.rb
|
100
103
|
- lib/generators/maestrano/USAGE
|
@@ -103,6 +106,7 @@ files:
|
|
103
106
|
- lib/generators/mongoid/maestrano_user_generator.rb
|
104
107
|
- lib/maestrano/rails/controllers/maestrano_security.rb
|
105
108
|
- lib/maestrano/rails/models/maestrano_auth_resource.rb
|
109
|
+
- lib/maestrano/rails/routing/routes.rb
|
106
110
|
- lib/maestrano/rails/version.rb
|
107
111
|
- lib/maestrano/rails.rb
|
108
112
|
- lib/maestrano-rails.rb
|
@@ -110,12 +114,16 @@ files:
|
|
110
114
|
- Rakefile
|
111
115
|
- README.md
|
112
116
|
- test/controllers/generic_controller_test.rb
|
117
|
+
- test/controllers/group_users_controller_test.rb
|
118
|
+
- test/controllers/groups_controller_test.rb
|
113
119
|
- test/controllers/saml_controller_test.rb
|
114
120
|
- test/dummy/app/assets/javascripts/application.js
|
115
121
|
- test/dummy/app/assets/javascripts/pages.js
|
116
122
|
- test/dummy/app/assets/stylesheets/application.css
|
117
123
|
- test/dummy/app/assets/stylesheets/pages.css
|
118
124
|
- test/dummy/app/controllers/application_controller.rb
|
125
|
+
- test/dummy/app/controllers/maestrano/account_hook/group_users_controller.rb
|
126
|
+
- test/dummy/app/controllers/maestrano/account_hook/groups_controller.rb
|
119
127
|
- test/dummy/app/controllers/maestrano/auth/saml_controller.rb
|
120
128
|
- test/dummy/app/controllers/pages_controller.rb
|
121
129
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -212,12 +220,16 @@ specification_version: 3
|
|
212
220
|
summary: Rails plugin for Maestrano API
|
213
221
|
test_files:
|
214
222
|
- test/controllers/generic_controller_test.rb
|
223
|
+
- test/controllers/group_users_controller_test.rb
|
224
|
+
- test/controllers/groups_controller_test.rb
|
215
225
|
- test/controllers/saml_controller_test.rb
|
216
226
|
- test/dummy/app/assets/javascripts/application.js
|
217
227
|
- test/dummy/app/assets/javascripts/pages.js
|
218
228
|
- test/dummy/app/assets/stylesheets/application.css
|
219
229
|
- test/dummy/app/assets/stylesheets/pages.css
|
220
230
|
- test/dummy/app/controllers/application_controller.rb
|
231
|
+
- test/dummy/app/controllers/maestrano/account_hook/group_users_controller.rb
|
232
|
+
- test/dummy/app/controllers/maestrano/account_hook/groups_controller.rb
|
221
233
|
- test/dummy/app/controllers/maestrano/auth/saml_controller.rb
|
222
234
|
- test/dummy/app/controllers/pages_controller.rb
|
223
235
|
- test/dummy/app/helpers/application_helper.rb
|