virtual_name_card 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +58 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +10 -0
- data/base_images/with_twitter.jpg +0 -0
- data/base_images/without_twitter.jpg +0 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fonts/Noto_Sans_JP/NotoSansJP-Black.otf +0 -0
- data/fonts/Noto_Sans_JP/NotoSansJP-Bold.otf +0 -0
- data/fonts/Noto_Sans_JP/NotoSansJP-Light.otf +0 -0
- data/fonts/Noto_Sans_JP/NotoSansJP-Medium.otf +0 -0
- data/fonts/Noto_Sans_JP/NotoSansJP-Regular.otf +0 -0
- data/fonts/Noto_Sans_JP/NotoSansJP-Thin.otf +0 -0
- data/fonts/Noto_Sans_JP/OFL.txt +91 -0
- data/lib/virtual_name_card/generator.rb +80 -0
- data/lib/virtual_name_card/version.rb +3 -0
- data/lib/virtual_name_card.rb +7 -0
- data/virtual_name_card.gemspec +42 -0
- metadata +137 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b8e65dcd155cfa2d829482f46a57f584b072d6397a3b922736c6e4ce45eba17a
|
4
|
+
data.tar.gz: 47e6a87f7a7bec7a4020a7e64d62f8294d42355802ebf4ec14ecaf734ce0bb99
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f5f772339c18a0b876675815e8babdfa695b9d525cb3d41b4da831d6f4551e1fbab2db4395b13e4250249799d66283163948b17bab106d14e86a5716099a2dd6
|
7
|
+
data.tar.gz: dcfa39814b7f35d0e0901071ebaee75038d904f5c293223515c87722439b11c4f611689a9eaad0e50db09bf48a44db0b7e86c803bd57e0a4bef5e30f2bab2d5e
|
data/.gitignore
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
# Ignore Byebug command history file.
|
17
|
+
.byebug_history
|
18
|
+
|
19
|
+
## Specific to RubyMotion:
|
20
|
+
.dat*
|
21
|
+
.repl_history
|
22
|
+
build/
|
23
|
+
*.bridgesupport
|
24
|
+
build-iPhoneOS/
|
25
|
+
build-iPhoneSimulator/
|
26
|
+
|
27
|
+
## Specific to RubyMotion (use of CocoaPods):
|
28
|
+
#
|
29
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
30
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
31
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
32
|
+
#
|
33
|
+
# vendor/Pods/
|
34
|
+
|
35
|
+
## Documentation cache and generated files:
|
36
|
+
/.yardoc/
|
37
|
+
/_yardoc/
|
38
|
+
/doc/
|
39
|
+
/rdoc/
|
40
|
+
|
41
|
+
## Environment normalization:
|
42
|
+
/.bundle/
|
43
|
+
/vendor/bundle
|
44
|
+
/lib/bundler/man/
|
45
|
+
|
46
|
+
# for a library or gem, you might want to ignore these files since the code is
|
47
|
+
# intended to run in multiple environments; otherwise, check them in:
|
48
|
+
Gemfile.lock
|
49
|
+
.ruby-version
|
50
|
+
.ruby-gemset
|
51
|
+
|
52
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
53
|
+
.rvmrc
|
54
|
+
|
55
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
56
|
+
# .rubocop-https?--*
|
57
|
+
|
58
|
+
generated_file.png
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at michikawa.masayoshi@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Michikawa Masayoshi
|
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,43 @@
|
|
1
|
+
# VirtualNameCard
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/virtual_name_card`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'virtual_name_card'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install virtual_name_card
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/michiomochi/virtual_name_card. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the VirtualNameCard project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/michiomochi/virtual_name_card/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
Binary file
|
Binary file
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "virtual_name_card"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "pry"
|
14
|
+
Pry.start(__FILE__)
|
data/bin/setup
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,91 @@
|
|
1
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
2
|
+
This license is copied below, and is also available with a FAQ at:
|
3
|
+
http://scripts.sil.org/OFL
|
4
|
+
|
5
|
+
|
6
|
+
-----------------------------------------------------------
|
7
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
8
|
+
-----------------------------------------------------------
|
9
|
+
|
10
|
+
PREAMBLE
|
11
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
12
|
+
development of collaborative font projects, to support the font creation
|
13
|
+
efforts of academic and linguistic communities, and to provide a free and
|
14
|
+
open framework in which fonts may be shared and improved in partnership
|
15
|
+
with others.
|
16
|
+
|
17
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
18
|
+
redistributed freely as long as they are not sold by themselves. The
|
19
|
+
fonts, including any derivative works, can be bundled, embedded,
|
20
|
+
redistributed and/or sold with any software provided that any reserved
|
21
|
+
names are not used by derivative works. The fonts and derivatives,
|
22
|
+
however, cannot be released under any other type of license. The
|
23
|
+
requirement for fonts to remain under this license does not apply
|
24
|
+
to any document created using the fonts or their derivatives.
|
25
|
+
|
26
|
+
DEFINITIONS
|
27
|
+
"Font Software" refers to the set of files released by the Copyright
|
28
|
+
Holder(s) under this license and clearly marked as such. This may
|
29
|
+
include source files, build scripts and documentation.
|
30
|
+
|
31
|
+
"Reserved Font Name" refers to any names specified as such after the
|
32
|
+
copyright statement(s).
|
33
|
+
|
34
|
+
"Original Version" refers to the collection of Font Software components as
|
35
|
+
distributed by the Copyright Holder(s).
|
36
|
+
|
37
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
38
|
+
or substituting -- in part or in whole -- any of the components of the
|
39
|
+
Original Version, by changing formats or by porting the Font Software to a
|
40
|
+
new environment.
|
41
|
+
|
42
|
+
"Author" refers to any designer, engineer, programmer, technical
|
43
|
+
writer or other person who contributed to the Font Software.
|
44
|
+
|
45
|
+
PERMISSION & CONDITIONS
|
46
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
47
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
48
|
+
redistribute, and sell modified and unmodified copies of the Font
|
49
|
+
Software, subject to the following conditions:
|
50
|
+
|
51
|
+
1) Neither the Font Software nor any of its individual components,
|
52
|
+
in Original or Modified Versions, may be sold by itself.
|
53
|
+
|
54
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
55
|
+
redistributed and/or sold with any software, provided that each copy
|
56
|
+
contains the above copyright notice and this license. These can be
|
57
|
+
included either as stand-alone text files, human-readable headers or
|
58
|
+
in the appropriate machine-readable metadata fields within text or
|
59
|
+
binary files as long as those fields can be easily viewed by the user.
|
60
|
+
|
61
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
62
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
63
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
64
|
+
presented to the users.
|
65
|
+
|
66
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
67
|
+
Software shall not be used to promote, endorse or advertise any
|
68
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
69
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
70
|
+
permission.
|
71
|
+
|
72
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
73
|
+
must be distributed entirely under this license, and must not be
|
74
|
+
distributed under any other license. The requirement for fonts to
|
75
|
+
remain under this license does not apply to any document created
|
76
|
+
using the Font Software.
|
77
|
+
|
78
|
+
TERMINATION
|
79
|
+
This license becomes null and void if any of the above conditions are
|
80
|
+
not met.
|
81
|
+
|
82
|
+
DISCLAIMER
|
83
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
84
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
85
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
86
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
87
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
88
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
89
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
90
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
91
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'mini_magick'
|
2
|
+
|
3
|
+
module VirtualNameCard
|
4
|
+
class Generator
|
5
|
+
GENERATED_FILE_PATH = File.expand_path("../../generated_file.png", __dir__)
|
6
|
+
|
7
|
+
class << self
|
8
|
+
def generate(name_kanji:, name_romaji:, role:, twitter_account: nil)
|
9
|
+
base_image_path =
|
10
|
+
if twitter_account
|
11
|
+
File.expand_path("../../base_images/with_twitter.jpg", __dir__)
|
12
|
+
else
|
13
|
+
File.expand_path("../../base_images/without_twitter.jpg", __dir__)
|
14
|
+
end
|
15
|
+
|
16
|
+
image = MiniMagick::Image.open(base_image_path)
|
17
|
+
|
18
|
+
name_kanji_combine(image: image, text: name_kanji)
|
19
|
+
name_romaji_combine(image: image, text: name_romaji)
|
20
|
+
role_combine(image: image, text: role)
|
21
|
+
|
22
|
+
if twitter_account
|
23
|
+
twitter_account_combine(image: image, text: twitter_account)
|
24
|
+
end
|
25
|
+
|
26
|
+
image
|
27
|
+
end
|
28
|
+
|
29
|
+
def write(name_kanji:, name_romaji:, role:, twitter_account: nil)
|
30
|
+
image = generate(
|
31
|
+
name_kanji: name_kanji,
|
32
|
+
name_romaji: name_romaji,
|
33
|
+
role: role,
|
34
|
+
twitter_account: twitter_account,
|
35
|
+
)
|
36
|
+
image.write GENERATED_FILE_PATH
|
37
|
+
end
|
38
|
+
|
39
|
+
private def name_kanji_combine(image:, text:)
|
40
|
+
image.combine_options do |config|
|
41
|
+
config.font File.expand_path("../../fonts/Noto_Sans_JP/NotoSansJP-Medium.otf", __dir__)
|
42
|
+
config.gravity "west"
|
43
|
+
config.pointsize 100
|
44
|
+
config.draw "text 170,-90 '#{text}'"
|
45
|
+
config.fill "#000000"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
private def name_romaji_combine(image:, text:)
|
50
|
+
image.combine_options do |config|
|
51
|
+
config.font File.expand_path("../../fonts/Noto_Sans_JP/NotoSansJP-Regular.otf", __dir__)
|
52
|
+
config.gravity "west"
|
53
|
+
config.pointsize 50
|
54
|
+
config.draw "text 170,22 '#{text}'"
|
55
|
+
config.fill "#000000"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
private def role_combine(image:, text:)
|
60
|
+
image.combine_options do |config|
|
61
|
+
config.font File.expand_path("../../fonts/Noto_Sans_JP/NotoSansJP-Regular.otf", __dir__)
|
62
|
+
config.gravity "west"
|
63
|
+
config.pointsize 45
|
64
|
+
config.draw "text 170,105 '#{text}'"
|
65
|
+
config.fill "#000000"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
private def twitter_account_combine(image:, text:)
|
70
|
+
image.combine_options do |config|
|
71
|
+
config.font File.expand_path("../../fonts/Noto_Sans_JP/NotoSansJP-Medium.otf", __dir__)
|
72
|
+
config.gravity "west"
|
73
|
+
config.pointsize 45
|
74
|
+
config.draw "text 175,433 '#{text}'"
|
75
|
+
config.fill "#593535"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "virtual_name_card/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "virtual_name_card"
|
8
|
+
spec.version = VirtualNameCard::VERSION
|
9
|
+
spec.authors = ["Michikawa Masayoshi"]
|
10
|
+
spec.email = ["michikawa.masayoshi@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "Virtual name card for online video systems."
|
13
|
+
spec.description = "Virtual name card for online video systems."
|
14
|
+
spec.homepage = "https://github.com/refcome/virtual_name_card"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
22
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
23
|
+
else
|
24
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
25
|
+
"public gem pushes."
|
26
|
+
end
|
27
|
+
|
28
|
+
# Specify which files should be added to the gem when it is released.
|
29
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
30
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
31
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
32
|
+
end
|
33
|
+
spec.bindir = "exe"
|
34
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
|
+
spec.require_paths = ["lib"]
|
36
|
+
|
37
|
+
spec.add_dependency "mini_magick"
|
38
|
+
spec.add_development_dependency "bundler"
|
39
|
+
spec.add_development_dependency "rake"
|
40
|
+
spec.add_development_dependency "minitest"
|
41
|
+
spec.add_development_dependency "pry"
|
42
|
+
end
|
metadata
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: virtual_name_card
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michikawa Masayoshi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mini_magick
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Virtual name card for online video systems.
|
84
|
+
email:
|
85
|
+
- michikawa.masayoshi@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- CODE_OF_CONDUCT.md
|
92
|
+
- Gemfile
|
93
|
+
- LICENSE.txt
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- base_images/with_twitter.jpg
|
97
|
+
- base_images/without_twitter.jpg
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- fonts/Noto_Sans_JP/NotoSansJP-Black.otf
|
101
|
+
- fonts/Noto_Sans_JP/NotoSansJP-Bold.otf
|
102
|
+
- fonts/Noto_Sans_JP/NotoSansJP-Light.otf
|
103
|
+
- fonts/Noto_Sans_JP/NotoSansJP-Medium.otf
|
104
|
+
- fonts/Noto_Sans_JP/NotoSansJP-Regular.otf
|
105
|
+
- fonts/Noto_Sans_JP/NotoSansJP-Thin.otf
|
106
|
+
- fonts/Noto_Sans_JP/OFL.txt
|
107
|
+
- lib/virtual_name_card.rb
|
108
|
+
- lib/virtual_name_card/generator.rb
|
109
|
+
- lib/virtual_name_card/version.rb
|
110
|
+
- virtual_name_card.gemspec
|
111
|
+
homepage: https://github.com/refcome/virtual_name_card
|
112
|
+
licenses:
|
113
|
+
- MIT
|
114
|
+
metadata:
|
115
|
+
homepage_uri: https://github.com/refcome/virtual_name_card
|
116
|
+
source_code_uri: https://github.com/refcome/virtual_name_card
|
117
|
+
changelog_uri: https://github.com/refcome/virtual_name_card
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubygems_version: 3.0.3
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: Virtual name card for online video systems.
|
137
|
+
test_files: []
|