gtk-webkit-ruby 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a7bd97ee0389adbb1f1a539f197c84ca3c058481
4
+ data.tar.gz: 9f5d498f978c70e24724aa824efd5ea1155117e8
5
+ SHA512:
6
+ metadata.gz: 42d790058af6cf840d8f7300b176fb415230ddcea985432168496ed128dcc39309cd51911ec26cb227f350e9d85bcbe71ab8e2f64d27c0427c295ddef5a96fce
7
+ data.tar.gz: 6e5f477bf03b8c9a37e83b51443932e48d065e5e7802267e01cea3c650f73d4637423cde52eed6e3d7117462350daa7cbfa229b4e0a2cea41e26348fe10829d1
data/Rakefile CHANGED
@@ -28,7 +28,7 @@ spec = Gem::Specification.new do |s|
28
28
  s.version = WebKit::BINDINGS_VERSION
29
29
  s.homepage = "http://github.com/geoffyoungs/gtk-webkit-ruby"
30
30
  s.summary = "Webkit bindings using rubber-generate"
31
- s.add_dependency("rubber-generate", ">= 0.0.17")
31
+ s.add_dependency("rubber-generate", ">= 0.0.20")
32
32
  s.platform = Gem::Platform::RUBY
33
33
  s.extensions = FileList["ext/*/extconf.rb"]
34
34
  s.files = FileList['ext/*/*.{c,h,cr,rd}'] + ['Rakefile', 'README.md'] + FileList['lib/**/*.rb']
data/ext/webkit/webkit.c CHANGED
@@ -466,7 +466,7 @@ WebView_title(VALUE self)
466
466
  WebKitWebView *_self = ((WebKitWebView*)RVAL2GOBJ(self));
467
467
 
468
468
  #line 124 "/home/geoff/Projects/gtk-webkit-ruby/ext/webkit/webkit.cr"
469
- do { __p_retval = rb_str_new2(webkit_web_view_get_title(_self)); goto out; } while(0);
469
+ do { __p_retval = strOrNil(webkit_web_view_get_title(_self)); goto out; } while(0);
470
470
  out:
471
471
  return __p_retval;
472
472
  }
@@ -478,7 +478,7 @@ WebView_uri(VALUE self)
478
478
  WebKitWebView *_self = ((WebKitWebView*)RVAL2GOBJ(self));
479
479
 
480
480
  #line 127 "/home/geoff/Projects/gtk-webkit-ruby/ext/webkit/webkit.cr"
481
- do { __p_retval = rb_str_new2(webkit_web_view_get_uri(_self)); goto out; } while(0);
481
+ do { __p_retval = strOrNil(webkit_web_view_get_uri(_self)); goto out; } while(0);
482
482
  out:
483
483
  return __p_retval;
484
484
  }
@@ -657,7 +657,7 @@ WebResource_uri(VALUE self)
657
657
  WebKitWebResource *_self = ((WebKitWebResource*)RVAL2GOBJ(self));
658
658
 
659
659
  #line 180 "/home/geoff/Projects/gtk-webkit-ruby/ext/webkit/webkit.cr"
660
- do { __p_retval = strOrNil(webkit_web_resource_get_mime_type(_self)); goto out; } while(0);
660
+ do { __p_retval = strOrNil(webkit_web_resource_get_uri(_self)); goto out; } while(0);
661
661
  out:
662
662
  return __p_retval;
663
663
  }
@@ -712,7 +712,7 @@ WebNetworkRequest_uri(VALUE self)
712
712
  WebKitNetworkRequest *_self = ((WebKitNetworkRequest*)RVAL2GOBJ(self));
713
713
 
714
714
  #line 199 "/home/geoff/Projects/gtk-webkit-ruby/ext/webkit/webkit.cr"
715
- do { __p_retval = rb_str_new2(webkit_network_request_get_uri(_self)); goto out; } while(0);
715
+ do { __p_retval = strOrNil(webkit_network_request_get_uri(_self)); goto out; } while(0);
716
716
  out:
717
717
  return __p_retval;
718
718
  }
@@ -749,7 +749,7 @@ WebNetworkResponse_uri(VALUE self)
749
749
  WebKitNetworkResponse *_self = ((WebKitNetworkResponse*)RVAL2GOBJ(self));
750
750
 
751
751
  #line 212 "/home/geoff/Projects/gtk-webkit-ruby/ext/webkit/webkit.cr"
