activator 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4465e6e0b98be64bfc3e21fc054712fc665d731a
4
- data.tar.gz: 25931fe558065536e96e8f9d2d6a8efa5a50fbe4
3
+ metadata.gz: 9ebbdf01df12e50fb13cd1a9f6ddfc40c9121e71
4
+ data.tar.gz: 2fcebcc65baba263130cb19d79a6854753c66c5b
5
5
  SHA512:
6
- metadata.gz: 3d112d0258f6722441d34f1b441bf7b9457ccbf54fc6aeed6a19fafb2c9d10b676f6e182a6f9d706b1748bdf6b8b69b80014a406106cf2c39583996266d77498
7
- data.tar.gz: 85c10b8cd6d2e5712a50729c247de1149e8abafd43c621c478995744e347cc9666bf0ee7eb676a967b94c62b6f1213462aa5b78f016ae5f5309fed406a447420
6
+ metadata.gz: f8769c3391fb1e81b256e37fd85bf37fec3d8d952cd45e752be39c3974977e08558cbce40a1328e2e108d8b147ce50403372216bab9b368ade3b993ae83beb27
7
+ data.tar.gz: 2d2239e98adc9de3295701f0576a3e19578f510e77de40f4a9577e052871d482e35aba45ed715f2861403d8db298cf82c6cdedb916e6656b2600d33c43cb3c59
@@ -1,3 +1,3 @@
1
1
  module Activator
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/activator.rb CHANGED
@@ -3,17 +3,16 @@ module Activator
3
3
 
4
4
  included do
5
5
  after_save :deactivate_others
6
+ activator_field :active
6
7
  end
7
8
 
8
9
  module ClassMethods
9
- @@used_activator_field = :active
10
-
11
10
  def activator_field(name)
12
- @@used_activator_field = name.to_sym
11
+ @used_activator_field = name.to_sym
13
12
  end
14
13
 
15
14
  def used_activator_field
16
- @@used_activator_field
15
+ @used_activator_field
17
16
  end
18
17
 
19
18
  def method_missing(name, *args)
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jelmer Snoeck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-25 00:00:00.000000000 Z
11
+ date: 2014-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Mark one model as active and automatically deactivate the others.
@@ -59,10 +59,10 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - lib/activator/version.rb
63
- - lib/activator.rb
64
62
  - MIT-LICENSE
65
63
  - Rakefile
64
+ - lib/activator.rb
65
+ - lib/activator/version.rb
66
66
  homepage: https://github.com/jelmersnoeck/activator
67
67
  licenses: []
68
68
  metadata: {}
@@ -72,17 +72,17 @@ require_paths:
72
72
  - lib
73
73
  required_ruby_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.1.11
85
+ rubygems_version: 2.2.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Mark one model as active