maestrano-rails 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +20 -0
  3. data/Gemfile.lock +175 -0
  4. data/README.md +3 -1
  5. data/Rakefile +17 -7
  6. data/lib/generators/maestrano/templates/groups_controller.rb +1 -1
  7. data/maestrano-rails.gemspec +77 -0
  8. data/test/dummy_activerecord/app/controllers/maestrano/account/groups_controller.rb +1 -1
  9. data/test/dummy_activerecord/app/models/mno_crew.rb +0 -2
  10. data/test/dummy_activerecord/app/models/mno_monster.rb +0 -2
  11. data/test/dummy_activerecord/config/application.rb +1 -1
  12. data/test/dummy_activerecord/config/environments/development.rb +1 -1
  13. data/test/dummy_activerecord/config/environments/test.rb +1 -1
  14. data/test/dummy_activerecord/log/test.log +497 -0
  15. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  16. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/260526788a28cefa81bc600586be1311 +0 -0
  17. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  18. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  19. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/58e369b37e5157ea746a485eea17e9f7 +0 -0
  20. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/59fddb0a51ca581e6a53e9219cd298bf +0 -0
  21. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/7ae10239eda2588a95fdcc7d871bef52 +0 -0
  22. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/8d5d60255600aa010a32e1d1a9bc6db6 +0 -0
  23. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/a5b83efac01dc54c4751dd02b18fecf2 +0 -0
  24. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/b3d9b0e88cdded276ebdce333e338a85 +0 -0
  25. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/b6d2aa6ccdbfae33b9016a32418f5697 +0 -0
  26. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  27. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  28. data/test/dummy_activerecord/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  29. data/test/dummy_mongoid/app/controllers/maestrano/account/groups_controller.rb +1 -1
  30. data/test/tmp/app/models/monster.rb +2 -11
  31. data/test/tmp/db/migrate/20140731080123_add_maestrano_to_monsters.rb +15 -0
  32. metadata +66 -102
  33. data/lib/generators/maestrano/USAGE +0 -2
  34. data/lib/maestrano/rails/version.rb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f511d1e21af347f4e36d1513c0d986399302265e
4
- data.tar.gz: 9293541b7300ff75101c9158c6fea62e337ec169
3
+ metadata.gz: 208686d35190aa53e5b6eb0508a2000c9daa72ad
4
+ data.tar.gz: 48e7356e3e922073f024a255a745e955db5f5208
5
5
  SHA512:
6
- metadata.gz: c79f9801896b4cfd238e145844e83811ad74687544511d38d4cd7de7939ba97cc9fba5b440353cb4aaca90e807f357f82ad3e7be9d92601e63bf306e255f78a7
7
- data.tar.gz: 793419492d582c95662d7c2d6ce1a5b941c8bd9a7d121b341a32c65a6fa27384bcd6108ec021688ae85eaa5622bc563306349f2dd715a9d77cf4d69aa52ea403
6
+ metadata.gz: 45e0889f0f759b983759196b59e196c77bd88dbb166e1f30890b7ff2d1c6b032fc070035fbdd7e270fba208ccd6eda49c0855c90428d8c3f222ba3a13f73706e
7
+ data.tar.gz: e8e2648de7600f965dc0f5a28b8b67fbe4751c0a18a9bf877b3916cabcd07333be88f82636a74f18c729c897ca9a19dd153dba76454c401097594f3bbdee5745
data/Gemfile ADDED
@@ -0,0 +1,20 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'rails'
4
+ gem 'jquery-rails'
5
+ gem 'maestrano', '~> 0.9.0'
6
+
7
+ group :test do
8
+ gem 'test-unit'
9
+ gem 'mocha'
10
+ gem 'shoulda'
11
+
12
+ gem 'database_cleaner'
13
+ gem 'sqlite3'
14
+ gem 'mongoid'
15
+ gem 'bson_ext'
16
+ end
17
+
18
+ group :development do
19
+ gem 'jeweler'
20
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,175 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (4.1.4)
5
+ actionpack (= 4.1.4)
6
+ actionview (= 4.1.4)
7
+ mail (~> 2.5.4)
8
+ actionpack (4.1.4)
9
+ actionview (= 4.1.4)
10
+ activesupport (= 4.1.4)
11
+ rack (~> 1.5.2)
12
+ rack-test (~> 0.6.2)
13
+ actionview (4.1.4)
14
+ activesupport (= 4.1.4)
15
+ builder (~> 3.1)
16
+ erubis (~> 2.7.0)
17
+ activemodel (4.1.4)
18
+ activesupport (= 4.1.4)
19
+ builder (~> 3.1)
20
+ activerecord (4.1.4)
21
+ activemodel (= 4.1.4)
22
+ activesupport (= 4.1.4)
23
+ arel (~> 5.0.0)
24
+ activesupport (4.1.4)
25
+ i18n (~> 0.6, >= 0.6.9)
26
+ json (~> 1.7, >= 1.7.7)
27
+ minitest (~> 5.1)
28
+ thread_safe (~> 0.1)
29
+ tzinfo (~> 1.1)
30
+ addressable (2.3.6)
31
+ arel (5.0.1.20140414130214)
32
+ bson (1.10.2)
33
+ bson_ext (1.10.2)
34
+ bson (~> 1.10.2)
35
+ builder (3.2.2)
36
+ database_cleaner (1.3.0)
37
+ descendants_tracker (0.0.4)
38
+ thread_safe (~> 0.3, >= 0.3.1)
39
+ durran-validatable (2.0.1)
40
+ erubis (2.7.0)
41
+ faraday (0.9.0)
42
+ multipart-post (>= 1.2, < 3)
43
+ git (1.2.7)
44
+ github_api (0.12.0)
45
+ addressable (~> 2.3)
46
+ descendants_tracker (~> 0.0.4)
47
+ faraday (~> 0.8, < 0.10)
48
+ hashie (>= 3.2)
49
+ multi_json (>= 1.7.5, < 2.0)
50
+ nokogiri (~> 1.6.3)
51
+ oauth2
52
+ hashie (3.2.0)
53
+ highline (1.6.21)
54
+ hike (1.2.3)
55
+ i18n (0.6.11)
56
+ jeweler (2.0.1)
57
+ builder
58
+ bundler (>= 1.0)
59
+ git (>= 1.2.5)
60
+ github_api
61
+ highline (>= 1.6.15)
62
+ nokogiri (>= 1.5.10)
63
+ rake
64
+ rdoc
65
+ jquery-rails (3.1.1)
66
+ railties (>= 3.0, < 5.0)
67
+ thor (>= 0.14, < 2.0)
68
+ json (1.8.1)
69
+ jwt (1.0.0)
70
+ leshill-will_paginate (2.3.11)
71
+ macaddr (1.7.1)
72
+ systemu (~> 2.6.2)
73
+ maestrano (0.9.0)
74
+ json (~> 1.8)
75
+ mime-types (~> 1.25)
76
+ nokogiri (>= 1.5.0)
77
+ rest-client (~> 1.4)
78
+ uuid (~> 2.3)
79
+ mail (2.5.4)
80
+ mime-types (~> 1.16)
81
+ treetop (~> 1.4.8)
82
+ metaclass (0.0.4)
83
+ mime-types (1.25.1)
84
+ mini_portile (0.6.0)
85
+ minitest (5.4.0)
86
+ mocha (1.1.0)
87
+ metaclass (~> 0.0.1)
88
+ mongo (1.10.2)
89
+ bson (= 1.10.2)
90
+ mongoid (1.0.6)
91
+ activesupport (>= 2.2.2)
92
+ durran-validatable (>= 2.0.1)
93
+ leshill-will_paginate (>= 2.3.11)
94
+ mongo (>= 0.18.2)
95
+ multi_json (1.10.1)
96
+ multi_xml (0.5.5)
97
+ multipart-post (2.0.0)
98
+ netrc (0.7.7)
99
+ nokogiri (1.6.3.1)
100
+ mini_portile (= 0.6.0)
101
+ oauth2 (1.0.0)
102
+ faraday (>= 0.8, < 0.10)
103
+ jwt (~> 1.0)
104
+ multi_json (~> 1.3)
105
+ multi_xml (~> 0.5)
106
+ rack (~> 1.2)
107
+ polyglot (0.3.5)
108
+ rack (1.5.2)
109
+ rack-test (0.6.2)
110
+ rack (>= 1.0)
111
+ rails (4.1.4)
112
+ actionmailer (= 4.1.4)
113
+ actionpack (= 4.1.4)
114
+ actionview (= 4.1.4)
115
+ activemodel (= 4.1.4)
116
+ activerecord (= 4.1.4)
117
+ activesupport (= 4.1.4)
118
+ bundler (>= 1.3.0, < 2.0)
119
+ railties (= 4.1.4)
120
+ sprockets-rails (~> 2.0)
121
+ railties (4.1.4)
122
+ actionpack (= 4.1.4)
123
+ activesupport (= 4.1.4)
124
+ rake (>= 0.8.7)
125
+ thor (>= 0.18.1, < 2.0)
126
+ rake (10.3.2)
127
+ rdoc (4.1.1)
128
+ json (~> 1.4)
129
+ rest-client (1.7.2)
130
+ mime-types (>= 1.16, < 3.0)
131
+ netrc (~> 0.7)
132
+ shoulda (3.5.0)
133
+ shoulda-context (~> 1.0, >= 1.0.1)
134
+ shoulda-matchers (>= 1.4.1, < 3.0)
135
+ shoulda-context (1.2.1)
136
+ shoulda-matchers (2.6.2)
137
+ activesupport (>= 3.0.0)
138
+ sprockets (2.12.1)
139
+ hike (~> 1.2)
140
+ multi_json (~> 1.0)
141
+ rack (~> 1.0)
142
+ tilt (~> 1.1, != 1.3.0)
143
+ sprockets-rails (2.1.3)
144
+ actionpack (>= 3.0)
145
+ activesupport (>= 3.0)
146
+ sprockets (~> 2.8)
147
+ sqlite3 (1.3.9)
148
+ systemu (2.6.4)
149
+ test-unit (2.5.5)
150
+ thor (0.19.1)
151
+ thread_safe (0.3.4)
152
+ tilt (1.4.1)
153
+ treetop (1.4.15)
154
+ polyglot
155
+ polyglot (>= 0.3.1)
156
+ tzinfo (1.2.1)
157
+ thread_safe (~> 0.1)
158
+ uuid (2.3.7)
159
+ macaddr (~> 1.0)
160
+
161
+ PLATFORMS
162
+ ruby
163
+
164
+ DEPENDENCIES
165
+ bson_ext
166
+ database_cleaner
167
+ jeweler
168
+ jquery-rails
169
+ maestrano (~> 0.9.0)
170
+ mocha
171
+ mongoid
172
+ rails
173
+ shoulda
174
+ sqlite3
175
+ test-unit
data/README.md CHANGED
@@ -213,7 +213,7 @@ class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController
213
213
  end
214
214
 
215
215
  organization.destroy
216
- render json: {success: true}, status: :success
216
+ render json: {success: true}
217
217
  end
218
218
  end
219
219
  ```
@@ -250,6 +250,8 @@ class Maestrano::Account::GroupUsersController < Maestrano::Rails::WebHookContro
250
250
  organization.remove_user(user)
251
251
  user.block_access! if user.reload.organizations.empty?
252
252
  end
253
+
254
+ render json: {success: true}
253
255
  end
254
256
  end
255
257
  ```
data/Rakefile CHANGED
@@ -20,13 +20,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
21
21
  end
22
22
 
23
-
24
-
25
-
26
- Bundler::GemHelper.install_tasks
27
-
28
23
  require 'rake/testtask'
29
-
30
24
  Rake::TestTask.new(:test) do |t|
31
25
  t.libs << 'lib'
32
26
  t.libs << 'test'
@@ -34,5 +28,21 @@ Rake::TestTask.new(:test) do |t|
34
28
  t.verbose = false
35
29
  end
36
30
 
31
+ require 'jeweler'
32
+ Jeweler::Tasks.new do |gem|
33
+ gem.name = "maestrano-rails"
34
+ gem.homepage = "https://maestrano.com"
35
+ gem.license = "MIT"
36
+ gem.summary = "Rails plugin for Maestrano API"
37
+ gem.description = "Maestrano is the next generation marketplace for SME applications. See https://maestrano.com for details."
38
+
39
+ gem.email = ["arnaud.lachaume@maestrano.com"]
40
+ gem.authors = ["Arnaud Lachaume"]
41
+
42
+ gem.files = FileList['app/**/*.rb', 'lib/**/*.rb', 'Gemfile*', 'LICENSE', 'README.md', 'Rakefile', 'maestrano-rails.gemspec']
43
+ gem.test_files = FileList['test/**/*']
44
+ end
45
+ Jeweler::RubygemsDotOrgTasks.new
46
+
37
47
 
38
- task :default => :test
48
+ task :default => :test
@@ -30,7 +30,7 @@ class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController
30
30
  # end
31
31
  #
32
32
  # organization.destroy
33
- # render json: {success: true}, status: :success
33
+ # render json: {success: true}
34
34
  #
35
35
  end
36
36
  end
@@ -0,0 +1,77 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: maestrano-rails 0.9.4 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "maestrano-rails"
9
+ s.version = "0.9.4"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Arnaud Lachaume"]
14
+ s.date = "2014-08-04"
15
+ s.description = "Maestrano is the next generation marketplace for SME applications. See https://maestrano.com for details."
16
+ s.email = ["arnaud.lachaume@maestrano.com"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE",
25
+ "README.md",
26
+ "Rakefile",
27
+ "app/controllers/maestrano/rails/metadata_controller.rb",
28
+ "app/controllers/maestrano/rails/saml_base_controller.rb",
29
+ "app/controllers/maestrano/rails/web_hook_controller.rb",
30
+ "lib/generators/active_record/maestrano_group_generator.rb",
31
+ "lib/generators/active_record/maestrano_user_generator.rb",
32
+ "lib/generators/active_record/templates/migration.rb",
33
+ "lib/generators/maestrano/group_generator.rb",
34
+ "lib/generators/maestrano/install_generator.rb",
35
+ "lib/generators/maestrano/orm_helpers.rb",
36
+ "lib/generators/maestrano/templates/group_users_controller.rb",
37
+ "lib/generators/maestrano/templates/groups_controller.rb",
38
+ "lib/generators/maestrano/templates/maestrano.rb",
39
+ "lib/generators/maestrano/templates/saml_controller.rb",
40
+ "lib/generators/maestrano/user_generator.rb",
41
+ "lib/generators/mongoid/maestrano_group_generator.rb",
42
+ "lib/generators/mongoid/maestrano_user_generator.rb",
43
+ "lib/maestrano-rails.rb",
44
+ "lib/maestrano/rails.rb",
45
+ "lib/maestrano/rails/controllers/maestrano_security.rb",
46
+ "lib/maestrano/rails/models/maestrano_auth_resource.rb",
47
+ "lib/maestrano/rails/routing/routes.rb",
48
+ "maestrano-rails.gemspec"
49
+ ]
50
+ s.homepage = "https://maestrano.com"
51
+ s.licenses = ["MIT"]
52
+ s.rubygems_version = "2.2.2"
53
+ s.summary = "Rails plugin for Maestrano API"
54
+ s.test_files = ["test/controllers", "test/controllers/generic_controller_test.rb", "test/controllers/group_users_controller_test.rb", "test/controllers/groups_controller_test.rb", "test/controllers/metadata_controller_test.rb", "test/controllers/saml_controller_test.rb", "test/dummy", "test/dummy/app", "test/dummy/app/assets", "test/dummy/app/assets/images", "test/dummy/db", "test/dummy/db/development.sqlite3", "test/dummy/db/test.sqlite3", "test/dummy/log", "test/dummy/log/development.log", "test/dummy/log/test.log", "test/dummy/tmp", "test/dummy/tmp/cache", "test/dummy/tmp/cache/assets", "test/dummy_activerecord", "test/dummy_activerecord/README.rdoc", "test/dummy_activerecord/Rakefile", "test/dummy_activerecord/app", "test/dummy_activerecord/app/assets", "test/dummy_activerecord/app/assets/javascripts", "test/dummy_activerecord/app/assets/javascripts/application.js", "test/dummy_activerecord/app/assets/javascripts/pages.js", "test/dummy_activerecord/app/assets/stylesheets", "test/dummy_activerecord/app/assets/stylesheets/application.css", "test/dummy_activerecord/app/assets/stylesheets/pages.css", "test/dummy_activerecord/app/controllers", "test/dummy_activerecord/app/controllers/application_controller.rb", "test/dummy_activerecord/app/controllers/maestrano", "test/dummy_activerecord/app/controllers/maestrano/account", "test/dummy_activerecord/app/controllers/maestrano/account/group_users_controller.rb", "test/dummy_activerecord/app/controllers/maestrano/account/groups_controller.rb", "test/dummy_activerecord/app/controllers/maestrano/auth", "test/dummy_activerecord/app/controllers/maestrano/auth/saml_controller.rb", "test/dummy_activerecord/app/controllers/pages_controller.rb", "test/dummy_activerecord/app/helpers", "test/dummy_activerecord/app/helpers/application_helper.rb", "test/dummy_activerecord/app/helpers/pages_helper.rb", "test/dummy_activerecord/app/mailers", "test/dummy_activerecord/app/models", "test/dummy_activerecord/app/models/admin", "test/dummy_activerecord/app/models/admin.rb", "test/dummy_activerecord/app/models/admin/monster.rb", "test/dummy_activerecord/app/models/mno_crew.rb", "test/dummy_activerecord/app/models/mno_monster.rb", "test/dummy_activerecord/app/models/monster.rb", "test/dummy_activerecord/app/views", "test/dummy_activerecord/app/views/layouts", "test/dummy_activerecord/app/views/layouts/application.html.erb", "test/dummy_activerecord/app/views/pages", "test/dummy_activerecord/app/views/pages/home.html.erb", "test/dummy_activerecord/config", "test/dummy_activerecord/config.ru", "test/dummy_activerecord/config/application.rb", "test/dummy_activerecord/config/boot.rb", "test/dummy_activerecord/config/database.yml", "test/dummy_activerecord/config/environment.rb", "test/dummy_activerecord/config/environments", "test/dummy_activerecord/config/environments/development.rb", "test/dummy_activerecord/config/environments/production.rb", "test/dummy_activerecord/config/environments/test.rb", "test/dummy_activerecord/config/initializers", "test/dummy_activerecord/config/initializers/backtrace_silencers.rb", "test/dummy_activerecord/config/initializers/inflections.rb", "test/dummy_activerecord/config/initializers/maestrano.rb", "test/dummy_activerecord/config/initializers/mime_types.rb", "test/dummy_activerecord/config/initializers/secret_token.rb", "test/dummy_activerecord/config/initializers/session_store.rb", "test/dummy_activerecord/config/initializers/wrap_parameters.rb", "test/dummy_activerecord/config/locales", "test/dummy_activerecord/config/locales/en.yml", "test/dummy_activerecord/config/routes.rb", "test/dummy_activerecord/db", "test/dummy_activerecord/db/development.sqlite3", "test/dummy_activerecord/db/migrate", "test/dummy_activerecord/db/migrate/20140526125222_create_monsters.rb", "test/dummy_activerecord/db/migrate/20140526125242_create_admin_monsters.rb", "test/dummy_activerecord/db/migrate/20140526144828_create_mno_monsters.rb", "test/dummy_activerecord/db/migrate/20140526151139_create_mno_crews.rb", "test/dummy_activerecord/db/schema.rb", "test/dummy_activerecord/db/test.sqlite3", "test/dummy_activerecord/lib", "test/dummy_activerecord/lib/assets", "test/dummy_activerecord/log", "test/dummy_activerecord/log/development.log", "test/dummy_activerecord/log/test.log", "test/dummy_activerecord/public", "test/dummy_activerecord/public/404.html", "test/dummy_activerecord/public/422.html", "test/dummy_activerecord/public/500.html", "test/dummy_activerecord/public/favicon.ico", "test/dummy_activerecord/script", "test/dummy_activerecord/script/rails", "test/dummy_activerecord/tmp", "test/dummy_activerecord/tmp/cache", "test/dummy_activerecord/tmp/cache/assets", "test/dummy_activerecord/tmp/cache/assets/test", "test/dummy_activerecord/tmp/cache/assets/test/sprockets", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/260526788a28cefa81bc600586be1311", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/58e369b37e5157ea746a485eea17e9f7", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/59fddb0a51ca581e6a53e9219cd298bf", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/7ae10239eda2588a95fdcc7d871bef52", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/8d5d60255600aa010a32e1d1a9bc6db6", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/a5b83efac01dc54c4751dd02b18fecf2", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/b3d9b0e88cdded276ebdce333e338a85", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/b6d2aa6ccdbfae33b9016a32418f5697", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6", "test/dummy_activerecord/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655", "test/dummy_mongoid", "test/dummy_mongoid/README.rdoc", "test/dummy_mongoid/Rakefile", "test/dummy_mongoid/app", "test/dummy_mongoid/app/assets", "test/dummy_mongoid/app/assets/javascripts", "test/dummy_mongoid/app/assets/javascripts/application.js", "test/dummy_mongoid/app/assets/javascripts/pages.js", "test/dummy_mongoid/app/assets/stylesheets", "test/dummy_mongoid/app/assets/stylesheets/application.css", "test/dummy_mongoid/app/assets/stylesheets/pages.css", "test/dummy_mongoid/app/controllers", "test/dummy_mongoid/app/controllers/application_controller.rb", "test/dummy_mongoid/app/controllers/maestrano", "test/dummy_mongoid/app/controllers/maestrano/account", "test/dummy_mongoid/app/controllers/maestrano/account/group_users_controller.rb", "test/dummy_mongoid/app/controllers/maestrano/account/groups_controller.rb", "test/dummy_mongoid/app/controllers/maestrano/auth", "test/dummy_mongoid/app/controllers/maestrano/auth/saml_controller.rb", "test/dummy_mongoid/app/controllers/pages_controller.rb", "test/dummy_mongoid/app/helpers", "test/dummy_mongoid/app/helpers/application_helper.rb", "test/dummy_mongoid/app/helpers/pages_helper.rb", "test/dummy_mongoid/app/mailers", "test/dummy_mongoid/app/models", "test/dummy_mongoid/app/models/mno_crew.rb", "test/dummy_mongoid/app/models/mno_monster.rb", "test/dummy_mongoid/app/models/monster.rb", "test/dummy_mongoid/app/views", "test/dummy_mongoid/app/views/layouts", "test/dummy_mongoid/app/views/layouts/application.html.erb", "test/dummy_mongoid/app/views/pages", "test/dummy_mongoid/app/views/pages/home.html.erb", "test/dummy_mongoid/config", "test/dummy_mongoid/config.ru", "test/dummy_mongoid/config/application.rb", "test/dummy_mongoid/config/boot.rb", "test/dummy_mongoid/config/environment.rb", "test/dummy_mongoid/config/environments", "test/dummy_mongoid/config/environments/development.rb", "test/dummy_mongoid/config/environments/production.rb", "test/dummy_mongoid/config/environments/test.rb", "test/dummy_mongoid/config/initializers", "test/dummy_mongoid/config/initializers/backtrace_silencers.rb", "test/dummy_mongoid/config/initializers/inflections.rb", "test/dummy_mongoid/config/initializers/maestrano.rb", "test/dummy_mongoid/config/initializers/mime_types.rb", "test/dummy_mongoid/config/initializers/secret_token.rb", "test/dummy_mongoid/config/initializers/session_store.rb", "test/dummy_mongoid/config/initializers/wrap_parameters.rb", "test/dummy_mongoid/config/locales", "test/dummy_mongoid/config/locales/en.yml", "test/dummy_mongoid/config/mongoid.yml", "test/dummy_mongoid/config/routes.rb", "test/dummy_mongoid/db", "test/dummy_mongoid/db/migrate", "test/dummy_mongoid/db/migrate/20140526125222_create_monsters.rb", "test/dummy_mongoid/db/migrate/20140526125242_create_admin_monsters.rb", "test/dummy_mongoid/db/migrate/20140526144828_create_mno_monsters.rb", "test/dummy_mongoid/db/migrate/20140526151139_create_mno_crews.rb", "test/dummy_mongoid/db/schema.rb", "test/dummy_mongoid/lib", "test/dummy_mongoid/lib/assets", "test/dummy_mongoid/log", "test/dummy_mongoid/log/test.log", "test/dummy_mongoid/public", "test/dummy_mongoid/public/404.html", "test/dummy_mongoid/public/422.html", "test/dummy_mongoid/public/500.html", "test/dummy_mongoid/public/favicon.ico", "test/dummy_mongoid/script", "test/dummy_mongoid/script/rails", "test/generators", "test/generators/group", "test/generators/group/active_record_generator_test.rb", "test/generators/group/mongoid_generator_test.rb", "test/generators/group_generator_test.rb", "test/generators/install_generator_test.rb", "test/generators/user", "test/generators/user/active_record_generator_test.rb", "test/generators/user/mongoid_generator_test.rb", "test/generators/user_generator_test.rb", "test/maestrano-rails_test.rb", "test/models", "test/models/maestrano_group_via_test.rb", "test/models/maestrano_user_via_test.rb", "test/test_files", "test/test_files/config", "test/test_files/config/routes.rb", "test/test_helper.rb", "test/tmp", "test/tmp/app", "test/tmp/app/models", "test/tmp/app/models/monster.rb", "test/tmp/db", "test/tmp/db/migrate", "test/tmp/db/migrate/20140731080123_add_maestrano_to_monsters.rb"]
55
+
56
+ if s.respond_to? :specification_version then
57
+ s.specification_version = 4
58
+
59
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
+ s.add_runtime_dependency(%q<rails>, [">= 0"])
61
+ s.add_runtime_dependency(%q<jquery-rails>, [">= 0"])
62
+ s.add_runtime_dependency(%q<maestrano>, ["~> 0.9.0"])
63
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
64
+ else
65
+ s.add_dependency(%q<rails>, [">= 0"])
66
+ s.add_dependency(%q<jquery-rails>, [">= 0"])
67
+ s.add_dependency(%q<maestrano>, ["~> 0.9.0"])
68
+ s.add_dependency(%q<jeweler>, [">= 0"])
69
+ end
70
+ else
71
+ s.add_dependency(%q<rails>, [">= 0"])
72
+ s.add_dependency(%q<jquery-rails>, [">= 0"])
73
+ s.add_dependency(%q<maestrano>, ["~> 0.9.0"])
74
+ s.add_dependency(%q<jeweler>, [">= 0"])
75
+ end
76
+ end
77
+
@@ -31,7 +31,7 @@ class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController
31
31
  # end
32
32
  #
33
33
  # organization.destroy
34
- # render json: {success: true}, status: :success
34
+ # render json: {success: true}
35
35
  #
36
36
  end
37
37
  end
@@ -2,6 +2,4 @@ class MnoCrew < ActiveRecord::Base
2
2
  maestrano_group_via :provider, :uid do |group,maestrano|
3
3
  group.name = maestrano.company_name || "Your Group"
4
4
  end
5
-
6
- attr_accessible :name,:provider, :uid
7
5
  end
@@ -4,6 +4,4 @@ class MnoMonster < ActiveRecord::Base
4
4
  user.last_name = maestrano.last_name
5
5
  user.email = maestrano.email
6
6
  end
7
-
8
- attr_accessible :email, :first_name, :last_name, :provider, :uid
9
7
  end
@@ -44,7 +44,7 @@ module Dummy
44
44
  # This will create an empty whitelist of attributes available for mass-assignment for all models
45
45
  # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
46
46
  # parameters by using an attr_accessible or attr_protected declaration.
47
- config.active_record.whitelist_attributes = true
47
+ # config.active_record.whitelist_attributes = true
48
48
 
49
49
  # Enable the asset pipeline
50
50
  config.assets.enabled = true
@@ -23,7 +23,7 @@ Dummy::Application.configure do
23
23
  config.action_dispatch.best_standards_support = :builtin
24
24
 
25
25
  # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
26
+ # config.active_record.mass_assignment_sanitizer = :strict
27
27
 
28
28
  # Log the query plan for queries taking more than this (works
29
29
  # with SQLite, MySQL, and PostgreSQL)
@@ -30,7 +30,7 @@ Dummy::Application.configure do
30
30
  config.action_mailer.delivery_method = :test
31
31
 
32
32
  # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
33
+ # config.active_record.mass_assignment_sanitizer = :strict
34
34
 
35
35
  # Print deprecation notices to the stderr
36
36
  config.active_support.deprecation = :stderr
@@ -650,3 +650,500 @@ Completed 302 Found in 0.1ms (ActiveRecord: 0.0ms)
650
650
   (0.0ms) commit transaction
651
651
   (0.0ms) begin transaction
652
652
   (0.0ms) rollback transaction
653
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
654
+ ---------------------------------------------------------------------------------------------------------------------
655
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
656
+ ---------------------------------------------------------------------------------------------------------------------
657
+  (0.1ms) begin transaction
658
+  (0.0ms) commit transaction
659
+  (0.0ms) begin transaction
660
+ Processing by PagesController#home as HTML
661
+ Rendered pages/home.html.erb within layouts/application (0.4ms)
662
+ Completed 200 OK in 26ms (Views: 26.2ms | ActiveRecord: 0.0ms)
663
+  (0.1ms) rollback transaction
664
+ --------------------------------------------------------------------------------------------------------------------
665
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
666
+ --------------------------------------------------------------------------------------------------------------------
667
+  (0.0ms) begin transaction
668
+  (0.0ms) commit transaction
669
+  (0.0ms) begin transaction
670
+ Processing by PagesController#home as HTML
671
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
672
+ Filter chain halted as :verify_maestrano_session rendered or redirected
673
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
674
+  (0.1ms) rollback transaction
675
+ -----------------------------------------------------------------------------------------------------------
676
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
677
+ -----------------------------------------------------------------------------------------------------------
678
+  (0.1ms) begin transaction
679
+  (0.0ms) commit transaction
680
+  (0.1ms) begin transaction
681
+ Processing by PagesController#home as HTML
682
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
683
+  (0.0ms) rollback transaction
684
+ ------------------------------------------------------------------------------
685
+ GenericControllerTest: test_: with no maestrano session should be successful.
686
+ ------------------------------------------------------------------------------
687
+  (0.0ms) begin transaction
688
+  (0.1ms) commit transaction
689
+  (0.1ms) begin transaction
690
+ Processing by PagesController#home as HTML
691
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
692
+  (0.0ms) rollback transaction
693
+ --------------------------------------------------------------------------------------------------------------------------------------
694
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
695
+ --------------------------------------------------------------------------------------------------------------------------------------
696
+  (0.0ms) begin transaction
697
+  (0.0ms) commit transaction
698
+  (0.0ms) begin transaction
699
+ MnoMonster Load (0.4ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' ORDER BY "mno_monsters"."id" ASC LIMIT 1
700
+  (0.1ms) SAVEPOINT active_record_1
701
+ SQL (0.6ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.181641"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["uid", "usr-2"], ["updated_at", "2014-07-31 08:01:23.181641"]]
702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
703
+  (0.3ms) rollback transaction
704
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
705
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
706
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
707
+  (0.0ms) begin transaction
708
+  (0.0ms) commit transaction
709
+  (0.0ms) begin transaction
710
+  (0.0ms) SAVEPOINT active_record_1
711
+ SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.186468"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2014-07-31 08:01:23.186468"]]
712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
713
+ MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' ORDER BY "mno_monsters"."id" ASC LIMIT 1
714
+  (0.0ms) SAVEPOINT active_record_1
715
+ SQL (0.6ms) INSERT INTO "mno_monsters" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.187899"], ["provider", "maestrano"], ["uid", "usr-1"], ["updated_at", "2014-07-31 08:01:23.187899"]]
716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
717
+  (0.2ms) rollback transaction
718
+ --------------------------------------------------------------------------------------------------------------------------------
719
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
720
+ --------------------------------------------------------------------------------------------------------------------------------
721
+  (0.0ms) begin transaction
722
+  (0.0ms) commit transaction
723
+  (0.0ms) begin transaction
724
+  (0.0ms) SAVEPOINT active_record_1
725
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.190045"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["uid", "usr-1"], ["updated_at", "2014-07-31 08:01:23.190045"]]
726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
727
+ MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' ORDER BY "mno_monsters"."id" ASC LIMIT 1
728
+  (0.2ms) rollback transaction
729
+ ---------------------------------------------------------------------------------------------------
730
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
731
+ ---------------------------------------------------------------------------------------------------
732
+  (0.0ms) begin transaction
733
+  (0.0ms) commit transaction
734
+  (0.0ms) begin transaction
735
+  (0.0ms) rollback transaction
736
+ ------------------------------------------------------------------------------------------------------------
737
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
738
+ ------------------------------------------------------------------------------------------------------------
739
+  (0.0ms) begin transaction
740
+  (0.0ms) commit transaction
741
+  (0.0ms) begin transaction
742
+  (0.0ms) rollback transaction
743
+ ----------------------------------------------------------------------------------------------
744
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
745
+ ----------------------------------------------------------------------------------------------
746
+  (0.0ms) begin transaction
747
+  (0.0ms) commit transaction
748
+  (0.0ms) begin transaction
749
+  (0.0ms) rollback transaction
750
+ -----------------------------------------------------------------------------------------------------------------------
751
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
752
+ -----------------------------------------------------------------------------------------------------------------------
753
+  (0.0ms) begin transaction
754
+  (0.0ms) commit transaction
755
+  (0.0ms) begin transaction
756
+  (0.0ms) rollback transaction
757
+ ------------------------------
758
+ MaestranoRailsTest: test_truth
759
+ ------------------------------
760
+  (0.0ms) begin transaction
761
+  (0.0ms) commit transaction
762
+  (0.0ms) begin transaction
763
+  (0.0ms) rollback transaction
764
+ ---------------------------------------------------------------------------------------
765
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
766
+ ---------------------------------------------------------------------------------------
767
+  (0.0ms) begin transaction
768
+  (0.0ms) commit transaction
769
+  (0.0ms) begin transaction
770
+  (0.1ms) rollback transaction
771
+ ----------------------------------------------------------------------------------
772
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
773
+ ----------------------------------------------------------------------------------
774
+  (0.0ms) begin transaction
775
+  (0.4ms) commit transaction
776
+  (0.0ms) begin transaction
777
+  (0.1ms) rollback transaction
778
+ ----------------------------------------------------------------------------------------------------------
779
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
780
+ ----------------------------------------------------------------------------------------------------------
781
+  (0.0ms) begin transaction
782
+  (0.0ms) commit transaction
783
+  (0.0ms) begin transaction
784
+  (0.0ms) rollback transaction
785
+ -----------------------------------------------------------------------------------------------------
786
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
787
+ -----------------------------------------------------------------------------------------------------
788
+  (0.1ms) begin transaction
789
+  (0.0ms) commit transaction
790
+  (0.0ms) begin transaction
791
+  (0.1ms) rollback transaction
792
+ ------------------------------------------------------------------------------------------------
793
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
794
+ ------------------------------------------------------------------------------------------------
795
+  (0.1ms) begin transaction
796
+  (0.0ms) commit transaction
797
+  (0.0ms) begin transaction
798
+  (0.1ms) rollback transaction
799
+ ----------------------------------------------------------------------------------------------
800
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
801
+ ----------------------------------------------------------------------------------------------
802
+  (0.1ms) begin transaction
803
+  (0.0ms) commit transaction
804
+  (0.0ms) begin transaction
805
+ Processing by Maestrano::Auth::SamlController#consume as HTML
806
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
807
+ Bla
808
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
809
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
810
+  (0.0ms) rollback transaction
811
+ --------------------------------------------------------------------------------------------------------------------
812
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
813
+ --------------------------------------------------------------------------------------------------------------------
814
+  (0.0ms) begin transaction
815
+  (0.0ms) commit transaction
816
+  (0.0ms) begin transaction
817
+ Processing by Maestrano::Auth::SamlController#consume as HTML
818
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
819
+ Redirected to http://test.host/
820
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
821
+  (0.0ms) rollback transaction
822
+ ---------------------------------------------------------------------------------
823
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
824
+ ---------------------------------------------------------------------------------
825
+  (0.0ms) begin transaction
826
+  (0.0ms) commit transaction
827
+  (0.0ms) begin transaction
828
+ Processing by Maestrano::Auth::SamlController#consume as HTML
829
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
830
+ Redirected to http://test.host/
831
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
832
+  (0.0ms) rollback transaction
833
+ --------------------------------------------------------------------------------------
834
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
835
+ --------------------------------------------------------------------------------------
836
+  (0.0ms) begin transaction
837
+  (0.0ms) commit transaction
838
+  (0.0ms) begin transaction
839
+ Processing by Maestrano::Auth::SamlController#consume as HTML
840
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
841
+ Redirected to http://test.host/
842
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
843
+  (0.0ms) rollback transaction
844
+ -------------------------------------------------------------------------------
845
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
846
+ -------------------------------------------------------------------------------
847
+  (0.0ms) begin transaction
848
+  (0.0ms) commit transaction
849
+  (0.0ms) begin transaction
850
+ Processing by Maestrano::Auth::SamlController#consume as HTML
851
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
852
+ Redirected to http://test.host/
853
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
854
+  (0.0ms) rollback transaction
855
+ -------------------------------------------------------------------------------------
856
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
857
+ -------------------------------------------------------------------------------------
858
+  (0.1ms) begin transaction
859
+  (0.0ms) commit transaction
860
+  (0.0ms) begin transaction
861
+ Processing by Maestrano::Auth::SamlController#consume as HTML
862
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
863
+ Redirected to http://test.host/
864
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
865
+  (0.0ms) rollback transaction
866
+ ------------------------------------------------------------------------------------------
867
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
868
+ ------------------------------------------------------------------------------------------
869
+  (0.1ms) begin transaction
870
+  (0.0ms) commit transaction
871
+  (0.0ms) begin transaction
872
+ Processing by Maestrano::Auth::SamlController#consume as HTML
873
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
874
+ Redirected to http://test.host/
875
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
876
+  (0.0ms) rollback transaction
877
+ ---------------------------------------------------------------------------------------------------------------------------
878
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
879
+ ---------------------------------------------------------------------------------------------------------------------------
880
+  (0.0ms) begin transaction
881
+  (0.0ms) commit transaction
882
+  (0.0ms) begin transaction
883
+ Processing by Maestrano::Auth::SamlController#init as HTML
884
+ Parameters: {"a_param"=>"value"}
885
+ Redirected to http://idpprovider.com?r=request
886
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
887
+  (0.0ms) rollback transaction
888
+ -----------------------------------------------------------------------------------------------------------------------
889
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
890
+ -----------------------------------------------------------------------------------------------------------------------
891
+  (0.0ms) begin transaction
892
+  (0.0ms) commit transaction
893
+  (0.0ms) begin transaction
894
+ Processing by Maestrano::Auth::SamlController#init as HTML
895
+ Parameters: {"a_param"=>"value"}
896
+ Redirected to http://idpprovider.com?r=request
897
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
898
+  (0.0ms) rollback transaction
899
+ -----------------------------------------------------------------
900
+ GroupsControllerTest: test_: authenticated should be successful.
901
+ -----------------------------------------------------------------
902
+  (0.0ms) begin transaction
903
+  (0.0ms) commit transaction
904
+  (0.0ms) begin transaction
905
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
906
+ Parameters: {"id"=>"cld-1"}
907
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
908
+  (0.0ms) rollback transaction
909
+ -----------------------------------------------------------------
910
+ GroupsControllerTest: test_: unauthenticated should deny access.
911
+ -----------------------------------------------------------------
912
+  (0.0ms) begin transaction
913
+  (0.0ms) commit transaction
914
+  (0.0ms) begin transaction
915
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
916
+ Parameters: {"id"=>"cld-1"}
917
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
918
+ Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
919
+  (0.1ms) rollback transaction
920
+ --------------------------------------------------------------------------------------------------------
921
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
922
+ --------------------------------------------------------------------------------------------------------
923
+  (0.0ms) begin transaction
924
+  (0.0ms) commit transaction
925
+  (0.0ms) begin transaction
926
+  (0.0ms) rollback transaction
927
+ --------------------------------------------------------------------------------------------------
928
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
929
+ --------------------------------------------------------------------------------------------------
930
+  (0.0ms) begin transaction
931
+  (0.0ms) commit transaction
932
+  (0.0ms) begin transaction
933
+  (0.0ms) rollback transaction
934
+ -------------------------------------------------------------------
935
+ MetadataControllerTest: test_: authenticated should be successful.
936
+ -------------------------------------------------------------------
937
+  (0.1ms) begin transaction
938
+  (0.0ms) commit transaction
939
+  (0.0ms) begin transaction
940
+ Processing by Maestrano::Rails::MetadataController#index as HTML
941
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
942
+  (0.0ms) rollback transaction
943
+ -------------------------------------------------------------------
944
+ MetadataControllerTest: test_: unauthenticated should deny access.
945
+ -------------------------------------------------------------------
946
+  (0.0ms) begin transaction
947
+  (0.0ms) commit transaction
948
+  (0.0ms) begin transaction
949
+ Processing by Maestrano::Rails::MetadataController#index as HTML
950
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
951
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
952
+  (0.1ms) rollback transaction
953
+ ---------------------------------------------------------------------------------------------------------------------------------------
954
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
955
+ ---------------------------------------------------------------------------------------------------------------------------------------
956
+  (0.0ms) begin transaction
957
+  (0.0ms) commit transaction
958
+  (0.0ms) begin transaction
959
+ MnoCrew Load (0.3ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' ORDER BY "mno_crews"."id" ASC LIMIT 1
960
+  (0.0ms) SAVEPOINT active_record_1
961
+ SQL (0.3ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.328273"], ["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["updated_at", "2014-07-31 08:01:23.328273"]]
962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
963
+  (0.3ms) rollback transaction
964
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
965
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
966
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
967
+  (0.0ms) begin transaction
968
+  (0.0ms) commit transaction
969
+  (0.0ms) begin transaction
970
+  (0.0ms) SAVEPOINT active_record_1
971
+ SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.330662"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2014-07-31 08:01:23.330662"]]
972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
973
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' ORDER BY "mno_crews"."id" ASC LIMIT 1
974
+  (0.0ms) SAVEPOINT active_record_1
975
+ SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.331956"], ["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["updated_at", "2014-07-31 08:01:23.331956"]]
976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
977
+  (0.3ms) rollback transaction
978
+ ------------------------------------------------------------------------------------------------------------------------------
979
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
980
+ ------------------------------------------------------------------------------------------------------------------------------
981
+  (0.0ms) begin transaction
982
+  (0.0ms) commit transaction
983
+  (0.0ms) begin transaction
984
+  (0.0ms) SAVEPOINT active_record_1
985
+ SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-07-31 08:01:23.333704"], ["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["updated_at", "2014-07-31 08:01:23.333704"]]
986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
987
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' ORDER BY "mno_crews"."id" ASC LIMIT 1
988
+  (0.3ms) rollback transaction
989
+ ----------------------------------------------------------------------------------------------------
990
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
991
+ ----------------------------------------------------------------------------------------------------
992
+  (0.0ms) begin transaction
993
+  (0.0ms) commit transaction
994
+  (0.0ms) begin transaction
995
+  (0.0ms) rollback transaction
996
+ -------------------------------------------------------------------------------------------------------------
997
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
998
+ -------------------------------------------------------------------------------------------------------------
999
+  (0.0ms) begin transaction
1000
+  (0.0ms) commit transaction
1001
+  (0.0ms) begin transaction
1002
+  (0.0ms) rollback transaction
1003
+ -----------------------------------------------------------------------------------------------
1004
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
1005
+ -----------------------------------------------------------------------------------------------
1006
+  (0.0ms) begin transaction
1007
+  (0.0ms) commit transaction
1008
+  (0.0ms) begin transaction
1009
+  (0.0ms) rollback transaction
1010
+ ------------------------------------------------------------------------------------------------------------------------
1011
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
1012
+ ------------------------------------------------------------------------------------------------------------------------
1013
+  (0.0ms) begin transaction
1014
+  (0.0ms) commit transaction
1015
+  (0.0ms) begin transaction
1016
+  (0.0ms) rollback transaction
1017
+ ---------------------------------------------------------------------
1018
+ GroupUsersControllerTest: test_: authenticated should be successful.
1019
+ ---------------------------------------------------------------------
1020
+  (0.0ms) begin transaction
1021
+  (0.0ms) commit transaction
1022
+  (0.0ms) begin transaction
1023
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
1024
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
1025
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1026
+  (0.0ms) rollback transaction
1027
+ ---------------------------------------------------------------------
1028
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
1029
+ ---------------------------------------------------------------------
1030
+  (0.0ms) begin transaction
1031
+  (0.0ms) commit transaction
1032
+  (0.0ms) begin transaction
1033
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
1034
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
1035
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
1036
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1037
+  (0.0ms) rollback transaction
1038
+ -------------------------------------------------------------------------------------------
1039
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
1040
+ -------------------------------------------------------------------------------------------
1041
+  (0.0ms) begin transaction
1042
+  (0.0ms) commit transaction
1043
+  (0.0ms) begin transaction
1044
+  (0.0ms) rollback transaction
1045
+ ---------------------------------------------------------------------------------------
1046
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
1047
+ ---------------------------------------------------------------------------------------
1048
+  (0.1ms) begin transaction
1049
+  (0.0ms) commit transaction
1050
+  (0.0ms) begin transaction
1051
+  (0.0ms) rollback transaction
1052
+ ---------------------------------------------------------------------------------------
1053
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
1054
+ ---------------------------------------------------------------------------------------
1055
+  (0.0ms) begin transaction
1056
+  (0.0ms) commit transaction
1057
+  (0.0ms) begin transaction
1058
+  (0.0ms) rollback transaction
1059
+ -----------------------------------------------------------------------------------
1060
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
1061
+ -----------------------------------------------------------------------------------
1062
+  (0.0ms) begin transaction
1063
+  (0.0ms) commit transaction
1064
+  (0.0ms) begin transaction
1065
+  (0.0ms) rollback transaction
1066
+ ---------------------------------------------------------------------------------------------------------------------------
1067
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
1068
+ ---------------------------------------------------------------------------------------------------------------------------
1069
+  (0.0ms) begin transaction
1070
+  (0.0ms) commit transaction
1071
+  (0.0ms) begin transaction
1072
+  (0.1ms) rollback transaction
1073
+ ---------------------------------------------------------------------------------------------------------------------------
1074
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
1075
+ ---------------------------------------------------------------------------------------------------------------------------
1076
+  (0.1ms) begin transaction
1077
+  (0.0ms) commit transaction
1078
+  (0.0ms) begin transaction
1079
+  (0.1ms) rollback transaction
1080
+ ----------------------------------------------------------------------------------------------
1081
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
1082
+ ----------------------------------------------------------------------------------------------
1083
+  (0.0ms) begin transaction
1084
+  (0.1ms) commit transaction
1085
+  (0.0ms) begin transaction
1086
+  (0.1ms) rollback transaction
1087
+ ----------------------------------------------------------------------------------------------------------
1088
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
1089
+ ----------------------------------------------------------------------------------------------------------
1090
+  (0.0ms) begin transaction
1091
+  (0.0ms) commit transaction
1092
+  (0.0ms) begin transaction
1093
+  (0.0ms) rollback transaction
1094
+ ----------------------------------------------------------------------------------------------------
1095
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
1096
+ ----------------------------------------------------------------------------------------------------
1097
+  (0.0ms) begin transaction
1098
+  (0.0ms) commit transaction
1099
+  (0.0ms) begin transaction
1100
+  (0.1ms) rollback transaction
1101
+ ------------------------------------------------------------------------------------------
1102
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
1103
+ ------------------------------------------------------------------------------------------
1104
+  (0.0ms) begin transaction
1105
+  (0.0ms) commit transaction
1106
+  (0.0ms) begin transaction
1107
+  (0.0ms) rollback transaction
1108
+ --------------------------------------------------------------------------------------
1109
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
1110
+ --------------------------------------------------------------------------------------
1111
+  (0.0ms) begin transaction
1112
+  (0.0ms) commit transaction
1113
+  (0.0ms) begin transaction
1114
+  (0.0ms) rollback transaction
1115
+ --------------------------------------------------------------------------------------
1116
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
1117
+ --------------------------------------------------------------------------------------
1118
+  (0.0ms) begin transaction
1119
+  (0.0ms) commit transaction
1120
+  (0.0ms) begin transaction
1121
+  (0.1ms) rollback transaction
1122
+ ----------------------------------------------------------------------------------
1123
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
1124
+ ----------------------------------------------------------------------------------
1125
+  (0.0ms) begin transaction
1126
+  (0.0ms) commit transaction
1127
+  (0.0ms) begin transaction
1128
+  (0.0ms) rollback transaction
1129
+ --------------------------------------------------------------------------------------------------------------------------
1130
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
1131
+ --------------------------------------------------------------------------------------------------------------------------
1132
+  (0.0ms) begin transaction
1133
+  (0.0ms) commit transaction
1134
+  (0.0ms) begin transaction
1135
+  (0.0ms) rollback transaction
1136
+ --------------------------------------------------------------------------------------------------------------------------
1137
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
1138
+ --------------------------------------------------------------------------------------------------------------------------
1139
+  (0.0ms) begin transaction
1140
+  (0.0ms) commit transaction
1141
+  (0.0ms) begin transaction
1142
+  (0.0ms) rollback transaction
1143
+ ---------------------------------------------------------------------------------------------
1144
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
1145
+ ---------------------------------------------------------------------------------------------
1146
+  (0.0ms) begin transaction
1147
+  (0.0ms) commit transaction
1148
+  (0.0ms) begin transaction
1149
+  (0.0ms) rollback transaction