thumbor_rails 1.1.0 → 1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8f6ed2e8997fd51a42d9ad3505d2017ed79ab895
4
+ data.tar.gz: 6b37ad0ddc1c32d92ae9c58163fcdaeceeab8797
5
+ SHA512:
6
+ metadata.gz: bbe630f1f6f2ac58e5f370a02375da39146143795c75d6b9a99efa07fc416af6b5f25a0e6322423caf9132d9b9d5bf5188c194082750c5bde341c287dcc67ddd
7
+ data.tar.gz: ab27db469db3d6a1dd7bc4931c4511cdcc74a3cee73a825512b9dccde8111abc54949c0d5448c3c552800914edde116f070e647664646d3cebbd5e4656b6506b
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Thumbor Rails [<img src="https://secure.travis-ci.org/rafaelcaricio/thumbor_rails.png?branch=master" alt="Build Status" />](https://travis-ci.org/rafaelcaricio/thumbor_rails)
1
+ # Thumbor Rails [<img src="https://secure.travis-ci.org/rafaelcaricio/thumbor_rails.svg?branch=master" alt="Build Status" />](https://travis-ci.org/rafaelcaricio/thumbor_rails)
2
2
 
3
3
  https://github.com/rafaelcaricio/thumbor_rails
4
4
 
@@ -11,7 +11,7 @@ thumbor_rails is a client to make easier to use the thumbor imaging service (htt
11
11
  You can use this gem by putting the following inside your Gemfile:
12
12
 
13
13
  ```
14
- gem "thumbor_rails", "1.1.0"
14
+ gem "thumbor_rails", "1.2.0"
15
15
  ```
16
16
 
17
17
  Now generate the thumbor basic client configuration:
@@ -6,7 +6,7 @@ module ThumborRails
6
6
 
7
7
  def thumbor_url(image_url, options = {})
8
8
  if ThumborRails.force_no_protocol_in_source_url
9
- image_url.sub!(/^http(s|):\/\//, '')
9
+ image_url = image_url.sub(/^http(s|):\/\//, '')
10
10
  end
11
11
 
12
12
  options[:image] = image_url
@@ -1,3 +1,3 @@
1
1
  module ThumborRails
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -66,12 +66,18 @@ describe ThumborRails::Helpers do
66
66
  subject { thumbor_image_tag('http://myimg.jpg', params) }
67
67
 
68
68
  context 'unsafe disabled' do
69
- it { should eq('<img alt="Myimg" src="http://thumbor.example.com/Q-1lWnxlCLnkzXWWM5xTAs1QEBM=/http://myimg.jpg" />') }
69
+ it {
70
+ should include('src="http://thumbor.example.com/Q-1lWnxlCLnkzXWWM5xTAs1QEBM=/http://myimg.jpg"')
71
+ should include('alt="Myimg"')
72
+ }
70
73
  end
71
74
 
72
75
  context 'unsafe enabled' do
73
76
  let(:params) { { unsafe: true } }
74
- it { should eq('<img alt="Myimg" src="http://thumbor.example.com/unsafe/http://myimg.jpg" />') }
77
+ it {
78
+ should include('src="http://thumbor.example.com/unsafe/http://myimg.jpg"')
79
+ should include('alt="Myimg"')
80
+ }
75
81
  end
76
82
  end
77
83
  end
@@ -22,12 +22,12 @@ describe ThumborRails do
22
22
  describe 'when configured' do
23
23
  before do
24
24
  subject.setup do |config|
25
- config.server_url = 'http://thumbor.globo.com'
25
+ config.server_url = 'http://thumbor.example.com'
26
26
  end
27
27
  end
28
28
 
29
29
  it 'should use the configuration' do
30
- expect(subject.server_url).to eq('http://thumbor.globo.com')
30
+ expect(subject.server_url).to eq('http://thumbor.example.com')
31
31
  end
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,78 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thumbor_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Rafael Caricio
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ruby-thumbor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.2.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.2.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: rspec
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ! '>='
45
+ - - ">="
36
46
  - !ruby/object:Gem::Version
37
47
  version: '0'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ! '>='
52
+ - - ">="
44
53
  - !ruby/object:Gem::Version
45
54
  version: '0'
46
55
  - !ruby/object:Gem::Dependency
47
- name: rb-fsevent
56
+ name: rake
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ~>
59
+ - - ">="
52
60
  - !ruby/object:Gem::Version
53
- version: 0.9.1
61
+ version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ~>
66
+ - - ">="
60
67
  - !ruby/object:Gem::Version
61
- version: 0.9.1
68
+ version: '0'
62
69
  - !ruby/object:Gem::Dependency
63
- name: rake
70
+ name: appraisal
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ! '>='
73
+ - - ">="
68
74
  - !ruby/object:Gem::Version
69
75
  version: '0'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ! '>='
80
+ - - ">="
76
81
  - !ruby/object:Gem::Version
77
82
  version: '0'
78
83
  description: thumbor_rails is a client for the thumbor imaging service (http://github.com/globocom/thumbor)
@@ -83,41 +88,40 @@ executables: []
83
88
  extensions: []
84
89
  extra_rdoc_files: []
85
90
  files:
91
+ - README.md
86
92
  - lib/generators/thumbor_rails/install_generator.rb
87
93
  - lib/generators/thumbor_rails/templates/config/initializers/thumbor_rails.rb
94
+ - lib/thumbor_rails.rb
88
95
  - lib/thumbor_rails/helpers.rb
89
96
  - lib/thumbor_rails/version.rb
90
- - lib/thumbor_rails.rb
91
- - README.md
92
97
  - spec/spec_helper.rb
93
98
  - spec/thumbor_rails/helpers_spec.rb
94
99
  - spec/thumbor_rails_spec.rb
95
100
  homepage: https://github.com/rafaelcaricio/thumbor_rails
96
101
  licenses:
97
102
  - MIT
103
+ metadata: {}
98
104
  post_install_message:
99
105
  rdoc_options:
100
- - --main
106
+ - "--main"
101
107
  - README.md
102
108
  require_paths:
103
109
  - lib
104
110
  required_ruby_version: !ruby/object:Gem::Requirement
105
- none: false
106
111
  requirements:
107
- - - ! '>='
112
+ - - ">="
108
113
  - !ruby/object:Gem::Version
109
114
  version: '0'
110
115
  required_rubygems_version: !ruby/object:Gem::Requirement
111
- none: false
112
116
  requirements:
113
- - - ! '>='
117
+ - - ">="
114
118
  - !ruby/object:Gem::Version
115
119
  version: '0'
116
120
  requirements: []
117
121
  rubyforge_project:
118
- rubygems_version: 1.8.23
122
+ rubygems_version: 2.5.1
119
123
  signing_key:
120
- specification_version: 3
124
+ specification_version: 4
121
125
  summary: thumbor_rails is a client to manage and generate urls for the thumbor imaging
122
126
  service (http://github.com/globocom/thumbor) for Ruby and Rails projects.
123
127
  test_files: