calbee 0.0.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 98341550485544b37153f4a8d8545a6573280e7d
4
+ data.tar.gz: bb5d2b736aa53ff7053157b3ba77891b955afe9c
5
+ SHA512:
6
+ metadata.gz: b4e9a693c7e929795900eb624c162de6ef07f51008166ebe36686cd4ff4176a6c912a5fff6b872c0d03f77f06a82ef44bd986797502903973782cf98d2e7ad31
7
+ data.tar.gz: 872120633249dbbdf0e83a51a0ee2930dc70af8dc440a4173ee4445b6a6a260e3134fe1b6fa83c0ddc2621dbb87a395a3183aacac1ddcba77ff7aa97be44c5b2
@@ -0,0 +1 @@
1
+ *.gem
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 iuhoay
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ # Calbee
2
+
3
+ A simple vCard generate tool.
4
+
5
+ ```
6
+ $ irb
7
+ >> require 'calbee'
8
+ => true
9
+ >> vCard = Calbee.new 'iuhoay', '13500000000'
10
+ => #<Calbee:0x007ff9d10180b0 @name="iuhoay", @tel="13500000000">
11
+ >> puts vCard
12
+ BEGIN:VCARD
13
+ VERSION:3.0
14
+ FN:iuhoay
15
+ TEL;TYPE=CELL:13500000000
16
+ END:VCARD
17
+ => nil
18
+ ```
@@ -0,0 +1,15 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'calbee/version'
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = 'calbee'
8
+ s.version = Calbee::VERSION
9
+ s.authors = ['iuhoay']
10
+ s.email = ["iuhoay@gmail.com"]
11
+ s.summary = 'A simple vCard generate tool'
12
+ s.homepage = 'https://github.com/iuhoay/calbee'
13
+ s.license = 'MIT'
14
+ s.files = `git ls-files`.split($/)
15
+ end
@@ -0,0 +1,16 @@
1
+ class Calbee
2
+ def initialize(name, tel)
3
+ @name = name
4
+ @tel = tel
5
+ end
6
+
7
+ def to_s
8
+ <<-EOF
9
+ BEGIN:VCARD
10
+ VERSION:3.0
11
+ FN:#{@name}
12
+ TEL;TYPE=CELL:#{@tel}
13
+ END:VCARD
14
+ EOF
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module Calbee
2
+ VERSION = '0.0.0'
3
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: calbee
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - iuhoay
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - iuhoay@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - LICENSE.md
22
+ - README.md
23
+ - calbee.gemspec
24
+ - lib/calbee.rb
25
+ - lib/calbee/version.rb
26
+ homepage: https://github.com/iuhoay/calbee
27
+ licenses:
28
+ - MIT
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.5.1
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: A simple vCard generate tool
50
+ test_files: []