versjons 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/versjons/version.rb +1 -1
  3. data/test/dummy/README.rdoc +248 -15
  4. data/test/dummy/Rakefile +2 -1
  5. data/test/dummy/app/assets/javascripts/application.js +5 -3
  6. data/test/dummy/app/assets/stylesheets/application.css +3 -5
  7. data/test/dummy/app/controllers/application_controller.rb +1 -3
  8. data/test/dummy/app/views/layouts/application.html.erb +2 -2
  9. data/test/dummy/config.ru +1 -1
  10. data/test/dummy/config/application.rb +36 -0
  11. data/test/dummy/config/boot.rb +9 -4
  12. data/test/dummy/config/database.yml +8 -8
  13. data/test/dummy/config/environment.rb +3 -3
  14. data/test/dummy/config/environments/development.rb +19 -19
  15. data/test/dummy/config/environments/production.rb +28 -44
  16. data/test/dummy/config/environments/test.rb +15 -17
  17. data/test/dummy/config/initializers/inflections.rb +5 -6
  18. data/test/dummy/config/initializers/mime_types.rb +1 -0
  19. data/test/dummy/config/initializers/secret_token.rb +7 -0
  20. data/test/dummy/config/initializers/session_store.rb +6 -1
  21. data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
  22. data/test/dummy/config/locales/en.yml +2 -20
  23. data/test/dummy/config/routes.rb +25 -23
  24. data/test/dummy/log/development.log +3 -1310
  25. data/test/dummy/log/test.log +2 -156
  26. data/test/dummy/public/404.html +13 -54
  27. data/test/dummy/public/422.html +13 -54
  28. data/test/dummy/public/500.html +12 -53
  29. data/test/dummy/script/rails +6 -0
  30. metadata +7 -15
  31. data/test/dummy/bin/bundle +0 -3
  32. data/test/dummy/bin/rails +0 -4
  33. data/test/dummy/bin/rake +0 -4
  34. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  35. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  36. data/test/dummy/config/secrets.yml +0 -22
@@ -1,165 +1,11 @@
1
-  (0.1ms) begin transaction
2
- ------------------------
3
- VersjonsTest: test_truth
4
- ------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.1ms) begin transaction
7
- -------------------------------------------------
8
- ReleaseInfoTest: test_release_info_initialization
9
- -------------------------------------------------
1
+ Connecting to database specified by database.yml
2
+  (0.2ms) begin transaction
10
3
   (0.0ms) rollback transaction
11
-  (0.1ms) begin transaction
12
- -------------------------------------------------
13
- ReleaseInfoTest: test_release_info_initialization
14
- -------------------------------------------------
15
-  (0.1ms) rollback transaction
16
-  (0.1ms) begin transaction
17
- -------------------------------------------------
18
- ReleaseInfoTest: test_release_info_initialization
19
- -------------------------------------------------
20
-  (0.0ms) rollback transaction
21
-  (0.1ms) begin transaction
22
- -------------------------------------------------
23
- ReleaseInfoTest: test_release_info_initialization
24
- -------------------------------------------------
25
-  (0.0ms) rollback transaction
26
-  (0.1ms) begin transaction
27
- -----------------------------------------
28
- ReleaseInfoTest: test_relase_info_version
29
- -----------------------------------------
30
-  (0.0ms) rollback transaction
31
-  (0.1ms) begin transaction
32
- -------------------------------------------------------
33
- ReleaseInfoTest: test_release_info_empty_initialization
34
- -------------------------------------------------------
35
-  (0.0ms) rollback transaction
36
-  (0.1ms) begin transaction
37
- -----------------------------------------
38
- ReleaseInfoTest: test_relase_info_version
39
- -----------------------------------------
40
-  (0.1ms) rollback transaction
41
4
   (0.0ms) begin transaction
