libpixel 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +11 -0
  4. data/README.md +90 -2
  5. data/Rakefile +0 -1
  6. data/lib/libpixel.rb +18 -0
  7. data/lib/libpixel/client.rb +36 -5
  8. data/lib/libpixel/railtie.rb +10 -0
  9. data/lib/libpixel/version.rb +1 -1
  10. data/lib/libpixel/view_helpers.rb +35 -0
  11. data/libpixel.gemspec +5 -4
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/images/.keep +0 -0
  15. data/test/dummy/app/assets/javascripts/application.js +13 -0
  16. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  17. data/test/dummy/app/controllers/application_controller.rb +5 -0
  18. data/test/dummy/app/controllers/concerns/.keep +0 -0
  19. data/test/dummy/app/helpers/application_helper.rb +2 -0
  20. data/test/dummy/app/mailers/.keep +0 -0
  21. data/test/dummy/app/models/.keep +0 -0
  22. data/test/dummy/app/models/concerns/.keep +0 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/bin/bundle +3 -0
  25. data/test/dummy/bin/rails +4 -0
  26. data/test/dummy/bin/rake +4 -0
  27. data/test/dummy/bin/setup +29 -0
  28. data/test/dummy/config.ru +4 -0
  29. data/test/dummy/config/application.rb +32 -0
  30. data/test/dummy/config/boot.rb +5 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +41 -0
  33. data/test/dummy/config/environments/production.rb +79 -0
  34. data/test/dummy/config/environments/test.rb +42 -0
  35. data/test/dummy/config/initializers/assets.rb +11 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  38. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/test/dummy/config/initializers/inflections.rb +16 -0
  40. data/test/dummy/config/initializers/mime_types.rb +4 -0
  41. data/test/dummy/config/initializers/session_store.rb +3 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/dummy/config/locales/en.yml +23 -0
  44. data/test/dummy/config/routes.rb +56 -0
  45. data/test/dummy/config/secrets.yml +22 -0
  46. data/test/dummy/lib/assets/.keep +0 -0
  47. data/test/dummy/public/404.html +67 -0
  48. data/test/dummy/public/422.html +67 -0
  49. data/test/dummy/public/500.html +66 -0
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/minitest_helper.rb +5 -0
  52. data/test/test_client.rb +43 -0
  53. data/test/test_helper.rb +18 -0
  54. data/test/test_rails.rb +93 -0
  55. metadata +109 -8
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: d23310752ef39700bef84f27289dd1f97c79dda690e9aaade1f75f51f287bbdafb01e3853db33f2d359cebaca9c809e931e24ad5d76da5f0768646ae2b4efcd2
15
+
16
+ test:
17
+ secret_key_base: a33a7e2ee7dddf4cb198a06e99b304cfd2309abd62013844c246398ca65030a287d4f01898ed5b64f5e673ffe291c35e66f08d9136efb74117c7cf42ff6de3b8
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
File without changes
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
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
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <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>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
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
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <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>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
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
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <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>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -1,4 +1,9 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+
3
+ # rails must be loaded first so that LibPixel loads the view helper
4
+ require 'bundler/setup'
5
+ require 'rails'
6
+
2
7
  require 'libpixel'
3
8
 
4
9
  require 'minitest/autorun'
data/test/test_client.rb CHANGED
@@ -3,11 +3,40 @@ require "minitest_helper"
3
3
  describe LibPixel::Client do
4
4
 
5
5
  before do
6
+ ENV.delete("LIBPIXEL_HOST")
7
+ ENV.delete("LIBPIXEL_SECRET")
8
+
6
9
  @client = LibPixel::Client.new({
7
10
  host: "test.libpx.com", https: false, secret: "LibPixel"
8
11
  })
9
12
  end
10
13
 
14
+ describe ".new" do
15
+ it "uses the LIBPIXEL_HOST env var as a default host" do
16
+ ENV["LIBPIXEL_HOST"] = "env"
17
+ client = LibPixel::Client.new
18
+ assert_equal "env", client.host
19
+ end
20
+
21
+ it "uses the LIBPIXEL_SECRET env var as a default secret" do
22
+ ENV["LIBPIXEL_SECRET"] = "secret-env"
23
+ client = LibPixel::Client.new
24
+ assert_equal "secret-env", client.secret
25
+ end
26
+
27
+ it "prefers the host option to the LIBPIXEL_HOST env var" do
28
+ ENV["LIBPIXEL_HOST"] = "env"
29
+ client = LibPixel::Client.new(host: "my-host")
30
+ assert_equal "my-host", client.host
31
+ end
32
+
33
+ it "prefers the secret option to the LIBPIXEL_SECRET env var" do
34
+ ENV["LIBPIXEL_SECRET"] = "secret-env"
35
+ client = LibPixel::Client.new(secret: "top-secret")
36
+ assert_equal "top-secret", client.secret
37
+ end
38
+ end
39
+
11
40
  describe "#sign" do
