soup-ruby 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -1
  3. data/lib/soup/version.rb +1 -1
  4. metadata +24 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73302d6ab8b6f33bebf9b25d87c776ccf1156aa9
4
- data.tar.gz: 0155e9c16389f80950d5a74b3a40954f43bb53e8
3
+ metadata.gz: f6799354a9eff728e9c672aa00e31a110fb93b54
4
+ data.tar.gz: f6fef5ab9c8e1935d659a6dad4e2dff90f111ba2
5
5
  SHA512:
6
- metadata.gz: b5d46927c2fca5048055d0be28d03b0b13730618f8de0343d986d711f1cb095aed285e7bbc1d5fddfe084146064f826980c3023722f3a8b2c511a5e6b6d9a17f
7
- data.tar.gz: 144dd4d2b579b6b5a54e2918f892e22e77e85825ff2df2be2cc57277651841d60f8587350d8da8d7bb84fde9c63d148c6b1ffe4c0b81949c7e6f7eb356b4831f
6
+ metadata.gz: 2f83cf8426c08c5888b7a61ace4384b1ef026c2c03701739bf0fe69e1372bac1252238154c4995fa6d72a293d63f6e77486097ec33b2aa8adf5adc58890efecc
7
+ data.tar.gz: d26c99ab9d5ef7ff3a122811b269703095c9f9b443a9b1141ea0aca7a3bbe1ce01554d2a5878f015df4008de81335c1a2488b2e2f5535256cae29e2539019ace
data/Rakefile CHANGED
@@ -8,7 +8,6 @@ require 'rake/testtask'
8
8
  $: << './lib'
9
9
 
10
10
  require 'soup/version'
11
- exts = []
12
11
 
13
12
  namespace :prepare do
14
13
  FileList["ext/*/*.cr"].each do |cr|
@@ -29,6 +28,7 @@ spec = Gem::Specification.new do |s|
29
28
  s.homepage = "http://github.com/geoffyoungs/soup-ruby"
30
29
  s.summary = "Soup bindings using rubber-generate"
31
30
  s.add_dependency("rubber-generate", ">= 0.0.17")
31
+ s.add_dependency("gtk2", ">= 3.0.0")
32
32
  s.platform = Gem::Platform::RUBY
33
33
  s.extensions = FileList["ext/*/extconf.rb"]
34
34
  s.licenses = ['The Ruby License']
@@ -40,6 +40,14 @@ e.g
40
40
  require 'gtk2'
41
41
  require 'soup'
42
42
 
43
+
44
+ message = Soup::Message.new("GET", "http://www.example.com/")
45
+ Soup::SessionAsync.new.queue(message) do |_sess,_mess|
46
+ puts "Got response"
47
+ Gtk.main_quit
48
+ end
49
+
50
+ Gtk.main
43
51
  EOF
44
52
  end
45
53
  Gem::PackageTask.new(spec) do |pkg|
data/lib/soup/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Soup
2
- BINDINGS_VERSION= [0,0,8]
2
+ BINDINGS_VERSION= [0,0,9]
3
3
  def BINDINGS_VERSION.to_s
4
4
  join('.')
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soup-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Youngs
@@ -24,13 +24,35 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.0.17
27
- description: |+
27
+ - !ruby/object:Gem::Dependency
28
+ name: gtk2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.0
41
+ description: |
28
42
  Libsoup bindings for ruby. Partial coverage sufficient to allow HTTP requests to be handled without blocking the mainloop.
29
43
 
30
44
  e.g
31
45
  require 'gtk2'
32
46
  require 'soup'
33
47
 
48
+
49
+ message = Soup::Message.new("GET", "http://www.example.com/")
50
+ Soup::SessionAsync.new.queue(message) do |_sess,_mess|
51
+ puts "Got response"
52
+ Gtk.main_quit
53
+ end
54
+
55
+ Gtk.main
34
56
  email: git@intersect-uk.co.uk
35
57
  executables: []
36
58
  extensions: