pidgin2adium 3.0.0 → 3.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.
@@ -0,0 +1,79 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{pidgin2adium}
8
+ s.version = "3.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Gabe Berke-Williams"]
12
+ s.date = %q{2010-08-07}
13
+ s.description = %q{Pidgin2Adium is a fast, easy way to convert Pidgin (formerly gaim) logs to the Adium format.}
14
+ s.email = %q{gbw@brandeis.edu}
15
+ s.executables = ["pidgin2adium", "pidgin2adium_profiler"]
16
+ s.extensions = ["ext/balance_tags_c/extconf.rb"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".autotest",
23
+ ".gitignore",
24
+ ".rspec",
25
+ "Gemfile",
26
+ "History.txt",
27
+ "LICENSE",
28
+ "Manifest.txt",
29
+ "README.rdoc",
30
+ "Rakefile",
31
+ "VERSION",
32
+ "bin/pidgin2adium",
33
+ "bin/pidgin2adium_profiler",
34
+ "config/website.yml",
35
+ "ext/balance_tags_c/balance_tags_c.c",
36
+ "ext/balance_tags_c/extconf.rb",
37
+ "lib/pidgin2adium.rb",
38
+ "lib/pidgin2adium/balance_tags.rb",
39
+ "lib/pidgin2adium/log_converter.rb",
40
+ "lib/pidgin2adium/log_file.rb",
41
+ "lib/pidgin2adium/log_parser.rb",
42
+ "pidgin2adium.gemspec",
43
+ "spec/pidgin2adium_spec.rb",
44
+ "spec/spec.opts",
45
+ "spec/spec_helper.rb",
46
+ "tasks/build_profiler.rake",
47
+ "tasks/extconf.rake",
48
+ "tasks/extconf/balance_tags_c.rake"
49
+ ]
50
+ s.homepage = %q{http://github.com/gabebw/pidgin2adium}
51
+ s.rdoc_options = ["--charset=UTF-8"]
52
+ s.require_paths = ["lib"]
53
+ s.rubygems_version = %q{1.3.7}
54
+ s.summary = %q{Pidgin2Adium is a fast, easy way to convert Pidgin (formerly gaim) logs to the Adium format}
55
+ s.test_files = [
56
+ "spec/pidgin2adium_spec.rb",
57
+ "spec/spec_helper.rb"
58
+ ]
59
+
60
+ if s.respond_to? :specification_version then
61
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
62
+ s.specification_version = 3
63
+
64
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
65
+ s.add_development_dependency(%q<bundler>, [">= 0.9.26"])
66
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
67
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
68
+ else
69
+ s.add_dependency(%q<bundler>, [">= 0.9.26"])
70
+ s.add_dependency(%q<jeweler>, [">= 0"])
71
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
72
+ end
73
+ else
74
+ s.add_dependency(%q<bundler>, [">= 0.9.26"])
75
+ s.add_dependency(%q<jeweler>, [">= 0"])
76
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
77
+ end
78
+ end
79
+
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "Pidgin2adium" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
data/spec/spec.opts ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,19 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'pidgin2adium'
4
+ begin
5
+ # RSpec 2
6
+ gem 'rspec', '>= 2.0.0.beta.18'
7
+ require 'rspec'
8
+ constant = RSpec
9
+ rescue Gem::LoadError
10
+ # RSpec 1
11
+ gem 'rspec', '~> 1.3'
12
+ require 'spec'
13
+ require 'spec/autorun'
14
+ constant = Spec::Runner
15
+ end
16
+
17
+ constant.configure do |config|
18
+
19
+ end
@@ -0,0 +1,49 @@
1
+ desc "Build RubyProf version of pidgin2adium script"
2
+ task :build_profiler do |t|
3
+ # base = location of Rakefile, e.g. repo base
4
+ base = Dir.pwd
5
+ orig_lines = File.readlines("#{base}/bin/pidgin2adium")
6
+ # remove "log_converter.start" line so we can surround it with RubyProf
7
+ lastline = orig_lines.pop
8
+ orig_text = orig_lines.join
9
+
10
+ prof_file = File.new("#{base}/bin/pidgin2adium_profiler", 'w')
11
+ new_text = <<EOF
12
+ require 'ruby-prof'
13
+ RubyProf.start
14
+ log_converter.start
15
+ result = RubyProf.stop
16
+ printer = RubyProf::GraphHtmlPrinter.new(result)
17
+ highest = Dir.glob('profiler_result*').sort.last
18
+ if highest.nil?
19
+ # This is the first profiler html created
20
+ fname = "profiler_result.html"
21
+ f = File.new(fname, 'w')
22
+ else
23
+ match = highest.match(/(\\d+)/)
24
+ if match
25
+ num = match.captures.last.to_i + 1
26
+ fname = "profiler_result%02d.html" % num
27
+ f = File.new(fname, 'w')
28
+ else
29
+ puts "!!! Oops, no match but there is definitely a profile file that exists. Unsure what happened. Outputting to stdout."
30
+ f = STDOUT
31
+ end
32
+ end
33
+ printer.print(f, {:filename => nil})
34
+ EOF
35
+ prof_file.write(orig_text)
36
+ prof_file.write(new_text)
37
+ prof_file.close
38
+ end
39
+
40
+ desc "Set profiler to blank file"
41
+ task :clear_profiler do
42
+ base = Dir.pwd
43
+ x = File.new("#{base}/bin/pidgin2adium_profiler", 'w')
44
+ x.puts
45
+ x.close
46
+ end
47
+
48
+ desc "Install debug version of gem, with profiler. Clears profiler file after installing."
49
+ task :install_debug => [:build_profiler, :install_gem, :clear_profiler]
data/tasks/extconf.rake CHANGED
@@ -6,8 +6,3 @@ end
6
6
  task :compile => "extconf:compile"
7
7
 
8
8
  task :test => :compile
9
-
10
- BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp}"
11
- $hoe.clean_globs |= ["ext/**/#{BIN}", "lib/**/#{BIN}", 'ext/**/Makefile']
12
- $hoe.spec.require_paths = Dir['{lib,ext/*}']
13
- $hoe.spec.extensions = FileList["ext/**/extconf.rb"].to_a
metadata CHANGED
@@ -1,110 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pidgin2adium
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ hash: 5
5
+ prerelease: false
6
+ segments:
7
+ - 3
8
+ - 0
9
+ - 1
10
+ version: 3.0.1
5
11
  platform: ruby
6
12
  authors:
7
- - Gabe B-W
13
+ - Gabe Berke-Williams
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-01-31 00:00:00 -05:00
18
+ date: 2010-08-07 00:00:00 -07:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
- name: rubyforge
17
22
  type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
23
- version: 2.0.3
24
- version:
29
+ hash: 15
30
+ segments:
31
+ - 0
32
+ - 9
33
+ - 26
34
+ version: 0.9.26
35
+ name: bundler
36
+ requirement: *id001
25
37
  - !ruby/object:Gem::Dependency
26
- name: gemcutter
27
38
  type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
33
- version: 0.3.0
34
- version:
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ name: jeweler
50
+ requirement: *id002
35
51
  - !ruby/object:Gem::Dependency
36
- name: hoe
37
52
  type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
+ none: false
40
56
  requirements:
41
57
  - - ">="
42
58
  - !ruby/object:Gem::Version
43
- version: 2.5.0
44
- version:
45
- description: |-
46
- Pidgin2Adium is a fast, easy way to convert Pidgin (formerly gaim) logs to the
47
- Adium format.
48
- Note that it assumes a Mac OS X environment with Adium installed.
49
- email:
50
- - pidgin2adium@brandeis.edu
59
+ hash: 13
60
+ segments:
61
+ - 1
62
+ - 2
63
+ - 9
64
+ version: 1.2.9
65
+ name: rspec
66
+ requirement: *id003
67
+ description: Pidgin2Adium is a fast, easy way to convert Pidgin (formerly gaim) logs to the Adium format.
68
+ email: gbw@brandeis.edu
51
69
  executables:
52
70
  - pidgin2adium
71
+ - pidgin2adium_profiler
53
72
  extensions:
54
73
  - ext/balance_tags_c/extconf.rb
55
74
  extra_rdoc_files:
56
- - History.txt
57
- - Manifest.txt
75
+ - LICENSE
58
76
  - README.rdoc
59
77
  files:
60
78
  - .autotest
79
+ - .gitignore
80
+ - .rspec
81
+ - Gemfile
61
82
  - History.txt
83
+ - LICENSE
62
84
  - Manifest.txt
63
85
  - README.rdoc
64
- - Rakefile.rb
86
+ - Rakefile
87
+ - VERSION
65
88
  - bin/pidgin2adium
89
+ - bin/pidgin2adium_profiler
90
+ - config/website.yml
66
91
  - ext/balance_tags_c/balance_tags_c.c
