teich-hrmparser 0.2.1 → 0.2.2

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.
data/Rakefile CHANGED
@@ -3,25 +3,56 @@ require File.dirname(__FILE__) + '/lib/hrmparser'
3
3
 
4
4
  # Generate all the Rake tasks
5
5
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
- $hoe = Hoe.new('hrmparser', HRMParser::VERSION::STRING) do |p|
7
- p.developer('Oren Teich', 'oren@teich.net')
8
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
9
- p.rubyforge_name = p.name # TODO this is default value
10
- # p.extra_deps = [
11
- # ['activesupport','>= 2.0.2'],
12
- # ]
13
- p.extra_dev_deps = [
14
- ['newgem', ">= #{::Newgem::VERSION}"]
15
- ]
16
-
17
- p.clean_globs |= %w[**/.DS_Store tmp *.log]
18
- path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
19
- p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
20
- p.rsync_args = '-av --delete --ignore-errors'
6
+ # $hoe = Hoe.new('teich-hrmparser', HRMParser::VERSION::STRING) do |p|
7
+ # p.developer('Oren Teich', 'oren@teich.net')
8
+ # p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
9
+ # p.rubyforge_name = p.name # TODO this is default value
10
+ # # p.extra_deps = [
11
+ # # ['activesupport','>= 2.0.2'],
12
+ # # ]
13
+ # p.extra_dev_deps = [
14
+ # ['newgem', ">= #{::Newgem::VERSION}"]
15
+ # ]
16
+ #
17
+ # p.clean_globs |= %w[**/.DS_Store tmp *.log]
18
+ # path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
19
+ # p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
20
+ # p.rsync_args = '-av --delete --ignore-errors'
21
+ # end
22
+ #
23
+ # require 'newgem/tasks' # load /tasks/*.rake
24
+ # Dir['tasks/**/*.rake'].each { |t| load t }
25
+ #
26
+ # # TODO - want other tests/tasks run by default? Add them to the list
27
+ # task :default => [:spec, :features]
28
+ begin
29
+ require 'jeweler'
30
+ Jeweler::Tasks.new do |gemspec|
31
+ gemspec.name = "hrmparser"
32
+ gemspec.summary = "Heart Rate Monitor Parser"
33
+ gemspec.email = "oren@teich.net"
34
+ gemspec.homepage = "http://github.com/teich/hrmparser"
35
+ gemspec.description = "Parses Polar and Garmin HRM files."
36
+ gemspec.authors = ["Oren Teich"]
37
+
38
+ gemspec.files.exclude 'spec/samples/**/*'
39
+ gemspec.test_files.exclude 'spec/samples/**/*'
40
+
41
+ end
42
+ rescue LoadError
43
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
21
44
  end
22
45
 
23
- require 'newgem/tasks' # load /tasks/*.rake
24
- Dir['tasks/**/*.rake'].each { |t| load t }
46
+ require 'spec/rake/spectask'
47
+ Spec::Rake::SpecTask.new(:spec) do |spec|
48
+ spec.libs << 'lib' << 'spec'
49
+ spec.spec_files = FileList['spec/**/*_spec.rb']
50
+ end
51
+
52
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
53
+ spec.libs << 'lib' << 'spec'
54
+ spec.pattern = 'spec/**/*_spec.rb'
55
+ spec.rcov = true
56
+ end
25
57
 
26
- # TODO - want other tests/tasks run by default? Add them to the list
27
- task :default => [:spec, :features]
58
+ task :default => :spec
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 2
4
+ :patch: 2
data/lib/hrmparser.rb CHANGED
@@ -7,7 +7,6 @@ module HRMParser; end
7
7
  $LOAD_PATH.unshift(File.dirname(__FILE__) + '/hrmparser')
8
8
 
9
9
  require 'arraymath'
10
- require 'version'
11
10
  require 'trackpoint'
12
11
  require 'workout'
13
12
  require 'importer'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teich-hrmparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oren Teich
@@ -11,65 +11,36 @@ cert_chain: []
11
11
 
12
12
  date: 2009-04-29 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: newgem
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.3.0
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.8.0
34
- version:
35
- description: A ruby parser for polar and garmin hrm
36
- email:
37
- - oren@teich.net
14
+ dependencies: []
15
+
16
+ description: Parses Polar and Garmin HRM files.
17
+ email: oren@teich.net
38
18
  executables: []
39
19
 
40
20
  extensions: []
41
21
 
42
22
  extra_rdoc_files:
43
- - History.txt
44
- - Manifest.txt
45
23
  - README.rdoc
46
24
  files:
47
- - History.txt
48
- - Manifest.txt
49
25
  - README.rdoc
50
26
  - Rakefile
27
+ - VERSION.yml
51
28
  - lib/hrmparser.rb
52
29
  - lib/hrmparser/arraymath.rb
53
- - lib/hrmparser/workout.rb
54
- - lib/hrmparser/version.rb
55
- - lib/hrmparser/trackpoint.rb
56
30
  - lib/hrmparser/importer.rb
57
31
  - lib/hrmparser/importer/garmin.rb
58
32
  - lib/hrmparser/importer/polar.rb
59
- - script/console
60
- - script/destroy
61
- - script/generate
62
- - spec/hrmparser_spec.rb
33
+ - lib/hrmparser/trackpoint.rb
34
+ - lib/hrmparser/workout.rb
63
35
  - spec/arraymath_spec.rb
36
+ - spec/hrmparser_spec.rb
64
37
  - spec/spec.opts
65
38
  - spec/spec_helper.rb
66
- - tasks/rspec.rake
67
39
  has_rdoc: true
68
- homepage: http://github.com/teich/hrmparser/tree/master
40
+ homepage: http://github.com/teich/hrmparser
69
41
  post_install_message:
70
42
  rdoc_options:
71
- - --main
72
- - README.rdoc
43
+ - --charset=UTF-8
73
44
  require_paths:
74
45
  - lib
75
46
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -86,10 +57,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
57
  version:
87
58
  requirements: []
88
59
 
89
- rubyforge_project: hrmparser
60
+ rubyforge_project:
90
61
  rubygems_version: 1.2.0
91
62
  signing_key:
92
63
  specification_version: 2
93
- summary: A ruby parser for polar and garmin hrm
94
- test_files: []
95
-
64
+ summary: Heart Rate Monitor Parser
65
+ test_files:
66
+ - spec/arraymath_spec.rb
67
+ - spec/hrmparser_spec.rb
68
+ - spec/spec_helper.rb
data/History.txt DELETED
@@ -1,9 +0,0 @@
1
- == 0.2.0 2009-04-29
2
- * Importer takes a string of data now instead of file handle
3
- == 0.1.1 2009-04-29
4
- * Added support for Polar HRM
5
- * Actually making a gem
6
-
7
- == 0.0.1 2009-04-28
8
-
9
- * Initial release
data/Manifest.txt DELETED
@@ -1,20 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.rdoc
4
- Rakefile
5
- lib/hrmparser.rb
6
- lib/hrmparser/arraymath.rb
7
- lib/hrmparser/workout.rb
8
- lib/hrmparser/version.rb
9
- lib/hrmparser/trackpoint.rb
10
- lib/hrmparser/importer.rb
11
- lib/hrmparser/importer/garmin.rb
12
- lib/hrmparser/importer/polar.rb
13
- script/console
14
- script/destroy
15
- script/generate
16
- spec/hrmparser_spec.rb
17
- spec/arraymath_spec.rb
18
- spec/spec.opts
19
- spec/spec_helper.rb
20
- tasks/rspec.rake
@@ -1,13 +0,0 @@
1
- module HRMParser # :nodoc:
2
- module VERSION # :nodoc:
3
- unless defined? MAJOR
4
- MAJOR = 0
5
- MINOR = 2
6
- TINY = 1
7
-
8
- STRING = [MAJOR, MINOR, TINY].compact.join('.')
9
-
10
- SUMMARY = "HRMParser #{STRING}"
11
- end
12
- end
13
- end
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/hrmparser.rb'}"
9
- puts "Loading hrmparser 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)
data/tasks/rspec.rake DELETED
@@ -1,21 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- require 'spec'
6
- end
7
- begin
8
- require 'spec/rake/spectask'
9
- rescue LoadError
10
- puts <<-EOS
11
- To use rspec for testing you must install rspec gem:
12
- gem install rspec
13
- EOS
14
- exit(0)
15
- end
16
-
17
- desc "Run the specs under spec/models"
18
- Spec::Rake::SpecTask.new do |t|
19
- t.spec_opts = ['--options', "spec/spec.opts"]
20
- t.spec_files = FileList['spec/*_spec.rb']
21
- end