libcurl 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +21 -0
- data/README.md +23 -0
- data/Rakefile +9 -0
- data/ext/libcurl/extconf.rb +3 -0
- data/ext/libcurl/libcurl.c +5 -0
- data/lib/libcurl/version.rb +5 -0
- data/lib/libcurl.rb +8 -0
- data/libcurl.gemspec +35 -0
- metadata +56 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 99cb483f0ab7d65ee0a449e9eca10982c03eba9107797f63b83965467fffac15
|
4
|
+
data.tar.gz: 1a0713ee1b61ecc8196db609e35d976ad7192d1ce3f325737e69b45c0e86b71e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '0981d334abb6ea8ea6d6798ffadcf4a955e1640620ab6d8900792caa6d9c9d2bb0ffd10bfb7e78d97217346ed07f045e2a0037a00534814c9fab8a4c57f11659'
|
7
|
+
data.tar.gz: fd60d57e0c7a29a67b713655fdcfe6e20e94953844c0673fd451e2c13d50e19c4f910543e25313b02c397c4d96f7bc6570f2a9fb7eb5614638e9dd5b0f56b28c
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
|
+
|
6
|
+
## [0.2.0] - 2023-05-18
|
7
|
+
- update readme
|
8
|
+
|
9
|
+
## [0.1.2] - 2023-05-18
|
10
|
+
- configure spec.extensions ext/libcurl/extconf.rb
|
11
|
+
|
12
|
+
## [0.1.1] - 2023-05-18
|
13
|
+
- add ext/libcurl
|
14
|
+
|
15
|
+
## [0.1.0]
|
16
|
+
- Initial release.
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2023 Tung Nguyen
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Libcurl
|
2
|
+
|
3
|
+
[![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)
|
4
|
+
|
5
|
+
This libcurl gem is used to tell serverlessgems build a libcurl gem that contains libcurl shared library files for AWS Lambda.
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
|
9
|
+
bundle add libcurl
|
10
|
+
|
11
|
+
## Notes
|
12
|
+
|
13
|
+
This gem can be used to use libcurl shared libraries on AWS Lambda. This allows gems like [ethon](https://github.com/typhoeus/ethon) and [typhoeus](https://github.com/typhoeus/typhoeus) that call out to libcurl to work on AWS Lambda.
|
14
|
+
|
15
|
+
Though, this gem works. It is recommended to use other gems that do not rely on libcurl shared libraries when possible. This is because building the shared libcurl libraries for AWS Lambda proved to be quite tricky. It might not be possible later, depending on how AWS Lambda handles libcurl shared libraries in the future.
|
16
|
+
|
17
|
+
## Contributing
|
18
|
+
|
19
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/boltops-tools/libcurl
|
20
|
+
|
21
|
+
## License
|
22
|
+
|
23
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/lib/libcurl.rb
ADDED
data/libcurl.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/libcurl/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "libcurl"
|
7
|
+
spec.version = Libcurl::VERSION
|
8
|
+
spec.authors = ["Tung Nguyen"]
|
9
|
+
spec.email = ["tongueroo@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Tells serverlessgems to build the gem package with libcurl shared libraries for AWS Lambda"
|
12
|
+
spec.homepage = "https://github.com/boltops-tools/libcurl"
|
13
|
+
spec.license = "MIT"
|
14
|
+
spec.required_ruby_version = ">= 2.5.0"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(__dir__) do
|
21
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
22
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
|
23
|
+
end
|
24
|
+
end
|
25
|
+
spec.bindir = "exe"
|
26
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
27
|
+
spec.extensions = ["ext/libcurl/extconf.rb"]
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
# Uncomment to register a new dependency of your gem
|
31
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
32
|
+
|
33
|
+
# For more information and examples about making a new gem, check out our
|
34
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: libcurl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tung Nguyen
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
- tongueroo@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions:
|
18
|
+
- ext/libcurl/extconf.rb
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- CHANGELOG.md
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE.txt
|
24
|
+
- README.md
|
25
|
+
- Rakefile
|
26
|
+
- ext/libcurl/extconf.rb
|
27
|
+
- ext/libcurl/libcurl.c
|
28
|
+
- lib/libcurl.rb
|
29
|
+
- lib/libcurl/version.rb
|
30
|
+
- libcurl.gemspec
|
31
|
+
homepage: https://github.com/boltops-tools/libcurl
|
32
|
+
licenses:
|
33
|
+
- MIT
|
34
|
+
metadata:
|
35
|
+
homepage_uri: https://github.com/boltops-tools/libcurl
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options: []
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 2.5.0
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
requirements: []
|
51
|
+
rubygems_version: 3.4.13
|
52
|
+
signing_key:
|
53
|
+
specification_version: 4
|
54
|
+
summary: Tells serverlessgems to build the gem package with libcurl shared libraries
|
55
|
+
for AWS Lambda
|
56
|
+
test_files: []
|