titlegen 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -1
- data/Rakefile +3 -1
- data/bin/generate-title +10 -0
- data/lib/titlegen.rb +2 -2
- data/lib/titlegen/version.rb +1 -1
- data/titlegen.gemspec +2 -2
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ed774ceaf2a43363f47b7b0b92d889e99526953
|
4
|
+
data.tar.gz: 94ceeffb1b7fd778fef6a29d836bbdda9d3bd066
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f753a5b36ae9232dae0d87f84d37969e71003f2c0dc9b0c74e5152153cd11d9190f6ecf29c531a1f1f76e068cd5997e34e7e00c5a6a5bf8dc5af3a3076bd98f8
|
7
|
+
data.tar.gz: 2e216670273595e197a5ba3ce8d8a95bb818e57c82669a8b5e243a5c4e9906f8ea54fed32e56654b911945fe6388e059bc1b31dcdf902b3375b8e12ce0edeede
|
data/README.md
CHANGED
@@ -20,7 +20,22 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Generate a random title inside your Ruby project:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
Titlegen.generate_title
|
27
|
+
=> "Those Spacey Days"
|
28
|
+
```
|
29
|
+
|
30
|
+
Or, use from the command line with:
|
31
|
+
|
32
|
+
`generate-title`
|
33
|
+
|
34
|
+
or
|
35
|
+
|
36
|
+
`generate-title LOUD`
|
37
|
+
|
38
|
+
to get a title in all caps.
|
24
39
|
|
25
40
|
## Development
|
26
41
|
|
data/Rakefile
CHANGED
data/bin/generate-title
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require_relative '../lib/titlegen.rb'
|
3
|
+
|
4
|
+
if ARGV[0] == "LOUD"
|
5
|
+
puts Titlegen.generate_title.upcase
|
6
|
+
elsif ARGV[0] && ARGV[0] != "LOUD"
|
7
|
+
puts "please use generate-title or generate-title LOUD to generate a title."
|
8
|
+
else
|
9
|
+
puts Titlegen.generate_title
|
10
|
+
end
|
data/lib/titlegen.rb
CHANGED
data/lib/titlegen/version.rb
CHANGED
data/titlegen.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
end
|
24
24
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
spec.bindir = "exe"
|
27
|
-
spec.executables
|
26
|
+
#spec.bindir = "exe"
|
27
|
+
spec.executables << 'generate-title'
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.9"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: titlegen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SophieDeBenedetto
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description: generate a random movie or book title.
|
70
70
|
email:
|
71
71
|
- sophie.debenedetto@gmail.com
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- generate-title
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|
83
84
|
- bin/console
|
85
|
+
- bin/generate-title
|
84
86
|
- bin/setup
|
85
87
|
- lib/titlegen.rb
|
86
88
|
- lib/titlegen/dictionary.rb
|
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
110
|
version: '0'
|
109
111
|
requirements: []
|
110
112
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.4.
|
113
|
+
rubygems_version: 2.4.8
|
112
114
|
signing_key:
|
113
115
|
specification_version: 4
|
114
116
|
summary: generate a random movie or book title
|