sophia 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/sophia +6 -0
- data/lib/sophia.rb +1 -5
- data/lib/sophia/lexico.rb +15 -0
- data/lib/sophia/version.rb +1 -1
- data/sophia.gemspec +2 -0
- data/spec/lexico_spec.rb +14 -0
- data/spec/spec_helper.rb +5 -0
- metadata +28 -5
data/bin/sophia
ADDED
data/lib/sophia.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'thor'
|
3
|
+
|
4
|
+
module Sophia
|
5
|
+
class Lexico < Thor
|
6
|
+
include Thor::Actions
|
7
|
+
|
8
|
+
desc "hi", "say a hello"
|
9
|
+
def hi
|
10
|
+
message = "Hello my owner, I'm excited to organize all books, "
|
11
|
+
message << "texts, images or any other type of file that you have!"
|
12
|
+
puts message
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/sophia/version.rb
CHANGED
data/sophia.gemspec
CHANGED
data/spec/lexico_spec.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "sophia/lexico"
|
3
|
+
|
4
|
+
# redirect output to return
|
5
|
+
def puts(o) o end
|
6
|
+
|
7
|
+
describe Sophia::Lexico do
|
8
|
+
|
9
|
+
it "say hello into terminal" do
|
10
|
+
lexico = Sophia::Lexico.new
|
11
|
+
lexico.hi.downcase.should include 'hello'
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sophia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,29 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
13
|
-
dependencies:
|
12
|
+
date: 2013-01-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: thor
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.14'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.14'
|
14
30
|
description: sophia
|
15
31
|
email:
|
16
32
|
- rafael@gumieri.com
|
17
|
-
executables:
|
33
|
+
executables:
|
34
|
+
- sophia
|
18
35
|
extensions: []
|
19
36
|
extra_rdoc_files: []
|
20
37
|
files:
|
@@ -23,9 +40,13 @@ files:
|
|
23
40
|
- LICENSE.txt
|
24
41
|
- README.md
|
25
42
|
- Rakefile
|
43
|
+
- bin/sophia
|
26
44
|
- lib/sophia.rb
|
45
|
+
- lib/sophia/lexico.rb
|
27
46
|
- lib/sophia/version.rb
|
28
47
|
- sophia.gemspec
|
48
|
+
- spec/lexico_spec.rb
|
49
|
+
- spec/spec_helper.rb
|
29
50
|
homepage: http://sophia.gumieri.com
|
30
51
|
licenses: []
|
31
52
|
post_install_message:
|
@@ -50,4 +71,6 @@ rubygems_version: 1.8.24
|
|
50
71
|
signing_key:
|
51
72
|
specification_version: 3
|
52
73
|
summary: A beautiful librarian
|
53
|
-
test_files:
|
74
|
+
test_files:
|
75
|
+
- spec/lexico_spec.rb
|
76
|
+
- spec/spec_helper.rb
|