motion_kondi 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ module Kondi
2
+ module JsonClient
3
+ def self.get(url, &block)
4
+ error_ptr = Pointer.new(:object)
5
+ data = NSData.alloc.initWithContentsOfURL(NSURL.URLWithString(url), options:NSDataReadingUncached, error:error_ptr)
6
+ raise error_ptr[0] unless data
7
+
8
+ error_ptr = Pointer.new(:object)
9
+ json = NSJSONSerialization.JSONObjectWithData(data, options:0, error:error_ptr)
10
+ raise error_ptr[0] unless data
11
+
12
+ block.call(json)
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Kondi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -0,0 +1 @@
1
+ require 'kondi'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion_kondi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-22 00:00:00.000000000 Z
12
+ date: 2012-07-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: An application framework for RubyMotion
15
15
  email:
@@ -20,10 +20,12 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - lib/kondi/application.rb
22
22
  - lib/kondi/callbacks.rb
23
+ - lib/kondi/json_client.rb
23
24
  - lib/kondi/table_view_cell.rb
24
25
  - lib/kondi/table_view_controller.rb
25
26
  - lib/kondi/version.rb
26
27
  - lib/kondi.rb
28
+ - lib/motion_kondi.rb
27
29
  - README.md
28
30
  homepage: ''
29
31
  licenses: []