clearance 1.12.0 → 1.12.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of clearance might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f19deed642e596906454bdc24af4a8a130f0da6
4
- data.tar.gz: f0424abac9bb5dfd7a5fca4bca85896ab639931c
3
+ metadata.gz: 625a226d7fafddee52dd57e85023dd92035f7093
4
+ data.tar.gz: e28717fbeb6a97e8d6dde485ca67fb4d2f0aeabd
5
5
  SHA512:
6
- metadata.gz: 3fc54c3cc46fbecb48a627487c34047c3212e85f3831f4db9589c5d1c6da793d217b9cbda2f4fae71a0db37baf3bc5cd7203b11b7b34c9d69cfb1eb4fbac6bda
7
- data.tar.gz: 887f7bf44074ef55c242c90c537c0855e5ef5790c88fece43c2067cd89007f76ab3dbf1c56b108961086605823b0c2345079158f131f66027f144cbee614ca47
6
+ metadata.gz: 2984d34843ad635be7463a123448bf002d46a40b34ac0a60c83d5e04da9b068be57aa3ddb4552bf468204fdf0390a23c2896995135efa2bbf692a95b7745917d
7
+ data.tar.gz: 59b82d503fbe6b139b22992751a14ac2c62d5817df8ddddb319499ebd912a7dec7072ef818c675bf0b8a21c40250192774068f8429f37092109af1f6ec4d93b5
@@ -6,14 +6,34 @@ language:
6
6
  rvm:
7
7
  - 1.9.3
8
8
  - 2.0.0
9
- - 2.1.7
10
- - 2.2.3
9
+ - 2.1.8
10
+ - 2.2.4
11
+ - 2.3.0
11
12
 
12
- install:
13
- - "travis_retry bin/setup"
13
+ gemfile:
14
+ - gemfiles/rails32.gemfile
15
+ - gemfiles/rails40.gemfile
16
+ - gemfiles/rails41.gemfile
17
+ - gemfiles/rails42.gemfile
18
+ - gemfiles/rails50.gemfile
19
+
20
+ matrix:
21
+ allow_failures:
22
+ - gemfile: gemfiles/rails50.gemfile
23
+ exclude:
24
+ - rvm: 1.9.3
25
+ gemfile: gemfiles/rails50.gemfile
26
+ - rvm: 2.0.0
27
+ gemfile: gemfiles/rails50.gemfile
28
+ - rvm: 2.1.8
29
+ gemfile: gemfiles/rails50.gemfile
30
+ - rvm: 2.2.4
31
+ gemfile: gemfiles/rails32.gemfile
32
+ - rvm: 2.3.0
33
+ gemfile: gemfiles/rails32.gemfile
14
34
 
15
- script:
16
- - "bundle exec appraisal rake"
35
+ install:
36
+ - "bin/setup"
17
37
 
18
38
  branches:
19
39
  only:
data/Appraisals CHANGED
@@ -1,18 +1,30 @@
1
1
  if RUBY_VERSION < "2.2.0"
2
- appraise 'rails3.2' do
2
+ appraise 'rails32' do
3
3
  gem 'rails', '~> 3.2.21'
4
4
  end
5
5
  end
6
6
 
7
- appraise 'rails4.0' do
7
+ appraise 'rails40' do
8
8
  gem 'rails', '~> 4.0.13'
9
9
  gem 'test-unit'
10
10
  end
11
11
 
12
- appraise 'rails4.1' do
12
+ appraise 'rails41' do
13
13
  gem 'rails', '~> 4.1.9'
14
14
  end
15
15
 
16
- appraise 'rails4.2' do
16
+ appraise 'rails42' do
17
17
  gem 'rails', '~> 4.2.0'
18
18
  end
19
+
20
+ if RUBY_VERSION >= "2.2.0"
21
+ appraise "rails50" do
22
+ gem "rails", "~> 5.0.0.beta1"
23
+ gem "rspec-rails", github: "rspec/rspec-rails"
24
+ gem "rspec-support", github: "rspec/rspec-support"
25
+ gem "rspec-core", github: "rspec/rspec-core"
26
+ gem "rspec-mocks", github: "rspec/rspec-mocks"
27
+ gem "rspec-expectations", github: "rspec/rspec-expectations"
28
+ gem "rspec", github: "rspec/rspec"
29
+ end
30
+ end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clearance (1.12.0)
4
+ clearance (1.12.1)
5
5
  bcrypt
6
6
  email_validator (~> 1.4)
7
7
  rails (>= 3.1)
@@ -62,6 +62,7 @@ GEM
62
62
  rack-test (>= 0.5.4)
63
63
  xpath (~> 2.0)
64
64
  coderay (1.1.0)
65
+ concurrent-ruby (1.0.0)
65
66
  database_cleaner (1.5.1)
