acts_as_reportable 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/ruport/acts_as_reportable.rb +3 -5
  3. metadata +49 -42
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "rake/rdoctask"
2
2
  require "rake/testtask"
3
3
  require "rake/gempackagetask"
4
4
 
5
- AAR_VERSION = "1.1.0"
5
+ AAR_VERSION = "1.1.1"
6
6
 
7
7
  begin
8
8
  require "rubygems"
@@ -369,11 +369,9 @@ module Ruport
369
369
  # name to the attribute name as association.attribute
370
370
  #
371
371
  def get_attributes_with_options(options = {})
372
- only_or_except =
373
- if options[:only] or options[:except]
374
- { :only => options[:only], :except => options[:except] }
375
- end
376
- attrs = attributes(only_or_except)
372
+ attrs = attributes
373
+ attrs.slice!(*options[:only].map(&:to_s)) if options[:only]
374
+ attrs.except!(*options[:except].map(&:to_s)) if options[:except]
377
375
  attrs = attrs.inject({}) {|h,(k,v)|
378
376
  h["#{options[:qualify_attribute_names]}.#{k}"] = v; h
379
377
  } if options[:qualify_attribute_names]
metadata CHANGED
@@ -1,59 +1,66 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
3
- specification_version: 1
4
2
  name: acts_as_reportable
5
3
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2008-04-01 00:00:00 -04:00
8
- summary: ActiveRecord support for Ruby Reports
9
- require_paths:
10
- - lib
11
- email: mikem836@gmail.com
12
- homepage: http://rubyreports.org
13
- rubyforge_project: ruport
14
- description: acts_as_reportable provides ActiveRecord support for Ruby Reports
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 1.1.1
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Michael Milner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-06-09 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: ruport
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.6.0
23
+ version:
24
+ description: acts_as_reportable provides ActiveRecord support for Ruby Reports
25
+ email: mikem836@gmail.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
31
32
  files:
32
33
  - lib/ruport
33
34
  - lib/ruport/acts_as_reportable.rb
34
35
  - test/helpers.rb
35
36
  - test/acts_as_reportable_test.rb
36
37
  - Rakefile
37
- test_files:
38
- - test/acts_as_reportable_test.rb
38
+ has_rdoc: true
39
+ homepage: http://rubyreports.org
40
+ post_install_message:
39
41
  rdoc_options:
40
42
  - --title
41
43
  - Ruport Documentation
42
- extra_rdoc_files: []
43
-
44
- executables: []
45
-
46
- extensions: []
47
-
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
48
58
  requirements: []
49
59
 
50
- dependencies:
51
- - !ruby/object:Gem::Dependency
52
- name: ruport
53
- version_requirement:
54
- version_requirements: !ruby/object:Gem::Version::Requirement
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: 1.6.0
59
- version:
60
+ rubyforge_project: ruport
61
+ rubygems_version: 1.1.1
62
+ signing_key:
63
+ specification_version: 2
64
+ summary: ActiveRecord support for Ruby Reports
65
+ test_files:
66
+ - test/acts_as_reportable_test.rb