752
- do { __p_retval = rb_str_new2(webkit_network_response_get_uri(_self)); goto out; } while(0);
752
+ do { __p_retval = strOrNil(webkit_network_response_get_uri(_self)); goto out; } while(0);
753
753
  out:
754
754
  return __p_retval;
755
755
  }
data/ext/webkit/webkit.cr CHANGED
@@ -121,10 +121,10 @@ module WebKit
121
121
  def double:progress
122
122
  return webkit_web_view_get_progress(_self);
123
123
  end
124
- def char*:title
124
+ def strOrNil:title
125
125
  return webkit_web_view_get_title(_self);
126
126
  end
127
- def char*:uri
127
+ def strOrNil:uri
128
128
  return webkit_web_view_get_uri(_self);
129
129
  end
130
130
  def reload
@@ -178,7 +178,7 @@ module WebKit
178
178
  return webkit_web_resource_get_mime_type(_self);
179
179
  end
180
180
  def strOrNil:uri
181
- return webkit_web_resource_get_mime_type(_self);
181
+ return webkit_web_resource_get_uri(_self);
182
182
  end
183
183
  def data
184
184
  GString *data = webkit_web_resource_get_data(_self);
@@ -196,7 +196,7 @@ module WebKit
196
196
 
197
197
  gobject WebNetworkRequest < WEBKIT_TYPE_NETWORK_REQUEST
198
198
  @type WebKitNetworkRequest
199
- def char*:uri
199
+ def strOrNil:uri
200
200
  return webkit_network_request_get_uri(_self);
201
201
  end
202
202
  def uri=(char *uri)
@@ -209,7 +209,7 @@ module WebKit
209
209
 
210
210
  gobject WebNetworkResponse < WEBKIT_TYPE_NETWORK_RESPONSE
211
211
  @type WebKitNetworkResponse
212
- def char*:uri
212
+ def strOrNil:uri
213
213
  return webkit_network_response_get_uri(_self);
214
214
  end
215
215
  def uri=(char *uri)
@@ -1,3 +1,3 @@
1
1
  module WebKit
2
- BINDINGS_VERSION = "0.0.6"
2
+ BINDINGS_VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,61 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gtk-webkit-ruby
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Geoff Youngs
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-06-14 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 61
28
- segments:
29
- - 0
30
- - 0
31
- - 17
32
- version: 0.0.17
33
- type: :runtime
11
+ date: 2013-08-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
34
14
  name: rubber-generate
35
- version_requirements: *id001
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.20
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.20
36
27
  description: |
37
28
  Gtk Webkit bindings for ruby. Partial coverage sufficient to embed a webview in a Ruby-GNOME2 application.
38
-
29
+
39
30
  Also initial/experimental support for allowing ruby code to be called by javascript & executing javascript
40
31
  from ruby.
41
-
32
+
42
33
  e.g
43
34
  require 'gtk2'
44
35
  require 'webkit'
45
-
36
+
46
37
  v = WebKit::WebView.new
47
38
  v.main_frame.setup_ruby
48
39
  puts v.main_frame.exec_js("ruby_eval('RUBY_DESCRIPTION')")
49
40
  puts v.main_frame.exec_js("document.root.innerHTML")
50
-
51
41
  email: git@intersect-uk.co.uk
52
42
  executables: []
53
-
54
- extensions:
43
+ extensions:
55
44
  - ext/webkit/extconf.rb
56
45
  extra_rdoc_files: []
57
-
58
- files:
46
+ files:
59
47
  - ext/webkit/javascript-type-convert.h
60
48
  - ext/webkit/javascript.h
61
49
  - ext/webkit/webkit.c
@@ -68,36 +56,25 @@ files:
68
56
  - ext/webkit/extconf.rb
69
57
  homepage: http://github.com/geoffyoungs/gtk-webkit-ruby
70
58
  licenses: []
71
-
59
+ metadata: {}
72
60
  post_install_message:
73
61
  rdoc_options: []
74
-
75
- require_paths:
62
+ require_paths:
76
63
  - lib
77
- required_ruby_version: !ruby/object:Gem::Requirement
78
- none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- hash: 3
83
- segments:
84
- - 0
85
- version: "0"
86
- required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- hash: 3
92
- segments:
93
- - 0
94
- version: "0"
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
95
74
  requirements: []
96
-
97
75
  rubyforge_project:
98
- rubygems_version: 1.8.24
76
+ rubygems_version: 2.0.3
99
77
  signing_key:
100
- specification_version: 3
78
+ specification_version: 4
101
79
  summary: Webkit bindings using rubber-generate
102
80
  test_files: []
103
-