pink_panther 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: da20ea13e88d29c0465ec479c654df0ec559362b
4
+ data.tar.gz: f7c945430c06d34ab8e1009ac6ed5ae3172e7c49
5
+ SHA512:
6
+ metadata.gz: 144f3a3ce4ade5401be125f87fe038ca849b756e022c0ac597f8f53ce631d43b4e5718d0b10c1547a2e8251392410e536eae12ed2905aa27e793ce003987523c
7
+ data.tar.gz: 109540bc282c0c507a6401bf205c79c65de3e8fc01bf3a5da5459c68ef235a305c8fcd23ceb5187f3cf37910e531a10ccb47676356322dbcad71cf3e8af95ac3
@@ -0,0 +1,34 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ # Gemfile.lock
30
+ # .ruby-version
31
+ # .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ matrix:
3
+ allow_failures:
4
+ - rvm: ruby-head
5
+ rvm:
6
+ - 1.9.3
7
+ - 2.0.0
8
+ - 2.1.0
9
+ - ruby-head
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pink_panther (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ binding_of_caller (0.7.2)
10
+ debug_inspector (>= 0.0.1)
11
+ coderay (1.1.0)
12
+ debug_inspector (0.0.2)
13
+ diff-lcs (1.2.5)
14
+ method_source (0.8.2)
15
+ pry (0.10.1)
16
+ coderay (~> 1.1.0)
17
+ method_source (~> 0.8.1)
18
+ slop (~> 3.4)
19
+ pry-nav (0.2.4)
20
+ pry (>= 0.9.10, < 0.11.0)
21
+ pry-stack_explorer (0.4.9.1)
22
+ binding_of_caller (>= 0.7)
23
+ pry (>= 0.9.11)
24
+ rake (10.0.4)
25
+ rspec (3.1.0)
26
+ rspec-core (~> 3.1.0)
27
+ rspec-expectations (~> 3.1.0)
28
+ rspec-mocks (~> 3.1.0)
29
+ rspec-core (3.1.7)
30
+ rspec-support (~> 3.1.0)
31
+ rspec-expectations (3.1.2)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.1.0)
34
+ rspec-mocks (3.1.3)
35
+ rspec-support (~> 3.1.0)
36
+ rspec-support (3.1.2)
37
+ slop (3.6.0)
38
+ yard (0.8.7.6)
39
+
40
+ PLATFORMS
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ pink_panther!
45
+ pry (~> 0.10)
46
+ pry-nav (~> 0.2)
47
+ pry-stack_explorer (~> 0.4.9)
48
+ rake (~> 10.0.4)
49
+ rspec (~> 3.1)
50
+ yard (~> 0.8.7.6)
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 David Elner
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,20 @@
1
+ Olfactory
2
+ ==========
3
+
4
+ [![Build Status](https://travis-ci.org/delner/pink_panther.svg?branch=master)](https://travis-ci.org/delner/pink_panther) ![Gem Version](https://badge.fury.io/rb/pink_panther.svg)
5
+ ###### *For Ruby 1.9.3, 2.0.0, 2.1.0*
6
+
7
+ ### Introduction
8
+
9
+ `pink_panther` is a deductive reasoning & analysis framework for Ruby.
10
+
11
+ It provides a domain-specific language (DSL) for designing systems of deductions and conclusions, to which data can be input, and an analysis output.
12
+
13
+ #### What can I use it for?
14
+
15
+ Deductive reasoning can be used for several ends, including (but not limited to) scripted diagnostics, case analysis, and simple AIs/decision engines. Some examples include:
16
+
17
+ - *Customer support modules*: Automatically deduce the source of data-related issues stemming from a user's account, and suggest corrective action.
18
+ - *Technical diagnostics*: Run a troubleshooter when a system, website, or service triggers an alert (Nagios, NewRelic, etc) and e-mail a diagnosis to the system administrator.
19
+ - *Insights & simple data mining*: Produce a report about users' likely interests, or presumed behavior.
20
+ - *Recommendation engine*: Choose when to show (or not to show) content to a visitor, based on what they've visited on your website.
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new
6
+ task :default => :spec
7
+ task :test => :spec
8
+
9
+ namespace :doc do
10
+ begin
11
+ require 'yard'
12
+ rescue LoadError
13
+ # ignore
14
+ else
15
+ YARD::Rake::YardocTask.new do |task|
16
+ task.files = ['lib/**/*.rb']
17
+ task.options = [
18
+ '--protected',
19
+ '--output-dir', 'doc/yard',
20
+ '--tag', 'format:Supported formats',
21
+ '--markup', 'markdown',
22
+ ]
23
+ end
24
+ end
25
+ end
26
+
27
+ desc "Open an irb session preloaded with this library"
28
+ task :console do
29
+ sh "irb -rubygems -I lib -r pink_panther.rb"
30
+ end
@@ -0,0 +1,5 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # require 'pink_panther/deduction'
3
+
4
+ module PinkPanther
5
+ end
@@ -0,0 +1,3 @@
1
+ module PinkPanther
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,25 @@
1
+ $LOAD_PATH << File.expand_path("../lib", __FILE__)
2
+ require 'pink_panther/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'pink_panther'
6
+ s.version = PinkPanther::VERSION
7
+ s.summary = "pink_panther is a deductive reasoning framework for Ruby."
8
+ s.description = "pink_panther is a deductive reasoning framework for Ruby, which provides a DSL for describing and analyzing scenarios."
9
+ s.authors = ["David Elner"]
10
+ s.email = 'david@davidelner.com'
11
+ s.files = `git ls-files`.split("\n")
12
+ s.test_files = `git ls-files -- {spec,features,gemfiles}/*`.split("\n")
13
+ s.homepage = 'https://github.com/delner/pink_panther'
14
+ s.license = 'MIT'
15
+
16
+ s.require_paths = ['lib']
17
+ s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
18
+
19
+ s.add_development_dependency("rspec", "~> 3.1")
20
+ s.add_development_dependency("pry", "~> 0.10")
21
+ s.add_development_dependency("pry-nav", "~> 0.2")
22
+ s.add_development_dependency("pry-stack_explorer", "~> 0.4.9")
23
+ s.add_development_dependency('rake', '~> 10.0.4')
24
+ s.add_development_dependency('yard', '~> 0.8.7.6')
25
+ end
File without changes
@@ -0,0 +1,18 @@
1
+ $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
2
+ $LOAD_PATH << File.join(File.dirname(__FILE__))
3
+
4
+ require 'rubygems'
5
+ require 'pry'
6
+
7
+ require 'pink_panther'
8
+
9
+ Dir["spec/support/**/*.rb"].each { |f| require File.expand_path(f) }
10
+
11
+ RSpec.configure do |config|
12
+ config.expect_with :rspec do |expectations|
13
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
14
+ end
15
+ config.mock_with :rspec do |mocks|
16
+ mocks.verify_partial_doubles = true
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pink_panther
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David Elner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry-nav
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-stack_explorer
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.4.9
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.4.9
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 10.0.4
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 10.0.4
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.8.7.6
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.8.7.6
97
+ description: pink_panther is a deductive reasoning framework for Ruby, which provides
98
+ a DSL for describing and analyzing scenarios.
99
+ email: david@davidelner.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".travis.yml"
107
+ - Gemfile
108
+ - Gemfile.lock
109
+ - LICENSE
110
+ - README.md
111
+ - Rakefile
112
+ - lib/pink_panther.rb
113
+ - lib/pink_panther/version.rb
114
+ - pink_panther.gemspec
115
+ - spec/pink_panther/pink_panther_spec.rb
116
+ - spec/spec_helper.rb
117
+ homepage: https://github.com/delner/pink_panther
118
+ licenses:
119
+ - MIT
120
+ metadata: {}
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: 1.9.2
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.4.3
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: pink_panther is a deductive reasoning framework for Ruby.
141
+ test_files: []
142
+ has_rdoc: