blahblah 0.1
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 +7 -0
- data/.gitignore +18 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +42 -0
- data/Guardfile +7 -0
- data/LICENSE +20 -0
- data/README.md +4 -0
- data/blahblah.gemspec +16 -0
- data/lib/blahblah.rb +71 -0
- data/spec/blahblah_spec.rb +12 -0
- metadata +53 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c7b29b839fe7a068d28c1314fc79d08f17a27a4d
|
4
|
+
data.tar.gz: 055fe347f99c2701e601f5f0e4035c54b3291bca
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bfbe6b012921691a60be51ebdebd8b7baf769c51195165b6a121bfe0d7fea8882dcb7371e7c93412d3a55c68d393aa7f04e251869324c8c71d6746d898df7891
|
7
|
+
data.tar.gz: 1b2eb14289adc7cbd5efc2bf415a8f6961a01f58deecbec8b70ece5e303cdbf606ef81e386e8c26c4b6ec43bb8f8226a240575e16e2a6096b7537004152fa4ad
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
celluloid (0.15.2)
|
5
|
+
timers (~> 1.1.0)
|
6
|
+
coderay (1.1.0)
|
7
|
+
ffi (1.9.3)
|
8
|
+
formatador (0.2.4)
|
9
|
+
guard (2.2.4)
|
10
|
+
formatador (>= 0.2.4)
|
11
|
+
listen (~> 2.1)
|
12
|
+
lumberjack (~> 1.0)
|
13
|
+
pry (>= 0.9.12)
|
14
|
+
thor (>= 0.18.1)
|
15
|
+
guard-minitest (2.1.2)
|
16
|
+
guard (~> 2.0)
|
17
|
+
minitest (>= 3.0)
|
18
|
+
listen (2.4.0)
|
19
|
+
celluloid (>= 0.15.2)
|
20
|
+
rb-fsevent (>= 0.9.3)
|
21
|
+
rb-inotify (>= 0.9)
|
22
|
+
lumberjack (1.0.4)
|
23
|
+
method_source (0.8.2)
|
24
|
+
minitest (4.7.5)
|
25
|
+
pry (0.9.12.4)
|
26
|
+
coderay (~> 1.0)
|
27
|
+
method_source (~> 0.8)
|
28
|
+
slop (~> 3.4)
|
29
|
+
rb-fsevent (0.9.3)
|
30
|
+
rb-inotify (0.9.2)
|
31
|
+
ffi (>= 0.5.0)
|
32
|
+
slop (3.4.7)
|
33
|
+
thor (0.18.1)
|
34
|
+
timers (1.1.0)
|
35
|
+
|
36
|
+
PLATFORMS
|
37
|
+
ruby
|
38
|
+
|
39
|
+
DEPENDENCIES
|
40
|
+
guard
|
41
|
+
guard-minitest (>= 1.0)
|
42
|
+
minitest (~> 4.7.0)
|
data/Guardfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 TaeKyung Kim
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
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, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/blahblah.gemspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "blahblah"
|
6
|
+
spec.version = 0.1
|
7
|
+
spec.date = '2013-12-11'
|
8
|
+
spec.authors = ["Taekyung Kim"]
|
9
|
+
spec.email = ["hagun99@daum.net"]
|
10
|
+
spec.description = "Random Sequence Generator"
|
11
|
+
spec.summary = "Don't write 'test message', Use blahblah!"
|
12
|
+
spec.homepage = "http://github.com/hagun/blahblah"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
end
|
data/lib/blahblah.rb
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
module Blahblah
|
2
|
+
|
3
|
+
SENTENCES = [
|
4
|
+
"A full belly is the mother of all evil",
|
5
|
+
"A gift in season is a double favor to the needy",
|
6
|
+
"A man that has no virtue in himself, ever envies virtue in others",
|
7
|
+
"A minute's success pays the failure of years",
|
8
|
+
"A poet is the painter of the soul",
|
9
|
+
"Absence makes the heart grow fonder",
|
10
|
+
"All fortune is to be conquered by bearing it",
|
11
|
+
"All good things which exist are the fruits of originality.",
|
12
|
+
"Appearances are deceptive.",
|
13
|
+
"Better is to bow than break.",
|
14
|
+
"Better the last smile than the first laughter.",
|
15
|
+
"Books are ships which pass through the vast seas of time.",
|
16
|
+
"By doubting we come at the truth.",
|
17
|
+
"Courage is very important. Like a muscle, it is strengthened by use.",
|
18
|
+
"Education is the best provision for old age.",
|
19
|
+
"Envy and wrath shorten the life.",
|
20
|
+
"Error is the discipline through which we advance.",
|
21
|
+
"Faith is a higher faculty than reason.",
|
22
|
+
"Faith without deeds is useless.",
|
23
|
+
"Forgiveness is better than revenge.",
|
24
|
+
"Give me liberty, or give me death.",
|
25
|
+
"Good fences makes good neighbors.",
|
26
|
+
"Great art is an instant arrested in eternity.",
|
27
|
+
"Habit is second nature.",
|
28
|
+
"He is greatest who is most often in men's good thoughts.",
|
29
|
+
"He that has no shame has no conscience.",
|
30
|
+
"He who spares the rod hates his son, but he who loves him is careful to discipline him.",
|
31
|
+
"Heaven gives its favourites - early death.",
|
32
|
+
"I never think of the future. It comes soon enough.",
|
33
|
+
"In giving advice, seek to help, not to please, your friend.",
|
34
|
+
"In the morning of life, work; in the midday, give counsel; in the evening, pray.",
|
35
|
+
"It is a wise father that knows his own child.",
|
36
|
+
"Let thy speech be short, comprehending much in few words.",
|
37
|
+
"Life is the art of drawing sufficient conclusions from insufficient premises.",
|
38
|
+
"Life itself is a quotation.",
|
39
|
+
"Love your neighbor as yourself.",
|
40
|
+
"Music is a beautiful opiate, if you don't take it too seriously.",
|
41
|
+
"Nature never deceives us; it is always we who deceive ourselves.",
|
42
|
+
"Only the just man enjoys peace of mind.",
|
43
|
+
"Pain past is pleasure.",
|
44
|
+
"Painless poverty is better than embittered wealth.",
|
45
|
+
"Suspicion follows close on mistrust.",
|
46
|
+
"The difficulty in life is the choice.",
|
47
|
+
"The most beautiful thing in the world is, of course, the world itself.",
|
48
|
+
"The will of a man is his happiness.",
|
49
|
+
"The world is a beautiful book, but of little use to him who cannot read it.",
|
50
|
+
"Things are always at their best in the beginning.",
|
51
|
+
"Think like a man of action and act like man of thought.",
|
52
|
+
"Time is but the stream I go a-fishing in.",
|
53
|
+
"To be trusted is a greater compliment than to be loved.",
|
54
|
+
"To doubt is safer than to be secure.",
|
55
|
+
"To jaw-jaw is better than to war-war.",
|
56
|
+
"United we stand, divided we fall.",
|
57
|
+
"Until the day of his death, no man can be sure of his courage.",
|
58
|
+
"Waste not fresh tears over old griefs.",
|
59
|
+
"We give advice, but we cannot give conduct.",
|
60
|
+
"We never know the worth of water till the well is dry.",
|
61
|
+
"Weak things united become strong.",
|
62
|
+
"When money speaks, the truth keeps silent.",
|
63
|
+
"Where there is no desire, there will be no industry.",
|
64
|
+
"Who begins too much accomplishes little.",
|
65
|
+
"Who knows much believes the less"
|
66
|
+
]
|
67
|
+
|
68
|
+
def self.random
|
69
|
+
SENTENCES[Random.rand(SENTENCES.size)]
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'minitest/unit'
|
3
|
+
require 'minitest/spec'
|
4
|
+
require 'minitest/autorun'
|
5
|
+
require 'minitest/pride'
|
6
|
+
require_relative '../lib/blahblah'
|
7
|
+
|
8
|
+
describe Blahblah do
|
9
|
+
it 'return random sentence' do
|
10
|
+
10.times{ assert Blahblah.random }
|
11
|
+
end
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: blahblah
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Taekyung Kim
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Random Sequence Generator
|
14
|
+
email:
|
15
|
+
- hagun99@daum.net
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- .gitignore
|
21
|
+
- Gemfile
|
22
|
+
- Gemfile.lock
|
23
|
+
- Guardfile
|
24
|
+
- LICENSE
|
25
|
+
- README.md
|
26
|
+
- blahblah.gemspec
|
27
|
+
- lib/blahblah.rb
|
28
|
+
- spec/blahblah_spec.rb
|
29
|
+
homepage: http://github.com/hagun/blahblah
|
30
|
+
licenses:
|
31
|
+
- MIT
|
32
|
+
metadata: {}
|
33
|
+
post_install_message:
|
34
|
+
rdoc_options: []
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
requirements: []
|
48
|
+
rubyforge_project:
|
49
|
+
rubygems_version: 2.0.3
|
50
|
+
signing_key:
|
51
|
+
specification_version: 4
|
52
|
+
summary: Don't write 'test message', Use blahblah!
|
53
|
+
test_files: []
|