wiselinks 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/Gemfile +7 -0
  2. data/Gemfile.lock +71 -0
  3. data/README.md +29 -4
  4. data/Rakefile +1 -1
  5. data/VERSION +1 -1
  6. data/lib/assets/javascripts/wiselinks.js.coffee +22 -8
  7. data/lib/wiselinks.rb +17 -9
  8. data/lib/wiselinks/headers.rb +19 -1
  9. data/lib/wiselinks/helpers.rb +9 -0
  10. data/lib/wiselinks/logger.rb +4 -10
  11. data/lib/wiselinks/rails.rb +21 -0
  12. data/test/cases/application_controller_test.rb +35 -0
  13. data/test/dummy/README.rdoc +261 -0
  14. data/test/dummy/Rakefile +7 -0
  15. data/test/dummy/app/assets/javascripts/application.js +15 -0
  16. data/test/dummy/app/assets/javascripts/wisepdf.js +1 -0
  17. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  18. data/test/dummy/app/assets/stylesheets/wisepdf.css +1 -0
  19. data/test/dummy/app/controllers/application_controller.rb +7 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/mailers/.gitkeep +0 -0
  22. data/test/dummy/app/models/.gitkeep +0 -0
  23. data/test/dummy/app/views/application/index.pdf.erb +1 -0
  24. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  25. data/test/dummy/app/views/layouts/pdf.html.erb +14 -0
  26. data/test/dummy/config.ru +4 -0
  27. data/test/dummy/config/application.rb +57 -0
  28. data/test/dummy/config/boot.rb +10 -0
  29. data/test/dummy/config/database.yml +7 -0
  30. data/test/dummy/config/environment.rb +5 -0
  31. data/test/dummy/config/environments/development.rb +37 -0
  32. data/test/dummy/config/environments/production.rb +67 -0
  33. data/test/dummy/config/environments/test.rb +37 -0
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test/dummy/config/initializers/inflections.rb +15 -0
  36. data/test/dummy/config/initializers/mime_types.rb +5 -0
  37. data/test/dummy/config/initializers/secret_token.rb +7 -0
  38. data/test/dummy/config/initializers/session_store.rb +8 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/dummy/config/locales/en.yml +5 -0
  41. data/test/dummy/config/routes.rb +3 -0
  42. data/test/dummy/lib/assets/.gitkeep +0 -0
  43. data/test/dummy/log/.gitkeep +0 -0
  44. data/test/dummy/log/development.log +27917 -0
  45. data/test/dummy/log/test.log +52308 -0
  46. data/test/dummy/public/404.html +26 -0
  47. data/test/dummy/public/422.html +26 -0
  48. data/test/dummy/public/500.html +25 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/public/javascripts/wisepdf.js +1 -0
  51. data/test/dummy/public/stylesheets/wisepdf.css +1 -0
  52. data/test/dummy/script/rails +6 -0
  53. data/test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7 +0 -0
  54. data/test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9 +0 -0
  55. data/test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8 +0 -0
  56. data/test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a +0 -0
  57. data/test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb +0 -0
  58. data/test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31 +0 -0
  59. data/test/helper.rb +7 -11
  60. data/travis.yml +3 -0
  61. data/wiselinks.gemspec +52 -3
  62. metadata +53 -4
  63. data/test/test_wiselinks.rb +0 -7
@@ -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 @@
1
+ // Wisepdf javascript
@@ -0,0 +1 @@
1
+ /* Wisepdf styles */
@@ -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'
@@ -1,18 +1,14 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
3
+
4
+ ENV['RAILS_ENV'] = 'test'
5
+ require "dummy/config/environment"
6
+
7
+ require "rails/test_help"
8
+
10
9
  require 'test/unit'
11
10
  require 'shoulda'
12
11
 
13
12
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
13
  $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'wiselinks'
16
-
17
- class Test::Unit::TestCase
18
- end
14
+ require 'wiselinks'
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wiselinks"
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Igor Alexandrov", "Alexey Solilin", "Julia Egorova"]
12
- s.date = "2012-12-21"
12
+ s.date = "2012-12-23"
13
13
  s.email = "igor.alexandrov@gmail.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -28,10 +28,59 @@ Gem::Specification.new do |s|
28
28
  "lib/assets/javascripts/wiselinks.js.coffee",
29
29
  "lib/wiselinks.rb",
30
30
  "lib/wiselinks/headers.rb",
31
+ "lib/wiselinks/helpers.rb",
31
32
  "lib/wiselinks/logger.rb",
33
+ "lib/wiselinks/rails.rb",
32
34
  "lib/wiselinks/request.rb",
