controlled_versioning 0.6.3 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/MIT-LICENSE +1 -1
- data/Rakefile +0 -6
- data/app/assets/javascripts/controlled_versioning/application.js +13 -0
- data/app/assets/stylesheets/controlled_versioning/application.css +13 -0
- data/app/controllers/controlled_versioning/application_controller.rb +4 -0
- data/app/helpers/controlled_versioning/application_helper.rb +4 -0
- data/app/models/controlled_versioning/version.rb +23 -0
- data/app/models/controlled_versioning/version_attribute.rb +8 -0
- data/app/models/controlled_versioning/version_child.rb +9 -0
- data/app/views/layouts/controlled_versioning/application.html.erb +14 -0
- data/lib/controlled_versioning/engine.rb +16 -0
- data/lib/controlled_versioning/version_number.rb +1 -1
- data/lib/controlled_versioning.rb +2 -0
- data/spec/controlled_versioning_spec.rb +316 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/child_resource.rb +10 -0
- data/spec/dummy/app/models/grand_child_resource.rb +7 -0
- data/spec/dummy/app/models/nonversionable_resource.rb +2 -0
- data/spec/dummy/app/models/parent_resource.rb +9 -0
- data/spec/dummy/app/models/partially_exclusive_versionable_resource.rb +3 -0
- data/spec/dummy/app/models/partially_inclusive_versionable_resource.rb +3 -0
- data/spec/dummy/app/models/user.rb +3 -0
- data/spec/dummy/app/models/versionable_resource.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +30 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +60 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20140117222800_create_users.rb +11 -0
- data/spec/dummy/db/migrate/20140117222808_create_versionable_resources.rb +17 -0
- data/spec/dummy/db/migrate/20140117222814_create_partially_inclusive_versionable_resources.rb +17 -0
- data/spec/dummy/db/migrate/20140117222815_create_partially_exclusive_versionable_resources.rb +17 -0
- data/spec/dummy/db/migrate/20140117222828_create_nonversionable_resources.rb +17 -0
- data/spec/dummy/db/migrate/20140117222840_create_parent_resources.rb +17 -0
- data/spec/dummy/db/migrate/20140117222841_create_child_resources.rb +19 -0
- data/spec/dummy/db/migrate/20140117222842_create_grand_child_resources.rb +19 -0
- data/spec/dummy/db/migrate/20140206173607_create_controlled_versioning_versions.controlled_versioning.rb +30 -0
- data/spec/dummy/db/migrate/20140206173608_create_controlled_versioning_version_attributes.controlled_versioning.rb +15 -0
- data/spec/dummy/db/migrate/20140206173609_create_controlled_versioning_version_children.controlled_versioning.rb +19 -0
- data/spec/dummy/db/schema.rb +163 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/child_resources.rb +28 -0
- data/spec/factories/controlled_versioning_versions.rb +7 -0
- data/spec/factories/grand_child_resources.rb +17 -0
- data/spec/factories/parent_resources.rb +35 -0
- data/spec/factories/partially_exclusive_versionable_resources.rb +14 -0
- data/spec/factories/partially_inclusive_versionable_resources.rb +14 -0
- data/spec/factories/unversionable_resources.rb +14 -0
- data/spec/factories/users.rb +6 -0
- data/spec/factories/versionable_resources.rb +14 -0
- data/spec/spec_helper.rb +86 -0
- metadata +136 -11
- data/config/locales/en.yml +0 -4
- data/lib/generators/controlled_versioning/install_generator.rb +0 -30
- data/lib/generators/templates/create_version_attributes.rb +0 -17
- data/lib/generators/templates/create_version_children.rb +0 -20
- data/lib/generators/templates/create_versions.rb +0 -36
- data/lib/generators/templates/version.rb +0 -19
- data/lib/generators/templates/version_attribute.rb +0 -7
- data/lib/generators/templates/version_child.rb +0 -8
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
@@ -0,0 +1,28 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :child_resource do
|
3
|
+
|
4
|
+
parent_resource
|
5
|
+
|
6
|
+
r_boolean true
|
7
|
+
r_date Date.today
|
8
|
+
r_datetime DateTime.now
|
9
|
+
r_decimal 3.14
|
10
|
+
r_float 3.14
|
11
|
+
r_integer 3
|
12
|
+
r_string "my string"
|
13
|
+
r_text "my text"
|
14
|
+
r_time Time.now
|
15
|
+
|
16
|
+
factory :child_with_grand_children do
|
17
|
+
ignore do
|
18
|
+
grand_children_count 3
|
19
|
+
end
|
20
|
+
|
21
|
+
after(:create) do |child, evaluator|
|
22
|
+
create_list(:grand_child_resource, evaluator.grand_children_count,
|
23
|
+
child_resource: child)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :grand_child_resource do
|
3
|
+
|
4
|
+
child_resource
|
5
|
+
|
6
|
+
r_boolean true
|
7
|
+
r_date Date.today
|
8
|
+
r_datetime DateTime.now
|
9
|
+
r_decimal 3.14
|
10
|
+
r_float 3.14
|
11
|
+
r_integer 3
|
12
|
+
r_string "my string"
|
13
|
+
r_text "my text"
|
14
|
+
r_time Time.now
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :parent_resource do
|
3
|
+
r_boolean true
|
4
|
+
r_date Date.today
|
5
|
+
r_datetime DateTime.now
|
6
|
+
r_decimal 3.14
|
7
|
+
r_float 3.14
|
8
|
+
r_integer 3
|
9
|
+
r_string "my string"
|
10
|
+
r_text "my text"
|
11
|
+
r_time Time.now
|
12
|
+
|
13
|
+
factory :parent_with_children do
|
14
|
+
ignore do
|
15
|
+
children_count 3
|
16
|
+
end
|
17
|
+
|
18
|
+
after(:create) do |parent, evaluator|
|
19
|
+
create_list(:child_resource, evaluator.children_count, parent_resource: parent)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
factory :parent_with_grand_children do
|
24
|
+
ignore do
|
25
|
+
children_count 3
|
26
|
+
end
|
27
|
+
|
28
|
+
after(:create) do |parent, evaluator|
|
29
|
+
create_list(:child_with_grand_children, evaluator.children_count,
|
30
|
+
parent_resource: parent)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :partially_exclusive_versionable_resource do
|
3
|
+
r_boolean true
|
4
|
+
r_date Date.today
|
5
|
+
r_datetime DateTime.now
|
6
|
+
r_decimal 3.14
|
7
|
+
r_float 3.14
|
8
|
+
r_integer 3
|
9
|
+
r_string "my string"
|
10
|
+
r_text "my text"
|
11
|
+
r_time Time.now
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :partially_inclusive_versionable_resource do
|
3
|
+
r_boolean true
|
4
|
+
r_date Date.today
|
5
|
+
r_datetime DateTime.now
|
6
|
+
r_decimal 3.14
|
7
|
+
r_float 3.14
|
8
|
+
r_integer 3
|
9
|
+
r_string "my string"
|
10
|
+
r_text "my text"
|
11
|
+
r_time Time.now
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'spork'
|
2
|
+
|
3
|
+
Spork.prefork do
|
4
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
5
|
+
ENV["RAILS_ENV"] ||= 'test'
|
6
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
7
|
+
require 'rspec/rails'
|
8
|
+
require 'rspec/autorun'
|
9
|
+
require 'factory_girl_rails'
|
10
|
+
require 'debugger'
|
11
|
+
|
12
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
13
|
+
# in spec/support/ and its subdirectories.
|
14
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
15
|
+
|
16
|
+
# Checks for pending migrations before tests are run.
|
17
|
+
# If you are not using ActiveRecord, you can remove this line.
|
18
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
19
|
+
|
20
|
+
RSpec.configure do |config|
|
21
|
+
|
22
|
+
config.include FactoryGirl::Syntax::Methods
|
23
|
+
|
24
|
+
# ## Mock Framework
|
25
|
+
#
|
26
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
27
|
+
#
|
28
|
+
# config.mock_with :mocha
|
29
|
+
# config.mock_with :flexmock
|
30
|
+
# config.mock_with :rr
|
31
|
+
|
32
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
33
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
34
|
+
|
35
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
36
|
+
# examples within a transaction, remove the following line or assign false
|
37
|
+
# instead of true.
|
38
|
+
config.use_transactional_fixtures = true
|
39
|
+
|
40
|
+
# If true, the base class of anonymous controllers will be inferred
|
41
|
+
# automatically. This will be the default behavior in future versions of
|
42
|
+
# rspec-rails.
|
43
|
+
config.infer_base_class_for_anonymous_controllers = false
|
44
|
+
|
45
|
+
# Run specs in random order to surface order dependencies. If you find an
|
46
|
+
# order dependency and want to debug it, you can fix the order by providing
|
47
|
+
# the seed, which is printed after each run.
|
48
|
+
# --seed 1234
|
49
|
+
config.order = "random"
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
Spork.each_run do
|
55
|
+
# This code will be run each time you run your specs.
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
# --- Instructions ---
|
60
|
+
# Sort the contents of this file into a Spork.prefork and a Spork.each_run
|
61
|
+
# block.
|
62
|
+
#
|
63
|
+
# The Spork.prefork block is run only once when the spork server is started.
|
64
|
+
# You typically want to place most of your (slow) initializer code in here, in
|
65
|
+
# particular, require'ing any 3rd-party gems that you don't normally modify
|
66
|
+
# during development.
|
67
|
+
#
|
68
|
+
# The Spork.each_run block is run each time you run your specs. In case you
|
69
|
+
# need to load files that tend to change during development, require them here.
|
70
|
+
# With Rails, your application modules are loaded automatically, so sometimes
|
71
|
+
# this block can remain empty.
|
72
|
+
#
|
73
|
+
# Note: You can modify files loaded *from* the Spork.each_run block without
|
74
|
+
# restarting the spork server. However, this file itself will not be reloaded,
|
75
|
+
# so if you change any of the code inside the each_run block, you still need to
|
76
|
+
# restart the server. In general, if you have non-trivial code in this file,
|
77
|
+
# it's advisable to move it into a separate file so you can easily edit it
|
78
|
+
# without restarting spork. (For example, with RSpec, you could move
|
79
|
+
# non-trivial code into a file spec/support/my_helper.rb, making sure that the
|
80
|
+
# spec/support/* files are require'd from inside the each_run block.)
|
81
|
+
#
|
82
|
+
# Any code that is left outside the two blocks will be run during preforking
|
83
|
+
# *and* during each_run -- that's probably not what you want.
|
84
|
+
#
|
85
|
+
# These instructions should self-destruct in 10 seconds. If they don't, feel
|
86
|
+
# free to delete them.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: controlled_versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- timothythehuman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -120,8 +120,16 @@ files:
|
|
120
120
|
- MIT-LICENSE
|
121
121
|
- README.rdoc
|
122
122
|
- Rakefile
|
123
|
-
-
|
123
|
+
- app/assets/javascripts/controlled_versioning/application.js
|
124
|
+
- app/assets/stylesheets/controlled_versioning/application.css
|
125
|
+
- app/controllers/controlled_versioning/application_controller.rb
|
126
|
+
- app/helpers/controlled_versioning/application_helper.rb
|
127
|
+
- app/models/controlled_versioning/version.rb
|
128
|
+
- app/models/controlled_versioning/version_attribute.rb
|
129
|
+
- app/models/controlled_versioning/version_child.rb
|
130
|
+
- app/views/layouts/controlled_versioning/application.html.erb
|
124
131
|
- lib/controlled_versioning.rb
|
132
|
+
- lib/controlled_versioning/engine.rb
|
125
133
|
- lib/controlled_versioning/initial_version.rb
|
126
134
|
- lib/controlled_versioning/initial_version/factory.rb
|
127
135
|
- lib/controlled_versioning/revision.rb
|
@@ -130,16 +138,71 @@ files:
|
|
130
138
|
- lib/controlled_versioning/revision/publisher.rb
|
131
139
|
- lib/controlled_versioning/version.rb
|
132
140
|
- lib/controlled_versioning/version_number.rb
|
133
|
-
- lib/generators/controlled_versioning/install_generator.rb
|
134
|
-
- lib/generators/templates/create_version_attributes.rb
|
135
|
-
- lib/generators/templates/create_version_children.rb
|
136
|
-
- lib/generators/templates/create_versions.rb
|
137
|
-
- lib/generators/templates/version.rb
|
138
|
-
- lib/generators/templates/version_attribute.rb
|
139
|
-
- lib/generators/templates/version_child.rb
|
140
141
|
- lib/support/array_converter.rb
|
141
142
|
- lib/support/attribute_encapsulator.rb
|
142
143
|
- lib/tasks/controlled_versioning_tasks.rake
|
144
|
+
- spec/controlled_versioning_spec.rb
|
145
|
+
- spec/dummy/README.rdoc
|
146
|
+
- spec/dummy/Rakefile
|
147
|
+
- spec/dummy/app/assets/javascripts/application.js
|
148
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
149
|
+
- spec/dummy/app/controllers/application_controller.rb
|
150
|
+
- spec/dummy/app/helpers/application_helper.rb
|
151
|
+
- spec/dummy/app/models/child_resource.rb
|
152
|
+
- spec/dummy/app/models/grand_child_resource.rb
|
153
|
+
- spec/dummy/app/models/nonversionable_resource.rb
|
154
|
+
- spec/dummy/app/models/parent_resource.rb
|
155
|
+
- spec/dummy/app/models/partially_exclusive_versionable_resource.rb
|
156
|
+
- spec/dummy/app/models/partially_inclusive_versionable_resource.rb
|
157
|
+
- spec/dummy/app/models/user.rb
|
158
|
+
- spec/dummy/app/models/versionable_resource.rb
|
159
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
160
|
+
- spec/dummy/bin/bundle
|
161
|
+
- spec/dummy/bin/rails
|
162
|
+
- spec/dummy/bin/rake
|
163
|
+
- spec/dummy/config.ru
|
164
|
+
- spec/dummy/config/application.rb
|
165
|
+
- spec/dummy/config/boot.rb
|
166
|
+
- spec/dummy/config/database.yml
|
167
|
+
- spec/dummy/config/environment.rb
|
168
|
+
- spec/dummy/config/environments/development.rb
|
169
|
+
- spec/dummy/config/environments/production.rb
|
170
|
+
- spec/dummy/config/environments/test.rb
|
171
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
172
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
173
|
+
- spec/dummy/config/initializers/inflections.rb
|
174
|
+
- spec/dummy/config/initializers/mime_types.rb
|
175
|
+
- spec/dummy/config/initializers/secret_token.rb
|
176
|
+
- spec/dummy/config/initializers/session_store.rb
|
177
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
178
|
+
- spec/dummy/config/locales/en.yml
|
179
|
+
- spec/dummy/config/routes.rb
|
180
|
+
- spec/dummy/db/migrate/20140117222800_create_users.rb
|
181
|
+
- spec/dummy/db/migrate/20140117222808_create_versionable_resources.rb
|
182
|
+
- spec/dummy/db/migrate/20140117222814_create_partially_inclusive_versionable_resources.rb
|
183
|
+
- spec/dummy/db/migrate/20140117222815_create_partially_exclusive_versionable_resources.rb
|
184
|
+
- spec/dummy/db/migrate/20140117222828_create_nonversionable_resources.rb
|
185
|
+
- spec/dummy/db/migrate/20140117222840_create_parent_resources.rb
|
186
|
+
- spec/dummy/db/migrate/20140117222841_create_child_resources.rb
|
187
|
+
- spec/dummy/db/migrate/20140117222842_create_grand_child_resources.rb
|
188
|
+
- spec/dummy/db/migrate/20140206173607_create_controlled_versioning_versions.controlled_versioning.rb
|
189
|
+
- spec/dummy/db/migrate/20140206173608_create_controlled_versioning_version_attributes.controlled_versioning.rb
|
190
|
+
- spec/dummy/db/migrate/20140206173609_create_controlled_versioning_version_children.controlled_versioning.rb
|
191
|
+
- spec/dummy/db/schema.rb
|
192
|
+
- spec/dummy/public/404.html
|
193
|
+
- spec/dummy/public/422.html
|
194
|
+
- spec/dummy/public/500.html
|
195
|
+
- spec/dummy/public/favicon.ico
|
196
|
+
- spec/factories/child_resources.rb
|
197
|
+
- spec/factories/controlled_versioning_versions.rb
|
198
|
+
- spec/factories/grand_child_resources.rb
|
199
|
+
- spec/factories/parent_resources.rb
|
200
|
+
- spec/factories/partially_exclusive_versionable_resources.rb
|
201
|
+
- spec/factories/partially_inclusive_versionable_resources.rb
|
202
|
+
- spec/factories/unversionable_resources.rb
|
203
|
+
- spec/factories/users.rb
|
204
|
+
- spec/factories/versionable_resources.rb
|
205
|
+
- spec/spec_helper.rb
|
143
206
|
homepage: https://github.com/timothythehuman/controlled_versioning
|
144
207
|
licenses: []
|
145
208
|
metadata: {}
|
@@ -164,4 +227,66 @@ signing_key:
|
|
164
227
|
specification_version: 4
|
165
228
|
summary: Adds model versioning to a Rails app, with the ability to approve and declined
|
166
229
|
revisions.
|
167
|
-
test_files:
|
230
|
+
test_files:
|
231
|
+
- spec/dummy/README.rdoc
|
232
|
+
- spec/dummy/app/helpers/application_helper.rb
|
233
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
234
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
235
|
+
- spec/dummy/app/assets/javascripts/application.js
|
236
|
+
- spec/dummy/app/models/child_resource.rb
|
237
|
+
- spec/dummy/app/models/parent_resource.rb
|
238
|
+
- spec/dummy/app/models/nonversionable_resource.rb
|
239
|
+
- spec/dummy/app/models/partially_inclusive_versionable_resource.rb
|
240
|
+
- spec/dummy/app/models/partially_exclusive_versionable_resource.rb
|
241
|
+
- spec/dummy/app/models/grand_child_resource.rb
|
242
|
+
- spec/dummy/app/models/versionable_resource.rb
|
243
|
+
- spec/dummy/app/models/user.rb
|
244
|
+
- spec/dummy/app/controllers/application_controller.rb
|
245
|
+
- spec/dummy/db/migrate/20140206173608_create_controlled_versioning_version_attributes.controlled_versioning.rb
|
246
|
+
- spec/dummy/db/migrate/20140117222840_create_parent_resources.rb
|
247
|
+
- spec/dummy/db/migrate/20140117222814_create_partially_inclusive_versionable_resources.rb
|
248
|
+
- spec/dummy/db/migrate/20140206173609_create_controlled_versioning_version_children.controlled_versioning.rb
|
249
|
+
- spec/dummy/db/migrate/20140206173607_create_controlled_versioning_versions.controlled_versioning.rb
|
250
|
+
- spec/dummy/db/migrate/20140117222800_create_users.rb
|
251
|
+
- spec/dummy/db/migrate/20140117222842_create_grand_child_resources.rb
|
252
|
+
- spec/dummy/db/migrate/20140117222815_create_partially_exclusive_versionable_resources.rb
|
253
|
+
- spec/dummy/db/migrate/20140117222828_create_nonversionable_resources.rb
|
254
|
+
- spec/dummy/db/migrate/20140117222808_create_versionable_resources.rb
|
255
|
+
- spec/dummy/db/migrate/20140117222841_create_child_resources.rb
|
256
|
+
- spec/dummy/db/schema.rb
|
257
|
+
- spec/dummy/public/422.html
|
258
|
+
- spec/dummy/public/404.html
|
259
|
+
- spec/dummy/public/favicon.ico
|
260
|
+
- spec/dummy/public/500.html
|
261
|
+
- spec/dummy/Rakefile
|
262
|
+
- spec/dummy/bin/rails
|
263
|
+
- spec/dummy/bin/bundle
|
264
|
+
- spec/dummy/bin/rake
|
265
|
+
- spec/dummy/config/initializers/mime_types.rb
|
266
|
+
- spec/dummy/config/initializers/inflections.rb
|
267
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
268
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
269
|
+
- spec/dummy/config/initializers/session_store.rb
|
270
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
271
|
+
- spec/dummy/config/initializers/secret_token.rb
|
272
|
+
- spec/dummy/config/application.rb
|
273
|
+
- spec/dummy/config/environments/test.rb
|
274
|
+
- spec/dummy/config/environments/development.rb
|
275
|
+
- spec/dummy/config/environments/production.rb
|
276
|
+
- spec/dummy/config/boot.rb
|
277
|
+
- spec/dummy/config/routes.rb
|
278
|
+
- spec/dummy/config/locales/en.yml
|
279
|
+
- spec/dummy/config/environment.rb
|
280
|
+
- spec/dummy/config/database.yml
|
281
|
+
- spec/dummy/config.ru
|
282
|
+
- spec/spec_helper.rb
|
283
|
+
- spec/controlled_versioning_spec.rb
|
284
|
+
- spec/factories/unversionable_resources.rb
|
285
|
+
- spec/factories/child_resources.rb
|
286
|
+
- spec/factories/users.rb
|
287
|
+
- spec/factories/parent_resources.rb
|
288
|
+
- spec/factories/partially_exclusive_versionable_resources.rb
|
289
|
+
- spec/factories/grand_child_resources.rb
|
290
|
+
- spec/factories/versionable_resources.rb
|
291
|
+
- spec/factories/partially_inclusive_versionable_resources.rb
|
292
|
+
- spec/factories/controlled_versioning_versions.rb
|