acts_as_nested_interval 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +171 -0
- data/Rakefile +38 -0
- data/lib/acts_as_nested_interval/core_ext/integer.rb +21 -0
- data/lib/acts_as_nested_interval/version.rb +3 -0
- data/lib/acts_as_nested_interval.rb +293 -0
- data/lib/tasks/acts_as_nested_interval_tasks.rake +4 -0
- data/test/acts_as_nested_interval_test.rb +184 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/region.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +56 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120302143528_create_regions.rb +15 -0
- data/test/dummy/db/schema.rb +28 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +129 -0
- data/test/dummy/log/test.log +13942 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/regions.yml +7 -0
- data/test/dummy/test/unit/region_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +154 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: acts_as_nested_interval
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Nicolae Claudius
|
9
|
+
- Pythonic
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-03-06 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: &23737340 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.2.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *23737340
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: sqlite3
|
28
|
+
requirement: &23736780 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *23736780
|
37
|
+
description: Encode Trees in RDBMS using nested interval method for powerful querying
|
38
|
+
and speedy inserts.
|
39
|
+
email:
|
40
|
+
- nicolae_claudius@yahoo.com
|
41
|
+
executables: []
|
42
|
+
extensions: []
|
43
|
+
extra_rdoc_files: []
|
44
|
+
files:
|
45
|
+
- lib/tasks/acts_as_nested_interval_tasks.rake
|
46
|
+
- lib/acts_as_nested_interval/core_ext/integer.rb
|
47
|
+
- lib/acts_as_nested_interval/version.rb
|
48
|
+
- lib/acts_as_nested_interval.rb
|
49
|
+
- MIT-LICENSE
|
50
|
+
- Rakefile
|
51
|
+
- README.md
|
52
|
+
- test/test_helper.rb
|
53
|
+
- test/acts_as_nested_interval_test.rb
|
54
|
+
- test/dummy/README.rdoc
|
55
|
+
- test/dummy/config.ru
|
56
|
+
- test/dummy/Rakefile
|
57
|
+
- test/dummy/db/development.sqlite3
|
58
|
+
- test/dummy/db/schema.rb
|
59
|
+
- test/dummy/db/migrate/20120302143528_create_regions.rb
|
60
|
+
- test/dummy/db/test.sqlite3
|
61
|
+
- test/dummy/app/controllers/application_controller.rb
|
62
|
+
- test/dummy/app/views/layouts/application.html.erb
|
63
|
+
- test/dummy/app/assets/stylesheets/application.css
|
64
|
+
- test/dummy/app/assets/javascripts/application.js
|
65
|
+
- test/dummy/app/models/region.rb
|
66
|
+
- test/dummy/app/helpers/application_helper.rb
|
67
|
+
- test/dummy/test/fixtures/regions.yml
|
68
|
+
- test/dummy/test/unit/region_test.rb
|
69
|
+
- test/dummy/log/development.log
|
70
|
+
- test/dummy/log/test.log
|
71
|
+
- test/dummy/config/routes.rb
|
72
|
+
- test/dummy/config/database.yml
|
73
|
+
- test/dummy/config/locales/en.yml
|
74
|
+
- test/dummy/config/environment.rb
|
75
|
+
- test/dummy/config/initializers/inflections.rb
|
76
|
+
- test/dummy/config/initializers/secret_token.rb
|
77
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
78
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
79
|
+
- test/dummy/config/initializers/session_store.rb
|
80
|
+
- test/dummy/config/initializers/mime_types.rb
|
81
|
+
- test/dummy/config/boot.rb
|
82
|
+
- test/dummy/config/environments/development.rb
|
83
|
+
- test/dummy/config/environments/test.rb
|
84
|
+
- test/dummy/config/environments/production.rb
|
85
|
+
- test/dummy/config/application.rb
|
86
|
+
- test/dummy/public/422.html
|
87
|
+
- test/dummy/public/404.html
|
88
|
+
- test/dummy/public/500.html
|
89
|
+
- test/dummy/public/favicon.ico
|
90
|
+
- test/dummy/script/rails
|
91
|
+
homepage: https://github.com/clyfe/acts_as_nested_interval
|
92
|
+
licenses: []
|
93
|
+
post_install_message:
|
94
|
+
rdoc_options: []
|
95
|
+
require_paths:
|
96
|
+
- lib
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ! '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 1.8.15
|
112
|
+
signing_key:
|
113
|
+
specification_version: 3
|
114
|
+
summary: Encode Trees in RDBMS using nested interval method.
|
115
|
+
test_files:
|
116
|
+
- test/test_helper.rb
|
117
|
+
- test/acts_as_nested_interval_test.rb
|
118
|
+
- test/dummy/README.rdoc
|
119
|
+
- test/dummy/config.ru
|
120
|
+
- test/dummy/Rakefile
|
121
|
+
- test/dummy/db/development.sqlite3
|
122
|
+
- test/dummy/db/schema.rb
|
123
|
+
- test/dummy/db/migrate/20120302143528_create_regions.rb
|
124
|
+
- test/dummy/db/test.sqlite3
|
125
|
+
- test/dummy/app/controllers/application_controller.rb
|
126
|
+
- test/dummy/app/views/layouts/application.html.erb
|
127
|
+
- test/dummy/app/assets/stylesheets/application.css
|
128
|
+
- test/dummy/app/assets/javascripts/application.js
|
129
|
+
- test/dummy/app/models/region.rb
|
130
|
+
- test/dummy/app/helpers/application_helper.rb
|
131
|
+
- test/dummy/test/fixtures/regions.yml
|
132
|
+
- test/dummy/test/unit/region_test.rb
|
133
|
+
- test/dummy/log/development.log
|
134
|
+
- test/dummy/log/test.log
|
135
|
+
- test/dummy/config/routes.rb
|
136
|
+
- test/dummy/config/database.yml
|
137
|
+
- test/dummy/config/locales/en.yml
|
138
|
+
- test/dummy/config/environment.rb
|
139
|
+
- test/dummy/config/initializers/inflections.rb
|
140
|
+
- test/dummy/config/initializers/secret_token.rb
|
141
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
142
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
143
|
+
- test/dummy/config/initializers/session_store.rb
|
144
|
+
- test/dummy/config/initializers/mime_types.rb
|
145
|
+
- test/dummy/config/boot.rb
|
146
|
+
- test/dummy/config/environments/development.rb
|
147
|
+
- test/dummy/config/environments/test.rb
|
148
|
+
- test/dummy/config/environments/production.rb
|
149
|
+
- test/dummy/config/application.rb
|
150
|
+
- test/dummy/public/422.html
|
151
|
+
- test/dummy/public/404.html
|
152
|
+
- test/dummy/public/500.html
|
153
|
+
- test/dummy/public/favicon.ico
|
154
|
+
- test/dummy/script/rails
|