42
- -------------------------------------------------------
43
- ReleaseInfoTest: test_release_info_empty_initialization
44
- -------------------------------------------------------
45
-  (0.0ms) rollback transaction
46
-  (0.1ms) begin transaction
47
- -----------------------------------------
48
- ReleaseInfoTest: test_relase_info_version
49
- -----------------------------------------
50
-  (0.0ms) rollback transaction
51
-  (0.0ms) begin transaction
52
- -------------------------------------------------------
53
- ReleaseInfoTest: test_release_info_empty_initialization
54
- -------------------------------------------------------
55
-  (0.0ms) rollback transaction
56
-  (0.1ms) begin transaction
57
- -----------------------------------------
58
- ReleaseInfoTest: test_relase_info_version
59
- -----------------------------------------
60
-  (0.1ms) rollback transaction
61
-  (0.1ms) begin transaction
62
- -------------------------------------------------------
63
- ReleaseInfoTest: test_release_info_empty_initialization
64
- -------------------------------------------------------
65
-  (0.0ms) rollback transaction
66
-  (0.1ms) begin transaction
67
- -----------------------------------------
68
- ReleaseInfoTest: test_relase_info_version
69
- -----------------------------------------
70
-  (0.0ms) rollback transaction
71
-  (0.0ms) begin transaction
72
- -------------------------------------------------------
73
- ReleaseInfoTest: test_release_info_empty_initialization
74
- -------------------------------------------------------
75
-  (0.0ms) rollback transaction
76
-  (0.1ms) begin transaction
77
- -----------------------------------------
78
- ReleaseInfoTest: test_relase_info_version
79
- -----------------------------------------
80
-  (0.0ms) rollback transaction
81
-  (0.0ms) begin transaction
82
- -------------------------------------------------------
83
- ReleaseInfoTest: test_release_info_empty_initialization
84
- -------------------------------------------------------
85
-  (0.0ms) rollback transaction
86
-  (0.1ms) begin transaction
87
- -------------------------------------
88
- ReleaseInfoTest: test_relase_info_sha
89
- -------------------------------------
90
-  (0.0ms) rollback transaction
91
-  (0.1ms) begin transaction
92
- -----------------------------------------
93
- ReleaseInfoTest: test_relase_info_version
94
- -----------------------------------------
95
-  (0.0ms) rollback transaction
96
-  (0.1ms) begin transaction
97
- -------------------------------------------------------
98
- ReleaseInfoTest: test_release_info_empty_initialization
99
- -------------------------------------------------------
100
-  (0.0ms) rollback transaction
101
-  (0.1ms) begin transaction
102
- -------------------------------------
103
- ReleaseInfoTest: test_relase_info_sha
104
- -------------------------------------
105
-  (0.0ms) rollback transaction
106
-  (0.0ms) begin transaction
107
- -----------------------------------------
108
- ReleaseInfoTest: test_relase_info_version
109
- -----------------------------------------
110
-  (0.0ms) rollback transaction
111
-  (0.0ms) begin transaction
112
- -------------------------------------------------------
113
- ReleaseInfoTest: test_release_info_empty_initialization
114
- -------------------------------------------------------
115
-  (0.0ms) rollback transaction
116
-  (0.1ms) begin transaction
117
- -------------------------------------
118
- ReleaseInfoTest: test_relase_info_sha
119
- -------------------------------------
120
-  (0.0ms) rollback transaction
121
-  (0.0ms) begin transaction
122
- -----------------------------------------
123
- ReleaseInfoTest: test_relase_info_version
124
- -----------------------------------------
125
-  (0.0ms) rollback transaction
126
-  (0.0ms) begin transaction
127
- -------------------------------------------------------
128
- ReleaseInfoTest: test_release_info_empty_initialization
129
- -------------------------------------------------------
130
-  (0.0ms) rollback transaction
131
-  (0.1ms) begin transaction
132
- -------------------------------------
133
- ReleaseInfoTest: test_relase_info_sha
134
- -------------------------------------
135
-  (0.0ms) rollback transaction
136
-  (0.0ms) begin transaction
137
- -----------------------------------------
138
- ReleaseInfoTest: test_relase_info_version
139
- -----------------------------------------
140
-  (0.0ms) rollback transaction
141
-  (0.0ms) begin transaction
142
- -------------------------------------------------------
143
- ReleaseInfoTest: test_release_info_empty_initialization
144
- -------------------------------------------------------
145
-  (0.0ms) rollback transaction
146
-  (0.1ms) begin transaction
147
- -------------------------------------------------------
148
- ReleaseInfoTest: test_release_info_empty_initialization
149
- -------------------------------------------------------
150
5
   (0.0ms) rollback transaction
151
6
   (0.0ms) begin transaction
152
- --------------------------------------
153
- ReleaseInfoTest: test_release_info_sha
154
- --------------------------------------
155
7
   (0.0ms) rollback transaction
156
8
   (0.0ms) begin transaction
157
- --------------------------------------------
158
- ReleaseInfoTest: test_release_info_timestamp
159
- --------------------------------------------
160
9
   (0.0ms) rollback transaction
161
10
   (0.0ms) begin transaction
162
- ------------------------------------------
163
- ReleaseInfoTest: test_release_info_version
164
- ------------------------------------------
165
11
   (0.0ms) rollback transaction
@@ -2,66 +2,25 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
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; }
54
16
  </style>
55
17
  </head>
56
18
 
57
19
  <body>
58
20
  <!-- This file lives in public/404.html -->
59
21
  <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
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>
65
24
  </div>
66
25
  </body>
