cloudfront-rails 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f949cca49a4e3954feede88b2c4a5269d228c5c
4
- data.tar.gz: b6a5f806d7e8583e0b7d478a8c1ab6e208de4e51
3
+ metadata.gz: dc2a485050c6c825c7fdadb97726ae526216bca2
4
+ data.tar.gz: 08b4fcc2648e35719d404d4b0204752bea7ef813
5
5
  SHA512:
6
- metadata.gz: aa1704080864b41578340ae105ccf6638660672bf70ca544302a114c4464c150fb31a1a6a5c8f4e2455a9de1b705b484475d2153bc46a31d5263a9128aa59264
7
- data.tar.gz: df96199ed30d246c95a2bbe9bd5c56a3bc602d5cf816e40fb45b6be4a37ce9be40e4f75d4234a030785f6616b3bd199c1af820c9fc07fd5a073f1d5711bc235e
6
+ metadata.gz: f1be3a5438ae29cd45ee84ba7b48fe62a60a23ca9d6f04f47f2818566b48b7e48b23dff43c8d53051c407237af3da1bea3041aa1209a3547d3ee25bfc8a1512f
7
+ data.tar.gz: 10f982ab9402ede4d5ad10cb0ae4aae60ec4cce4b3da90e897b4ab0f3ccf0aa41ba15924afd0dbdbdb2e5aaf5a5f933d6c1da2e52def54b24f2c9990e150e5a9
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /log/
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
1
  sudo: false
2
+ cache: bundler
2
3
  language: ruby
3
4
  rvm:
4
- - 2.2.4
5
- before_install: gem install bundler -v 1.12.5
5
+ - 2.2.7
6
+ - 2.3.4
7
+ - 2.4.1
8
+ before_install: gem install bundler -v 1.15.1
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # Cloudfront::Rails
2
2
 
3
- This Gem is a shameless copy of [cloudflare-rails](https://github.com/modosc/cloudflare-rails), but for CloudFront
3
+ This Gem is a shameless copy of [cloudflare-rails](https://github.com/modosc/cloudflare-rails), but for [CloudFront](https://aws.amazon.com/cloudfront/)
4
+
5
+ ![](https://api.travis-ci.org/dinks/cloudfront-rails.svg)
4
6
 
5
7
  ## Installation
6
8
 
7
- __This is created for Rails 4 as of now__
9
+ __This gem now supports Rails 5,, for Rails 4, please use version ~> 0.1.0__
8
10
 
9
11
  Add this line to your application's Gemfile:
10
12
 
@@ -41,7 +43,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
41
43
 
42
44
  ## Contributing
43
45
 
44
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cloudfront-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dinks/cloudfront-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
45
47
 
46
48
 
47
49
  ## License
@@ -11,12 +11,10 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{ Whitelist Cloudfront Proxies }
13
13
  spec.description = %q{ Whitelist Cloudfront Proxies for Rails so that request.ip and request.remote_ip work properly }
14
- spec.homepage = ""
14
+ spec.homepage = "https://github.com/dinks/cloudfront-rails/"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.bindir = "exe"
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
18
  spec.require_paths = ["lib"]
21
19
 
22
20
  spec.add_development_dependency "bundler", "~> 1.12"
@@ -26,7 +24,7 @@ Gem::Specification.new do |spec|
26
24
 
27
25
  spec.add_development_dependency "webmock"
28
26
 
29
- spec.add_dependency "rails", "~> 4.0"
27
+ spec.add_dependency "rails", "~> 5.0"
30
28
  spec.add_dependency "httparty"
31
29
 
32
30
  spec.required_ruby_version = ">= 2.0"
@@ -10,7 +10,7 @@ module Cloudfront
10
10
  end
11
11
  end
12
12
 
13
- Rack::Request.prepend CheckTrustedProxies
13
+ Rack::Request::Helpers.prepend CheckTrustedProxies
14
14
 
15
15
  module RemoteIpProxies
16
16
  def proxies
@@ -1,5 +1,5 @@
1
1
  module Cloudfront
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudfront-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinesh V
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-02 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '4.0'
89
+ version: '5.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '4.0'
96
+ version: '5.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: httparty
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -130,8 +130,7 @@ files:
130
130
  - lib/cloudfront/rails.rb
131
131
  - lib/cloudfront/rails/railtie.rb
132
132
  - lib/cloudfront/rails/version.rb
133
- - log/test.log
134
- homepage: ''
133
+ homepage: https://github.com/dinks/cloudfront-rails/
135
134
  licenses:
136
135
  - MIT
137
136
  metadata: {}
data/log/test.log DELETED
@@ -1,4 +0,0 @@
1
- Cloudfront::Rails: Couldn't import from Cloudfront: #<Net::HTTPNotFound:0x007f85f28f5fc8>
2
- Cloudfront::Rails: Couldn't import from Cloudfront: #<Net::HTTPNotFound:0x007f8ca34fa6c8>
3
- Cloudfront::Rails: Couldn't import from Cloudfront: #<Net::HTTPNotFound:0x007f9b1b6e1d48>
4
- Cloudfront::Rails: Got exception: 814: unexpected token at 'asdfasdfasdfasdfasdf'