ooxml_crypt 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3056f9d372b1df8ced53564a188890bebfde35d3a02776c009fbd577db36ed06
4
- data.tar.gz: afcbc71db47b75a863ffc2bd6ce84b3350b006c1996ce2abd812b45614e731fe
3
+ metadata.gz: c7f876fbdff234101de69ca5a2b35cee3d12ad7cfb974548648f8e3d5abb7670
4
+ data.tar.gz: 8db6f0212c4d93a32c84ecb9fb7337c7d94eab425381fb3b3c88cfc8b2bd7ce3
5
5
  SHA512:
6
- metadata.gz: e4123c5016a908520e1a0dcd61614b26c81abfd1c467b61486c47ef47d44a92408339114db6eeedda2a962f46d369e4405e8d6a1e872029f872783e9827d905e
7
- data.tar.gz: b2c0cfa98d5cf4b8e472957735dfa9010bc72df5f708b686ec8aa0831f18540423a468ce078bb801d4117b665fc119d39facb5ebb5d121dc81fad50cd42c5461
6
+ metadata.gz: 0bc0fa7f78518b6d82a5a82725793475dcadc5d819fed25ae8c26c69e4b19dc4022ed7e73b7c7f41c5f0818d5d8892eb969f1bc77593f82354b98ca1f7fa1999
7
+ data.tar.gz: 9c6fb88936d15fbdf3a33b79604802a141be4f3f3c0c5bd643cd5794f9976ac29b140c37384cf075ccd22acf3eb8853c160f319d323384e3acdcff4703c7a33e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OoxmlCrypt
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/ooxml_crypt/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "ooxml_crypt"
7
+ spec.version = OoxmlCrypt::VERSION
8
+ spec.authors = ["Ashish Kulkarni"]
9
+ spec.email = ["ashish@kulkarni.dev"]
10
+
11
+ spec.summary = "Library for encrypting/decrypting password-protected Microsoft Office XML (OOXML) files (e.g. .docx, .xlsx, .pptx)"
12
+ spec.homepage = "https://github.com/teamsimplepay/ooxml_crypt"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 2.6.0"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject do |f|
23
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
24
+ end
25
+ end
26
+ spec.require_paths = ["lib"]
27
+ spec.extensions = ["ext/ooxml_crypt/extconf.rb"]
28
+
29
+ spec.add_development_dependency "bundler", "~> 2.2"
30
+ spec.add_development_dependency "rake", "~> 13.0"
31
+ spec.add_development_dependency "rake-compiler", "~> 1.1"
32
+
33
+ spec.metadata["msys2_mingw_dependencies"] = "openssl"
34
+ end
@@ -75,16 +75,12 @@
75
75
  #endif
76
76
  #endif
77
77
  #ifndef CYBOZU_ASSUME
78
- #ifdef NDEBUG
79
- #if defined(__clang__)
80
- #define CYBOZU_ASSUME(x) __builtin_assume(x)
81
- #elif defined(_MSC_VER) || defined(__ICC)
82
- #define CYBOZU_ASSUME(x) __assume(x)
83
- #else
84
- #define CYBOZU_ASSUME(x) if (!(x)) { __builtin_unreachable(); }
85
- #endif
78
+ #if defined(__clang__)
79
+ #define CYBOZU_ASSUME(x) assert(x); __builtin_assume(x)
80
+ #elif defined(_MSC_VER) || defined(__ICC)
81
+ #define CYBOZU_ASSUME(x) assert(x); __assume(x)
86
82
  #else
87
- #define CYBOZU_ASSUME(x) assert(x)
83
+ #define CYBOZU_ASSUME(x) assert(x); if (!(x)) { __builtin_unreachable(); }
88
84
  #endif
89
85
  #endif
90
86
 
@@ -37,7 +37,11 @@ namespace cybozu {
37
37
  #if defined(__GNUC__) && (__SIZEOF_WCHAR_T__ == 4)
38
38
  /* avoid to use uint32_t because compiling boost::regex fails */
39
39
  typedef wchar_t Char; //!< Char for Linux
40
+ #if __cplusplus >= 201103L
41
+ typedef char16_t Char16;
42
+ #else
40
43
  typedef unsigned short Char16; /* unsigned is necessary for gcc */
44
+ #endif
41
45
  #else
42
46
  typedef int Char; //!< Char for Windows
43
47
  typedef wchar_t Char16;
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ooxml_crypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashish Kulkarni
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-03 00:00:00.000000000 Z
10
+ date: 2025-05-20 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -52,7 +51,6 @@ dependencies:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
53
  version: '1.1'
55
- description:
56
54
  email:
57
55
  - ashish@kulkarni.dev
58
56
  executables: []
@@ -71,6 +69,7 @@ files:
71
69
  - ext/ooxml_crypt/ooxml_crypt.h
72
70
  - lib/ooxml_crypt.rb
73
71
  - lib/ooxml_crypt/version.rb
72
+ - ooxml_crypt.gemspec
74
73
  - vendor/cybozulib/.github/workflows/main.yml
75
74
  - vendor/cybozulib/.gitignore
76
75
  - vendor/cybozulib/CMakeLists.txt
@@ -324,7 +323,6 @@ metadata:
324
323
  homepage_uri: https://github.com/teamsimplepay/ooxml_crypt
325
324
  source_code_uri: https://github.com/teamsimplepay/ooxml_crypt
326
325
  msys2_mingw_dependencies: openssl
327
- post_install_message:
328
326
  rdoc_options: []
329
327
  require_paths:
330
328
  - lib
@@ -339,8 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
337
  - !ruby/object:Gem::Version
340
338
  version: '0'
341
339
  requirements: []
342
- rubygems_version: 3.4.20
343
- signing_key:
340
+ rubygems_version: 3.6.2
344
341
  specification_version: 4
345
342
  summary: Library for encrypting/decrypting password-protected Microsoft Office XML
346
343
  (OOXML) files (e.g. .docx, .xlsx, .pptx)