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
@@ -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
@@ -1,5 +1,4 @@
1
- class Monster
2
- include Mongoid::Document
1
+ class Monster < ActiveRecord::Base
3
2
  # Enable Maestrano for this user
4
3
  maestrano_user_via :provider, :uid do |user,maestrano|
5
4
  user.name = maestrano.first_name
@@ -9,12 +8,4 @@ include Mongoid::Document
9
8
  #user.country_alpha2 = maestrano.country
10
9
  #user.some_required_field = 'some-appropriate-default-value'
11
10
  end
12
-
13
- # Setup protected attributes for your model
14
- attr_protected :provider, :uid
15
-
16
- ## User source identification fields
17
- field :provider, type: String, default: ""
18
- field :uid, type: String, default: ""
19
-
20
- end
11
+ end
@@ -0,0 +1,15 @@
1
+ class AddMaestranoToMonsters < ActiveRecord::Migration
2
+ def self.up
3
+ change_table(:monsters) do |t|
4
+ ## User source identification fields
5
+ t.string :provider
6
+ t.string :uid
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ # By default, we don't want to make any assumption about how to roll back this migration.
12
+ # Please edit below which fields you would like to remove in this migration.
13
+ raise ActiveRecord::IrreversibleMigration
14
+ end
15
+ end
metadata CHANGED
@@ -1,139 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-23 00:00:00.000000000 Z
11
+ date: 2014-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: 3.2.3
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- 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.8.2
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: 0.8.2
41
- - !ruby/object:Gem::Dependency
42
- name: test-unit
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '2'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
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'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '0.13'
69
- - !ruby/object:Gem::Dependency
70
- name: shoulda
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ~>
74
- - !ruby/object:Gem::Version
75
- version: '2.11'
76
- type: :development
77
- 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
84
- name: database_cleaner
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ! '>='
17
+ - - ">="
88
18
  - !ruby/object:Gem::Version
89
19
  version: '0'
90
- type: :development
20
+ type: :runtime
91
21
  prerelease: false
92
22
  version_requirements: !ruby/object:Gem::Requirement
93
23
  requirements:
94
- - - ! '>='
24
+ - - ">="
95
25
  - !ruby/object:Gem::Version
96
26
  version: '0'
97
27
  - !ruby/object:Gem::Dependency
98
- name: sqlite3
28
+ name: jquery-rails
99
29
  requirement: !ruby/object:Gem::Requirement
100
30
  requirements:
101
- - - ! '>='
31
+ - - ">="
102
32
  - !ruby/object:Gem::Version
103
33
  version: '0'
104
- type: :development
34
+ type: :runtime
105
35
  prerelease: false
106
36
  version_requirements: !ruby/object:Gem::Requirement
107
37
  requirements:
108
- - - ! '>='
38
+ - - ">="
109
39
  - !ruby/object:Gem::Version
110
40
  version: '0'
111
41
  - !ruby/object:Gem::Dependency
112
- name: mongoid
42
+ name: maestrano
113
43
  requirement: !ruby/object:Gem::Requirement
114
44
  requirements:
115
- - - ~>
45
+ - - "~>"
116
46
  - !ruby/object:Gem::Version
117
- version: '2.4'
118
- type: :development
47
+ version: 0.9.0
48
+ type: :runtime
119
49
  prerelease: false
120
50
  version_requirements: !ruby/object:Gem::Requirement
121
51
  requirements:
122
- - - ~>
52
+ - - "~>"
123
53
  - !ruby/object:Gem::Version
124
- version: '2.4'
54
+ version: 0.9.0
125
55
  - !ruby/object:Gem::Dependency
126
- name: bson_ext
56
+ name: jeweler
127
57
  requirement: !ruby/object:Gem::Requirement
128
58
  requirements:
129
- - - ! '>='
59
+ - - ">="
130
60
  - !ruby/object:Gem::Version
131
61
  version: '0'
132
62
  type: :development
133
63
  prerelease: false
134
64
  version_requirements: !ruby/object:Gem::Requirement
135
65
  requirements:
136
- - - ! '>='
66
+ - - ">="
137
67
  - !ruby/object:Gem::Version
138
68
  version: '0'
139
69
  description: Maestrano is the next generation marketplace for SME applications. See
@@ -142,8 +72,12 @@ email:
142
72
  - arnaud.lachaume@maestrano.com
143
73
  executables: []
144
74
  extensions: []
145
- extra_rdoc_files: []
75
+ extra_rdoc_files:
76
+ - LICENSE
77
+ - README.md
146
78
  files:
79
+ - Gemfile
80
+ - Gemfile.lock
147
81
  - LICENSE
