gir_ffi-pretty_printer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+
3
+ describe 'The pretty-printed GLib module' do
4
+ let(:printer) { GirFFI::PrettyPrinter.new }
5
+ it 'looks as expected' do
6
+ expected = File.read(File.join(File.dirname(__FILE__), 'expected_glib.rb'))
7
+ result = printer.pretty_print 'GLib'
8
+
9
+ File.open(File.join(File.dirname(__FILE__), 'actual_glib.rb'), 'w') do |resultfile|
10
+ resultfile.puts result
11
+ end
12
+
13
+ result.must_equal expected
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+
3
+ describe 'The pretty-printed GObject module' do
4
+ let(:printer) { GirFFI::PrettyPrinter.new }
5
+ it 'looks as expected' do
6
+ expected = File.read(File.join(File.dirname(__FILE__), 'expected_gobject.rb'))
7
+ result = printer.pretty_print 'GObject'
8
+
9
+ File.open(File.join(File.dirname(__FILE__), 'actual_gobject.rb'), 'w') do |resultfile|
10
+ resultfile.puts result
11
+ end
12
+
13
+ result.must_equal expected
14
+ end
15
+ end
data/test/test_helper.rb CHANGED
@@ -1,3 +1,11 @@
1
+ begin
2
+ require 'simplecov'
3
+ SimpleCov.start do
4
+ add_filter '/test/'
5
+ end
6
+ rescue LoadError
7
+ end
8
+
1
9
  require 'minitest/autorun'
2
10
 
3
11
  require 'gir_ffi-pretty_printer'
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gir_ffi-pretty_printer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-15 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gir_ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
19
+ version: 0.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.0
26
+ version: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mvz-live_ast
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.0
33
+ version: 1.1.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.0
40
+ version: 1.1.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: binding_of_caller
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.7.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.7.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '5.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '10.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '10.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.8.3
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.8.3
97
97
  description: Library and executable to pretty-print modules generated by GirFFI, taking
@@ -102,12 +102,20 @@ executables: []
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
+ - README.md
106
+ - Rakefile
105
107
  - lib/gir_ffi-pretty_printer.rb
108
+ - lib/gir_ffi-pretty_printer/class_pretty_printer.rb
106
109
  - lib/gir_ffi-pretty_printer/pretty_printer.rb
107
- - test/test_helper.rb
110
+ - test/gir_ffi-pretty_printer/class_pretty_printer_test.rb
108
111
  - test/gir_ffi-pretty_printer/pretty_printer_test.rb
109
- - README.md
110
- - Rakefile
112
+ - test/integration/actual_glib.rb
113
+ - test/integration/actual_gobject.rb
114
+ - test/integration/expected_glib.rb
115
+ - test/integration/expected_gobject.rb
116
+ - test/integration/glib_test.rb
117
+ - test/integration/gobject_test.rb
118
+ - test/test_helper.rb
111
119
  homepage: http://www.github.com/mvz/gir_ffi-pretty_printer
112
120
  licenses:
113
121
  - LGPL-2.1
@@ -118,21 +126,28 @@ require_paths:
118
126
  - lib
119
127
  required_ruby_version: !ruby/object:Gem::Requirement
120
128
  requirements:
121
- - - '>='
129
+ - - ">="
122
130
  - !ruby/object:Gem::Version
123
131
  version: '0'
124
132
  required_rubygems_version: !ruby/object:Gem::Requirement
125
133
  requirements:
126
- - - '>='
134
+ - - ">="
127
135
  - !ruby/object:Gem::Version
128
136
  version: '0'
129
137
  requirements: []
130
138
  rubyforge_project:
131
- rubygems_version: 2.0.14
139
+ rubygems_version: 2.5.1
132
140
  signing_key:
133
141
  specification_version: 4
134
142
  summary: Pretty-printer for modules generated by GirFFI
135
143
  test_files:
136
144
  - test/test_helper.rb
145
+ - test/integration/glib_test.rb
146
+ - test/integration/gobject_test.rb
147
+ - test/integration/expected_glib.rb
148
+ - test/integration/actual_glib.rb
149
+ - test/integration/actual_gobject.rb
150
+ - test/integration/expected_gobject.rb
151
+ - test/gir_ffi-pretty_printer/class_pretty_printer_test.rb
137
152
  - test/gir_ffi-pretty_printer/pretty_printer_test.rb
138
153
  has_rdoc: