gir_ffi-pretty_printer 0.0.6 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING.LIB +504 -0
- data/Changelog.md +54 -0
- data/lib/gir_ffi-pretty_printer/class_pretty_printer.rb +9 -5
- data/lib/gir_ffi-pretty_printer/pretty_printer.rb +9 -8
- data/lib/gir_ffi-pretty_printer/version.rb +7 -0
- data/lib/gir_ffi-pretty_printer.rb +1 -1
- metadata +106 -44
- data/Rakefile +0 -33
- data/test/gir_ffi-pretty_printer/class_pretty_printer_test.rb +0 -80
- data/test/gir_ffi-pretty_printer/pretty_printer_test.rb +0 -12
- data/test/integration/actual_glib.rb +0 -9885
- data/test/integration/actual_gobject.rb +0 -3816
- data/test/integration/expected_glib.rb +0 -9885
- data/test/integration/expected_gobject.rb +0 -3816
- data/test/integration/glib_test.rb +0 -17
- data/test/integration/gobject_test.rb +0 -17
- data/test/test_helper.rb +0 -13
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'test_helper'
|
4
|
-
|
5
|
-
describe 'The pretty-printed GLib module' do
|
6
|
-
let(:printer) { GirFFI::PrettyPrinter.new }
|
7
|
-
it 'looks as expected' do
|
8
|
-
expected = File.read(File.join(File.dirname(__FILE__), 'expected_glib.rb'))
|
9
|
-
result = printer.pretty_print 'GLib'
|
10
|
-
|
11
|
-
File.open(File.join(File.dirname(__FILE__), 'actual_glib.rb'), 'w') do |resultfile|
|
12
|
-
resultfile.puts result
|
13
|
-
end
|
14
|
-
|
15
|
-
result.must_equal expected
|
16
|
-
end
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'test_helper'
|
4
|
-
|
5
|
-
describe 'The pretty-printed GObject module' do
|
6
|
-
let(:printer) { GirFFI::PrettyPrinter.new }
|
7
|
-
it 'looks as expected' do
|
8
|
-
expected = File.read(File.join(File.dirname(__FILE__), 'expected_gobject.rb'))
|
9
|
-
result = printer.pretty_print 'GObject'
|
10
|
-
|
11
|
-
File.open(File.join(File.dirname(__FILE__), 'actual_gobject.rb'), 'w') do |resultfile|
|
12
|
-
resultfile.puts result
|
13
|
-
end
|
14
|
-
|
15
|
-
result.must_equal expected
|
16
|
-
end
|
17
|
-
end
|