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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a7263a3ce5dd3f99250915ccf8ef8ad0a708cf7
4
- data.tar.gz: 10da6e817fc7198828b41015957b89e94404a49d
3
+ metadata.gz: 6ed774ceaf2a43363f47b7b0b92d889e99526953
4
+ data.tar.gz: 94ceeffb1b7fd778fef6a29d836bbdda9d3bd066
5
5
  SHA512:
6
- metadata.gz: 9cbc4d5cc23e22ccdd65b4795342083d7f917ff4e0dad42446626bae94b06b034f4265d22320a065fcbf32648c897be895b6d3003b91438c07b7fa4322ac4a5a
7
- data.tar.gz: 96f020f68dfcbb4b33099dbc559057c52b560b9930eb76fe896a953233cbd4515ca5b7fb985e38aecd3f077ab4ef9a7d3d1a06516977cf064a6ac4207ad8ee20
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
- TODO: Write usage instructions here
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
@@ -1,2 +1,4 @@
1
- require "bundler/gem_tasks"
1
+ require "bundler/gem_tasks"
2
2
  Dir.glob('tasks/**/*.rake').each(&method(:import))
3
+
4
+ task default: :spec
@@ -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
@@ -1,5 +1,5 @@
1
- require "titlegen/version"
2
- require "titlegen/dictionary"
1
+ require_relative "./titlegen/version"
2
+ require_relative "./titlegen/dictionary"
3
3
  require 'active_support/inflector'
4
4
 
5
5
  class Titlegen
@@ -1,3 +1,3 @@
1
1
  class Titlegen
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -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 = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SophieDeBenedetto
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-20 00:00:00.000000000 Z
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.5
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