extendomatic 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ README
2
+ Rakefile
3
+ lib/extendomatic.rb
4
+ lib/extensions/assertions_extensions.rb
5
+ lib/extensions/enumerable_extensions.rb
6
+ lib/extensions/number_helper_extensions.rb
7
+ lib/extensions/object_extensions.rb
8
+ Manifest
data/README ADDED
File without changes
@@ -0,0 +1,11 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+
5
+ Echoe.new('extendomatic', '0.2.1') do |p|
6
+ p.description = "Mix in a bunch of crazy methods (like accumulate, not, and compact_blank)"
7
+ p.url = "http://github.com/shipstar/extendomatic"
8
+ p.author = "Kyle Shipley"
9
+ p.email = "shipstar@gmail.com"
10
+ p.development_dependencies = []
11
+ end
@@ -0,0 +1,30 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{extendomatic}
5
+ s.version = "0.2.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Kyle Shipley"]
9
+ s.date = %q{2010-10-26}
10
+ s.description = %q{Mix in a bunch of crazy methods (like accumulate, not, and compact_blank)}
11
+ s.email = %q{shipstar@gmail.com}
12
+ s.extra_rdoc_files = ["README", "lib/extendomatic.rb", "lib/extensions/assertions_extensions.rb", "lib/extensions/enumerable_extensions.rb", "lib/extensions/number_helper_extensions.rb", "lib/extensions/object_extensions.rb", "extendomatic.gemspec"]
13
+ s.files = ["README", "Rakefile", "lib/extendomatic.rb", "lib/extensions/assertions_extensions.rb", "lib/extensions/enumerable_extensions.rb", "lib/extensions/number_helper_extensions.rb", "lib/extensions/object_extensions.rb", "Manifest", "extendomatic.gemspec"]
14
+ s.homepage = %q{http://github.com/shipstar/extendomatic}
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Extendomatic", "--main", "README"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{extendomatic}
18
+ s.rubygems_version = %q{1.3.7}
19
+ s.summary = %q{Mix in a bunch of crazy methods (like accumulate, not, and compact_blank)}
20
+
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 3
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ else
27
+ end
28
+ else
29
+ end
30
+ end
@@ -0,0 +1,11 @@
1
+ require "rails"
2
+
3
+ module Extendomatic
4
+ class Railtie < ::Rails::Railtie
5
+ config.after_initialize do
6
+ Dir[File.dirname(File.expand_path(__FILE__)) + "/extensions/*.rb"].each do |file|
7
+ require file
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ module ActiveSupport
2
+ module Testing
3
+ module Assertions
4
+ def assert_true(object)
5
+ assert_equal true, object
6
+ end
7
+
8
+ def assert_false(object)
9
+ assert_equal false, object
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ module Enumerable
2
+ def compact_blank
3
+ reject {|e| e.blank?}
4
+ end
5
+
6
+ def accumulate(initial, &block)
7
+ inject(initial) do |memo, entry|
8
+ block.call memo, entry
9
+ memo
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ module ActionView
2
+ module Helpers
3
+ module NumberHelper
4
+ def decimal_to_percentage(number, options={})
5
+ number_to_percentage number*100, options.reverse_merge(:precision => 0)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class Object
2
+ def do_not_run_in_production!
3
+ raise "Cannot run this task in production!" if Rails.env == "production"
4
+ end
5
+
6
+ def r(object)
7
+ raise object.inspect
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: extendomatic
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 1
9
+ version: 0.2.1
10
+ platform: ruby
11
+ authors:
12
+ - Kyle Shipley
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-10-26 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Mix in a bunch of crazy methods (like accumulate, not, and compact_blank)
22
+ email: shipstar@gmail.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - README
29
+ - lib/extendomatic.rb
30
+ - lib/extensions/assertions_extensions.rb
31
+ - lib/extensions/enumerable_extensions.rb
32
+ - lib/extensions/number_helper_extensions.rb
33
+ - lib/extensions/object_extensions.rb
34
+ - extendomatic.gemspec
35
+ files:
36
+ - README
37
+ - Rakefile
38
+ - lib/extendomatic.rb
39
+ - lib/extensions/assertions_extensions.rb
40
+ - lib/extensions/enumerable_extensions.rb
41
+ - lib/extensions/number_helper_extensions.rb
42
+ - lib/extensions/object_extensions.rb
43
+ - Manifest
44
+ - extendomatic.gemspec
45
+ has_rdoc: true
46
+ homepage: http://github.com/shipstar/extendomatic
47
+ licenses: []
48
+
49
+ post_install_message:
50
+ rdoc_options:
51
+ - --line-numbers
52
+ - --inline-source
53
+ - --title
54
+ - Extendomatic
55
+ - --main
56
+ - README
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ segments:
65
+ - 0
66
+ version: "0"
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ segments:
73
+ - 1
74
+ - 2
75
+ version: "1.2"
76
+ requirements: []
77
+
78
+ rubyforge_project: extendomatic
79
+ rubygems_version: 1.3.7
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: Mix in a bunch of crazy methods (like accumulate, not, and compact_blank)
83
+ test_files: []
84
+