daisy 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 62dc9290123893ae236a873f9e5ee45c1004f9e5
4
+ data.tar.gz: 4fdb6b86f6695b01e8746712a3629a556772386d
5
+ SHA512:
6
+ metadata.gz: dcdc4fb6dc489d9e4398864b8d25bc0cc9f0d67a63314f0366cbda7110fcf888abee42ed1c54b3b33ecdef2eff2c234c0be696a89d992115c2e5af66d500665e
7
+ data.tar.gz: eeac0067c30161667e047b130ccc9d9bbf8df09e0a4cecfeefd0828605cecb59e4330a6f2fff9acc8c464c3d1d93dbddc7680df03ff79d9bf1343c53b9133e37
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ .ruby-version
2
+ .DS_Store
3
+ pkg
4
+ doc
5
+ Gemfile.lock
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ script: bundle exec rake
3
+ rvm:
4
+ - 2.2.3
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 Drewry Morris
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # Daisy
2
+
3
+ [![Join the chat at https://gitter.im/drewry/daisy](https://badges.gitter.im/drewry/daisy.svg)](https://gitter.im/drewry/daisy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+ [![Build Status](https://travis-ci.org/drewry/daisy.svg?branch=master)](https://travis-ci.org/drewry/daisy)
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ desc 'Pull up the console with our dependencies.'
5
+ task :console do |t|
6
+ chdir File.dirname(__FILE__)
7
+ exec 'irb -I lib/ -I lib/daisy -r rubygems'
8
+ end
9
+
10
+ RSpec::Core::RakeTask.new(:spec)
11
+
12
+ desc 'Default to run the tests'
13
+ task :default => [:spec]
data/bin/daisy ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'daisy'
4
+ puts Daisy.sing
data/daisy.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
2
+ require "daisy/version"
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "daisy"
6
+ s.version = Daisy::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.date = File.new("lib/daisy/version.rb").ctime
9
+
10
+ s.authors = ["Drewry Morris"]
11
+ s.email = %q{dhmorris@gmail.com}
12
+ s.homepage = %q{http://rubygems.org/gems/daisy}
13
+ s.description = %q{Daisy, Daisy, give me your answer, do.}
14
+ s.summary = %q{Daisy, Daisy, give me your answer, do.}
15
+ s.license = "MIT"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ['lib']
21
+
22
+ s.default_executable = "daisy"
23
+ s.required_ruby_version = '>= 2.2.3'
24
+
25
+ s.add_development_dependency('bundler')
26
+ s.add_development_dependency('rake')
27
+ s.add_development_dependency('rspec', '~> 3.4')
28
+ s.add_development_dependency('pry-byebug', '~>3.3.0')
29
+ end
30
+
data/lib/daisy.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'daisy/voice'
2
+
3
+ module Daisy
4
+ def self.sing
5
+ Daisy::Voice.sing
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module Daisy
2
+ VERSION = "0.0.1" unless defined? Daisy::VERSION
3
+ end
@@ -0,0 +1,7 @@
1
+ module Daisy
2
+ class Voice
3
+ def self.sing
4
+ ["Daisy, Daisy, give me your answer, do.", "I'm half crazy, all for the love of you."].join(" ")
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Daisy do
4
+ context "sing" do
5
+ it "outputs a stanza" do
6
+ expect(Daisy.sing).to eq("Daisy, Daisy, give me your answer, do. I'm half crazy, all for the love of you.")
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ require 'rubygems'
2
+ require 'rspec'
3
+ require 'pathname'
4
+ require 'pry-byebug'
5
+
6
+ ROOT = Pathname(File.expand_path(File.join(File.dirname(__FILE__), '..')))
7
+ $LOAD_PATH << File.join(ROOT, 'lib')
8
+ $LOAD_PATH << File.join(ROOT, 'lib', 'daisy')
9
+ require File.join(ROOT, 'lib', 'daisy.rb')
10
+
11
+ RSpec.configure do |config|
12
+ end
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: daisy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Drewry Morris
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.3.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.3.0
69
+ description: Daisy, Daisy, give me your answer, do.
70
+ email: dhmorris@gmail.com
71
+ executables:
72
+ - daisy
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
+ - Gemfile
79
+ - LICENSE
80
+ - README.md
81
+ - Rakefile
82
+ - bin/daisy
83
+ - daisy.gemspec
84
+ - lib/daisy.rb
85
+ - lib/daisy/version.rb
86
+ - lib/daisy/voice.rb
87
+ - spec/daisy/daisy_spec.rb
88
+ - spec/spec_helper.rb
89
+ homepage: http://rubygems.org/gems/daisy
90
+ licenses:
91
+ - MIT
92
+ metadata: {}
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 2.2.3
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ requirements: []
108
+ rubyforge_project:
109
+ rubygems_version: 2.4.5.1
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: Daisy, Daisy, give me your answer, do.
113
+ test_files:
114
+ - spec/daisy/daisy_spec.rb
115
+ - spec/spec_helper.rb