nay-record_with_operator 0.0.11 → 0.0.14

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 +2 -2
  2. data/lib/record_with_operator.rb +1 -1
  3. metadata +10 -11
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ DESCRIPTION = "Rails plugin to set created_by, updated_by, deleted_by to ActiveR
12
12
  GITHUB_PROJECT = "record_with_operator"
13
13
  HOMEPAGE = "http://github.com/nay/#{GITHUB_PROJECT}/tree"
14
14
  BIN_FILES = %w( )
15
- VER = "0.0.11"
15
+ VER = "0.0.14"
16
16
  CLEAN.include ['pkg']
17
17
 
18
18
  desc 'Default: run unit tests.'
@@ -55,7 +55,7 @@ spec = Gem::Specification.new do |s|
55
55
  s.add_dependency('activerecord', '>=2.2.0')
56
56
 
57
57
  s.files = %w(README.rdoc Rakefile MIT-LICENSE) +
58
- %w(install.rb uninstall.rb init.rb) +
58
+ %w(install.rb uninstall.rb) +
59
59
  Dir.glob("{bin,doc,lib,tasks,rails}/**/*")
60
60
 
61
61
  end
@@ -58,7 +58,7 @@ module RecordWithOperator
58
58
  if operator
59
59
  if results.kind_of? Array
60
60
  results.each{|r| r.operator = operator}
61
- else
61
+ elsif results
62
62
  results.operator = operator
63
63
  end
64
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nay-record_with_operator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuko Ohba
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-18 00:00:00 -07:00
12
+ date: 2009-04-17 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -37,18 +37,17 @@ files:
37
37
  - MIT-LICENSE
38
38
  - install.rb
39
39
  - uninstall.rb
40
- - init.rb
41
40
  - lib/association_with_operator.rb
42
41
  - lib/record_with_operator.rb
43
42
  - tasks/record_with_operator_tasks.rake
44
43
  - rails/init.rb
44
+ - test/record_with_operator_belongs_to_association_test.rb
45
+ - test/record_with_operator_has_one_association_test.rb
46
+ - test/record_with_operator_reflection_test.rb
47
+ - test/record_with_operator_test.rb
45
48
  - test/record_with_operator_user_class_name_test.rb
46
49
  - test/schema.rb
47
50
  - test/test_helper.rb
48
- - test/record_with_operator_reflection_test.rb
49
- - test/record_with_operator_has_one_association_test.rb
50
- - test/record_with_operator_test.rb
51
- - test/record_with_operator_belongs_to_association_test.rb
52
51
  - test/database.yml
53
52
  has_rdoc: true
54
53
  homepage: http://github.com/nay/record_with_operator/tree
@@ -78,11 +77,11 @@ signing_key:
78
77
  specification_version: 2
79
78
  summary: Rails plugin to set created_by, updated_by, deleted_by to ActiveRecord objects. Supports associations.
80
79
  test_files:
80
+ - test/record_with_operator_belongs_to_association_test.rb
81
+ - test/record_with_operator_has_one_association_test.rb
82
+ - test/record_with_operator_reflection_test.rb
83
+ - test/record_with_operator_test.rb
81
84
  - test/record_with_operator_user_class_name_test.rb
82
85
  - test/schema.rb
83
86
  - test/test_helper.rb
84
- - test/record_with_operator_reflection_test.rb
85
- - test/record_with_operator_has_one_association_test.rb
86
- - test/record_with_operator_test.rb
87
- - test/record_with_operator_belongs_to_association_test.rb
88
87
  - test/database.yml