148
82
  - README.md
149
83
  - Rakefile
@@ -153,7 +87,6 @@ files:
153
87
  - lib/generators/active_record/maestrano_group_generator.rb
154
88
  - lib/generators/active_record/maestrano_user_generator.rb
155
89
  - lib/generators/active_record/templates/migration.rb
156
- - lib/generators/maestrano/USAGE
157
90
  - lib/generators/maestrano/group_generator.rb
158
91
  - lib/generators/maestrano/install_generator.rb
159
92
  - lib/generators/maestrano/orm_helpers.rb
@@ -169,7 +102,7 @@ files:
169
102
  - lib/maestrano/rails/controllers/maestrano_security.rb
170
103
  - lib/maestrano/rails/models/maestrano_auth_resource.rb
171
104
  - lib/maestrano/rails/routing/routes.rb
172
- - lib/maestrano/rails/version.rb
105
+ - maestrano-rails.gemspec
173
106
  - test/controllers/generic_controller_test.rb
174
107
  - test/controllers/group_users_controller_test.rb
175
108
  - test/controllers/groups_controller_test.rb
@@ -230,6 +163,20 @@ files:
230
163
  - test/dummy_activerecord/public/500.html
231
164
  - test/dummy_activerecord/public/favicon.ico
232
165
  - test/dummy_activerecord/script/rails
166
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
167
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/260526788a28cefa81bc600586be1311
168
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
169
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
170
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/58e369b37e5157ea746a485eea17e9f7
171
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/59fddb0a51ca581e6a53e9219cd298bf
172
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/7ae10239eda2588a95fdcc7d871bef52
173
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/8d5d60255600aa010a32e1d1a9bc6db6
174
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/a5b83efac01dc54c4751dd02b18fecf2
175
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/b3d9b0e88cdded276ebdce333e338a85
176
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/b6d2aa6ccdbfae33b9016a32418f5697
177
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
178
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
179
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
233
180
  - test/dummy_mongoid/README.rdoc
234
181
  - test/dummy_mongoid/Rakefile
235
182
  - test/dummy_mongoid/app/assets/javascripts/application.js
@@ -289,8 +236,10 @@ files:
289
236
  - test/test_files/config/routes.rb
290
237
  - test/test_helper.rb
291
238
  - test/tmp/app/models/monster.rb
239
+ - test/tmp/db/migrate/20140731080123_add_maestrano_to_monsters.rb
292
240
  homepage: https://maestrano.com
293
- licenses: []
241
+ licenses:
242
+ - MIT
294
243
  metadata: {}
295
244
  post_install_message:
296
245
  rdoc_options: []
@@ -298,17 +247,17 @@ require_paths:
298
247
  - lib
299
248
  required_ruby_version: !ruby/object:Gem::Requirement
300
249
  requirements:
301
- - - ! '>='
250
+ - - ">="
302
251
  - !ruby/object:Gem::Version
303
252
  version: '0'
304
253
  required_rubygems_version: !ruby/object:Gem::Requirement
305
254
  requirements:
306
- - - ! '>='
255
+ - - ">="
307
256
  - !ruby/object:Gem::Version
308
257
  version: '0'
309
258
  requirements: []
310
259
  rubyforge_project:
311
- rubygems_version: 2.2.1
260
+ rubygems_version: 2.2.2
312
261
  signing_key:
313
262
  specification_version: 4
314
263
  summary: Rails plugin for Maestrano API
@@ -322,6 +271,8 @@ test_files:
322
271
  - test/dummy/db/test.sqlite3
323
272
  - test/dummy/log/development.log
324
273
  - test/dummy/log/test.log
274
+ - test/dummy_activerecord/README.rdoc
275
+ - test/dummy_activerecord/Rakefile
325
276
  - test/dummy_activerecord/app/assets/javascripts/application.js
326
277
  - test/dummy_activerecord/app/assets/javascripts/pages.js
327
278
  - test/dummy_activerecord/app/assets/stylesheets/application.css
@@ -333,13 +284,14 @@ test_files:
333
284
  - test/dummy_activerecord/app/controllers/pages_controller.rb
334
285
  - test/dummy_activerecord/app/helpers/application_helper.rb
335
286
  - test/dummy_activerecord/app/helpers/pages_helper.rb
336
- - test/dummy_activerecord/app/models/admin/monster.rb
337
287
  - test/dummy_activerecord/app/models/admin.rb
288
+ - test/dummy_activerecord/app/models/admin/monster.rb
338
289
  - test/dummy_activerecord/app/models/mno_crew.rb
339
290
  - test/dummy_activerecord/app/models/mno_monster.rb
