fun_with_gems 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGELOG.markdown +10 -0
- data/Gemfile +21 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +55 -0
- data/VERSION +1 -0
- data/lib/fun_with/gems/core_extensions/module.rb +5 -0
- data/lib/fun_with/gems/fun_gem_api.rb +38 -0
- data/lib/fun_with/gems/gem_api.rb +84 -0
- data/lib/fun_with/gems/mechanic.rb +27 -0
- data/lib/fun_with/gems/validator.rb +69 -0
- data/lib/fun_with_gems.rb +20 -0
- data/test/helper.rb +42 -0
- data/test/test_fun_with_gems.rb +49 -0
- data/test/test_gem/VERSION +1 -0
- data/test/test_gem/lib/fun_with/llamas/llama.rb +9 -0
- data/test/test_gem/lib/fun_with/llamas/trainer.rb +9 -0
- data/test/test_gem/lib/fun_with_llamas.rb +1 -0
- metadata +194 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MzVhMzg5YmQzMGQ0ZDM0ZDU4NTcxYzBmYmMwZGE0NzE4NDgzNWI5Zg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OTFjZWM4Njg3ZDlmYjRjMDg2NDI0YTA5MWE3NTg2ODA5Y2Y1NWVlNw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NDgzYTk3NmU0YjE3ZjA5MWZhZjZmMWNmNjNiZjdmZGUyOGYyZGQ2N2MyNDZm
|
10
|
+
OWNmM2E0NGRjMTY4NzBjOTA0MmE1NzQwODkyZDFlZGZkMWU4NjAyOGI2MjQ2
|
11
|
+
ZDBmNWU0MGEyZTk0OTBjMGMwMjQxYjNhYjRhOWJkMWVhNjBkMGU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZmI0NzA0YzY0MDgzM2QyODE0NTc3YThjYjVhZGFhYTZiYzI0OTJjYTg4YjY2
|
14
|
+
MTViYjRhNjg4OWU5YzVjNDM2MGM3YTNhN2NkNGJkYjY0MzNiMjZhZWQwYTk0
|
15
|
+
OWExODRkZGQ1MjhhMzk3ZGIyYWZlZGMwZmJkNGVjYTk4MzQ3Y2Y=
|
data/CHANGELOG.markdown
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "shoulda", "~> 3.5"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0"
|
12
|
+
gem "jeweler", "~> 2.0"
|
13
|
+
gem "simplecov", "~> 0", ">= 0.8"
|
14
|
+
|
15
|
+
# Should be safe to add. By default, none of the assert functions get added to Test::Unit::TestCase
|
16
|
+
gem "fun_with_testing", "~> 0.0"
|
17
|
+
end
|
18
|
+
|
19
|
+
gem "fun_with_files", "~> 0.0", ">= 0.0.7"
|
20
|
+
gem "fun_with_version_strings", "~> 0.0", ">= 0.0.3"
|
21
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 Bryce Anderson
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= fun_with_gems
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to fun_with_gems
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2014 Bryce Anderson. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "fun_with_gems"
|
18
|
+
gem.homepage = "http://github.com/darthschmoo/fun_with_gems"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = "Dependency for most of my FunWith:: gems. Not much use standalone."
|
21
|
+
gem.description = "Dependency for FunWith gems, simplifies the setup of new gems, installing version data, root filepath, and default requirements."
|
22
|
+
gem.email = "keeputahweird@gmail.com"
|
23
|
+
gem.authors = ["Bryce Anderson"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
|
26
|
+
gem.files = Dir.glob( File.join( ".", "lib", "**", "*.rb" ) ) +
|
27
|
+
Dir.glob( File.join( ".", "test", "**", "*" ) ) +
|
28
|
+
%w( Gemfile Rakefile LICENSE.txt README.rdoc VERSION CHANGELOG.markdown )
|
29
|
+
end
|
30
|
+
Jeweler::RubygemsDotOrgTasks.new
|
31
|
+
|
32
|
+
require 'rake/testtask'
|
33
|
+
Rake::TestTask.new(:test) do |test|
|
34
|
+
test.libs << 'lib' << 'test'
|
35
|
+
test.pattern = 'test/**/test_*.rb'
|
36
|
+
test.verbose = true
|
37
|
+
end
|
38
|
+
|
39
|
+
desc "Code coverage detail"
|
40
|
+
task :simplecov do
|
41
|
+
ENV['COVERAGE'] = "true"
|
42
|
+
Rake::Task['test'].execute
|
43
|
+
end
|
44
|
+
|
45
|
+
task :default => :test
|
46
|
+
|
47
|
+
require 'rdoc/task'
|
48
|
+
Rake::RDocTask.new do |rdoc|
|
49
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
50
|
+
|
51
|
+
rdoc.rdoc_dir = 'rdoc'
|
52
|
+
rdoc.title = "fun_with_gems #{version}"
|
53
|
+
rdoc.rdoc_files.include('README*')
|
54
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
55
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module FunWith
|
2
|
+
module Gems
|
3
|
+
module FunGemAPI
|
4
|
+
def is_fun_gem?
|
5
|
+
true
|
6
|
+
end
|
7
|
+
|
8
|
+
def validate_gem
|
9
|
+
FunWith::Gems::Validator.new(self).validate
|
10
|
+
end
|
11
|
+
|
12
|
+
def valid_gem?
|
13
|
+
self.validate_gem.fwf_blank?
|
14
|
+
end
|
15
|
+
|
16
|
+
def gem_test_mode?
|
17
|
+
@fwg_gem_test_mode || false
|
18
|
+
end
|
19
|
+
|
20
|
+
# I can't think of a compelling reason to go beyond true/false here
|
21
|
+
def gem_test_mode=( mode )
|
22
|
+
@fwg_gem_test_mode = mode
|
23
|
+
end
|
24
|
+
|
25
|
+
def gem_verbose?
|
26
|
+
@fwg_gem_verbose || false # rather return false than nil
|
27
|
+
end
|
28
|
+
|
29
|
+
def gem_verbose=( mode )
|
30
|
+
@fwg_gem_verbose = mode
|
31
|
+
end
|
32
|
+
|
33
|
+
def say_if_verbose( msg, stream = $stdout )
|
34
|
+
stream.puts( msg ) if gem_verbose?
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
module FunWith
|
2
|
+
module Gems
|
3
|
+
module GemAPI
|
4
|
+
# Very opinionated. Expects the function to be called in the gem's lib/gem_name.rb file.
|
5
|
+
# Also expects a VERSION file at the root of the gem, which has "0.0.3" (or whatever), and
|
6
|
+
# nothing else. Finally, it expects that 'requiring' the classes the gem needs is a simple
|
7
|
+
# matter of requiring every item in the lib/fun_with directory, so keep those classes clean.
|
8
|
+
# The string given should represent the module that refers to the gem as a whole.
|
9
|
+
#
|
10
|
+
# Configurable options:
|
11
|
+
# While all these things are handled by default, some things can be overridden
|
12
|
+
# :main_lib_file => use a different filepath to calculate the root
|
13
|
+
#
|
14
|
+
# :root => or render :main_lib_file moot by declaring a different root.
|
15
|
+
#
|
16
|
+
# :version => Declare a different version string for the gem.
|
17
|
+
#
|
18
|
+
# :require => false (avoids requiring the default lib/fun_with dir.)
|
19
|
+
# :require => filepath or array of filepaths (require these things instead (note: not in addition to))
|
20
|
+
def make_gem_fun( gem_const, opts = {} )
|
21
|
+
@caller_file = caller.first.gsub(/:\d+:.*/,'')
|
22
|
+
@opts = opts
|
23
|
+
set_gem_const( gem_const )
|
24
|
+
@gem_const.extend( FunGemAPI )
|
25
|
+
set_gem_root
|
26
|
+
set_gem_version
|
27
|
+
require_libs
|
28
|
+
end
|
29
|
+
|
30
|
+
protected
|
31
|
+
def set_gem_const( gem_const )
|
32
|
+
# Create new modules for this fun, fun gem, if necessary.
|
33
|
+
if gem_const.is_a?( String )
|
34
|
+
#create the module
|
35
|
+
const = Object
|
36
|
+
full_const_name = ""
|
37
|
+
gem_const.split("::").each do |module_name|
|
38
|
+
full_const_name << "::" unless full_const_name.fwf_blank?
|
39
|
+
full_const_name << module_name
|
40
|
+
|
41
|
+
if eval( "defined?(#{full_const_name})")
|
42
|
+
const = eval( full_const_name )
|
43
|
+
else
|
44
|
+
const = const.const_set( module_name, Module.new )
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
@gem_const = eval( gem_const )
|
49
|
+
else
|
50
|
+
@gem_const = gem_const
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def set_gem_root
|
55
|
+
return if @opts[:set_root] == false
|
56
|
+
|
57
|
+
# Hence, the "make_gem_fun()" directive should be called in the lib/gem_name.rb file.
|
58
|
+
main_lib_file = @opts[:main_lib_file] || @caller_file
|
59
|
+
root = @opts[:root] || main_lib_file.fwf_filepath.expand.dirname.up
|
60
|
+
|
61
|
+
Files::RootPath.rootify( @gem_const, root )
|
62
|
+
end
|
63
|
+
|
64
|
+
def set_gem_version
|
65
|
+
return if @opts[:set_version] == false
|
66
|
+
if @opts[:version]
|
67
|
+
VersionStrings.versionize( @gem_const, @opts[:version] )
|
68
|
+
else
|
69
|
+
VersionStrings.versionize( @gem_const )
|
70
|
+
end
|
71
|
+
end
|
72
|
+
def require_libs
|
73
|
+
unless @opts[:require] == false
|
74
|
+
@opts[:require] ||= [ @gem_const.root( "lib", "fun_with" ) ]
|
75
|
+
@opts[:require] = [ @opts[:require] ] unless @opts[:require].is_a?(Array)
|
76
|
+
|
77
|
+
@opts[:require].each do |req_dir|
|
78
|
+
req_dir.fwf_filepath.expand.requir
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FunWith
|
2
|
+
module Gems
|
3
|
+
|
4
|
+
class Mechanic
|
5
|
+
def bump_version( gem_const )
|
6
|
+
if Validator.new.validate( gem_const )
|
7
|
+
# if tests pass and gem is valid
|
8
|
+
|
9
|
+
# run rake version:bump:patch
|
10
|
+
|
11
|
+
# git commit
|
12
|
+
|
13
|
+
# git push
|
14
|
+
|
15
|
+
# add branch v<VERSION>
|
16
|
+
|
17
|
+
# rake install
|
18
|
+
|
19
|
+
# gem push
|
20
|
+
|
21
|
+
else
|
22
|
+
puts "Failed"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
module FunWith
|
2
|
+
module Gems
|
3
|
+
class Validator
|
4
|
+
TEST_SUITE_DATA_REGEX = /(<?tests>\d+) tests, (<?assertions>\d+) assertions, (<?failures>\d+) failures, (<?errors>\d+) errors, (<?skips>\d+) skips/
|
5
|
+
|
6
|
+
def self.validate( gem_const )
|
7
|
+
self.new( gem_const ).validate
|
8
|
+
end
|
9
|
+
|
10
|
+
def initialize( gem_const )
|
11
|
+
@gem_const = gem_const
|
12
|
+
end
|
13
|
+
|
14
|
+
# should be available via the gem itgem_const?
|
15
|
+
def validate
|
16
|
+
@fun_gem_errors = []
|
17
|
+
|
18
|
+
if @gem_const.respond_to?(:root)
|
19
|
+
if @gem_const.root.is_a?( FunWith::Files::FilePath )
|
20
|
+
@fun_gem_errors << ".root() doesn't exist" unless @gem_const.root.directory?
|
21
|
+
@fun_gem_errors << "VERSION file doesn't exist" unless @gem_const.root("VERSION").file?
|
22
|
+
@fun_gem_errors << "CHANGELOG.markdown doesn't exist" unless @gem_const.root("CHANGELOG.markdown")
|
23
|
+
@fun_gem_errors << "lib/fun_with directory doesn't exist" unless @gem_const.root("lib", "fun_with").directory?
|
24
|
+
else
|
25
|
+
@fun_gem_errors << ".root() doesn't give a filepath"
|
26
|
+
end
|
27
|
+
else
|
28
|
+
@fun_gem_errors << "doesn't respond to .root()"
|
29
|
+
end
|
30
|
+
|
31
|
+
if @gem_const.respond_to?(:version)
|
32
|
+
|
33
|
+
else
|
34
|
+
@fun_gem_errors << "doesn't respond to .version()"
|
35
|
+
end
|
36
|
+
|
37
|
+
@fun_gem_errors
|
38
|
+
end
|
39
|
+
|
40
|
+
def fun_gem_errors
|
41
|
+
@fun_gem_errors
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
def passes_tests?( filepath )
|
46
|
+
@test_output = `cd #{filepath} && rake`
|
47
|
+
results = scan_results( @test_output )
|
48
|
+
end
|
49
|
+
|
50
|
+
def scan_results( str )
|
51
|
+
if m = str.match( TEST_SUITE_DATA_REGEX )
|
52
|
+
m[0]
|
53
|
+
else
|
54
|
+
"TEST STATS NOT FOUND"
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
|
59
|
+
def git_up_to_date?( filepath )
|
60
|
+
# On branch master
|
61
|
+
# Your branch is ahead of 'origin/master' by 1 commit.
|
62
|
+
# (use "git push" to publish your local commits)
|
63
|
+
#
|
64
|
+
# nothing to commit, working directory clean
|
65
|
+
#
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require "fun_with_version_strings"
|
2
|
+
require "fun_with_files"
|
3
|
+
|
4
|
+
FunWith::VersionStrings.versionize( FunWith::Files )
|
5
|
+
|
6
|
+
lib_dir = __FILE__.fwf_filepath.dirname
|
7
|
+
lib_dir.join( "fun_with", "gems", "gem_api.rb" ).requir
|
8
|
+
lib_dir.join( "fun_with", "gems", "fun_gem_api.rb" ).requir
|
9
|
+
#
|
10
|
+
# require File.join( File.dirname( __FILE__ ), "fun_with", "gems", "gem_api" )
|
11
|
+
# require File.join( File.dirname( __FILE__ ), "fun_with", "gems", "fun_gem_api" )
|
12
|
+
|
13
|
+
FunWith::Gems.extend( FunWith::Gems::GemAPI )
|
14
|
+
|
15
|
+
# versionizes
|
16
|
+
# rootifies
|
17
|
+
# requir's the lib/fun_with directory
|
18
|
+
# Do this because FunWithFiles doesn't do it itself.
|
19
|
+
FunWith::Gems.make_gem_fun( FunWith::Files, :require => false, :set_root => false, :set_version => false )
|
20
|
+
FunWith::Gems.make_gem_fun( "FunWith::Gems" )
|
data/test/helper.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
module SimpleCov::Configuration
|
4
|
+
def clean_filters
|
5
|
+
@filters = []
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.configure do
|
10
|
+
clean_filters
|
11
|
+
load_adapter 'test_frameworks'
|
12
|
+
end
|
13
|
+
|
14
|
+
ENV["COVERAGE"] && SimpleCov.start do
|
15
|
+
add_filter "/.rvm/"
|
16
|
+
end
|
17
|
+
require 'rubygems'
|
18
|
+
require 'bundler'
|
19
|
+
begin
|
20
|
+
Bundler.setup(:default, :development)
|
21
|
+
rescue Bundler::BundlerError => e
|
22
|
+
$stderr.puts e.message
|
23
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
24
|
+
exit e.status_code
|
25
|
+
end
|
26
|
+
require 'test/unit'
|
27
|
+
require 'shoulda'
|
28
|
+
|
29
|
+
# $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
30
|
+
# $LOAD_PATH.unshift(File.dirname(__FILE__))
|
31
|
+
|
32
|
+
require 'fun_with_testing'
|
33
|
+
require 'fun_with_gems'
|
34
|
+
|
35
|
+
FunWith::Gems.make_gem_fun( FunWith::Testing, :require => false )
|
36
|
+
|
37
|
+
class Test::Unit::TestCase
|
38
|
+
end
|
39
|
+
|
40
|
+
class FunWith::Gems::TestCase < FunWith::Testing::TestCase
|
41
|
+
include FunWith::Testing::Assertions::Basics
|
42
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestFunWithGems < FunWith::Gems::TestCase
|
4
|
+
context "checking the plumbing" do
|
5
|
+
should "have FunWith::Gems constants defined" do
|
6
|
+
assert defined?( FunWith )
|
7
|
+
assert defined?( FunWith::Gems )
|
8
|
+
assert defined?( FunWith::Gems::GemAPI )
|
9
|
+
end
|
10
|
+
|
11
|
+
should "respond to API methods" do
|
12
|
+
assert_respond_to( FunWith::Gems, :root )
|
13
|
+
assert_respond_to( FunWith::Gems, :version )
|
14
|
+
assert_respond_to( FunWith::Gems, :make_gem_fun )
|
15
|
+
end
|
16
|
+
|
17
|
+
should "have FunWith::Files constants" do
|
18
|
+
assert defined?( FunWith::Files )
|
19
|
+
assert defined?( FunWith::Files::FilePath )
|
20
|
+
assert defined?( FunWith::Files::RootPath )
|
21
|
+
assert defined?( FunWith::Files::DirectoryBuilder )
|
22
|
+
end
|
23
|
+
|
24
|
+
should "respond to fwf_...() methods" do
|
25
|
+
assert_respond_to( "", :fwf_blank? )
|
26
|
+
assert_respond_to( "", :fwf_present? )
|
27
|
+
end
|
28
|
+
|
29
|
+
should "validate self" do
|
30
|
+
assert FunWith::Gems.valid_gem?
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
context "testing gem loading" do
|
35
|
+
should "load llama gem" do
|
36
|
+
FunWith::Gems.root( "test", "test_gem", "lib", "fun_with_llamas.rb" ).requir
|
37
|
+
|
38
|
+
assert defined?( FunWith )
|
39
|
+
assert defined?( FunWith::Llamas )
|
40
|
+
assert defined?( FunWith::Llamas::Llama )
|
41
|
+
assert defined?( FunWith::Llamas::Trainer )
|
42
|
+
assert_respond_to( FunWith::Llamas::Llama.new, :spit )
|
43
|
+
|
44
|
+
assert_equal 3, FunWith::Llamas.version.major
|
45
|
+
|
46
|
+
assert FunWith::Llamas.valid_gem?
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
3.5.2
|
@@ -0,0 +1 @@
|
|
1
|
+
FunWith::Gems.make_gem_fun( "FunWith::Llamas" )
|
metadata
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fun_with_gems
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bryce Anderson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: fun_with_files
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.0.7
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.0.7
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: fun_with_version_strings
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.0.3
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0.0'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.0.3
|
50
|
+
- - ~>
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.0'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: shoulda
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '3.5'
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '3.5'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: rdoc
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '3.12'
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ~>
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '3.12'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: bundler
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '1.0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '1.0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: jeweler
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '2.0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ~>
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '2.0'
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: simplecov
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ! '>='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0.8'
|
116
|
+
- - ~>
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.8'
|
126
|
+
- - ~>
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: fun_with_testing
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ~>
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0.0'
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ~>
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0.0'
|
143
|
+
description: Dependency for FunWith gems, simplifies the setup of new gems, installing
|
144
|
+
version data, root filepath, and default requirements.
|
145
|
+
email: keeputahweird@gmail.com
|
146
|
+
executables: []
|
147
|
+
extensions: []
|
148
|
+
extra_rdoc_files:
|
149
|
+
- LICENSE.txt
|
150
|
+
- README.rdoc
|
151
|
+
files:
|
152
|
+
- ./lib/fun_with/gems/core_extensions/module.rb
|
153
|
+
- ./lib/fun_with/gems/fun_gem_api.rb
|
154
|
+
- ./lib/fun_with/gems/gem_api.rb
|
155
|
+
- ./lib/fun_with/gems/mechanic.rb
|
156
|
+
- ./lib/fun_with/gems/validator.rb
|
157
|
+
- ./lib/fun_with_gems.rb
|
158
|
+
- ./test/helper.rb
|
159
|
+
- ./test/test_fun_with_gems.rb
|
160
|
+
- ./test/test_gem/VERSION
|
161
|
+
- ./test/test_gem/lib/fun_with/llamas/llama.rb
|
162
|
+
- ./test/test_gem/lib/fun_with/llamas/trainer.rb
|
163
|
+
- ./test/test_gem/lib/fun_with_llamas.rb
|
164
|
+
- CHANGELOG.markdown
|
165
|
+
- Gemfile
|
166
|
+
- LICENSE.txt
|
167
|
+
- README.rdoc
|
168
|
+
- Rakefile
|
169
|
+
- VERSION
|
170
|
+
homepage: http://github.com/darthschmoo/fun_with_gems
|
171
|
+
licenses:
|
172
|
+
- MIT
|
173
|
+
metadata: {}
|
174
|
+
post_install_message:
|
175
|
+
rdoc_options: []
|
176
|
+
require_paths:
|
177
|
+
- lib
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ! '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
requirements: []
|
189
|
+
rubyforge_project:
|
190
|
+
rubygems_version: 2.2.2
|
191
|
+
signing_key:
|
192
|
+
specification_version: 4
|
193
|
+
summary: ! 'Dependency for most of my FunWith:: gems. Not much use standalone.'
|
194
|
+
test_files: []
|