sophia 0.0.1 → 0.0.2

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.
data/bin/sophia ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'sophia'
4
+ require 'sophia/lexico'
5
+
6
+ Sophia::Lexico.start
data/lib/sophia.rb CHANGED
@@ -1,9 +1,5 @@
1
1
  require "sophia/version"
2
2
 
3
3
  module Sophia
4
-
5
- def self.hi
6
- puts "Hello world, I'm excited to organize all books,
7
- texts, images or any other type of file that you have!"
8
- end
4
+
9
5
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Sophia
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/sophia.gemspec CHANGED
@@ -16,4 +16,6 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+
20
+ gem.add_dependency("thor", "~> 0.14")
19
21
  end
@@ -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
@@ -0,0 +1,5 @@
1
+ $:.unshift File.expand_path('..', __FILE__)
2
+ $:.unshift File.expand_path('../../lib', __FILE__)
3
+ require "rubygems"
4
+ require "test/unit"
5
+ require "rspec"
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.1
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-15 00:00:00.000000000 Z
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