66
67
  diff-lcs (1.2.5)
67
68
  email_validator (1.6.0)
@@ -81,11 +82,11 @@ GEM
81
82
  mail (2.6.3)
82
83
  mime-types (>= 1.16, < 3)
83
84
  method_source (0.8.2)
84
- mime-types (2.6.2)
85
- mini_portile (0.6.2)
85
+ mime-types (2.99)
86
+ mini_portile2 (2.0.0)
86
87
  minitest (5.8.3)
87
- nokogiri (1.6.6.3)
88
- mini_portile (~> 0.6.0)
88
+ nokogiri (1.6.7.1)
89
+ mini_portile2 (~> 2.0.0.rc2)
89
90
  pry (0.10.3)
90
91
  coderay (~> 1.1.0)
91
92
  method_source (~> 0.8.1)
@@ -118,7 +119,7 @@ GEM
118
119
  rake (>= 0.8.7)
119
120
  thor (>= 0.18.1, < 2.0)
120
121
  rake (10.4.2)
121
- rspec-core (3.4.0)
122
+ rspec-core (3.4.1)
122
123
  rspec-support (~> 3.4.0)
123
124
  rspec-expectations (3.4.0)
124
125
  diff-lcs (>= 1.2.0, < 2.0)
@@ -134,16 +135,17 @@ GEM
134
135
  rspec-expectations (~> 3.4.0)
135
136
  rspec-mocks (~> 3.4.0)
136
137
  rspec-support (~> 3.4.0)
137
- rspec-support (3.4.0)
138
+ rspec-support (3.4.1)
138
139
  shoulda-matchers (2.8.0)
139
140
  activesupport (>= 3.0.0)
140
141
  slop (3.6.0)
141
- sprockets (3.4.0)
142
+ sprockets (3.5.2)
143
+ concurrent-ruby (~> 1.0)
142
144
  rack (> 1, < 3)
143
- sprockets-rails (2.3.3)
144
- actionpack (>= 3.0)
145
- activesupport (>= 3.0)
146
- sprockets (>= 2.8, < 4.0)
145
+ sprockets-rails (3.0.0)
146
+ actionpack (>= 4.0)
147
+ activesupport (>= 4.0)
148
+ sprockets (>= 3.0.0)
147
149
  sqlite3 (1.3.11)
148
150
  thor (0.19.1)
149
151
  thread_safe (0.3.5)
data/NEWS.md CHANGED
@@ -3,6 +3,12 @@
3
3
  The noteworthy changes for each Clearance version are included here. For a
4
4
  complete changelog, see the git history for each version via the version links.
5
5
 
6
+ ## [1.12.1] - January 7, 2016
7
+
8
+ ### Fixed
9
+ - Fixed the `create_users` migration generated by `rails generate
10
+ clearance:install` under Rails 3.x.
11
+
6
12
  ## [1.12.0] - November 17, 2015
7
13
 
8
14
  ### Added
@@ -242,7 +248,6 @@ complete changelog, see the git history for each version via the version links.
242
248
 
243
249
  [1.1.0]: https://github.com/thoughtbot/clearance/compare/v1.0.1...v1.1.0
244
250
 
245
-
246
251
  ## [1.0.1] - August 9, 2013
247
252
 