67
26
  </html>
@@ -2,66 +2,25 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
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; }
54
16
  </style>
55
17
  </head>
56
18
 
57
19
  <body>
58
20
  <!-- This file lives in public/422.html -->
59
21
  <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
65
24
  </div>
66
25
  </body>
67
26
  </html>
@@ -2,65 +2,24 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
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; }
54
16
  </style>
55
17
  </head>
56
18
 
57
19
  <body>
58
20
  <!-- This file lives in public/500.html -->
59
21
  <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
22
+ <h1>We're sorry, but something went wrong.</h1>
64
23
  </div>
65
24
  </body>
66
25
  </html>
@@ -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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versjons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Rasmussen
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.1
19
+ version: 3.2.18
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
- version: 4.1.1
26
+ version: 3.2.18
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,9 +61,6 @@ files:
61
61
  - test/dummy/app/controllers/application_controller.rb
62
62
  - test/dummy/app/helpers/application_helper.rb
63
63
  - test/dummy/app/views/layouts/application.html.erb
64
- - test/dummy/bin/bundle
65
- - test/dummy/bin/rails
66
- - test/dummy/bin/rake
67
64
  - test/dummy/config.ru
68
65
  - test/dummy/config/application.rb
69
66
  - test/dummy/config/boot.rb
@@ -73,16 +70,14 @@ files:
73
70
  - test/dummy/config/environments/production.rb
74
71
  - test/dummy/config/environments/test.rb
75
72
  - test/dummy/config/initializers/backtrace_silencers.rb
76
- - test/dummy/config/initializers/cookies_serializer.rb
77
- - test/dummy/config/initializers/filter_parameter_logging.rb
78
73
  - test/dummy/config/initializers/inflections.rb
79
74
  - test/dummy/config/initializers/mime_types.rb
75
+ - test/dummy/config/initializers/secret_token.rb
80
76
  - test/dummy/config/initializers/session_store.rb
81
77
  - test/dummy/config/initializers/version_info.rb
82
78
  - test/dummy/config/initializers/wrap_parameters.rb
83
79
  - test/dummy/config/locales/en.yml
84
80
  - test/dummy/config/routes.rb
85
- - test/dummy/config/secrets.yml
86
81
  - test/dummy/db/development.sqlite3
87
82
  - test/dummy/db/test.sqlite3
88
83
  - test/dummy/log/development.log
@@ -91,6 +86,7 @@ files:
91
86
  - test/dummy/public/422.html
92
87
  - test/dummy/public/500.html
93
88
  - test/dummy/public/favicon.ico
89
+ - test/dummy/script/rails
94
90
  - test/integration/navigation_test.rb
95
91
  - test/release_info_test.rb
96
92
  - test/test_helper.rb
@@ -125,9 +121,6 @@ test_files:
125
121
  - test/dummy/app/controllers/application_controller.rb
126
122
  - test/dummy/app/helpers/application_helper.rb
127
123
  - test/dummy/app/views/layouts/application.html.erb
128
- - test/dummy/bin/bundle
129
- - test/dummy/bin/rails
130
- - test/dummy/bin/rake
131
124
  - test/dummy/config/application.rb
132
125
  - test/dummy/config/boot.rb
133
126
  - test/dummy/config/database.yml
@@ -136,16 +129,14 @@ test_files:
136
129
  - test/dummy/config/environments/production.rb
137
130
  - test/dummy/config/environments/test.rb
138
131
  - test/dummy/config/initializers/backtrace_silencers.rb
139
- - test/dummy/config/initializers/cookies_serializer.rb
140
- - test/dummy/config/initializers/filter_parameter_logging.rb
141
132
  - test/dummy/config/initializers/inflections.rb
142
133
  - test/dummy/config/initializers/mime_types.rb
134
+ - test/dummy/config/initializers/secret_token.rb
143
135
  - test/dummy/config/initializers/session_store.rb
144
136
  - test/dummy/config/initializers/version_info.rb
145
137
  - test/dummy/config/initializers/wrap_parameters.rb
146
138
  - test/dummy/config/locales/en.yml
147
139
  - test/dummy/config/routes.rb
148
- - test/dummy/config/secrets.yml
149
140
  - test/dummy/config.ru
150
141
  - test/dummy/db/development.sqlite3
151
142
  - test/dummy/db/test.sqlite3
@@ -157,6 +148,7 @@ test_files:
157
148
  - test/dummy/public/favicon.ico
158
149
  - test/dummy/Rakefile
159
150
  - test/dummy/README.rdoc
151
+ - test/dummy/script/rails
160
152
  - test/integration/navigation_test.rb
161
153
  - test/release_info_test.rb
162
154
  - test/test_helper.rb