pbw 0.0.9 → 0.0.10
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.
- checksums.yaml +8 -8
- data/app/controllers/pbw/application_controller.rb +3 -16
- data/app/controllers/pbw/base_models_controller.rb +10 -32
- data/app/controllers/pbw/passwords_controller.rb +14 -0
- data/app/controllers/pbw/registrations_controller.rb +9 -6
- data/app/controllers/pbw/sessions_controller.rb +9 -4
- data/app/mailers/pbw/user_mailer.rb +16 -0
- data/app/models/pbw/area.rb +5 -5
- data/app/models/pbw/attached_process.rb +3 -3
- data/app/models/pbw/capability.rb +1 -1
- data/app/models/pbw/command.rb +2 -2
- data/app/models/pbw/constraint.rb +2 -2
- data/app/models/pbw/item.rb +2 -2
- data/app/models/pbw/item_container.rb +4 -4
- data/app/models/pbw/item_conversion.rb +1 -1
- data/app/models/pbw/process.rb +2 -2
- data/app/models/pbw/token.rb +7 -7
- data/app/models/pbw/trigger.rb +3 -3
- data/app/models/pbw/user.rb +30 -8
- data/config/initializers/devise.rb +1 -66
- data/config/locales/pbw.en.yml +7 -0
- data/config/routes.rb +2 -4
- data/lib/generators/pbw/install/install_generator.rb +22 -3
- data/lib/generators/pbw/model_generator.rb +6 -0
- data/lib/generators/pbw/resource_helpers.rb +16 -0
- data/lib/generators/pbw/rules/capability/capability_generator.rb +4 -2
- data/lib/generators/pbw/rules/constraint/constraint_generator.rb +4 -2
- data/lib/generators/pbw/rules/process/process_generator.rb +4 -2
- data/lib/generators/pbw/rules/trigger/trigger_generator.rb +4 -2
- data/lib/generators/pbw/scaffold_generator.rb +0 -12
- data/lib/generators/pbw/templates/app.coffee +5 -3
- data/lib/generators/pbw/templates/application.erb +24 -0
- data/lib/generators/pbw/templates/lifecycle.rb +1 -0
- data/lib/generators/pbw/templates/pbw.coffee +21 -0
- data/lib/generators/pbw/templates/router.coffee +15 -0
- data/lib/generators/pbw/templates/templates/home.jst +10 -1
- data/lib/generators/pbw/templates/templates/login.jst +25 -0
- data/lib/generators/pbw/templates/templates/recover_password.jst +17 -0
- data/lib/generators/pbw/templates/templates/signup.jst +29 -0
- data/lib/generators/pbw/templates/user_recovery.coffee +6 -0
- data/lib/generators/pbw/templates/user_registration.coffee +9 -0
- data/lib/generators/pbw/templates/user_session.coffee +8 -0
- data/lib/generators/pbw/templates/views/edit_view.coffee +15 -8
- data/lib/generators/pbw/templates/views/login_view.coffee +39 -0
- data/lib/generators/pbw/templates/views/new_view.coffee +5 -9
- data/lib/generators/pbw/templates/views/recovery_view.coffee +38 -0
- data/lib/generators/pbw/templates/views/signup_view.coffee +39 -0
- data/lib/pbw/engine.rb +5 -9
- data/lib/pbw/version.rb +1 -1
- data/lib/pbw.rb +15 -2
- data/vendor/assets/javascripts/backbone_datalink.js +21 -0
- metadata +16 -44
- data/app/controllers/pbw/capabilities_controller.rb +0 -7
- data/app/controllers/pbw/constraints_controller.rb +0 -7
- data/app/controllers/pbw/processes_controller.rb +0 -7
- data/app/controllers/pbw/triggers_controller.rb +0 -7
- data/public/Foundation-MIT-LICENSE.txt +0 -20
- data/public/config.rb +0 -26
- data/public/javascripts/foundation/foundation.alerts.js +0 -52
- data/public/javascripts/foundation/foundation.clearing.js +0 -516
- data/public/javascripts/foundation/foundation.cookie.js +0 -74
- data/public/javascripts/foundation/foundation.dropdown.js +0 -178
- data/public/javascripts/foundation/foundation.forms.js +0 -525
- data/public/javascripts/foundation/foundation.interchange.js +0 -271
- data/public/javascripts/foundation/foundation.joyride.js +0 -844
- data/public/javascripts/foundation/foundation.js +0 -447
- data/public/javascripts/foundation/foundation.magellan.js +0 -134
- data/public/javascripts/foundation/foundation.orbit.js +0 -390
- data/public/javascripts/foundation/foundation.placeholder.js +0 -179
- data/public/javascripts/foundation/foundation.reveal.js +0 -330
- data/public/javascripts/foundation/foundation.section.js +0 -422
- data/public/javascripts/foundation/foundation.tooltips.js +0 -208
- data/public/javascripts/foundation/foundation.topbar.js +0 -303
- data/public/javascripts/vendor/custom.modernizr.js +0 -4
- data/public/javascripts/vendor/jquery.js +0 -9807
- data/public/javascripts/vendor/zepto.js +0 -2000
- data/public/sass/_normalize.scss +0 -402
- data/public/sass/_settings.scss +0 -1271
- data/public/sass/app.scss +0 -48
- data/public/stylesheets/app.css +0 -6686
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pbw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seyed P. Razavi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -192,20 +192,6 @@ dependencies:
|
|
192
192
|
- - ! '>='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: zurb-foundation
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - ! '>='
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ! '>='
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
209
195
|
description: Provides engine and generators for building web games using common components
|
210
196
|
email:
|
211
197
|
- monkeyx@gmail.com
|
@@ -216,18 +202,16 @@ files:
|
|
216
202
|
- app/controllers/pbw/application_controller.rb
|
217
203
|
- app/controllers/pbw/areas_controller.rb
|
218
204
|
- app/controllers/pbw/base_models_controller.rb
|
219
|
-
- app/controllers/pbw/capabilities_controller.rb
|
220
205
|
- app/controllers/pbw/commands_controller.rb
|
221
|
-
- app/controllers/pbw/constraints_controller.rb
|
222
206
|
- app/controllers/pbw/item_containers_controller.rb
|
223
207
|
- app/controllers/pbw/item_conversions_controller.rb
|
224
208
|
- app/controllers/pbw/items_controller.rb
|
225
|
-
- app/controllers/pbw/
|
209
|
+
- app/controllers/pbw/passwords_controller.rb
|
226
210
|
- app/controllers/pbw/registrations_controller.rb
|
227
211
|
- app/controllers/pbw/sessions_controller.rb
|
228
212
|
- app/controllers/pbw/tokens_controller.rb
|
229
|
-
- app/controllers/pbw/triggers_controller.rb
|
230
213
|
- app/helpers/pbw/application_helper.rb
|
214
|
+
- app/mailers/pbw/user_mailer.rb
|
231
215
|
- app/models/pbw/ability.rb
|
232
216
|
- app/models/pbw/area.rb
|
233
217
|
- app/models/pbw/attached_process.rb
|
@@ -246,6 +230,7 @@ files:
|
|
246
230
|
- app/views/layouts/pbw/application.html.erb
|
247
231
|
- config/initializers/devise.rb
|
248
232
|
- config/locales/devise.en.yml
|
233
|
+
- config/locales/pbw.en.yml
|
249
234
|
- config/routes.rb
|
250
235
|
- lib/generators/pbw/area/area_generator.rb
|
251
236
|
- lib/generators/pbw/area/USAGE
|
@@ -268,22 +253,33 @@ files:
|
|
268
253
|
- lib/generators/pbw/rules/trigger/USAGE
|
269
254
|
- lib/generators/pbw/scaffold_generator.rb
|
270
255
|
- lib/generators/pbw/templates/app.coffee
|
256
|
+
- lib/generators/pbw/templates/application.erb
|
271
257
|
- lib/generators/pbw/templates/index.erb
|
272
258
|
- lib/generators/pbw/templates/lifecycle.rb
|
273
259
|
- lib/generators/pbw/templates/model.coffee
|
260
|
+
- lib/generators/pbw/templates/pbw.coffee
|
274
261
|
- lib/generators/pbw/templates/router.coffee
|
275
262
|
- lib/generators/pbw/templates/templates/edit.jst
|
276
263
|
- lib/generators/pbw/templates/templates/home.jst
|
277
264
|
- lib/generators/pbw/templates/templates/index.jst
|
265
|
+
- lib/generators/pbw/templates/templates/login.jst
|
278
266
|
- lib/generators/pbw/templates/templates/model.jst
|
279
267
|
- lib/generators/pbw/templates/templates/new.jst
|
268
|
+
- lib/generators/pbw/templates/templates/recover_password.jst
|
280
269
|
- lib/generators/pbw/templates/templates/show.jst
|
270
|
+
- lib/generators/pbw/templates/templates/signup.jst
|
271
|
+
- lib/generators/pbw/templates/user_recovery.coffee
|
272
|
+
- lib/generators/pbw/templates/user_registration.coffee
|
273
|
+
- lib/generators/pbw/templates/user_session.coffee
|
281
274
|
- lib/generators/pbw/templates/views/edit_view.coffee
|
282
275
|
- lib/generators/pbw/templates/views/home.coffee
|
283
276
|
- lib/generators/pbw/templates/views/index_view.coffee
|
277
|
+
- lib/generators/pbw/templates/views/login_view.coffee
|
284
278
|
- lib/generators/pbw/templates/views/model_view.coffee
|
285
279
|
- lib/generators/pbw/templates/views/new_view.coffee
|
280
|
+
- lib/generators/pbw/templates/views/recovery_view.coffee
|
286
281
|
- lib/generators/pbw/templates/views/show_view.coffee
|
282
|
+
- lib/generators/pbw/templates/views/signup_view.coffee
|
287
283
|
- lib/generators/pbw/token/token_generator.rb
|
288
284
|
- lib/generators/pbw/token/USAGE
|
289
285
|
- lib/pbw/engine.rb
|
@@ -296,32 +292,8 @@ files:
|
|
296
292
|
- vendor/assets/javascripts/backbone_datalink.js
|
297
293
|
- vendor/assets/javascripts/backbone_rails_sync.js
|
298
294
|
- vendor/assets/javascripts/underscore.js
|
299
|
-
- public/config.rb
|
300
|
-
- public/Foundation-MIT-LICENSE.txt
|
301
295
|
- public/humans.txt
|
302
|
-
- public/javascripts/foundation/foundation.alerts.js
|
303
|
-
- public/javascripts/foundation/foundation.clearing.js
|
304
|
-
- public/javascripts/foundation/foundation.cookie.js
|
305
|
-
- public/javascripts/foundation/foundation.dropdown.js
|
306
|
-
- public/javascripts/foundation/foundation.forms.js
|
307
|
-
- public/javascripts/foundation/foundation.interchange.js
|
308
|
-
- public/javascripts/foundation/foundation.joyride.js
|
309
|
-
- public/javascripts/foundation/foundation.js
|
310
|
-
- public/javascripts/foundation/foundation.magellan.js
|
311
|
-
- public/javascripts/foundation/foundation.orbit.js
|
312
|
-
- public/javascripts/foundation/foundation.placeholder.js
|
313
|
-
- public/javascripts/foundation/foundation.reveal.js
|
314
|
-
- public/javascripts/foundation/foundation.section.js
|
315
|
-
- public/javascripts/foundation/foundation.tooltips.js
|
316
|
-
- public/javascripts/foundation/foundation.topbar.js
|
317
|
-
- public/javascripts/vendor/custom.modernizr.js
|
318
|
-
- public/javascripts/vendor/jquery.js
|
319
|
-
- public/javascripts/vendor/zepto.js
|
320
296
|
- public/robots.txt
|
321
|
-
- public/sass/_normalize.scss
|
322
|
-
- public/sass/_settings.scss
|
323
|
-
- public/sass/app.scss
|
324
|
-
- public/stylesheets/app.css
|
325
297
|
- MIT-LICENSE
|
326
298
|
- Rakefile
|
327
299
|
homepage: http://github.com/monkeyx/pbw
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2011 ZURB, http://www.zurb.com/
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/public/config.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'zurb-foundation'
|
2
|
-
# Require any additional compass plugins here.
|
3
|
-
|
4
|
-
|
5
|
-
# Set this to the root of your project when deployed:
|
6
|
-
http_path = "/"
|
7
|
-
css_dir = "stylesheets"
|
8
|
-
sass_dir = "sass"
|
9
|
-
images_dir = "images"
|
10
|
-
javascripts_dir = "javascripts"
|
11
|
-
|
12
|
-
# You can select your preferred output style here (can be overridden via the command line):
|
13
|
-
# output_style = :expanded or :nested or :compact or :compressed
|
14
|
-
|
15
|
-
# To enable relative paths to assets via compass helper functions. Uncomment:
|
16
|
-
# relative_assets = true
|
17
|
-
|
18
|
-
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
19
|
-
# line_comments = false
|
20
|
-
|
21
|
-
|
22
|
-
# If you prefer the indented syntax, you might want to regenerate this
|
23
|
-
# project again passing --syntax sass, or you can uncomment this:
|
24
|
-
# preferred_syntax = :sass
|
25
|
-
# and then run:
|
26
|
-
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
@@ -1,52 +0,0 @@
|
|
1
|
-
/*jslint unparam: true, browser: true, indent: 2 */
|
2
|
-
|
3
|
-
;(function ($, window, document, undefined) {
|
4
|
-
'use strict';
|
5
|
-
|
6
|
-
Foundation.libs.alerts = {
|
7
|
-
name : 'alerts',
|
8
|
-
|
9
|
-
version : '4.2.2',
|
10
|
-
|
11
|
-
settings : {
|
12
|
-
speed: 300, // fade out speed
|
13
|
-
callback: function (){}
|
14
|
-
},
|
15
|
-
|
16
|
-
init : function (scope, method, options) {
|
17
|
-
this.scope = scope || this.scope;
|
18
|
-
|
19
|
-
if (typeof method === 'object') {
|
20
|
-
$.extend(true, this.settings, method);
|
21
|
-
}
|
22
|
-
|
23
|
-
if (typeof method !== 'string') {
|
24
|
-
if (!this.settings.init) { this.events(); }
|
25
|
-
|
26
|
-
return this.settings.init;
|
27
|
-
} else {
|
28
|
-
return this[method].call(this, options);
|
29
|
-
}
|
30
|
-
},
|
31
|
-
|
32
|
-
events : function () {
|
33
|
-
var self = this;
|
34
|
-
|
35
|
-
$(this.scope).on('click.fndtn.alerts', '[data-alert] a.close', function (e) {
|
36
|
-
e.preventDefault();
|
37
|
-
$(this).closest("[data-alert]").fadeOut(self.speed, function () {
|
38
|
-
$(this).remove();
|
39
|
-
self.settings.callback();
|
40
|
-
});
|
41
|
-
});
|
42
|
-
|
43
|
-
this.settings.init = true;
|
44
|
-
},
|
45
|
-
|
46
|
-
off : function () {
|
47
|
-
$(this.scope).off('.fndtn.alerts');
|
48
|
-
},
|
49
|
-
|
50
|
-
reflow : function () {}
|
51
|
-
};
|
52
|
-
}(Foundation.zj, this, this.document));
|