340
291
  - test/dummy_activerecord/app/models/monster.rb
341
292
  - test/dummy_activerecord/app/views/layouts/application.html.erb
342
293
  - test/dummy_activerecord/app/views/pages/home.html.erb
294
+ - test/dummy_activerecord/config.ru
343
295
  - test/dummy_activerecord/config/application.rb
344
296
  - test/dummy_activerecord/config/boot.rb
345
297
  - test/dummy_activerecord/config/database.yml
@@ -356,7 +308,6 @@ test_files:
356
308
  - test/dummy_activerecord/config/initializers/wrap_parameters.rb
357
309
  - test/dummy_activerecord/config/locales/en.yml
358
310
  - test/dummy_activerecord/config/routes.rb
359
- - test/dummy_activerecord/config.ru
360
311
  - test/dummy_activerecord/db/development.sqlite3
361
312
  - test/dummy_activerecord/db/migrate/20140526125222_create_monsters.rb
362
313
  - test/dummy_activerecord/db/migrate/20140526125242_create_admin_monsters.rb
@@ -370,9 +321,23 @@ test_files:
370
321
  - test/dummy_activerecord/public/422.html
371
322
  - test/dummy_activerecord/public/500.html
372
323
  - test/dummy_activerecord/public/favicon.ico
373
- - test/dummy_activerecord/Rakefile
374
- - test/dummy_activerecord/README.rdoc
375
324
  - test/dummy_activerecord/script/rails
325
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
326
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/260526788a28cefa81bc600586be1311
327
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
328
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
329
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/58e369b37e5157ea746a485eea17e9f7
330
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/59fddb0a51ca581e6a53e9219cd298bf
331
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/7ae10239eda2588a95fdcc7d871bef52
332
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/8d5d60255600aa010a32e1d1a9bc6db6
333
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/a5b83efac01dc54c4751dd02b18fecf2
334
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/b3d9b0e88cdded276ebdce333e338a85
335
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/b6d2aa6ccdbfae33b9016a32418f5697
336
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
337
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
338
+ - test/dummy_activerecord/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
339
+ - test/dummy_mongoid/README.rdoc
340
+ - test/dummy_mongoid/Rakefile
376
341
  - test/dummy_mongoid/app/assets/javascripts/application.js
377
342
  - test/dummy_mongoid/app/assets/javascripts/pages.js
378
343
  - test/dummy_mongoid/app/assets/stylesheets/application.css
@@ -389,6 +354,7 @@ test_files:
389
354
  - test/dummy_mongoid/app/models/monster.rb
390
355
  - test/dummy_mongoid/app/views/layouts/application.html.erb
391
356
  - test/dummy_mongoid/app/views/pages/home.html.erb
357
+ - test/dummy_mongoid/config.ru
392
358
  - test/dummy_mongoid/config/application.rb
393
359
  - test/dummy_mongoid/config/boot.rb
394
360
  - test/dummy_mongoid/config/environment.rb
@@ -405,7 +371,6 @@ test_files:
405
371
  - test/dummy_mongoid/config/locales/en.yml
406
372
  - test/dummy_mongoid/config/mongoid.yml
407
373
  - test/dummy_mongoid/config/routes.rb
408
- - test/dummy_mongoid/config.ru
409
374
  - test/dummy_mongoid/db/migrate/20140526125222_create_monsters.rb
410
375
  - test/dummy_mongoid/db/migrate/20140526125242_create_admin_monsters.rb
411
376
  - test/dummy_mongoid/db/migrate/20140526144828_create_mno_monsters.rb
@@ -416,8 +381,6 @@ test_files:
416
381
  - test/dummy_mongoid/public/422.html
417
382
  - test/dummy_mongoid/public/500.html
418
383
  - test/dummy_mongoid/public/favicon.ico
419
- - test/dummy_mongoid/Rakefile
420
- - test/dummy_mongoid/README.rdoc
421
384
  - test/dummy_mongoid/script/rails
422
385
  - test/generators/group/active_record_generator_test.rb
423
386
  - test/generators/group/mongoid_generator_test.rb
@@ -432,3 +395,4 @@ test_files:
432
395
  - test/test_files/config/routes.rb
433
396
  - test/test_helper.rb
434
397
  - test/tmp/app/models/monster.rb
398
+ - test/tmp/db/migrate/20140731080123_add_maestrano_to_monsters.rb
@@ -1,2 +0,0 @@
1
- Description:
2
- Generates all files required to get your rails app setup with maestrano
@@ -1,5 +0,0 @@
1
- module Maestrano
2
- module Rails
3
- VERSION = "0.9.3"
4
- end
5
- end