bowline 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -153,6 +153,7 @@ BowlineBound.fn.create = function(id, item){
153
153
  }
154
154
 
155
155
  BowlineBound.fn.update = function(id, item){
156
+ if(!item.id) item.id = id;
156
157
  if(this.singleton){
157
158
  this.elements.item(item);
158
159
  } else {
@@ -231,8 +232,6 @@ var Bowline = {
231
232
 
232
233
  Bowline.log("New message:", msg);
233
234
 
234
- Bowline.log(JSON.stringify(msg))
235
-
236
235
  if(Bowline.enabled)
237
236
  _app.call(JSON.stringify(msg));
238
237
  },
@@ -321,7 +320,6 @@ var Bowline = {
321
320
 
322
321
  updated: function(klass, id, item){
323
322
  if(!Bowline.bounds[klass]) return;
324
- if(!item.id) item.id = id;
325
323
  Bowline.bounds[klass].update(id, item);
326
324
  },
327
325
 
@@ -392,7 +390,16 @@ var Bowline = {
392
390
  var args = $.makeArray(arguments);
393
391
  args.unshift(this);
394
392
  Bowline.unbind.apply(Bowline, args);
395
- }
393
+ };
394
+
395
+ $.fn.bowlineSerialize = function(){
396
+ var array = $(this).serializeArray();
397
+ var object = {};
398
+ $.each(array, function(){
399
+ object[this.name] = this.value;
400
+ });
401
+ return object;
402
+ };
396
403
  })(jQuery);
397
404
 
398
405
  jQuery(function($){
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bowline}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alex MacCaw"]
@@ -1,6 +1,8 @@
1
1
  require 'active_support'
2
2
  require 'active_support/dependencies'
3
3
  require 'active_support/core_ext/string/access'
4
+ require 'active_support/core_ext/kernel/reporting'
5
+ require 'active_support/core_ext/hash/indifferent_access'
4
6
 
5
7
  Thread.abort_on_exception = true
6
8
 
@@ -1,3 +1,5 @@
1
+ require "json"
2
+
1
3
  module Bowline
2
4
  module Desktop
3
5
  module Bridge
@@ -65,7 +65,7 @@ namespace :libs do
65
65
  end
66
66
  end
67
67
 
68
- task :setup => [:environment, "libs:download", "libs:unpack"]
68
+ task :setup => [:environment, "libs:download"]
69
69
 
70
70
  desc "Update Bowline's binary and pre-compiled libs"
71
71
  task :update => :environment do
@@ -2,7 +2,7 @@ module Bowline
2
2
  module Version #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
 
@@ -4,5 +4,6 @@ class MainWindow < Bowline::Desktop::WindowManager
4
4
  self.width = 300
5
5
  self.height = 400
6
6
  center
7
+ enable_developer
7
8
  on_load { show }
8
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bowline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacCaw