You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(20) |
Jun
(46) |
Jul
(58) |
Aug
(103) |
Sep
(153) |
Oct
(192) |
Nov
(228) |
Dec
(213) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(61) |
Feb
(114) |
Mar
(103) |
Apr
(51) |
May
(84) |
Jun
(38) |
Jul
(125) |
Aug
(324) |
Sep
(120) |
Oct
(98) |
Nov
(145) |
Dec
(108) |
2004 |
Jan
(75) |
Feb
(72) |
Mar
(203) |
Apr
(33) |
May
(59) |
Jun
(39) |
Jul
(41) |
Aug
(108) |
Sep
(39) |
Oct
(74) |
Nov
(98) |
Dec
(21) |
2005 |
Jan
(113) |
Feb
(93) |
Mar
(113) |
Apr
(8) |
May
(11) |
Jun
(98) |
Jul
(91) |
Aug
(39) |
Sep
(149) |
Oct
(199) |
Nov
(29) |
Dec
(4) |
2006 |
Jan
(20) |
Feb
(6) |
Mar
(19) |
Apr
(21) |
May
(119) |
Jun
(105) |
Jul
(63) |
Aug
(10) |
Sep
(18) |
Oct
(26) |
Nov
(44) |
Dec
(113) |
2007 |
Jan
(14) |
Feb
(14) |
Mar
(11) |
Apr
(8) |
May
(7) |
Jun
(49) |
Jul
(188) |
Aug
(32) |
Sep
(12) |
Oct
(32) |
Nov
(79) |
Dec
(27) |
2008 |
Jan
(54) |
Feb
(32) |
Mar
(104) |
Apr
(247) |
May
(51) |
Jun
(25) |
Jul
(6) |
Aug
(13) |
Sep
(60) |
Oct
(63) |
Nov
(49) |
Dec
(10) |
2009 |
Jan
(132) |
Feb
(14) |
Mar
(16) |
Apr
(3) |
May
(23) |
Jun
(10) |
Jul
(14) |
Aug
(12) |
Sep
(24) |
Oct
(6) |
Nov
|
Dec
(6) |
2010 |
Jan
(12) |
Feb
(13) |
Mar
(2) |
Apr
(13) |
May
(7) |
Jun
(3) |
Jul
(6) |
Aug
|
Sep
(156) |
Oct
(57) |
Nov
(9) |
Dec
(2) |
2011 |
Jan
(109) |
Feb
(431) |
Mar
(17) |
Apr
|
May
(8) |
Jun
(25) |
Jul
(12) |
Aug
(9) |
Sep
(80) |
Oct
(244) |
Nov
(341) |
Dec
(559) |
2012 |
Jan
(137) |
Feb
(185) |
Mar
(6) |
Apr
(30) |
May
(26) |
Jun
(3) |
Jul
(25) |
Aug
(5) |
Sep
(4) |
Oct
(2) |
Nov
(16) |
Dec
(190) |
2013 |
Jan
(204) |
Feb
(70) |
Mar
(137) |
Apr
(180) |
May
(149) |
Jun
(39) |
Jul
(22) |
Aug
(8) |
Sep
(78) |
Oct
(488) |
Nov
(134) |
Dec
(138) |
2014 |
Jan
(18) |
Feb
(148) |
Mar
(238) |
Apr
(177) |
May
(45) |
Jun
(36) |
Jul
(176) |
Aug
(33) |
Sep
(114) |
Oct
(265) |
Nov
(263) |
Dec
(184) |
2015 |
Jan
(163) |
Feb
(44) |
Mar
(196) |
Apr
(184) |
May
(308) |
Jun
(132) |
Jul
(81) |
Aug
(76) |
Sep
(440) |
Oct
(125) |
Nov
(75) |
Dec
(111) |
2016 |
Jan
(210) |
Feb
(88) |
Mar
(86) |
Apr
(137) |
May
(145) |
Jun
(257) |
Jul
(35) |
Aug
(312) |
Sep
(69) |
Oct
(43) |
Nov
(91) |
Dec
(103) |
2017 |
Jan
(72) |
Feb
(50) |
Mar
(80) |
Apr
(238) |
May
(122) |
Jun
(47) |
Jul
(197) |
Aug
(92) |
Sep
(21) |
Oct
(45) |
Nov
(52) |
Dec
(26) |
2018 |
Jan
(3) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Travis CI <bu...@tr...> - 2017-11-08 00:34:03
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4632 Status: Passed Duration: 23 minutes and 30 seconds Commit: ce0e09c (3.2.0) Author: Kouhei Sutou Message: Add 3.2.0 entry View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/3.2.0 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/298848165?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-11-08 00:11:12
|
Kouhei Sutou 2017-11-08 09:10:37 +0900 (Wed, 08 Nov 2017) New Revision: 233bb1c151193a91eaf5905f2e202c238becce45 https://github.com/ruby-gnome2/ruby-gnome2/commit/233bb1c151193a91eaf5905f2e202c238becce45 Message: Remove Ruby 2.2.8 from dist:test target Modified files: Rakefile Modified: Rakefile (+1 -0) =================================================================== --- Rakefile 2017-11-08 09:09:59 +0900 (e503b38fd) +++ Rakefile 2017-11-08 09:10:37 +0900 (b871b9ff7) @@ -233,6 +233,7 @@ namespace :dist do end ruby_versions = ["2.1.10", "2.2.8", "2.3.5", "2.4.2"] + ruby_versions -= ["2.2.8"] # TODO: Ruby 2.2.8 is broken? namespace :test do ruby_base_url = "https://cache.ruby-lang.org/pub/ruby" ruby_versions.each do |ruby_version| |
From: Kouhei S. <nu...@co...> - 2017-11-08 00:10:40
|
Kouhei Sutou 2017-11-08 09:09:59 +0900 (Wed, 08 Nov 2017) New Revision: ed7d72a9a504dbdb989d2806c838834d8ff0d838 https://github.com/ruby-gnome2/ruby-gnome2/commit/ed7d72a9a504dbdb989d2806c838834d8ff0d838 Message: Support conditional gem push Modified files: Rakefile Modified: Rakefile (+28 -5) =================================================================== --- Rakefile 2017-11-08 09:09:46 +0900 (f24f2d57f) +++ Rakefile 2017-11-08 09:09:59 +0900 (e503b38fd) @@ -91,6 +91,26 @@ def change_environment_variable(variables) end end +def gem_exist?(name, version) + gem_uri = "https://rubygems.org/gems/#{name}/versions/#{version}" + begin + open(gem_uri) + true + rescue OpenURI::HTTPError + false + end +end + +def gem_push(path, name, version) + return if gem_exist?(name, version) + begin + ruby("-S", "gem", "push", path) + rescue + puts("failed to push gem: #{path}") + puts("#{$!.class}: #{$!}") + end +end + gtk2_base_name = "ruby-gtk2" gtk3_base_name = "ruby-gtk3" gnome2_base_name = "ruby-gnome2-all" @@ -381,8 +401,10 @@ namespace :gem do desc "push all gems" task :push do gnome2_packages.each do |package| - Dir.glob(File.join(package, "pkg", "*-#{version}.gem")) do |gem| - ruby("-S", "gem", "push", gem) + Dir.glob(File.join(package, "pkg", "*-#{version}.gem")) do |gem_path| + gem_base_path = File.basename(gem_path, ".gem") + gem_name = gem_base_path.gsub(/-#{Regexp.escape(version)}\z/, "") + gem_push(gem_path, gem_name, version) end end end @@ -508,9 +530,10 @@ namespace :gem do "x64-mingw32", ] architectures.each do |architecture| - base_name = "#{package}-#{version}-#{architecture}.gem" - ruby("-S", "gem", "push", - File.join("build", "pkg", base_name)) + gem_version = "#{version}-#{architecture}" + base_name = "#{package}-#{gem_version}.gem" + gem_path = File.join("build", "pkg", base_name) + gem_push(gem_path, package, gem_version) end end end |
From: Kouhei S. <nu...@co...> - 2017-11-08 00:10:40
|
Kouhei Sutou 2017-11-08 09:09:46 +0900 (Wed, 08 Nov 2017) New Revision: d092bd0f73229451858bb5063d346eb67ca4fa01 https://github.com/ruby-gnome2/ruby-gnome2/commit/d092bd0f73229451858bb5063d346eb67ca4fa01 Message: Bump version Modified files: glib2/ext/glib2/rbglib.h Modified: glib2/ext/glib2/rbglib.h (+1 -1) =================================================================== --- glib2/ext/glib2/rbglib.h 2017-11-07 21:44:19 +0900 (916546058) +++ glib2/ext/glib2/rbglib.h 2017-11-08 09:09:46 +0900 (803fbfb9f) @@ -36,7 +36,7 @@ extern "C" { #define RBGLIB_MAJOR_VERSION 3 #define RBGLIB_MINOR_VERSION 2 -#define RBGLIB_MICRO_VERSION 0 +#define RBGLIB_MICRO_VERSION 1 #ifndef RB_ZALLOC # ifdef ZALLOC |
From: Kouhei S. <nu...@co...> - 2017-11-07 12:44:51
|
Kouhei Sutou 2017-11-07 21:44:19 +0900 (Tue, 07 Nov 2017) New Revision: ce0e09c9c3421a266ed72dbaa807a91827f3eb89 https://github.com/ruby-gnome2/ruby-gnome2/commit/ce0e09c9c3421a266ed72dbaa807a91827f3eb89 Message: Add 3.2.0 entry Modified files: NEWS Modified: NEWS (+46 -0) =================================================================== --- NEWS 2017-11-07 00:19:26 +0900 (055d577d9) +++ NEWS 2017-11-07 21:44:19 +0900 (ea156ab39) @@ -2,6 +2,52 @@ = NEWS +== Ruby-GNOME2 3.2.0: 2017-11-07 + +This is a bug fix release for Ruby/Poppler. + +=== Changes + +==== Ruby/GLib + + * Improvements + + * (({GLib::IOChannel#create_watch})): Supported. + [GitHub#1106][Reported by kspt-johs] + + * (({GLib::IOChannel#create_watch})): Supported. + +==== Ruby/GTK3 + + * Improvements + + * Added a sample. + [GitHub#1109][Patch by cedlemo] + +==== Ruby/Poppler + + * Improvements + + * (({Poppler#Document#size})): Added again. + + * (({Poppler#Document#pages})): Added again. + + * Fixes + + * Updated dependencies. + [GitHub#1107][Reported by OBATA Akio] + + * (({Poppler#Document#initialize(:data => data)})): Added + workaround. It should be fixed in upstream. + +=== Thanks + + * kspt-johs + + * OBATA Akio + + * cedlemo + == Ruby-GNOME2 3.1.9: 2017-10-16 This is a release that includes GObject Introspection migrated Ruby/Poppler. |
From: Kouhei S. <nu...@co...> - 2017-11-06 15:20:08
|
Kouhei Sutou 2017-11-07 00:19:26 +0900 (Tue, 07 Nov 2017) New Revision: bd3a7b334eeb478894d3332ba12ab52923d17b1a https://github.com/ruby-gnome2/ruby-gnome2/commit/bd3a7b334eeb478894d3332ba12ab52923d17b1a Message: poppler: use memory input stream Modified files: poppler/lib/poppler/document.rb poppler/test/test-document.rb Modified: poppler/lib/poppler/document.rb (+4 -19) =================================================================== --- poppler/lib/poppler/document.rb 2017-11-03 01:13:30 +0900 (d490b344c) +++ poppler/lib/poppler/document.rb 2017-11-07 00:19:26 +0900 (808ff0d54) @@ -14,8 +14,6 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -require "tempfile" - module Poppler class Document include Enumerable @@ -53,24 +51,11 @@ module Poppler # string. So UTF-8 validation is failed. # # TODO: Enable the following: - # initialize_new_from_data(data, password - - # Whey does not the following work? - # stream = Gio::MemoryInputStream.new(data) - # begin - # initialize_new_from_stream(stream, data.bytesize, password) - # ensure - # stream.close - # end + # initialize_new_from_data(data, password) - file = Tempfile.new(["poppler", ".pdf"]) - begin - file.print(data) - file.flush - initialize_new_from_file(ensure_uri(file.path), password) - ensure - file.close! - end + @bytes = GLib::Bytes.new(data) + @stream = Gio::MemoryInputStream.new(@bytes) + initialize_new_from_stream(@stream, data.bytesize, password) elsif uri initialize_new_from_file(uri, password) elsif path Modified: poppler/test/test-document.rb (+8 -4) =================================================================== --- poppler/test/test-document.rb 2017-11-03 01:13:30 +0900 (35bbd01d6) +++ poppler/test/test-document.rb 2017-11-07 00:19:26 +0900 (3db649f71) @@ -1,10 +1,14 @@ class TestDocument < Test::Unit::TestCase sub_test_case("#initialize") do def test_data - data = File.read(outline_pdf, :encoding => "ASCII-8BIT") - document = Poppler::Document.new(:data => data) - assert_equal("Heading1\nHeading2\nHeading3", - document[0].text) + pdf = StringIO.new + surface = Cairo::PDFSurface.new(pdf, 100, 100) + context = Cairo::Context.new(surface) + context.show_text("Hello") + surface.finish + + document = Poppler::Document.new(:data => pdf.string) + assert_equal("Hello", document[0].text) end end |
From: Kouhei S. <nu...@co...> - 2017-11-02 16:13:58
|
Kouhei Sutou 2017-11-03 01:13:30 +0900 (Fri, 03 Nov 2017) New Revision: 9e9fdf2af81acefe08a8af6f094608dc7906f18c https://github.com/ruby-gnome2/ruby-gnome2/commit/9e9fdf2af81acefe08a8af6f094608dc7906f18c Message: poppler: add Document#pages Modified files: poppler/lib/poppler/document.rb poppler/test/test-document.rb Modified: poppler/lib/poppler/document.rb (+2 -0) =================================================================== --- poppler/lib/poppler/document.rb 2017-11-03 01:12:23 +0900 (aa129c015) +++ poppler/lib/poppler/document.rb 2017-11-03 01:13:30 +0900 (d490b344c) @@ -122,6 +122,8 @@ module Poppler alias_method :size, :n_pages + alias_method :pages, :to_a + private def pdf_data?(data) data.start_with?("%PDF-1.") Modified: poppler/test/test-document.rb (+6 -0) =================================================================== --- poppler/test/test-document.rb 2017-11-03 01:12:23 +0900 (885275b35) +++ poppler/test/test-document.rb 2017-11-03 01:13:30 +0900 (35bbd01d6) @@ -59,6 +59,12 @@ class TestDocument < Test::Unit::TestCase assert_equal(2, document.size) end + def test_pages + document = Poppler::Document.new(multiple_pages_pdf) + assert_equal(["The first page", "The second page"], + document.pages.collect(&:text)) + end + private def find_first_text_field(document) document.each do |page| |
From: Kouhei S. <nu...@co...> - 2017-11-02 16:12:57
|
Kouhei Sutou 2017-11-03 01:12:23 +0900 (Fri, 03 Nov 2017) New Revision: f6d45d67d95b846e36f5b2600f200056fec7fb50 https://github.com/ruby-gnome2/ruby-gnome2/commit/f6d45d67d95b846e36f5b2600f200056fec7fb50 Message: poppler: add Document#size Modified files: poppler/lib/poppler/document.rb poppler/test/test-document.rb Modified: poppler/lib/poppler/document.rb (+2 -0) =================================================================== --- poppler/lib/poppler/document.rb 2017-11-03 01:11:11 +0900 (d9246b772) +++ poppler/lib/poppler/document.rb 2017-11-03 01:12:23 +0900 (aa129c015) @@ -120,6 +120,8 @@ module Poppler IndexIter.new(self) end + alias_method :size, :n_pages + private def pdf_data?(data) data.start_with?("%PDF-1.") Modified: poppler/test/test-document.rb (+5 -0) =================================================================== --- poppler/test/test-document.rb 2017-11-03 01:11:11 +0900 (f0fbc7df8) +++ poppler/test/test-document.rb 2017-11-03 01:12:23 +0900 (885275b35) @@ -54,6 +54,11 @@ class TestDocument < Test::Unit::TestCase document.collect(&:text)) end + def test_size + document = Poppler::Document.new(multiple_pages_pdf) + assert_equal(2, document.size) + end + private def find_first_text_field(document) document.each do |page| |
From: Kouhei S. <nu...@co...> - 2017-11-02 16:12:03
|
Kouhei Sutou 2017-11-03 01:11:11 +0900 (Fri, 03 Nov 2017) New Revision: 1fe3ee0d86dfa1c030ce025251b8a6478f5513a7 https://github.com/ruby-gnome2/ruby-gnome2/commit/1fe3ee0d86dfa1c030ce025251b8a6478f5513a7 Message: poppler: add workaround for Poppler::Document#new(:data => ) Modified files: poppler/lib/poppler/document.rb poppler/test/test-document.rb Modified: poppler/lib/poppler/document.rb (+66 -36) =================================================================== --- poppler/lib/poppler/document.rb 2017-10-30 00:06:38 +0900 (58b29692f) +++ poppler/lib/poppler/document.rb 2017-11-03 01:11:11 +0900 (d9246b772) @@ -14,6 +14,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +require "tempfile" + module Poppler class Document include Enumerable @@ -22,47 +24,75 @@ module Poppler def initialize(*args) if args.size == 1 and args[0].is_a?(Hash) options = args[0] - data = options[:data] - uri = options[:uri] - path = options[:path] - stream = options[:stream] - length = options[:length] - file = options[:file] - password = options[:password] - - if data - initialize_new_from_data(data, password) - elsif uri - initialize_new_from_file(uri, password) - elsif path - uri = ensure_uri(path) - initialize_new_from_file(uri, password) - elsif stream - if length.nil? - raise(ArgumentError, - "must specify :length for :stream: #{options.inspect}") - end - initialize_new_from_stream(stream, length, password) - elsif file - if file.is_a?(String) - initialize(path: file, password: password) - else - initialize_new_from_gfile(file, password) - end - else - message = - "must specify one of :data, :uri, :path, :stream or :file: " + - options.inspect - raise(ArgumentError, message) - end else uri_or_data, password = args if pdf_data?(uri_or_data) - initialize_new_from_data(uri_or_data, password) + options = { + :data => uri_or_data, + :password => password + } + else + options = { + :uri => ensure_uri(uri_or_data), + :password => password + } + end + end + + data = options[:data] + uri = options[:uri] + path = options[:path] + stream = options[:stream] + length = options[:length] + file = options[:file] + password = options[:password] + + if data + # Workaround: poppler_document_new_from_data()'s .gir + # accepts PDF data as UTF-8 string. PDF data is not UTF-8 + # string. So UTF-8 validation is failed. + # + # TODO: Enable the following: + # initialize_new_from_data(data, password + + # Whey does not the following work? + # stream = Gio::MemoryInputStream.new(data) + # begin + # initialize_new_from_stream(stream, data.bytesize, password) + # ensure + # stream.close + # end + + file = Tempfile.new(["poppler", ".pdf"]) + begin + file.print(data) + file.flush + initialize_new_from_file(ensure_uri(file.path), password) + ensure + file.close! + end + elsif uri + initialize_new_from_file(uri, password) + elsif path + uri = ensure_uri(path) + initialize_new_from_file(uri, password) + elsif stream + if length.nil? + raise(ArgumentError, + "must specify :length for :stream: #{options.inspect}") + end + initialize_new_from_stream(stream, length, password) + elsif file + if file.is_a?(String) + initialize(path: file, password: password) else - uri = ensure_uri(uri_or_data) - initialize_new_from_file(uri, password) + initialize_new_from_gfile(file, password) end + else + message = + "must specify one of :data, :uri, :path, :stream or :file: " + + options.inspect + raise(ArgumentError, message) end end Modified: poppler/test/test-document.rb (+9 -0) =================================================================== --- poppler/test/test-document.rb 2017-10-30 00:06:38 +0900 (1cb4f41b5) +++ poppler/test/test-document.rb 2017-11-03 01:11:11 +0900 (f0fbc7df8) @@ -1,4 +1,13 @@ class TestDocument < Test::Unit::TestCase + sub_test_case("#initialize") do + def test_data + data = File.read(outline_pdf, :encoding => "ASCII-8BIT") + document = Poppler::Document.new(:data => data) + assert_equal("Heading1\nHeading2\nHeading3", + document[0].text) + end + end + def test_save saved_pdf = File.join(tmp_dir, "saved.pdf") FileUtils.rm_f(saved_pdf) |
From: Travis CI <bu...@tr...> - 2017-10-29 15:30:21
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4626 Status: Passed Duration: 22 minutes and 37 seconds Commit: 3c175a3 (master) Author: Kouhei Sutou Message: Revert "glib2: try simplifying" This reverts commit 81e143468bf0c799db8bfa1ae1f1dbf9af1df0e1. It doesn't work. View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/81e143468bf0...3c175a3ebc52 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/294473304?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-10-29 15:07:11
|
Kouhei Sutou 2017-10-30 00:06:38 +0900 (Mon, 30 Oct 2017) New Revision: 3c175a3ebc52e658a004c7ac4ce17bd2d577a9e2 https://github.com/ruby-gnome2/ruby-gnome2/commit/3c175a3ebc52e658a004c7ac4ce17bd2d577a9e2 Message: Revert "glib2: try simplifying" This reverts commit 81e143468bf0c799db8bfa1ae1f1dbf9af1df0e1. It doesn't work. Modified files: glib2/ext/glib2/rbglib_source.c Modified: glib2/ext/glib2/rbglib_source.c (+12 -1) =================================================================== --- glib2/ext/glib2/rbglib_source.c 2017-10-29 23:28:52 +0900 (8e5fbf4b7) +++ glib2/ext/glib2/rbglib_source.c 2017-10-30 00:06:38 +0900 (e4540cf78) @@ -25,6 +25,17 @@ static ID id_call; /*****************************************/ #if !GLIB_CHECK_VERSION(2,30,0) +static void +source_free(GSource *source) +{ + if (g_source_is_destroyed(source)) { + return; + } + + g_source_unref(source); + g_source_destroy(source); +} + GType g_source_get_type(void) { @@ -32,7 +43,7 @@ g_source_get_type(void) if (our_type == 0) our_type = g_boxed_type_register_static ("GSource", (GBoxedCopyFunc)g_source_ref, - (GBoxedFreeFunc)g_source_unref); + (GBoxedFreeFunc)source_free); return our_type; } #endif |
From: Travis CI <bu...@tr...> - 2017-10-29 15:06:16
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4625 Status: Errored Duration: 29 minutes and 3 seconds Commit: 81e1434 (master) Author: Kouhei Sutou Message: glib2: try simplifying View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/a146da10ceaa...81e143468bf0 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/294462908?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Travis CI <bu...@tr...> - 2017-10-29 14:43:30
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4624 Status: Passed Duration: 21 minutes and 51 seconds Commit: a146da1 (master) Author: Kouhei Sutou Message: glib2: fix backward compatible G_TYPE_SOURCE for GLib 2.30 or earlier View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/f666c933e526...a146da10ceaa View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/294460241?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-10-29 14:29:29
|
Kouhei Sutou 2017-10-29 23:28:52 +0900 (Sun, 29 Oct 2017) New Revision: 81e143468bf0c799db8bfa1ae1f1dbf9af1df0e1 https://github.com/ruby-gnome2/ruby-gnome2/commit/81e143468bf0c799db8bfa1ae1f1dbf9af1df0e1 Message: glib2: try simplifying Modified files: glib2/ext/glib2/rbglib_source.c Modified: glib2/ext/glib2/rbglib_source.c (+1 -12) =================================================================== --- glib2/ext/glib2/rbglib_source.c 2017-10-29 23:18:57 +0900 (e4540cf78) +++ glib2/ext/glib2/rbglib_source.c 2017-10-29 23:28:52 +0900 (8e5fbf4b7) @@ -25,17 +25,6 @@ static ID id_call; /*****************************************/ #if !GLIB_CHECK_VERSION(2,30,0) -static void -source_free(GSource *source) -{ - if (g_source_is_destroyed(source)) { - return; - } - - g_source_unref(source); - g_source_destroy(source); -} - GType g_source_get_type(void) { @@ -43,7 +32,7 @@ g_source_get_type(void) if (our_type == 0) our_type = g_boxed_type_register_static ("GSource", (GBoxedCopyFunc)g_source_ref, - (GBoxedFreeFunc)source_free); + (GBoxedFreeFunc)g_source_unref); return our_type; } #endif |
From: Kouhei S. <nu...@co...> - 2017-10-29 14:20:54
|
Kouhei Sutou 2017-10-29 23:18:57 +0900 (Sun, 29 Oct 2017) New Revision: a146da10ceaa8a5850d8db9b8d41e904d8f0be88 https://github.com/ruby-gnome2/ruby-gnome2/commit/a146da10ceaa8a5850d8db9b8d41e904d8f0be88 Message: glib2: fix backward compatible G_TYPE_SOURCE for GLib 2.30 or earlier Modified files: glib2/ext/glib2/rbglib_source.c Modified: glib2/ext/glib2/rbglib_source.c (+4 -0) =================================================================== --- glib2/ext/glib2/rbglib_source.c 2017-10-28 21:18:44 +0900 (c42a5d586) +++ glib2/ext/glib2/rbglib_source.c 2017-10-29 23:18:57 +0900 (e4540cf78) @@ -28,6 +28,10 @@ static ID id_call; static void source_free(GSource *source) { + if (g_source_is_destroyed(source)) { + return; + } + g_source_unref(source); g_source_destroy(source); } |
From: Travis CI <bu...@tr...> - 2017-10-28 12:54:22
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4623 Status: Errored Duration: 26 minutes and 50 seconds Commit: f666c93 (master) Author: Kouhei Sutou Message: glib2 test: ensure removing source View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/b2a3c13cb47b...f666c933e526 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/294100197?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Travis CI <bu...@tr...> - 2017-10-28 12:26:51
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4622 Status: Errored Duration: 26 minutes and 0 seconds Commit: b2a3c13 (master) Author: Kouhei Sutou Message: Merge pull request #1109 from cedlemo/gtk3_sample_gtk_demo_tree_store_rb Gtk3 sample gtk demo tree store rb Patch by cedlemo. Thanks!!! View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/755d59fc7566...b2a3c13cb47b View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/294094203?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-10-28 12:26:40
|
Kouhei Sutou 2017-10-28 21:18:44 +0900 (Sat, 28 Oct 2017) New Revision: f666c933e52656b43eefa39ea07e0c05867959f1 https://github.com/ruby-gnome2/ruby-gnome2/commit/f666c933e52656b43eefa39ea07e0c05867959f1 Message: glib2 test: ensure removing source Modified files: glib2/test/test-iochannel.rb Modified: glib2/test/test-iochannel.rb (+18 -8) =================================================================== --- glib2/test/test-iochannel.rb 2017-10-28 20:59:43 +0900 (079022559) +++ glib2/test/test-iochannel.rb 2017-10-28 21:18:44 +0900 (74835d21d) @@ -295,12 +295,17 @@ class TestGIOChannel < Test::Unit::TestCase received_condition = nil source = channel.create_watch(GLib::IOChannel::IN) do |_, condition| received_condition = condition + GLib::Source::CONTINUE end - source.attach(@context) - 10.times do - @context.iteration(false) + begin + source.attach(@context) + 10.times do + @context.iteration(false) + end + assert_equal(GLib::IOCondition::IN, received_condition) + ensure + source.destroy end - assert_equal(GLib::IOCondition::IN, received_condition) end end @@ -310,12 +315,17 @@ class TestGIOChannel < Test::Unit::TestCase source = channel.create_watch(GLib::IOChannel::IN) source.set_callback do |_, condition| received_condition = condition + GLib::Source::CONTINUE end - source.attach(@context) - 10.times do - @context.iteration(false) + begin + source.attach(@context) + 10.times do + @context.iteration(false) + end + assert_equal(GLib::IOCondition::IN, received_condition) + ensure + source.destroy end - assert_equal(GLib::IOCondition::IN, received_condition) end end end |
From: cedlemo <nu...@co...> - 2017-10-28 12:00:01
|
cedlemo 2017-10-28 02:03:18 +0900 (Sat, 28 Oct 2017) New Revision: f9be1680a472fef65e64e7ae0be02ef000043b2a https://github.com/ruby-gnome2/ruby-gnome2/commit/f9be1680a472fef65e64e7ae0be02ef000043b2a Merged b2a3c13: Merge pull request #1109 from cedlemo/gtk3_sample_gtk_demo_tree_store_rb Message: Gtk3 gtk-demo: add tree_store demo Added files: gtk3/sample/gtk-demo/tree_store.rb Added: gtk3/sample/gtk-demo/tree_store.rb (+257 -0) 100644 =================================================================== --- /dev/null +++ gtk3/sample/gtk-demo/tree_store.rb 2017-10-28 02:03:18 +0900 (06cf30779) @@ -0,0 +1,257 @@ +# Copyright (c) 2017 Ruby-GNOME2 Project Team +# This program is licenced under the same licence as Ruby-GNOME2. +# +=begin += Tree View/Tree Store + + The GtkTreeStore is used to store data in tree form, to be + used later on by a GtkTreeView to display it. This demo builds + a simple GtkTreeStore and displays it. If you're new to the + GtkTreeView widgets and associates, look into the GtkListStore + example first. +=end +class TreeStoreDemo + TreeItem = Struct.new("TreeItem", + :label, :alex, :havoc, :tim, :owen, :dave, + :world_holiday, :children) + HOLIDAY_NAME_COLUMN, ALEX_COLUMN, HAVOC_COLUMN, TIM_COLUMN, OWEN_COLUMN, + DAVE_COLUMN, VISIBLE_COLUMN, WORLD_COLUMN, NUM_COLUMNS = (0..8).to_a + + January = [ + ["New Years Day", true, true, true, true, false, true, nil], + ["Presidential Inauguration", false, true, false, true, false, false, nil], + ["Martin Luther King Jr. day", false, true, false, true, false, false, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + February = [ + ["Presidents' Day", false, true, false, true, false, false, nil], + ["Groundhog Day", false, false, false, false, false, false, nil], + ["Valentine's Day", false, false, false, false, true, true, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + March = [ + ["National Tree Planting Day", false, false, false, false, false, false, nil], + ["St Patrick's Day", false, false, false, false, false, true, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + April = [ + ["April Fools' Day", false, false, false, false, false, true, nil], + ["Army Day", false, false, false, false, false, false, nil], + ["Earth Day", false, false, false, false, false, true, nil], + ["Administrative Professionals' Day", false, false, false, false, false, false, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + May = [ + ["Nurses' Day", false, false, false, false, false, false, nil], + ["National Day of Prayer", false, false, false, false, false, false, nil], + ["Mothers' Day", false, false, false, false, false, true, nil], + ["Armed Forces Day", false, false, false, false, false, false, nil], + ["Memorial Day", true, true, true, true, false, true, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + June = [ + ["June Fathers' Day", false, false, false, false, false, true, nil], + ["Juneteenth (Liberation of Slaves)", false, false, false, false, false, false, nil], + ["Flag Day", false, true, false, true, false, false, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + July = [ + ["Parents' Day", false, false, false, false, false, true, nil], + ["Independence Day", false, true, false, true, false, false, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + August = [ + ["Air Force Day", false, false, false, false, false, false, nil], + ["Coast Guard Day", false, false, false, false, false, false, nil], + ["Friendship Day", false, false, false, false, false, false, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + September = [ + ["Grandparents' Day", false, false, false, false, false, true, nil], + ["Citizenship Day or Constitution Day", false, false, false, false, false, false, nil], + ["Labor Day", true, true, true, true, false, true, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + October = [ + ["National Children's Day", false, false, false, false, false, false, nil], + ["Bosses' Day", false, false, false, false, false, false, nil], + ["Sweetest Day", false, false, false, false, false, false, nil], + ["Mother-in-Law's Day", false, false, false, false, false, false, nil], + ["Navy Day", false, false, false, false, false, false, nil], + ["Columbus Day", false, true, false, true, false, false, nil], + ["Halloween", false, false, false, false, false, true, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + November = [ + ["Marine Corps Day", false, false, false, false, false, false, nil], + ["Veterans' Day", true, true, true, true, false, true, nil], + ["Thanksgiving", false, true, false, true, false, false, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + December = [ + ["Pearl Harbor Remembrance Day", false, false, false, false, false, false, nil], + ["Christmas", true, true, true, true, false, true, nil], + ["Kwanzaa", false, false, false, false, false, false, nil] + ].collect do |ary| + TreeItem.new(*ary) + end + + Toplevel = [ + ["January", false, false, false, false, false, false, January], + ["February", false, false, false, false, false, false, February], + ["March", false, false, false, false, false, false, March], + ["April", false, false, false, false, false, false, April], + ["May", false, false, false, false, false, false, May], + ["June", false, false, false, false, false, false, June], + ["July", false, false, false, false, false, false, July], + ["August", false, false, false, false, false, false, August], + ["September", false, false, false, false, false, false, September], + ["October", false, false, false, false, false, false, October], + ["November", false, false, false, false, false, false, November], + ["December", false, false, false, false, false, false, December] + ].collect do |ary| + TreeItem.new(*ary) + end + + def initialize(main_window) + @window = Gtk::Window.new(:toplevel) + @window.screen = main_window.screen + @window.title = "Tree Store" + + vbox = Gtk::Box.new(:vertical, 8) + vbox.margin = 8 + @window.add(vbox) + label = Gtk::Label.new("Jonathan's Holiday Card Planning Sheet") + vbox.pack_start(label) + + sw = Gtk::ScrolledWindow.new + sw.shadow_type = :etched_in + sw.set_policy(:automatic, :automatic) + vbox.pack_start(sw, :expand => true, :fill => true, :padding => 0) + + create_model + @treeview = Gtk::TreeView.new(@model) + @treeview.selection.mode = :multiple + + add_columns + sw.add(@treeview) + + # Expand all rows after the treeview widget has been realized + @treeview.signal_connect("realize", &:expand_all) + @window.set_default_size(650, 400) + end + + def run + if !@window.visible? + @window.show_all + else + @window.destroy + end + @window + end + + private + + def create_model + @model = Gtk::TreeStore.new(String, TrueClass, TrueClass, TrueClass, + TrueClass, TrueClass, TrueClass, TrueClass) + Toplevel.each do |month| + iter = @model.append(nil) + iter[HOLIDAY_NAME_COLUMN] = month.label + iter[ALEX_COLUMN] = false + iter[HAVOC_COLUMN] = false + iter[TIM_COLUMN] = false + iter[OWEN_COLUMN] = false + iter[DAVE_COLUMN] = false + iter[VISIBLE_COLUMN] = false + iter[WORLD_COLUMN] = false + + holidays = month.children + # add children + holidays.each do |holiday| + child_iter = @model.append(iter) + child_iter[HOLIDAY_NAME_COLUMN] = holiday.label + child_iter[ALEX_COLUMN] = holiday.alex + child_iter[HAVOC_COLUMN] = holiday.havoc + child_iter[TIM_COLUMN] = holiday.tim + child_iter[OWEN_COLUMN] = holiday.owen + child_iter[DAVE_COLUMN] = holiday.dave + child_iter[VISIBLE_COLUMN] = true + child_iter[WORLD_COLUMN] = holiday.world_holiday + end + end + end + + def add_toggle_column(label, col_index, attributes) + renderer = Gtk::CellRendererToggle.new + renderer.xalign = 0.0 + renderer.signal_connect "toggled" do |_cell, path_str| + path = Gtk::TreePath.new(path_str) + iter = @model.get_iter(path) + toggle_item = iter[col_index] + + toggle_item = !toggle_item + iter[col_index] = toggle_item + end + + col_offset = @treeview.insert_column(-1, label, renderer, attributes) + column = @treeview.get_column(col_offset - 1) + column.sizing = :fixed + column.clickable = true + end + + def add_columns + # column for holiday names + renderer = Gtk::CellRendererText.new + renderer.xalign = 0.0 + + col_offset = @treeview.insert_column(-1, "Holiday", renderer, + :text => HOLIDAY_NAME_COLUMN) + column = @treeview.get_column(col_offset - 1) + column.clickable = true + + add_toggle_column("Alex", ALEX_COLUMN, + :active => ALEX_COLUMN, + :visible => VISIBLE_COLUMN, + :activatable => WORLD_COLUMN) + + add_toggle_column("Havoc", HAVOC_COLUMN, + :active => HAVOC_COLUMN, + :visible => VISIBLE_COLUMN) + + add_toggle_column("Tim", TIM_COLUMN, + :active => TIM_COLUMN, + :visible => VISIBLE_COLUMN, + :activatable => WORLD_COLUMN) + + add_toggle_column("Owen", OWEN_COLUMN, + :active => OWEN_COLUMN, + :visible => VISIBLE_COLUMN) + + add_toggle_column("Dave", DAVE_COLUMN, + :active => DAVE_COLUMN, + :visible => VISIBLE_COLUMN) + end +end |
From: Kouhei S. <nu...@co...> - 2017-10-28 11:59:59
|
Kouhei Sutou 2017-10-28 20:59:43 +0900 (Sat, 28 Oct 2017) New Revision: b2a3c13cb47b01e82f44c445685278270f30e233 https://github.com/ruby-gnome2/ruby-gnome2/commit/b2a3c13cb47b01e82f44c445685278270f30e233 Message: Merge pull request #1109 from cedlemo/gtk3_sample_gtk_demo_tree_store_rb Gtk3 sample gtk demo tree store rb Patch by cedlemo. Thanks!!! |
From: cedlemo <nu...@co...> - 2017-10-28 11:59:59
|
cedlemo 2017-10-28 02:03:51 +0900 (Sat, 28 Oct 2017) New Revision: 71d99fd74c45ced44f2261f96349309d10f9992d https://github.com/ruby-gnome2/ruby-gnome2/commit/71d99fd74c45ced44f2261f96349309d10f9992d Merged b2a3c13: Merge pull request #1109 from cedlemo/gtk3_sample_gtk_demo_tree_store_rb Message: Update gtk-demo TODO Modified files: gtk3/sample/gtk-demo/TODO Modified: gtk3/sample/gtk-demo/TODO (+1 -1) =================================================================== --- gtk3/sample/gtk-demo/TODO 2017-10-28 02:03:18 +0900 (d5498f8b9) +++ gtk3/sample/gtk-demo/TODO 2017-10-28 02:03:51 +0900 (1c64d197d) @@ -59,6 +59,7 @@ combobox.c ok ok css_blendmodes.c ok ok fishbowl.c ok ok flowbox.c ok ok +tree_store.c ok ok Remains : @@ -68,7 +69,6 @@ foreigndrawing no no gestures.c no no shortcuts.c no no toolpalette.c no no -tree_store.c ok no # Ruby version Check all the ruby demos that doesn't correspond to a C version. |
From: Travis CI <bu...@tr...> - 2017-10-27 16:11:12
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4620 Status: Errored Duration: 30 minutes and 15 seconds Commit: 755d59f (master) Author: Kouhei Sutou Message: travis: verbose View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/3c9e15fb8247...755d59fc7566 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/293737749?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Travis CI <bu...@tr...> - 2017-10-27 15:49:22
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4617 Status: Errored Duration: 25 minutes and 42 seconds Commit: acedb34 (master) Author: Kouhei Sutou Message: glib2 test: use "-" as separator for file name View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/5c83cb799e9f...acedb3472abe View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/293735728?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-10-27 15:26:55
|
Kouhei Sutou 2017-10-28 00:26:27 +0900 (Sat, 28 Oct 2017) New Revision: 755d59fc75662e14126af7c27ccd1fb9ed69dd0f https://github.com/ruby-gnome2/ruby-gnome2/commit/755d59fc75662e14126af7c27ccd1fb9ed69dd0f Message: travis: verbose Modified files: travis/Dockerfile.centos-6 Modified: travis/Dockerfile.centos-6 (+1 -1) =================================================================== --- travis/Dockerfile.centos-6 2017-10-28 00:24:44 +0900 (42c5a7c35) +++ travis/Dockerfile.centos-6 2017-10-28 00:26:27 +0900 (67a1bf871) @@ -42,4 +42,4 @@ WORKDIR /home/ruby-gnome2/ruby-gnome2 RUN gem install bundler RUN bundle install -CMD cd glib2 && ruby extconf.rb && test/run-test.rb +CMD cd glib2 && ruby extconf.rb && test/run-test.rb -v |
From: Kouhei S. <nu...@co...> - 2017-10-27 15:25:14
|
Kouhei Sutou 2017-10-28 00:24:44 +0900 (Sat, 28 Oct 2017) New Revision: 3c9e15fb8247769cc22270b6ff018cae230260cc https://github.com/ruby-gnome2/ruby-gnome2/commit/3c9e15fb8247769cc22270b6ff018cae230260cc Message: glib2 test: fix style Modified files: glib2/test/test-iochannel.rb Modified: glib2/test/test-iochannel.rb (+5 -5) =================================================================== --- glib2/test/test-iochannel.rb 2017-10-28 00:23:58 +0900 (f23650a61) +++ glib2/test/test-iochannel.rb 2017-10-28 00:24:44 +0900 (079022559) @@ -62,7 +62,7 @@ class TestGIOChannel < Test::Unit::TestCase GLib::IOChannel.open(write_test_file.path, "w") do |_io| io = _io assert_raises(RuntimeError) do - assert_equal(@content, io.read) + assert_equal(@content, io.read) end end @@ -78,8 +78,8 @@ class TestGIOChannel < Test::Unit::TestCase def test_getc io = GLib::IOChannel.new(@file.path) ["a", "b", "c", "あ"].each do |v| - 3.times do - assert_equal(v.unpack("U")[0], io.getc) + 3.times do + assert_equal(v.unpack("U")[0], io.getc) end assert_equal("\n".unpack("U")[0], io.getc) end @@ -159,7 +159,7 @@ class TestGIOChannel < Test::Unit::TestCase io = GLib::IOChannel.new(@file.path) assert_raises(RuntimeError) { io.each {|line| - raise "test" + raise "test" } } io.close @@ -176,7 +176,7 @@ class TestGIOChannel < Test::Unit::TestCase GLib::IOChannel.open(@file.path) do |_io| io = _io io.each_with_index do |line, _i| - assert_equal(lines[_i], line) + assert_equal(lines[_i], line) end end |