67
92
  - ext/balance_tags_c/extconf.rb
68
93
  - lib/pidgin2adium.rb
94
+ - lib/pidgin2adium/balance_tags.rb
69
95
  - lib/pidgin2adium/log_converter.rb
70
96
  - lib/pidgin2adium/log_file.rb
71
97
  - lib/pidgin2adium/log_parser.rb
72
- - script/console
73
- - script/destroy
74
- - script/generate
98
+ - pidgin2adium.gemspec
99
+ - spec/pidgin2adium_spec.rb
100
+ - spec/spec.opts
101
+ - spec/spec_helper.rb
102
+ - tasks/build_profiler.rake
75
103
  - tasks/extconf.rake
76
104
  - tasks/extconf/balance_tags_c.rake
77
- - test/test_balance_tags_c_extn.rb
78
105
  has_rdoc: true
79
- homepage: http://rubyforge.org/projects/pidgin2adium/
106
+ homepage: http://github.com/gabebw/pidgin2adium
80
107
  licenses: []
81
108
 
82
109
  post_install_message:
83
110
  rdoc_options:
84
- - --main
85
- - README.rdoc
86
- - -T hanna
111
+ - --charset=UTF-8
87
112
  require_paths:
88
113
  - lib
89
- - ext/balance_tags_c
90
114
  required_ruby_version: !ruby/object:Gem::Requirement
115
+ none: false
91
116
  requirements:
92
117
  - - ">="
93
118
  - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
94
122
  version: "0"
95
- version:
96
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
97
125
  requirements:
98
126
  - - ">="
99
127
  - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 0
100
131
  version: "0"
101
- version:
102
132
  requirements: []
103
133
 
104
- rubyforge_project: pidgin2adium
105
- rubygems_version: 1.3.5
134
+ rubyforge_project:
135
+ rubygems_version: 1.3.7
106
136
  signing_key:
107
137
  specification_version: 3
108
138
  summary: Pidgin2Adium is a fast, easy way to convert Pidgin (formerly gaim) logs to the Adium format
109
139
  test_files:
110
- - test/test_balance_tags_c_extn.rb
140
+ - spec/pidgin2adium_spec.rb
141
+ - spec/spec_helper.rb
data/Rakefile.rb DELETED
@@ -1,41 +0,0 @@
1
- require 'rubygems'
2
- gem 'hoe', '>= 2.1.0'
3
- require 'hoe'
4
- require 'fileutils'
5
- require './lib/pidgin2adium.rb'
6
- require 'hanna/rdoctask'
7
-
8
- Hoe.plugin :gemcutter
9
- Hoe.plugin :newgem
10
- Hoe.plugin :website
11
- # Hoe.plugin :cucumberfeatures
12
-
13
- # Generate all the Rake tasks
14
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
15
- $hoe = Hoe.spec 'pidgin2adium' do
16
- self.developer('Gabe B-W', 'pidgin2adium@brandeis.edu')
17
- self.extra_rdoc_files = %w{README.rdoc}
18
- #self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
19
- self.rubyforge_name = self.name # this is default value
20
- # self.extra_deps = [['activesupport','>= 2.0.2']]
21
-
22
- self.spec_extras[:extensions] = "ext/balance_tags_c/extconf.rb"
23
- end
24
-
25
- $hoe.spec.rdoc_options = %w{--main README.rdoc}
26
-
27
- # Use hanna RDoc template, if available
28
- begin
29
- gem "hanna"
30
- $hoe.spec.rdoc_options << '-T hanna'
31
- rescue GEM::LoadError
32
- # hanna not installed, continue
33
- end
34
-
35
- require 'newgem/tasks'
36
- Dir['tasks/**/*.rake'].each { |t| load t }
37
- task :postrelease => [:publish_docs, :announce]
38
-
39
- # TODO - want other tests/tasks run by default? Add them to the list
40
- # remove_task :default
41
- # task :default => [:spec, :features]
data/script/console DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/p2a.rb'}"
9
- puts "Loading p2a gem"
10
- exec "#{irb} #{libs} --simple-prompt"
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)
@@ -1,10 +0,0 @@
1
- require "test/unit"
2
-
3
- $:.unshift File.dirname(__FILE__) + "/../ext/balance_tags_c"
4
- require "balance_tags_c.so"
5
-
6
- class TestBalanceTagsCExtn < Test::Unit::TestCase
7
- def test_truth
8
- assert true
9
- end
10
- end