248
253
  ### Fixed
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Build Status](https://secure.travis-ci.org/thoughtbot/clearance.svg)](http://travis-ci.org/thoughtbot/clearance?branch=master)
4
4
  [![Code Climate](https://codeclimate.com/github/thoughtbot/clearance.svg)](https://codeclimate.com/github/thoughtbot/clearance)
5
+ [![Documentation Quality](https://inch-ci.org/github/thoughtbot/clearance.svg?branch=master)](https://inch-ci.org/github/thoughtbot/clearance)
5
6
 
6
7
  Rails authentication with email & password.
7
8
 
@@ -228,7 +229,6 @@ translation.
228
229
  See [config/locales/clearance.en.yml](/config/locales/clearance.en.yml) for the
229
230
  default behavior.
230
231
 
231
-
232
232
  ### User Model
233
233
 
234
234
  See [lib/clearance/user.rb](/lib/clearance/user.rb) for the default behavior.
@@ -6,9 +6,8 @@ class ClearanceMailer < ActionMailer::Base
6
6
  to: @user.email,
7
7
  subject: I18n.t(
8
8
  :change_password,
9
- scope: [:clearance, :models, :clearance_mailer],
10
- default: "Change your password"
11
- )
9
+ scope: [:clearance, :models, :clearance_mailer]
10
+ ),
12
11
  )
13
12
  end
14
13
  end
data/bin/setup CHANGED
@@ -4,8 +4,12 @@ set -e
4
4
 
5
5
  # Install required gems, including Appraisal, which helps us test against
6
6
  # multiple Rails versions
7
- bundle install
8
- bundle exec appraisal install
7
+ gem install bundler --conservative
8
+ bundle check || bundle install
9
+
10
+ if [ -z "$CI" ]; then
11
+ bundle exec appraisal install
12
+ fi
9
13
 
10
14
  # Set up database for the application that Clearance tests against
11
15
  RAILS_ENV=test bundle exec rake dummy:db:reset
@@ -1,5 +1,9 @@
1
1
  ---
2
2
  en:
3
+ clearance:
4
+ models:
5
+ clearance_mailer:
6
+ change_password: Change your password
3
7
  clearance_mailer:
4
8
  change_password:
5
9
  closing: If you didn't request this, ignore this email. Your password has
@@ -0,0 +1,23 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", "~> 1.0"
6
+ gem "ammeter"
7
+ gem "bundler", "~> 1.3"
8
+ gem "capybara", ">= 2.3"
9
+ gem "database_cleaner", "~> 1.0"
10
+ gem "factory_girl_rails", "~> 4.2"
11
+ gem "rspec-rails", :github => "rspec/rspec-rails"
12
+ gem "shoulda-matchers", "~> 2.8"
13
+ gem "sqlite3", "~> 1.3"
14
+ gem "timecop", "~> 0.6"
15
+ gem "pry", :require => false
16
+ gem "rails", "~> 5.0.0.beta1"
17
+ gem "rspec-support", :github => "rspec/rspec-support"
18
+ gem "rspec-core", :github => "rspec/rspec-core"
19
+ gem "rspec-mocks", :github => "rspec/rspec-mocks"
20
+ gem "rspec-expectations", :github => "rspec/rspec-expectations"
21
+ gem "rspec", :github => "rspec/rspec"
22
+
23
+ gemspec :path => "../"
@@ -1,3 +1,3 @@
1
1
  module Clearance
2
- VERSION = "1.12.0"
2
+ VERSION = "1.12.1"
3
3
  end
@@ -24,7 +24,7 @@ class AddClearanceToUsers < ActiveRecord::Migration
24
24
  def self.down
25
25
  change_table :users do |t|
26
26
  <% if config[:new_columns].any? -%>
27
- t.remove <%= new_columns.keys.map { |column| ":#{column}" }.join(",") %>
27
+ t.remove <%= new_columns.keys.map { |column| ":#{column}" }.join(", ") %>
28
28
  <% end -%>
29
29
  end
30
30
  end
@@ -6,8 +6,9 @@ class CreateUsers < ActiveRecord::Migration
6
6
  t.string :encrypted_password, limit: 128, null: false
7
7
  t.string :confirmation_token, limit: 128
8
8
  t.string :remember_token, limit: 128, null: false
9
- t.index :email
10
- t.index :remember_token
11
9
  end
10
+
11
+ add_index :users, :email
12
+ add_index :users, :remember_token
12
13
  end
13
14
  end
@@ -10,6 +10,7 @@ describe "Clearance Installation" do
10
10
 
11
11
  it "can successfully run specs" do
12
12
  app_name = "testapp"
13
+
13
14
  generate_test_app(app_name)
14
15
 
15
16
  Dir.chdir(app_name) do
@@ -70,9 +71,7 @@ describe "Clearance Installation" do
70
71
  silencer = ""
71
72
  end
72
73
 
73
- return_value = Bundler.with_clean_env do
74
- system("#{command} #{silencer}")
75
- end
74
+ return_value = system("#{command} #{silencer}")
76
75
 
77
76
  expect(return_value).to eq true
78
77
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clearance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
@@ -25,7 +25,7 @@ authors:
25
25
  autorequire:
26
26
  bindir: bin
27
27
  cert_chain: []
28
- date: 2015-11-18 00:00:00.000000000 Z
28
+ date: 2016-01-08 00:00:00.000000000 Z
29
29
  dependencies:
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bcrypt
@@ -112,10 +112,11 @@ files:
112
112
  - config/routes.rb
113
113
  - db/migrate/20110111224543_create_clearance_users.rb
114
114
  - db/schema.rb
115
- - gemfiles/rails3.2.gemfile
116
- - gemfiles/rails4.0.gemfile
117
- - gemfiles/rails4.1.gemfile
118
- - gemfiles/rails4.2.gemfile
115
+ - gemfiles/rails32.gemfile
116
+ - gemfiles/rails40.gemfile
117
+ - gemfiles/rails41.gemfile
118
+ - gemfiles/rails42.gemfile
119
+ - gemfiles/rails50.gemfile
119
120
  - lib/clearance.rb
120
121
  - lib/clearance/authentication.rb
121
122
  - lib/clearance/authorization.rb