plymouth 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ Makefile
2
+ *.so
3
+ *.o
4
+ *.def
5
+ doc/
6
+ pkg/
7
+ .yardoc/
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --markup markdown
data/CHANGELOG ADDED
File without changes
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,25 @@
1
+ License
2
+ -------
3
+
4
+ (The MIT License)
5
+
6
+ Copyright (c) 2012 John Mair (banisterfiend)
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining
9
+ a copy of this software and associated documentation files (the
10
+ 'Software'), to deal in the Software without restriction, including
11
+ without limitation the rights to use, copy, modify, merge, publish,
12
+ distribute, sublicense, and/or sell copies of the Software, and to
13
+ permit persons to whom the Software is furnished to do so, subject to
14
+ the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be
17
+ included in all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
20
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ plymouth
2
+ ===========
3
+
4
+ (C) John Mair (banisterfiend) 2012
5
+
6
+ FIXME: _tagline_
7
+
8
+ FIXME: _description goes here_
9
+
10
+ * Install the [gem](https://rubygems.org/gems/plymouth): `gem install plymouth`
11
+ * Read the [documentation](http://rdoc.info/github/banister/plymouth/master/file/README.md)
12
+ * See the [source code](http://github.com/banister/plymouth)
13
+
14
+ Example: Example description
15
+ --------
16
+
17
+ Example preamble
18
+
19
+ puts "example code"
20
+
21
+ Features and limitations
22
+ -------------------------
23
+
24
+ Feature List Preamble
25
+
26
+ Contact
27
+ -------
28
+
29
+ Problems or questions contact me at [github](http://github.com/banister)
30
+
31
+
32
+ License
33
+ -------
34
+
35
+ (The MIT License)
36
+
37
+ Copyright (c) 2012 John Mair (banisterfiend)
38
+
39
+ Permission is hereby granted, free of charge, to any person obtaining
40
+ a copy of this software and associated documentation files (the
41
+ 'Software'), to deal in the Software without restriction, including
42
+ without limitation the rights to use, copy, modify, merge, publish,
43
+ distribute, sublicense, and/or sell copies of the Software, and to
44
+ permit persons to whom the Software is furnished to do so, subject to
45
+ the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be
48
+ included in all copies or substantial portions of the Software.
49
+
50
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
51
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
52
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
53
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
54
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
55
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
56
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,75 @@
1
+ $:.unshift 'lib'
2
+
3
+ PROJECT_NAME = "plymouth"
4
+
5
+ require "#{PROJECT_NAME}/version"
6
+
7
+ CLASS_NAME = Plymouth
8
+
9
+ require 'rake/clean'
10
+ require 'rake/gempackagetask'
11
+
12
+ CLOBBER.include("**/*~", "**/*#*", "**/*.log", "**/*.o")
13
+ CLEAN.include("ext/**/*.log", "ext/**/*.o",
14
+ "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
15
+ "ext/**/*.def", "ext/**/*.pdb", "**/*_flymake*.*", "**/*_flymake")
16
+
17
+ def apply_spec_defaults(s)
18
+ s.name = PROJECT_NAME
19
+ s.summary = "FIX ME"
20
+ s.version = CLASS_NAME::VERSION
21
+ s.date = Time.now.strftime '%Y-%m-%d'
22
+ s.author = "John Mair (banisterfiend)"
23
+ s.email = 'jrmair@gmail.com'
24
+ s.description = s.summary
25
+ s.require_path = 'lib'
26
+ s.add_development_dependency("bacon","~>1.1.0")
27
+ s.homepage = "http://github.com/banister/#{PROJECT_NAME}"
28
+ s.has_rdoc = 'yard'
29
+ s.add_dependency('pry-exception_explorer')
30
+ s.files = `git ls-files`.split("\n")
31
+ s.test_files = `git ls-files -- test/*`.split("\n")
32
+ end
33
+
34
+ desc "Run tests"
35
+ task :test do
36
+ sh "bacon -Itest -rubygems test.rb -q"
37
+ end
38
+
39
+ namespace :ruby do
40
+ spec = Gem::Specification.new do |s|
41
+ apply_spec_defaults(s)
42
+ s.platform = Gem::Platform::RUBY
43
+ end
44
+
45
+ Rake::GemPackageTask.new(spec) do |pkg|
46
+ pkg.need_zip = false
47
+ pkg.need_tar = false
48
+ end
49
+ end
50
+
51
+ desc "Show version"
52
+ task :version do
53
+ puts "Plymouth version: #{Plymouth::VERSION}"
54
+ end
55
+
56
+ desc "Generate gemspec file"
57
+ task :gemspec => "ruby:gemspec"
58
+
59
+ desc "build all platform gems at once"
60
+ task :gems => [:clean, :rmgems, "ruby:gem"]
61
+
62
+ task :gem => [:gems]
63
+
64
+ desc "remove all platform gems"
65
+ task :rmgems => ["ruby:clobber_package"]
66
+
67
+ desc "build and push latest gems"
68
+ task :pushgems => :gems do
69
+ chdir("./pkg") do
70
+ Dir["*.gem"].each do |gemfile|
71
+ sh "gem push #{gemfile}"
72
+ end
73
+ end
74
+ end
75
+
@@ -0,0 +1,3 @@
1
+ module Plymouth
2
+ VERSION = "0.1.0"
3
+ end
data/lib/plymouth.rb ADDED
@@ -0,0 +1,42 @@
1
+ # plymouth.rb
2
+ # (C) 2012 John Mair (banisterfiend); MIT license
3
+
4
+ require "plymouth/version"
5
+ require 'pry-exception_explorer'
6
+
7
+ EE.enabled = true
8
+
9
+ if defined?(Bacon)
10
+
11
+ EE.intercept(Bacon::Error).skip_until { |frame| frame.klass == Bacon::Context }
12
+
13
+ elsif defined?(RSpec)
14
+
15
+ EE.intercept do |frame, ex|
16
+ ex.class.name =~ /RSpec::Expectations::ExpectationNotMetError/
17
+ end.skip_until do |frame|
18
+ frame.klass.name =~ /RSpec::Core::ExampleGroup::Nested/
19
+ end
20
+
21
+ elsif defined?(MiniTest)
22
+
23
+ EE.intercept(MiniTest::Assertion).skip_until do |frame|
24
+ frame.method_name =~ /^test_/
25
+ end
26
+
27
+ # elsif defined?(Riot)
28
+ # EE.enabled = false
29
+ # class Riot::Assertion
30
+ # private
31
+ # alias_method :oh_my_old_assert, :assert
32
+ # def assert(*args, &block)
33
+ # result = oh_my_old_assert(*args, &block)
34
+ # if result.first == :fail || result.first == :error
35
+ # Pry.start binding, :call_stack => binding.callers
36
+ # end
37
+
38
+ # result
39
+ # end
40
+ # end
41
+ end
42
+
data/test/test.rb ADDED
@@ -0,0 +1,12 @@
1
+ direc = File.dirname(__FILE__)
2
+
3
+ require 'rubygems'
4
+ require "#{direc}/../lib/plymouth"
5
+ require 'bacon'
6
+
7
+ puts "Testing plymouth version #{Plymouth::VERSION}..."
8
+ puts "Ruby version: #{RUBY_VERSION}"
9
+
10
+ describe Plymouth do
11
+ end
12
+
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: plymouth
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - John Mair (banisterfiend)
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-02-03 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bacon
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 1.1.0
24
+ type: :development
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: pry-exception_explorer
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ description: FIX ME
38
+ email: jrmair@gmail.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
45
+ files:
46
+ - .gemtest
47
+ - .gitignore
48
+ - .yardopts
49
+ - CHANGELOG
50
+ - Gemfile
51
+ - LICENSE
52
+ - README.md
53
+ - Rakefile
54
+ - lib/plymouth.rb
55
+ - lib/plymouth/version.rb
56
+ - test/test.rb
57
+ homepage: http://github.com/banister/plymouth
58
+ licenses: []
59
+
60
+ post_install_message:
61
+ rdoc_options: []
62
+
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: "0"
77
+ requirements: []
78
+
79
+ rubyforge_project:
80
+ rubygems_version: 1.8.11
81
+ signing_key:
82
+ specification_version: 3
83
+ summary: FIX ME
84
+ test_files:
85
+ - test/test.rb