requires_approval 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -19
- data/Rakefile +4 -14
- data/VERSION +1 -1
- data/lib/requires_approval/version.rb +3 -0
- data/lib/requires_approval.rb +18 -16
- data/lib/tasks/requires_approval.rake +36 -0
- data/lib/tasks/test.rake +3 -0
- data/requires_approval.gemspec +76 -24
- data/spec/lib/requires_approval_spec.rb +13 -0
- metadata +40 -113
- data/.gitignore +0 -51
data/Gemfile.lock
CHANGED
@@ -1,27 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
requires_approval (1.0.
|
5
|
-
|
6
|
-
activesupport (~> 3)
|
4
|
+
requires_approval (1.0.7)
|
5
|
+
requires_approval
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: http://rubygems.org/
|
10
9
|
specs:
|
11
|
-
activemodel (3.2.11)
|
12
|
-
activesupport (= 3.2.11)
|
13
|
-
builder (~> 3.0.0)
|
14
|
-
activerecord (3.2.11)
|
15
|
-
activemodel (= 3.2.11)
|
16
|
-
activesupport (= 3.2.11)
|
17
|
-
arel (~> 3.0.2)
|
18
|
-
tzinfo (~> 0.3.29)
|
19
|
-
activesupport (3.2.11)
|
20
|
-
i18n (~> 0.6)
|
21
|
-
multi_json (~> 1.0)
|
22
10
|
archive-tar-minitar (0.5.2)
|
23
|
-
arel (3.0.2)
|
24
|
-
builder (3.0.4)
|
25
11
|
columnize (0.3.6)
|
26
12
|
diff-lcs (1.1.3)
|
27
13
|
ffi (1.1.5)
|
@@ -37,7 +23,6 @@ GEM
|
|
37
23
|
guard-spork (1.1.0)
|
38
24
|
guard (>= 1.1)
|
39
25
|
spork (>= 0.8.4)
|
40
|
-
i18n (0.6.1)
|
41
26
|
jeweler (1.8.4)
|
42
27
|
bundler (~> 1.0)
|
43
28
|
git (>= 1.2.5)
|
@@ -53,7 +38,6 @@ GEM
|
|
53
38
|
metaclass (0.0.1)
|
54
39
|
mocha (0.12.3)
|
55
40
|
metaclass (~> 0.0.1)
|
56
|
-
multi_json (1.5.0)
|
57
41
|
rake (0.9.2.2)
|
58
42
|
rb-fchange (0.0.5)
|
59
43
|
ffi
|
@@ -83,7 +67,6 @@ GEM
|
|
83
67
|
spork (0.9.2)
|
84
68
|
sqlite3 (1.3.6)
|
85
69
|
thor (0.16.0)
|
86
|
-
tzinfo (0.3.35)
|
87
70
|
yard (0.8.2.1)
|
88
71
|
|
89
72
|
PLATFORMS
|
data/Rakefile
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
Dir.glob('lib/tasks/*.rake').each {|r| import r}
|
4
|
+
require 'rake'
|
5
|
+
|
3
6
|
require 'rubygems'
|
4
7
|
require 'bundler'
|
5
8
|
begin
|
@@ -9,7 +12,7 @@ rescue Bundler::BundlerError => e
|
|
9
12
|
$stderr.puts "Run `bundle install` to install missing gems"
|
10
13
|
exit e.status_code
|
11
14
|
end
|
12
|
-
|
15
|
+
|
13
16
|
|
14
17
|
require 'jeweler'
|
15
18
|
Jeweler::Tasks.new do |gem|
|
@@ -25,18 +28,5 @@ Jeweler::Tasks.new do |gem|
|
|
25
28
|
end
|
26
29
|
Jeweler::RubygemsDotOrgTasks.new
|
27
30
|
|
28
|
-
require 'rspec/core'
|
29
|
-
require 'rspec/core/rake_task'
|
30
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
-
end
|
33
|
-
|
34
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
-
spec.rcov = true
|
37
|
-
end
|
38
|
-
|
39
|
-
task :default => :spec
|
40
|
-
|
41
31
|
require 'yard'
|
42
32
|
YARD::Rake::YardocTask.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.7
|
data/lib/requires_approval.rb
CHANGED
@@ -37,24 +37,26 @@ module RequiresApproval
|
|
37
37
|
write_attribute(attr, self.latest_unapproved_version.send(attr))
|
38
38
|
end
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
self.
|
40
|
+
if self.save
|
41
|
+
# if we have approved all requested changes, make our latest
|
42
|
+
# unapproved version approved -
|
43
|
+
# this is ALWAYS true for a new record even though its pending_changes
|
44
|
+
# hash is forced to have values
|
45
|
+
if self.is_first_version? || self.no_pending_changes?
|
46
|
+
self.latest_unapproved_version.update_attribute(:is_approved, true)
|
47
|
+
else
|
48
|
+
# makes our latest_unapproved_version approved and
|
49
|
+
# creates another unapproved version with any remaining
|
50
|
+
# attributes
|
51
|
+
self.create_approval_version_record
|
52
|
+
end
|
53
|
+
|
54
|
+
self.update_attributes(:is_frozen => false)
|
55
|
+
self.reload
|
56
|
+
return true
|
46
57
|
else
|
47
|
-
|
48
|
-
# creates another unapproved version with any remaining
|
49
|
-
# attributes
|
50
|
-
self.create_approval_version_record
|
58
|
+
return false
|
51
59
|
end
|
52
|
-
|
53
|
-
self.is_frozen = false
|
54
|
-
|
55
|
-
self.save
|
56
|
-
self.reload
|
57
|
-
true
|
58
60
|
end
|
59
61
|
|
60
62
|
def deny_attributes(*attributes)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
|
4
|
+
task :default => [:all]
|
5
|
+
|
6
|
+
namespace :spec do
|
7
|
+
desc "Run Rspec Unit Tests"
|
8
|
+
RSpec::Core::RakeTask.new(:unit) do |t|
|
9
|
+
files = Dir.glob('spec/**/*_spec.rb').delete_if{|f|
|
10
|
+
f =~ /(integration|request|acceptance)/
|
11
|
+
}
|
12
|
+
files = files.delete_if{|f| f =~ /routing/}
|
13
|
+
t.pattern = files
|
14
|
+
t.rspec_opts = ["-O", ".rspec", "--tag", "~integration"]
|
15
|
+
end
|
16
|
+
desc "Run Rspec Integration Tests"
|
17
|
+
RSpec::Core::RakeTask.new(:integration) do |t|
|
18
|
+
files = Dir.glob(
|
19
|
+
'spec/{integration,request}/**/*_spec.rb'
|
20
|
+
)
|
21
|
+
t.pattern = files
|
22
|
+
t.rspec_opts = [
|
23
|
+
"--format nested"
|
24
|
+
]
|
25
|
+
end
|
26
|
+
desc "Run All Rspec Tests"
|
27
|
+
RSpec::Core::RakeTask.new(:all) do |t|
|
28
|
+
files = Dir.glob('spec/**/*_spec.rb')
|
29
|
+
# routing doesn't work
|
30
|
+
files = files.delete_if{|f| f =~ /routing/}
|
31
|
+
t.pattern = files
|
32
|
+
t.rspec_opts = [
|
33
|
+
"--format nested"
|
34
|
+
]
|
35
|
+
end
|
36
|
+
end
|
data/lib/tasks/test.rake
ADDED
data/requires_approval.gemspec
CHANGED
@@ -1,39 +1,91 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'requires_approval/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "requires_approval"
|
8
|
-
s.version =
|
8
|
+
s.version = "1.0.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dan Langevin"]
|
12
|
-
s.date = "
|
13
|
-
s.summary = "Gem to handle versioning and things that require approval"
|
12
|
+
s.date = "2013-04-03"
|
14
13
|
s.description = "Gem to handle versioning and things that require approval"
|
15
14
|
s.email = "dan.langevin@lifebooker.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"Guardfile",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"lib/errors.rb",
|
30
|
+
"lib/requires_approval.rb",
|
31
|
+
"lib/requires_approval/version.rb",
|
32
|
+
"lib/tasks/requires_approval.rake",
|
33
|
+
"lib/tasks/test.rake",
|
34
|
+
"requires_approval.gemspec",
|
35
|
+
"requires_approval_rails_2.gemspec",
|
36
|
+
"spec/lib/requires_approval_spec.rb",
|
37
|
+
"spec/spec_helper.rb",
|
38
|
+
"spec/support/BLANK"
|
39
|
+
]
|
16
40
|
s.homepage = "http://github.com/LifebookerInc/requires_approval"
|
17
41
|
s.licenses = ["MIT"]
|
18
42
|
s.require_paths = ["lib"]
|
19
|
-
s.
|
20
|
-
s.
|
21
|
-
|
22
|
-
s.
|
23
|
-
|
43
|
+
s.rubygems_version = "1.8.17"
|
44
|
+
s.summary = "Gem to handle versioning and things that require approval"
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
s.specification_version = 3
|
24
48
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
49
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
+
s.add_runtime_dependency(%q<requires_approval>, [">= 0"])
|
51
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
52
|
+
s.add_development_dependency(%q<guard-rspec>, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<guard-bundler>, [">= 0"])
|
54
|
+
s.add_development_dependency(%q<guard-spork>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
56
|
+
s.add_development_dependency(%q<mocha>, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
58
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
59
|
+
s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
|
60
|
+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
61
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
62
|
+
else
|
63
|
+
s.add_dependency(%q<requires_approval>, [">= 0"])
|
64
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
65
|
+
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
66
|
+
s.add_dependency(%q<guard-bundler>, [">= 0"])
|
67
|
+
s.add_dependency(%q<guard-spork>, [">= 0"])
|
68
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
69
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
70
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
71
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
72
|
+
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
73
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
74
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
75
|
+
end
|
76
|
+
else
|
77
|
+
s.add_dependency(%q<requires_approval>, [">= 0"])
|
78
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
79
|
+
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
80
|
+
s.add_dependency(%q<guard-bundler>, [">= 0"])
|
81
|
+
s.add_dependency(%q<guard-spork>, [">= 0"])
|
82
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
83
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
84
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
85
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
86
|
+
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
87
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
88
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
89
|
+
end
|
38
90
|
end
|
39
91
|
|
@@ -385,6 +385,19 @@ describe RequiresApproval do
|
|
385
385
|
|
386
386
|
end
|
387
387
|
|
388
|
+
it "should not approve the latest unapproved version if it is invalid" do
|
389
|
+
|
390
|
+
user = User.new(
|
391
|
+
:first_name => "Dan",
|
392
|
+
:last_name => "Langevin",
|
393
|
+
:birthday => Date.today
|
394
|
+
)
|
395
|
+
|
396
|
+
user.stubs(:save => false)
|
397
|
+
user.approve_all_attributes.should eql false
|
398
|
+
|
399
|
+
end
|
400
|
+
|
388
401
|
end
|
389
402
|
|
390
403
|
context "#deny_attributes" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: requires_approval
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,43 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
15
|
+
name: requires_approval
|
16
|
+
requirement: &70165360482200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '3'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: activesupport
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
19
|
+
- - ! '>='
|
36
20
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
21
|
+
version: '0'
|
38
22
|
type: :runtime
|
39
23
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '3'
|
24
|
+
version_requirements: *70165360482200
|
46
25
|
- !ruby/object:Gem::Dependency
|
47
26
|
name: bundler
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70165360478060 !ruby/object:Gem::Requirement
|
49
28
|
none: false
|
50
29
|
requirements:
|
51
30
|
- - ! '>='
|
@@ -53,15 +32,10 @@ dependencies:
|
|
53
32
|
version: '0'
|
54
33
|
type: :development
|
55
34
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
35
|
+
version_requirements: *70165360478060
|
62
36
|
- !ruby/object:Gem::Dependency
|
63
37
|
name: guard-rspec
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70165360473460 !ruby/object:Gem::Requirement
|
65
39
|
none: false
|
66
40
|
requirements:
|
67
41
|
- - ! '>='
|
@@ -69,15 +43,10 @@ dependencies:
|
|
69
43
|
version: '0'
|
70
44
|
type: :development
|
71
45
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
46
|
+
version_requirements: *70165360473460
|
78
47
|
- !ruby/object:Gem::Dependency
|
79
48
|
name: guard-bundler
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &70165360457860 !ruby/object:Gem::Requirement
|
81
50
|
none: false
|
82
51
|
requirements:
|
83
52
|
- - ! '>='
|
@@ -85,15 +54,10 @@ dependencies:
|
|
85
54
|
version: '0'
|
86
55
|
type: :development
|
87
56
|
prerelease: false
|
88
|
-
version_requirements:
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
57
|
+
version_requirements: *70165360457860
|
94
58
|
- !ruby/object:Gem::Dependency
|
95
59
|
name: guard-spork
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &70165360455700 !ruby/object:Gem::Requirement
|
97
61
|
none: false
|
98
62
|
requirements:
|
99
63
|
- - ! '>='
|
@@ -101,15 +65,10 @@ dependencies:
|
|
101
65
|
version: '0'
|
102
66
|
type: :development
|
103
67
|
prerelease: false
|
104
|
-
version_requirements:
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
68
|
+
version_requirements: *70165360455700
|
110
69
|
- !ruby/object:Gem::Dependency
|
111
70
|
name: jeweler
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirement: &70165360453640 !ruby/object:Gem::Requirement
|
113
72
|
none: false
|
114
73
|
requirements:
|
115
74
|
- - ~>
|
@@ -117,15 +76,10 @@ dependencies:
|
|
117
76
|
version: 1.8.3
|
118
77
|
type: :development
|
119
78
|
prerelease: false
|
120
|
-
version_requirements:
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 1.8.3
|
79
|
+
version_requirements: *70165360453640
|
126
80
|
- !ruby/object:Gem::Dependency
|
127
81
|
name: mocha
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirement: &70165360449700 !ruby/object:Gem::Requirement
|
129
83
|
none: false
|
130
84
|
requirements:
|
131
85
|
- - ! '>='
|
@@ -133,15 +87,10 @@ dependencies:
|
|
133
87
|
version: '0'
|
134
88
|
type: :development
|
135
89
|
prerelease: false
|
136
|
-
version_requirements:
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
90
|
+
version_requirements: *70165360449700
|
142
91
|
- !ruby/object:Gem::Dependency
|
143
92
|
name: rdoc
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirement: &70165360447740 !ruby/object:Gem::Requirement
|
145
94
|
none: false
|
146
95
|
requirements:
|
147
96
|
- - ! '>='
|
@@ -149,15 +98,10 @@ dependencies:
|
|
149
98
|
version: '0'
|
150
99
|
type: :development
|
151
100
|
prerelease: false
|
152
|
-
version_requirements:
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
101
|
+
version_requirements: *70165360447740
|
158
102
|
- !ruby/object:Gem::Dependency
|
159
103
|
name: rspec
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirement: &70165360444980 !ruby/object:Gem::Requirement
|
161
105
|
none: false
|
162
106
|
requirements:
|
163
107
|
- - ! '>='
|
@@ -165,15 +109,10 @@ dependencies:
|
|
165
109
|
version: '0'
|
166
110
|
type: :development
|
167
111
|
prerelease: false
|
168
|
-
version_requirements:
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
112
|
+
version_requirements: *70165360444980
|
174
113
|
- !ruby/object:Gem::Dependency
|
175
114
|
name: ruby-debug19
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirement: &70165360443640 !ruby/object:Gem::Requirement
|
177
116
|
none: false
|
178
117
|
requirements:
|
179
118
|
- - ! '>='
|
@@ -181,15 +120,10 @@ dependencies:
|
|
181
120
|
version: '0'
|
182
121
|
type: :development
|
183
122
|
prerelease: false
|
184
|
-
version_requirements:
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ! '>='
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: '0'
|
123
|
+
version_requirements: *70165360443640
|
190
124
|
- !ruby/object:Gem::Dependency
|
191
125
|
name: sqlite3
|
192
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirement: &70165360440240 !ruby/object:Gem::Requirement
|
193
127
|
none: false
|
194
128
|
requirements:
|
195
129
|
- - ! '>='
|
@@ -197,15 +131,10 @@ dependencies:
|
|
197
131
|
version: '0'
|
198
132
|
type: :development
|
199
133
|
prerelease: false
|
200
|
-
version_requirements:
|
201
|
-
none: false
|
202
|
-
requirements:
|
203
|
-
- - ! '>='
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: '0'
|
134
|
+
version_requirements: *70165360440240
|
206
135
|
- !ruby/object:Gem::Dependency
|
207
136
|
name: yard
|
208
|
-
requirement: !ruby/object:Gem::Requirement
|
137
|
+
requirement: &70165360438500 !ruby/object:Gem::Requirement
|
209
138
|
none: false
|
210
139
|
requirements:
|
211
140
|
- - ! '>='
|
@@ -213,20 +142,16 @@ dependencies:
|
|
213
142
|
version: '0'
|
214
143
|
type: :development
|
215
144
|
prerelease: false
|
216
|
-
version_requirements:
|
217
|
-
none: false
|
218
|
-
requirements:
|
219
|
-
- - ! '>='
|
220
|
-
- !ruby/object:Gem::Version
|
221
|
-
version: '0'
|
145
|
+
version_requirements: *70165360438500
|
222
146
|
description: Gem to handle versioning and things that require approval
|
223
147
|
email: dan.langevin@lifebooker.com
|
224
148
|
executables: []
|
225
149
|
extensions: []
|
226
|
-
extra_rdoc_files:
|
150
|
+
extra_rdoc_files:
|
151
|
+
- LICENSE.txt
|
152
|
+
- README.rdoc
|
227
153
|
files:
|
228
154
|
- .document
|
229
|
-
- .gitignore
|
230
155
|
- .rspec
|
231
156
|
- Gemfile
|
232
157
|
- Gemfile.lock
|
@@ -237,6 +162,9 @@ files:
|
|
237
162
|
- VERSION
|
238
163
|
- lib/errors.rb
|
239
164
|
- lib/requires_approval.rb
|
165
|
+
- lib/requires_approval/version.rb
|
166
|
+
- lib/tasks/requires_approval.rake
|
167
|
+
- lib/tasks/test.rake
|
240
168
|
- requires_approval.gemspec
|
241
169
|
- requires_approval_rails_2.gemspec
|
242
170
|
- spec/lib/requires_approval_spec.rb
|
@@ -255,6 +183,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
255
183
|
- - ! '>='
|
256
184
|
- !ruby/object:Gem::Version
|
257
185
|
version: '0'
|
186
|
+
segments:
|
187
|
+
- 0
|
188
|
+
hash: -2528865283922867578
|
258
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
190
|
none: false
|
260
191
|
requirements:
|
@@ -263,12 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
194
|
version: '0'
|
264
195
|
requirements: []
|
265
196
|
rubyforge_project:
|
266
|
-
rubygems_version: 1.8.
|
197
|
+
rubygems_version: 1.8.17
|
267
198
|
signing_key:
|
268
199
|
specification_version: 3
|
269
200
|
summary: Gem to handle versioning and things that require approval
|
270
|
-
test_files:
|
271
|
-
- spec/lib/requires_approval_spec.rb
|
272
|
-
- spec/spec_helper.rb
|
273
|
-
- spec/support/BLANK
|
274
|
-
has_rdoc:
|
201
|
+
test_files: []
|
data/.gitignore
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
# rcov generated
|
2
|
-
coverage
|
3
|
-
coverage.data
|
4
|
-
|
5
|
-
# rdoc generated
|
6
|
-
rdoc
|
7
|
-
|
8
|
-
# yard generated
|
9
|
-
doc
|
10
|
-
.yardoc
|
11
|
-
|
12
|
-
# bundler
|
13
|
-
.bundle
|
14
|
-
|
15
|
-
# jeweler generated
|
16
|
-
pkg
|
17
|
-
|
18
|
-
spec/support/db.sqlite
|
19
|
-
|
20
|
-
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
21
|
-
#
|
22
|
-
# * Create a file at ~/.gitignore
|
23
|
-
# * Include files you want ignored
|
24
|
-
# * Run: git config --global core.excludesfile ~/.gitignore
|
25
|
-
#
|
26
|
-
# After doing this, these files will be ignored in all your git projects,
|
27
|
-
# saving you from having to 'pollute' every project you touch with them
|
28
|
-
#
|
29
|
-
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
30
|
-
#
|
31
|
-
# For MacOS:
|
32
|
-
#
|
33
|
-
#.DS_Store
|
34
|
-
|
35
|
-
# For TextMate
|
36
|
-
#*.tmproj
|
37
|
-
#tmtags
|
38
|
-
|
39
|
-
# For emacs:
|
40
|
-
#*~
|
41
|
-
#\#*
|
42
|
-
#.\#*
|
43
|
-
|
44
|
-
# For vim:
|
45
|
-
#*.swp
|
46
|
-
|
47
|
-
# For redcar:
|
48
|
-
#.redcar
|
49
|
-
|
50
|
-
# For rubinius:
|
51
|
-
#*.rbc
|