35
+ "test/cases/application_controller_test.rb",
36
+ "test/dummy/README.rdoc",
37
+ "test/dummy/Rakefile",
38
+ "test/dummy/app/assets/javascripts/application.js",
39
+ "test/dummy/app/assets/javascripts/wisepdf.js",
40
+ "test/dummy/app/assets/stylesheets/application.css",
41
+ "test/dummy/app/assets/stylesheets/wisepdf.css",
42
+ "test/dummy/app/controllers/application_controller.rb",
43
+ "test/dummy/app/helpers/application_helper.rb",
44
+ "test/dummy/app/mailers/.gitkeep",
45
+ "test/dummy/app/models/.gitkeep",
46
+ "test/dummy/app/views/application/index.pdf.erb",
47
+ "test/dummy/app/views/layouts/application.html.erb",
48
+ "test/dummy/app/views/layouts/pdf.html.erb",
49
+ "test/dummy/config.ru",
50
+ "test/dummy/config/application.rb",
51
+ "test/dummy/config/boot.rb",
52
+ "test/dummy/config/database.yml",
53
+ "test/dummy/config/environment.rb",
54
+ "test/dummy/config/environments/development.rb",
55
+ "test/dummy/config/environments/production.rb",
56
+ "test/dummy/config/environments/test.rb",
57
+ "test/dummy/config/initializers/backtrace_silencers.rb",
58
+ "test/dummy/config/initializers/inflections.rb",
59
+ "test/dummy/config/initializers/mime_types.rb",
60
+ "test/dummy/config/initializers/secret_token.rb",
61
+ "test/dummy/config/initializers/session_store.rb",
62
+ "test/dummy/config/initializers/wrap_parameters.rb",
63
+ "test/dummy/config/locales/en.yml",
64
+ "test/dummy/config/routes.rb",
65
+ "test/dummy/lib/assets/.gitkeep",
66
+ "test/dummy/log/.gitkeep",
67
+ "test/dummy/log/development.log",
68
+ "test/dummy/log/test.log",
69
+ "test/dummy/public/404.html",
70
+ "test/dummy/public/422.html",
71
+ "test/dummy/public/500.html",
72
+ "test/dummy/public/favicon.ico",
73
+ "test/dummy/public/javascripts/wisepdf.js",
74
+ "test/dummy/public/stylesheets/wisepdf.css",
75
+ "test/dummy/script/rails",
76
+ "test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7",
77
+ "test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9",
78
+ "test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8",
79
+ "test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a",
80
+ "test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb",
81
+ "test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31",
33
82
  "test/helper.rb",
34
- "test/test_wiselinks.rb",
83
+ "travis.yml",
35
84
  "wiselinks.gemspec"
36
85
  ]
37
86
  s.homepage = "http://github.com/igor-alexandrov/wiselinks"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wiselinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-12-21 00:00:00.000000000 Z
14
+ date: 2012-12-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: shoulda
@@ -97,10 +97,59 @@ files:
97
97
  - lib/assets/javascripts/wiselinks.js.coffee
98
98
  - lib/wiselinks.rb
99
99
  - lib/wiselinks/headers.rb
100
+ - lib/wiselinks/helpers.rb
100
101
  - lib/wiselinks/logger.rb
102
+ - lib/wiselinks/rails.rb
101
103
  - lib/wiselinks/request.rb
104
+ - test/cases/application_controller_test.rb
105
+ - test/dummy/README.rdoc
106
+ - test/dummy/Rakefile
107
+ - test/dummy/app/assets/javascripts/application.js
108
+ - test/dummy/app/assets/javascripts/wisepdf.js
109
+ - test/dummy/app/assets/stylesheets/application.css
110
+ - test/dummy/app/assets/stylesheets/wisepdf.css
111
+ - test/dummy/app/controllers/application_controller.rb
112
+ - test/dummy/app/helpers/application_helper.rb
113
+ - test/dummy/app/mailers/.gitkeep
114
+ - test/dummy/app/models/.gitkeep
115
+ - test/dummy/app/views/application/index.pdf.erb
116
+ - test/dummy/app/views/layouts/application.html.erb
117
+ - test/dummy/app/views/layouts/pdf.html.erb
118
+ - test/dummy/config.ru
119
+ - test/dummy/config/application.rb
120
+ - test/dummy/config/boot.rb
121
+ - test/dummy/config/database.yml
122
+ - test/dummy/config/environment.rb
123
+ - test/dummy/config/environments/development.rb
124
+ - test/dummy/config/environments/production.rb
125
+ - test/dummy/config/environments/test.rb
126
+ - test/dummy/config/initializers/backtrace_silencers.rb
127
+ - test/dummy/config/initializers/inflections.rb
128
+ - test/dummy/config/initializers/mime_types.rb
129
+ - test/dummy/config/initializers/secret_token.rb
130
+ - test/dummy/config/initializers/session_store.rb
131
+ - test/dummy/config/initializers/wrap_parameters.rb
132
+ - test/dummy/config/locales/en.yml
133
+ - test/dummy/config/routes.rb
134
+ - test/dummy/lib/assets/.gitkeep
135
+ - test/dummy/log/.gitkeep
136
+ - test/dummy/log/development.log
137
+ - test/dummy/log/test.log
138
+ - test/dummy/public/404.html
139
+ - test/dummy/public/422.html
140
+ - test/dummy/public/500.html
141
+ - test/dummy/public/favicon.ico
142
+ - test/dummy/public/javascripts/wisepdf.js
143
+ - test/dummy/public/stylesheets/wisepdf.css
144
+ - test/dummy/script/rails
145
+ - test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7
146
+ - test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9
147
+ - test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8
148
+ - test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a
149
+ - test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb
150
+ - test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31
102
151
  - test/helper.rb
103
- - test/test_wiselinks.rb
152
+ - travis.yml
104
153
  - wiselinks.gemspec
105
154
  homepage: http://github.com/igor-alexandrov/wiselinks
106
155
  licenses:
@@ -117,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
166
  version: '0'
118
167
  segments:
119
168
  - 0
120
- hash: 2214557094717960689
169
+ hash: 699371933197126239
121
170
  required_rubygems_version: !ruby/object:Gem::Requirement
122
171
  none: false
123
172
  requirements:
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestWiselinks < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end