12
41
  it "adds the query string with the signature" do
13
42
  url = "http://test.libpx.com/images/1.jpg"
@@ -35,6 +64,13 @@ describe LibPixel::Client do
35
64
  assert_equal "http://test.libpx.com/images/1.jpg?signature=bd5634c055d707c1638eff93eb88ff31277958f0#test",
36
65
  @client.sign("http://test.libpx.com/images/1.jpg#test")
37
66
  end
67
+
68
+ it "requires the secret to be set" do
69
+ @client.secret = nil
70
+ assert_raises do
71
+ @client.sign("http://test.libpx.com/images/1.jpg")
72
+ end
73
+ end
38
74
  end
39
75
 
40
76
  describe "#url" do
@@ -74,6 +110,13 @@ describe LibPixel::Client do
74
110
  url = "http://test.libpx.com/?src=url"
75
111
  assert_equal url, client.url(src: "url")
76
112
  end
113
+
114
+ it "requires the host to be set" do
115
+ @client.host = nil
116
+ assert_raises do
117
+ @client.url("images/1.jpg")
118
+ end
119
+ end
77
120
  end
78
121
 
79
122
  end
@@ -0,0 +1,18 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
8
+ # to be shown.
9
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
10
+
11
+ # Load support files
12
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
+
14
+ # Load fixtures from the engine
15
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
16
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
17
+ ActiveSupport::TestCase.fixtures :all
18
+ end
@@ -0,0 +1,93 @@
1
+ require 'test_helper'
2
+
3
+ class LibPixelTest < ActionView::TestCase
4
+ include LibPixel::ViewHelpers
5
+
6
+ def setup
7
+ LibPixel.default_source = "source"
8
+ LibPixel.host = "example.libpx.com"
9
+ LibPixel.secret = nil
10
+ LibPixel.https = false
11
+ end
12
+
13
+ test "Image tag with secret" do
14
+ LibPixel.secret = "VerySecret"
15
+ assert_equal "<img src=\"http://example.libpx.com/source/foo.jpg?signature=4d3a78f4c6caf5d9827f39f4f84c5b17255cabf1\" alt=\"Foo\" />", libpixel_image_tag("foo.jpg")
16
+ end
17
+
18
+ test "Image tag without secret" do
19
+ assert_equal "<img src=\"http://example.libpx.com/source/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("foo.jpg")
20
+ end
21
+
22
+ test "Image tag with space" do
23
+ assert_equal "<img src=\"http://example.libpx.com/source/foo%20.jpg\" alt=\"Foo%20\" />", libpixel_image_tag("foo .jpg")
24
+ end
25
+
26
+ test "Image tag using src in libpixel hash" do
27
+ assert_equal "<img width=\"100\" alt=\"Foo\" src=\"http://example.libpx.com/source/?src=http%3A%2F%2Fa.b.com%2Ffoo.jpg&width=200\" />", libpixel_image_tag(:libpixel => {src: "http://a.b.com/foo.jpg", :width => 200}, :width => 100)
28
+ end
29
+
30
+ test "Name should take precedence when using both src and name" do
31
+ assert_equal "<img src=\"http://example.libpx.com/source/bar.jpg\" alt=\"Bar\" />", libpixel_image_tag("bar.jpg", src: "http://a.b.com/foo.jpg")
32
+ end
33
+
34
+ test "Image tag without host" do
35
+ LibPixel.host = nil
36
+ assert_raises do
37
+ libpixel_image_tag("foo.jpg")
38
+ end
39
+ end
40
+
41
+ test "Image tag with source in given path" do
42
+ LibPixel.default_source = nil
43
+ assert_equal "<img src=\"http://example.libpx.com/source/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("source/foo.jpg")
44
+ end
45
+
46
+ test "Image tag with source in given path and leading slash" do
47
+ LibPixel.default_source = nil
48
+ assert_equal "<img src=\"http://example.libpx.com/source/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("/source/foo.jpg")
49
+ end
50
+
51
+ test "Image tag with default_source as region" do
52
+ LibPixel.default_source = "us-east-1"
53
+ assert_equal "<img src=\"http://example.libpx.com/us-east-1/source/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("source/foo.jpg")
54
+ end
55
+
56
+ test "Image tag with source with slashes" do
57
+ LibPixel.default_source = "/source/"
58
+ assert_equal "<img src=\"http://example.libpx.com/source/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("foo.jpg")
59
+ end
60
+
61
+ test "Image tag with source with spaces should raise" do
62
+ LibPixel.default_source = "us-east-1/foo bar"
63
+ assert_raises {
64
+ libpixel_image_tag("foo.jpg")
65
+ }
66
+ end
67
+
68
+ test "Image tag with source supplied in options" do
69
+ assert_equal "<img src=\"http://example.libpx.com/eu-west-1/source1/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("foo.jpg", :libpixel => {:source => "eu-west-1/source1"})
70
+ end
71
+
72
+ test "Image tag with url given" do
73
+ assert_equal "<img width=\"200\" alt=\"Foo\" src=\"http://example.libpx.com/source/?width=400&src=http%3A%2F%2Fa.b.com%2Ffoo.jpg\" />", libpixel_image_tag("http://a.b.com/foo.jpg", :libpixel => {:width => 400}, :width => 200)
74
+ end
75
+
76
+ test "Image tag with libpixel width and img width specified" do
77
+ assert_equal "<img width=\"200\" src=\"http://example.libpx.com/source/foo.jpg?width=400\" alt=\"Foo\" />", libpixel_image_tag("foo.jpg", :libpixel => {:width => 400}, :width => 200)
78
+ end
79
+
80
+ test "Image tag with https config" do
81
+ LibPixel.https = true
82
+ assert_equal "<img src=\"https://example.libpx.com/source/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("foo.jpg")
83
+ end
84
+
85
+ test "Image tag with https option" do
86
+ assert_equal "<img width=\"200\" alt=\"Foo\" src=\"https://example.libpx.com/source/?width=400&src=https%3A%2F%2Fa.b.com%2Ffoo.jpg\" />", libpixel_image_tag("https://a.b.com/foo.jpg", :libpixel => {:width => 400, :https => true}, :width => 200)
87
+ end
88
+
89
+ test "Image tag with http option" do
90
+ LibPixel.https = true
91
+ assert_equal "<img src=\"http://example.libpx.com/source/foo.jpg\" alt=\"Foo\" />", libpixel_image_tag("foo.jpg", :libpixel => {:https => false})
92
+ end
93
+ end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libpixel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joao Carlos
8
+ - Stephen Sykes
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-08-12 00:00:00.000000000 Z
12
+ date: 2015-09-19 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -42,19 +43,33 @@ dependencies:
42
43
  name: minitest
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - ">="
46
+ - - "~>"
46
47
  - !ruby/object:Gem::Version
