rapngasm 1.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rapngasm/extconf.rb +5 -5
- data/ext/rapngasm/rapngasm.cpp +10 -4
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bd7622534fe5e431eaaa1ab22f413c1330b3ed0
|
4
|
+
data.tar.gz: d3a28f279201bd5ad0f8b909b03cb2bba55a9bcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0022590795b1f52b58b7e7007331c51e16efd112c443110a2a7e09a5c87d2312afa96205a48f18d2d6d550b6fab9e12a5c6d9cce954aeafeedd94ed094ea0aa6
|
7
|
+
data.tar.gz: 3960e22087e4c10097d43746c16b193a395f704577e051a096915152001b4c8813e7395c8b199885467d6d3e445e851d4ecf04fc572462ca976172e105b22a53
|
data/ext/rapngasm/extconf.rb
CHANGED
@@ -5,8 +5,8 @@ $LOCAL_LIBS = '-lapngasm'
|
|
5
5
|
|
6
6
|
dir_config 'apngasm'
|
7
7
|
|
8
|
-
if have_header('apngasm.h')
|
9
|
-
|
10
|
-
else
|
11
|
-
|
12
|
-
end
|
8
|
+
# if have_header('apngasm.h')
|
9
|
+
create_makefile 'rapngasm'
|
10
|
+
# else
|
11
|
+
# puts 'apngasm is not installed or the headers are not in the system path.'
|
12
|
+
# end
|
data/ext/rapngasm/rapngasm.cpp
CHANGED
@@ -51,8 +51,8 @@ Object to_ruby< unsigned char* > (unsigned char* const & x)
|
|
51
51
|
{
|
52
52
|
unsigned char* const c = x;
|
53
53
|
Array a;
|
54
|
-
for (unsigned int i = 0; i < sizeof(c); i++)
|
55
|
-
a.push(c[i]);
|
54
|
+
for (unsigned int i = 0; i < sizeof(c) ; i++)
|
55
|
+
a.push(to_ruby<unsigned char>(c[i]));
|
56
56
|
return a;
|
57
57
|
}
|
58
58
|
|
@@ -97,11 +97,17 @@ void Init_rapngasm()
|
|
97
97
|
|
98
98
|
define_class<APNGAsm>("APNGAsmSuper")
|
99
99
|
.define_constructor(Constructor<APNGAsm>())
|
100
|
-
.define_method("version", &APNGAsm::version)
|
101
100
|
.define_method("assemble", &APNGAsm::assemble)
|
102
101
|
.define_method("disassemble", &APNGAsm::disassemble)
|
102
|
+
.define_method("load_animation_spec", &APNGAsm::loadAnimationSpec)
|
103
|
+
.define_method("save_pngs", &APNGAsm::savePNGs)
|
104
|
+
.define_method("save_json", &APNGAsm::saveJson)
|
105
|
+
.define_method("save_xml", &APNGAsm::saveXml)
|
106
|
+
//.define_method("set_apngasm_listener", &APNGAsm::setAPNGAsmListener)
|
107
|
+
.define_method("get_frames", &APNGAsm::getFrames)
|
103
108
|
.define_method("frame_count", &APNGAsm::frameCount)
|
104
|
-
.define_method("reset", &APNGAsm::reset)
|
109
|
+
.define_method("reset", &APNGAsm::reset)
|
110
|
+
.define_method("version", &APNGAsm::version);
|
105
111
|
|
106
112
|
define_class<RAPNGAsm, APNGAsm>("APNGAsm")
|
107
113
|
.define_constructor(Constructor<RAPNGAsm>())
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapngasm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei Kagetsuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '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
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rice
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
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
40
|
version: '0'
|
41
41
|
description: Ruby native extension for the apngasm APNG Assembler.
|
@@ -46,8 +46,8 @@ extensions:
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- ext/rapngasm/apngasm_ruby.h
|
49
|
-
- ext/rapngasm/rapngasm.cpp
|
50
49
|
- ext/rapngasm/extconf.rb
|
50
|
+
- ext/rapngasm/rapngasm.cpp
|
51
51
|
homepage: http://www.github.com/apngasm/rapngasm
|
52
52
|
licenses:
|
53
53
|
- libpng/zlib
|
@@ -58,17 +58,17 @@ require_paths:
|
|
58
58
|
- lib
|
59
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.
|
71
|
+
rubygems_version: 2.2.0
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: apngasm for Ruby
|