fart 0.0.1

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.
Binary file
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in fart.gemspec
4
+ gemspec
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
4
+ require 'rubygems' unless defined?(Gem)
5
+ # require 'bundler/setup'
6
+
7
+ lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
8
+ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
9
+ require 'fart/cli'
10
+ Fart::CLI.start
@@ -0,0 +1,10 @@
1
+ require 'rubygems' unless defined?(Gem)
2
+
3
+ def see()
4
+ lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
5
+ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
6
+ require 'fart/cli'
7
+ Fart::CLI.start
8
+ end
9
+
10
+ puts see()
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "fart/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "fart"
7
+ s.version = Fart::VERSION
8
+ s.authors = ["Manish Das"]
9
+ s.email = ["manishlaldas.md@gmail.com"]
10
+ s.homepage = "http://manishdas.github.com"
11
+ s.summary = %q{Write a gem summary}
12
+ s.description = %q{Write a gem description}
13
+
14
+ s.rubyforge_project = "fart"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = ["fart"]
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ s.add_dependency "thor", "~> 0.14"
23
+
24
+ s.add_development_dependency "bundler", "~> 1.0.0"
25
+ # s.add_development_dependency "rspec"
26
+ # s.add_runtime_dependency "rest-client"
27
+ end
@@ -0,0 +1,11 @@
1
+ require "fart/version"
2
+
3
+ module Fart
4
+ class Paad
5
+ def self.play()
6
+ file = File.expand_path(File.dirname(__FILE__) + '/../lib/fart/fart.mp3')
7
+ run = "afplay #{file}"
8
+ system(run)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,16 @@
1
+ require 'thor'
2
+ require File.expand_path('../../fart', __FILE__)
3
+
4
+ module Fart
5
+ class CLI < Thor
6
+ include Thor::Actions
7
+ default_task :fart
8
+
9
+ desc "fart", "Plays fart noise"
10
+ def fart
11
+ say("Playing Fart Noise......", :yellow)
12
+ Paad.play()
13
+ say("Played Fart Noise", :green)
14
+ end
15
+ end
16
+ end
Binary file
@@ -0,0 +1,3 @@
1
+ module Fart
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fart
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Manish Das
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thor
16
+ requirement: &70325548218920 !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: *70325548218920
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70325548218420 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70325548218420
36
+ description: Write a gem description
37
+ email:
38
+ - manishlaldas.md@gmail.com
39
+ executables:
40
+ - fart
41
+ extensions: []
42
+ extra_rdoc_files: []
43
+ files:
44
+ - .DS_Store
45
+ - .gitignore
46
+ - Gemfile
47
+ - Rakefile
48
+ - bin/fart
49
+ - bin/test.rb
50
+ - fart.gemspec
51
+ - lib/fart.rb
52
+ - lib/fart/cli.rb
53
+ - lib/fart/fart.mp3
54
+ - lib/fart/version.rb
55
+ homepage: http://manishdas.github.com
56
+ licenses: []
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project: fart
75
+ rubygems_version: 1.8.16
76
+ signing_key:
77
+ specification_version: 3
78
+ summary: Write a gem summary
79
+ test_files: []