47
- version: '0'
48
+ version: 5.8.0
48
49
  type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - ">="
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 5.8.0
56
+ - !ruby/object:Gem::Dependency
57
+ name: rails
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 4.2.3
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
53
68
  - !ruby/object:Gem::Version
54
- version: '0'
69
+ version: 4.2.3
55
70
  description:
56
71
  email:
57
- - joao@libpixel.com
72
+ - support@libpixel.com
58
73
  executables: []
59
74
  extensions: []
60
75
  extra_rdoc_files: []
@@ -68,10 +83,54 @@ files:
68
83
  - Rakefile
69
84
  - lib/libpixel.rb
70
85
  - lib/libpixel/client.rb
86
+ - lib/libpixel/railtie.rb
71
87
  - lib/libpixel/version.rb
88
+ - lib/libpixel/view_helpers.rb
72
89
  - libpixel.gemspec
90
+ - test/dummy/README.rdoc
91
+ - test/dummy/Rakefile
92
+ - test/dummy/app/assets/images/.keep
93
+ - test/dummy/app/assets/javascripts/application.js
94
+ - test/dummy/app/assets/stylesheets/application.css
95
+ - test/dummy/app/controllers/application_controller.rb
96
+ - test/dummy/app/controllers/concerns/.keep
97
+ - test/dummy/app/helpers/application_helper.rb
98
+ - test/dummy/app/mailers/.keep
99
+ - test/dummy/app/models/.keep
100
+ - test/dummy/app/models/concerns/.keep
101
+ - test/dummy/app/views/layouts/application.html.erb
102
+ - test/dummy/bin/bundle
103
+ - test/dummy/bin/rails
104
+ - test/dummy/bin/rake
105
+ - test/dummy/bin/setup
106
+ - test/dummy/config.ru
107
+ - test/dummy/config/application.rb
108
+ - test/dummy/config/boot.rb
109
+ - test/dummy/config/environment.rb
110
+ - test/dummy/config/environments/development.rb
111
+ - test/dummy/config/environments/production.rb
112
+ - test/dummy/config/environments/test.rb
113
+ - test/dummy/config/initializers/assets.rb
114
+ - test/dummy/config/initializers/backtrace_silencers.rb
115
+ - test/dummy/config/initializers/cookies_serializer.rb
116
+ - test/dummy/config/initializers/filter_parameter_logging.rb
117
+ - test/dummy/config/initializers/inflections.rb
118
+ - test/dummy/config/initializers/mime_types.rb
119
+ - test/dummy/config/initializers/session_store.rb
120
+ - test/dummy/config/initializers/wrap_parameters.rb
121
+ - test/dummy/config/locales/en.yml
122
+ - test/dummy/config/routes.rb
123
+ - test/dummy/config/secrets.yml
124
+ - test/dummy/lib/assets/.keep
125
+ - test/dummy/log/.keep
126
+ - test/dummy/public/404.html
127
+ - test/dummy/public/422.html
128
+ - test/dummy/public/500.html
129
+ - test/dummy/public/favicon.ico
73
130
  - test/minitest_helper.rb
74
131
  - test/test_client.rb
132
+ - test/test_helper.rb
133
+ - test/test_rails.rb
75
134
  homepage: https://github.com/libpixel/libpixel-ruby
76
135
  licenses:
77
136
  - MIT
@@ -95,8 +154,50 @@ rubyforge_project:
95
154
  rubygems_version: 2.4.5
96
155
  signing_key:
97
156
  specification_version: 4
98
- summary: Ruby library to generate and sign LibPixel URLs.
157
+ summary: Ruby library and Rails plugin to generate and sign LibPixel URLs.
99
158
  test_files:
159
+ - test/dummy/README.rdoc
160
+ - test/dummy/Rakefile
161
+ - test/dummy/app/assets/images/.keep
162
+ - test/dummy/app/assets/javascripts/application.js
163
+ - test/dummy/app/assets/stylesheets/application.css
164
+ - test/dummy/app/controllers/application_controller.rb
165
+ - test/dummy/app/controllers/concerns/.keep
166
+ - test/dummy/app/helpers/application_helper.rb
167
+ - test/dummy/app/mailers/.keep
168
+ - test/dummy/app/models/.keep
169
+ - test/dummy/app/models/concerns/.keep
170
+ - test/dummy/app/views/layouts/application.html.erb
171
+ - test/dummy/bin/bundle
172
+ - test/dummy/bin/rails
173
+ - test/dummy/bin/rake
174
+ - test/dummy/bin/setup
175
+ - test/dummy/config.ru
176
+ - test/dummy/config/application.rb
177
+ - test/dummy/config/boot.rb
178
+ - test/dummy/config/environment.rb
179
+ - test/dummy/config/environments/development.rb
180
+ - test/dummy/config/environments/production.rb
181
+ - test/dummy/config/environments/test.rb
182
+ - test/dummy/config/initializers/assets.rb
183
+ - test/dummy/config/initializers/backtrace_silencers.rb
184
+ - test/dummy/config/initializers/cookies_serializer.rb
185
+ - test/dummy/config/initializers/filter_parameter_logging.rb
186
+ - test/dummy/config/initializers/inflections.rb
187
+ - test/dummy/config/initializers/mime_types.rb
188
+ - test/dummy/config/initializers/session_store.rb
189
+ - test/dummy/config/initializers/wrap_parameters.rb
190
+ - test/dummy/config/locales/en.yml
191
+ - test/dummy/config/routes.rb
192
+ - test/dummy/config/secrets.yml
193
+ - test/dummy/lib/assets/.keep
194
+ - test/dummy/log/.keep
195
+ - test/dummy/public/404.html
196
+ - test/dummy/public/422.html
197
+ - test/dummy/public/500.html
198
+ - test/dummy/public/favicon.ico
100
199
  - test/minitest_helper.rb
101
200
  - test/test_client.rb
201
+ - test/test_helper.rb
202
+ - test/test_rails.rb
102
203
  has_rdoc: