gather 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ pkg
2
+ doc
@@ -1,3 +1,7 @@
1
+ == 0.0.7
2
+ * Remove Hoe dependency
3
+ * check arity differently with ruby-1.9.2
4
+
1
5
  == 0.0.4
2
6
  * Allow properties which have a block to have that block as a value
3
7
 
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 John Anderson
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,27 +1,15 @@
1
- %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
- require File.dirname(__FILE__) + '/lib/version.rb'
3
-
4
- # Generate all the Rake tasks
5
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
- $hoe = Hoe.new('gather', Gather::VERSION) do |p|
7
- p.developer('John Anderson', 'panic@semiosix.com')
8
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
9
- p.rubyforge_name = 'clevic'
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'
1
+ begin
2
+ require 'bones'
3
+ rescue LoadError
4
+ abort '### Please install the "bones" gem ###'
21
5
  end
22
6
 
23
- require 'newgem/tasks' # load /tasks/*.rake
24
- Dir['tasks/**/*.rake'].each { |t| load t }
7
+ task :default => 'test:run'
8
+ task 'gem:release' => 'test:run'
25
9
 
26
- # TODO - want other tests/tasks run by default? Add them to the list
27
- # task :default => [:spec, :features]
10
+ Bones {
11
+ name 'gather'
12
+ authors 'John Anderson'
13
+ email 'panic@semiosix.com'
14
+ url 'https://rubygems.org/gems/gather'
15
+ }
data/TODO ADDED
@@ -0,0 +1,3 @@
1
+ Better documentation.
2
+ Tests.
3
+
@@ -47,8 +47,10 @@ module Gather
47
47
  end
48
48
 
49
49
  unless block.nil?
50
- if block.arity == -1
51
- instance_eval &block
50
+ if RUBY_VERSION && RUBY_VERSION >= '1.9.0' && block.arity == 0
51
+ instance_eval( &block )
52
+ elsif block.arity == -1
53
+ instance_eval( &block )
52
54
  else
53
55
  yield self
54
56
  end
@@ -74,7 +76,8 @@ module Gather
74
76
  def merge!( hash )
75
77
  hash.each {|k,v| send( k, v ) }
76
78
  end
77
- def start=( value )
79
+
80
+ def start=( value )
78
81
  Time.new( value.to_n * 60 * 60 )
79
82
  end
80
83
 
@@ -0,0 +1,3 @@
1
+ module Gather
2
+ VERSION = '0.0.6'
3
+ end
@@ -3,49 +3,3 @@ require 'shoulda'
3
3
  require 'pathname'
4
4
 
5
5
  $: << ( Pathname.new(__FILE__).parent.parent + 'lib' ).realpath.to_s
6
-
7
- # Allow running of startup and shutdown things before
8
- # an entire suite, instead of just one per test.
9
- # Creation of a database would be an example.
10
- class SuiteWrapper < Test::Unit::TestSuite
11
- attr_accessor :tests
12
-
13
- def initialize( name, test_case )
14
- super( name )
15
- @test_case = test_case
16
- end
17
-
18
- def startup
19
- end
20
-
21
- def shutdown
22
- end
23
-
24
- def run( *args )
25
- startup
26
- @test_case.startup if @test_case.respond_to? :startup
27
- retval = super
28
- @test_case.shutdown if @test_case.respond_to? :shutdown
29
- shutdown
30
- retval
31
- end
32
- end
33
-
34
- module Test
35
- module Unit
36
- class TestCase
37
- unless respond_to? :old_suite
38
- class << self
39
- alias_method :old_suite, :suite
40
- end
41
-
42
- def self.suite
43
- os = old_suite
44
- sw = SuiteWrapper.new( os.name, self )
45
- sw.tests = os.tests
46
- sw
47
- end
48
- end
49
- end
50
- end
51
- end
@@ -0,0 +1 @@
1
+ 0.0.7
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gather
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
4
+ prerelease:
5
+ version: 0.0.7
11
6
  platform: ruby
12
7
  authors:
13
8
  - John Anderson
@@ -15,41 +10,19 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-01-20 00:00:00 +02:00
19
- default_executable:
13
+ date: 2011-06-08 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
- name: newgem
16
+ name: bones
23
17
  prerelease: false
24
18
  requirement: &id001 !ruby/object:Gem::Requirement
25
19
  none: false
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 27
30
- segments:
31
- - 1
32
- - 3
33
- - 0
34
- version: 1.3.0
23
+ version: 3.7.0
35
24
  type: :development
36
25
  version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: hoe
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 55
46
- segments:
47
- - 1
48
- - 8
49
- - 0
50
- version: 1.8.0
51
- type: :development
52
- version_requirements: *id002
53
26
  description: |-
54
27
  A gem that provides modules to make working with properties a bit easier.
55
28
 
@@ -71,8 +44,7 @@ description: |-
71
44
  s.troob = %w{one two three four}
72
45
  s.gumf = 15 % 4
73
46
  end
74
- email:
75
- - panic@semiosix.com
47
+ email: panic@semiosix.com
76
48
  executables: []
77
49
 
78
50
  extensions: []
@@ -81,19 +53,23 @@ extra_rdoc_files:
81
53
  - History.txt
82
54
  - Manifest.txt
83
55
  files:
56
+ - .gitignore
84
57
  - History.txt
58
+ - LICENSE
85
59
  - Manifest.txt
86
60
  - README
87
61
  - Rakefile
88
- - lib/gather.rb
62
+ - TODO
89
63
  - lib/changes.rb
64
+ - lib/gather.rb
65
+ - lib/version.rb
90
66
  - script/destroy
91
67
  - script/generate
92
- - test/test_helper.rb
93
68
  - test/test_changes.rb
94
69
  - test/test_gather.rb
95
- has_rdoc: true
96
- homepage: http://gather.rubyforge.org
70
+ - test/test_helper.rb
71
+ - version.txt
72
+ homepage: https://rubygems.org/gems/gather
97
73
  licenses: []
98
74
 
99
75
  post_install_message:
@@ -107,27 +83,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
83
  requirements:
108
84
  - - ">="
109
85
  - !ruby/object:Gem::Version
110
- hash: 3
111
- segments:
112
- - 0
113
86
  version: "0"
114
87
  required_rubygems_version: !ruby/object:Gem::Requirement
115
88
  none: false
116
89
  requirements:
117
90
  - - ">="
118
91
  - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
92
  version: "0"
123
93
  requirements: []
124
94
 
125
- rubyforge_project: clevic
126
- rubygems_version: 1.3.7
95
+ rubyforge_project: gather
96
+ rubygems_version: 1.7.2
127
97
  signing_key:
128
98
  specification_version: 3
129
- summary: A gem that provides modules to make working with properties a bit easier
99
+ summary: http://gather.
130
100
  test_files:
131
- - test/test_helper.rb
132
101
  - test/test_changes.rb
133
102
  - test/test_gather.rb
103
+ - test/test_helper.rb