utility_belt_r19 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.
Files changed (4) hide show
  1. data/README +12 -0
  2. data/Rakefile +70 -0
  3. data/lib/utility_belt_r19.rb +24 -0
  4. metadata +80 -0
data/README ADDED
@@ -0,0 +1,12 @@
1
+ == utility_belt patch for ruby 1.9
2
+
3
+ === Usage
4
+ In ~/.irbrc,
5
+ ---
6
+ require 'utility_belt_r19'
7
+ ---
8
+
9
+
10
+ === History
11
+ 0.0.1: First version.
12
+ work with utility_belt-1.1.0.
@@ -0,0 +1,70 @@
1
+ #
2
+ # To change this template, choose Tools | Templates
3
+ # and open the template in the editor.
4
+
5
+
6
+ require 'rubygems'
7
+ require 'rake'
8
+ require 'rake/clean'
9
+ require 'rake/gempackagetask'
10
+ require 'rake/rdoctask'
11
+ require 'rake/testtask'
12
+ require 'spec'
13
+ require 'tempfile'
14
+
15
+ $version_suffix=""
16
+
17
+ spec = Gem::Specification.new do |s|
18
+ s.name = 'utility_belt_r19'
19
+ s.version = '0.0.1' + $version_suffix
20
+ s.has_rdoc = false
21
+ s.extra_rdoc_files = ['README']
22
+ s.summary = 'utility_belt for ruby 1.9.'
23
+ s.description = s.summary
24
+ s.author = 'Toshiyuki Suzumura'
25
+ s.email = 'Twitter: @suzumura_ss'
26
+ s.files = %w(README Rakefile) + Dir.glob("{lib}/**/*")
27
+ s.require_path = "lib"
28
+ # s.bindir = "bin"
29
+ # s.executables = ['your_executable_here']
30
+ s.add_dependency('utility_belt', "=1.1.0")
31
+ end
32
+
33
+ Rake::GemPackageTask.new(spec) do |p|
34
+ p.gem_spec = spec
35
+ p.need_tar = true
36
+ p.need_zip = true
37
+ end
38
+
39
+ Rake::RDocTask.new do |rdoc|
40
+ files =['README', 'LICENSE', 'lib/**/*.rb']
41
+ rdoc.rdoc_files.add(files)
42
+ rdoc.main = "README" # page to start on
43
+ rdoc.title = "content_provider Docs"
44
+ rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
45
+ rdoc.options << '--line-numbers'
46
+ end
47
+
48
+ namespace :test do
49
+ desc 'Run tests for rspec tests'
50
+ task :spec do
51
+ Dir.glob('spec/*_spec.rb').each {|t|
52
+ puts "=== spec testing: #{t}"
53
+ return false unless system("spec -c #{t}")
54
+ }
55
+ end
56
+
57
+ desc 'Run tests for unit tests'
58
+ Rake::TestTask.new(:unit) do |t|
59
+ t.pattern = 'test/*_test.rb'
60
+ end
61
+
62
+ desc 'Run all the tests'
63
+ task :all => [:spec, :unit]
64
+ end
65
+
66
+ desc 'Run all the tests'
67
+ task :test => 'test:all'
68
+
69
+ desc 'Run test task as default'
70
+ task :default => :test
@@ -0,0 +1,24 @@
1
+ # This started as my (Giles Bowkett's) .irbrc file, turned into a recipe on IRB for the Pragmatic Programmers,
2
+ # and soon became a scrapbook of cool code snippets from all over the place. All the RDoc lives in the README.
3
+ # Check that file for usage information, authorship, copyright, and extensive details. You can also find a
4
+ # nice, HTMLified version of the README content at http://utilitybelt.rubyforge.org.
5
+
6
+ # patched for ruby 1.9 by Toshiyuki Suzumura. / Twitter: @suzumura_ss
7
+
8
+ UTILITY_BELT_IRB_STARTUP_PROCS = {} unless Object.const_defined? :UTILITY_BELT_IRB_STARTUP_PROCS
9
+
10
+ %w{rubygems utility_belt/equipper}.each {|internal_library| require internal_library}
11
+
12
+ if Object.const_defined? :IRB
13
+
14
+ # Called when the irb session is ready, after any external libraries have been loaded. This
15
+ # allows the user to specify which gadgets in the utility belt to equip. (Kind of pushing the
16
+ # metaphor, but hey, what the hell.)
17
+ IRB.conf[:IRB_RC] = lambda do |v|
18
+ UtilityBelt.equip(:defaults) unless UtilityBelt.equipped?
19
+ UTILITY_BELT_IRB_STARTUP_PROCS.each {|symbol, proc| proc.call}
20
+ end
21
+
22
+ # default: dark background
23
+ UtilityBelt::Themes.background(:dark) if defined? UtilityBelt::Themes
24
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: utility_belt_r19
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Toshiyuki Suzumura
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-09-01 00:00:00 +09:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: utility_belt
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - "="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 1
31
+ - 0
32
+ version: 1.1.0
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description: utility_belt for ruby 1.9.
36
+ email: "Twitter: @suzumura_ss"
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files:
42
+ - README
43
+ files:
44
+ - README
45
+ - Rakefile
46
+ - lib/utility_belt_r19.rb
47
+ has_rdoc: true
48
+ homepage:
49
+ licenses: []
50
+
51
+ post_install_message:
52
+ rdoc_options: []
53
+
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ version: "0"
72
+ requirements: []
73
+
74
+ rubyforge_project:
75
+ rubygems_version: 1.3.7
76
+ signing_key:
77
+ specification_version: 3
78
+ summary: utility_belt for ruby 1.9.
79
+ test_files: []
80
+