xdite 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xdite.rb +4 -3
- data/lib/xdite/quotes.txt +1 -0
- data/lib/xdite/version.rb +2 -2
- metadata +45 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cd971985f01431766deb86dd4362d192cc7b3e3
|
4
|
+
data.tar.gz: 770a58bb23faba89c3266da7fc56e548680adb13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f95bb8505af71493833f8fe1c154ffaae7ab09e7be1e8ba05e24432a92c1ec17592090ce427a7e93ffa1410b495cff16380d59b127bd97630186ab705425cd4
|
7
|
+
data.tar.gz: e167a20c03fb7180db8cb9f95af573975789dc3ea6cee60c4dbb0a8c9892699e11a4aa6752ef8b900a54018fc350a4ca7142d51d4e580aa86effa69edb3fc095
|
data/lib/xdite.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
module Xdite
|
2
3
|
class << self
|
3
|
-
#
|
4
|
+
# per line
|
4
5
|
def says n = 1
|
5
6
|
quotes.sample(n.to_i).join($/)
|
6
7
|
end
|
7
8
|
|
8
|
-
#
|
9
|
+
# inline
|
9
10
|
def sentence n = 1
|
10
11
|
quotes.sample(n.to_i).join
|
11
12
|
end
|
@@ -27,7 +28,7 @@ module Xdite
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def quotes
|
30
|
-
@quotes ||= File.readlines(File.expand_path('../xdite/quotes.txt', __FILE__)).map
|
31
|
+
@quotes ||= File.readlines(File.expand_path('../xdite/quotes.txt', __FILE__)).map(&:strip)
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
data/lib/xdite/quotes.txt
CHANGED
data/lib/xdite/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Xdite
|
2
|
-
VERSION = '1.5.
|
3
|
-
end
|
2
|
+
VERSION = '1.5.1'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xdite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Jian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -24,6 +24,48 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
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: rspec
|
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'
|
27
69
|
description: Command line tool taht prints famous quotes.
|
28
70
|
email: tonytonyjan@gmail.com
|
29
71
|
executables:
|
@@ -71,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
113
|
version: '0'
|
72
114
|
requirements: []
|
73
115
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.6.4
|
75
117
|
signing_key:
|
76
118
|
specification_version: 4
|
77
119
|
summary: Command line tool taht prints famous quotes.
|