-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d29d19
commit d0d7fb8
Showing
8 changed files
with
110 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# encoding: utf-8 | ||
require "bundler/gem_tasks" | ||
|
||
require "rake/testtask" | ||
require 'bundler/gem_tasks' | ||
|
||
require 'rake/testtask' | ||
Rake::TestTask.new do |t| | ||
t.libs << "test" | ||
t.test_files = FileList["test/**/*_test.rb"] | ||
t.libs << 'test' | ||
t.test_files = FileList['test/**/*_test.rb'] | ||
t.verbose = true | ||
end | ||
|
||
task :default => ["test"] | ||
task default: ['test'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
module Kernel | ||
# Returns the object's singleton class. | ||
def singleton_class | ||
class << self | ||
self | ||
unless respond_to?(:singleton_class) | ||
def singleton_class | ||
class << self | ||
self | ||
end | ||
end | ||
end unless respond_to?(:singleton_class) # exists in 1.9.2 | ||
end # exists in 1.9.2 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Memoist | ||
VERSION = "0.15.0" | ||
VERSION = '0.15.0'.freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,44 @@ | ||
# coding: utf-8 | ||
|
||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'memoist/version' | ||
|
||
AUTHORS = [ | ||
["Joshua Peek", "[email protected]"], | ||
["Tarmo Tänav", "[email protected]"], | ||
["Jeremy Kemper", "[email protected]"], | ||
["Eugene Pimenov", "[email protected]"], | ||
["Xavier Noria", "[email protected]"], | ||
["Niels Ganser", "[email protected]"], | ||
["Carl Lerche & Yehuda Katz", "[email protected]"], | ||
["jeem", "[email protected]"], | ||
["Jay Pignata", "[email protected]"], | ||
["Damien Mathieu", "[email protected]"], | ||
["José Valim", "[email protected]"], | ||
["Matthew Rudy Jacobs", "[email protected]"], | ||
] | ||
['Joshua Peek', '[email protected]'], | ||
['Tarmo Tänav', '[email protected]'], | ||
['Jeremy Kemper', '[email protected]'], | ||
['Eugene Pimenov', '[email protected]'], | ||
['Xavier Noria', '[email protected]'], | ||
['Niels Ganser', '[email protected]'], | ||
['Carl Lerche & Yehuda Katz', '[email protected]'], | ||
['jeem', '[email protected]'], | ||
['Jay Pignata', '[email protected]'], | ||
['Damien Mathieu', '[email protected]'], | ||
['José Valim', '[email protected]'], | ||
['Matthew Rudy Jacobs', '[email protected]'] | ||
].freeze | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "memoist" | ||
spec.name = 'memoist' | ||
spec.version = Memoist::VERSION | ||
spec.authors = AUTHORS.map{ |name, email| name } | ||
spec.email = AUTHORS.map{ |name, email| email } | ||
spec.summary = %q{memoize methods invocation} | ||
spec.homepage = "https://github.com/matthewrudy/memoist" | ||
spec.license = "MIT" | ||
spec.authors = AUTHORS.map { |name, _email| name } | ||
spec.email = AUTHORS.map { |_name, email| email } | ||
spec.summary = 'memoize methods invocation' | ||
spec.homepage = 'https://github.com/matthewrudy/memoist' | ||
spec.license = 'MIT' | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_development_dependency "benchmark-ips" | ||
spec.add_development_dependency "bundler" | ||
spec.add_development_dependency 'benchmark-ips' | ||
spec.add_development_dependency 'bundler' | ||
if RUBY_VERSION < '1.9.3' | ||
spec.add_development_dependency "rake", "~> 10.4" | ||
spec.add_development_dependency 'rake', '~> 10.4' | ||
else | ||
spec.add_development_dependency "rake" | ||
spec.add_development_dependency 'rake' | ||
end | ||
spec.add_development_dependency "minitest", "~> 5.10" | ||
spec.add_development_dependency 'minitest', '~> 5.10' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.