devise_password_sharing_extension 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +163 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +33 -0
- data/Rakefile +42 -0
- data/VERSION +1 -0
- data/app/models/login_event.rb +15 -0
- data/devise_password_sharing_extension.gemspec +166 -0
- data/lib/devise_password_sharing_extension.rb +20 -0
- data/lib/devise_password_sharing_extension/hooks/password_sharing.rb +12 -0
- data/lib/devise_password_sharing_extension/models/password_sharing.rb +51 -0
- data/lib/devise_password_sharing_extension/rails.rb +4 -0
- data/lib/devise_password_sharing_extension/schema.rb +9 -0
- data/lib/devise_password_sharing_extension/version.rb +3 -0
- data/lib/generators/active_record/devise_password_sharing_extension_generator.rb +14 -0
- data/lib/generators/active_record/templates/migration.rb +26 -0
- data/lib/generators/devise_password_sharing_extension/devise_password_sharing_extension_generator.rb +16 -0
- data/lib/generators/devise_password_sharing_extension/install_generator.rb +23 -0
- data/lib/generators/devise_password_sharing_extension/templates/white_listed_ips.yml +1 -0
- data/spec/models/login_event_spec.rb +10 -0
- data/spec/models/password_sharing_spec.rb +54 -0
- data/spec/orm/active_record.rb +3 -0
- data/spec/rails_app/.gitignore +5 -0
- data/spec/rails_app/app/assets/images/rails.png +0 -0
- data/spec/rails_app/app/assets/javascripts/application.js +9 -0
- data/spec/rails_app/app/assets/stylesheets/application.css +7 -0
- data/spec/rails_app/app/controllers/application_controller.rb +3 -0
- data/spec/rails_app/app/controllers/home_controller.rb +9 -0
- data/spec/rails_app/app/helpers/application_helper.rb +2 -0
- data/spec/rails_app/app/mailers/.gitkeep +0 -0
- data/spec/rails_app/app/models/user.rb +7 -0
- data/spec/rails_app/app/views/home/index.html.erb +1 -0
- data/spec/rails_app/app/views/home/secure.html.erb +1 -0
- data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/config/application.rb +19 -0
- data/spec/rails_app/config/boot.rb +6 -0
- data/spec/rails_app/config/database.yml +22 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/development.rb +30 -0
- data/spec/rails_app/config/environments/production.rb +60 -0
- data/spec/rails_app/config/environments/test.rb +39 -0
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_app/config/initializers/devise.rb +184 -0
- data/spec/rails_app/config/initializers/inflections.rb +10 -0
- data/spec/rails_app/config/initializers/mime_types.rb +5 -0
- data/spec/rails_app/config/initializers/secret_token.rb +7 -0
- data/spec/rails_app/config/initializers/session_store.rb +8 -0
- data/spec/rails_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/rails_app/config/locales/en.yml +5 -0
- data/spec/rails_app/config/mongoid.yml +12 -0
- data/spec/rails_app/config/routes.rb +5 -0
- data/spec/rails_app/config/white_listed_ips.yml +1 -0
- data/spec/rails_app/db/migrate/20111019173200_create_tables.rb +29 -0
- data/spec/rails_app/db/seeds.rb +7 -0
- data/spec/rails_app/script/rails +6 -0
- data/spec/request_spec.rb +49 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/support/fixtures.rb +32 -0
- metadata +361 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :development do
|
6
|
+
gem "sqlite3"
|
7
|
+
gem "mongoid", "~> 2.0"
|
8
|
+
gem "bson_ext", "~> 1.3"
|
9
|
+
gem "rake", "0.8.7"
|
10
|
+
gem "rspec", "~> 2.3.0"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.6.4"
|
13
|
+
gem "rcov", ">= 0"
|
14
|
+
gem "shoulda", "~> 2.11.3"
|
15
|
+
gem "capybara", "~> 1.1.1"
|
16
|
+
gem "launchy"
|
17
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
devise_password_sharing_extension (0.0.1)
|
5
|
+
devise (~> 1.4.1)
|
6
|
+
geoip (~> 1.1.1)
|
7
|
+
rails (>= 3.0.0, < 3.2)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: http://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actionmailer (3.1.1)
|
13
|
+
actionpack (= 3.1.1)
|
14
|
+
mail (~> 2.3.0)
|
15
|
+
actionpack (3.1.1)
|
16
|
+
activemodel (= 3.1.1)
|
17
|
+
activesupport (= 3.1.1)
|
18
|
+
builder (~> 3.0.0)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
i18n (~> 0.6)
|
21
|
+
rack (~> 1.3.2)
|
22
|
+
rack-cache (~> 1.1)
|
23
|
+
rack-mount (~> 0.8.2)
|
24
|
+
rack-test (~> 0.6.1)
|
25
|
+
sprockets (~> 2.0.2)
|
26
|
+
activemodel (3.1.1)
|
27
|
+
activesupport (= 3.1.1)
|
28
|
+
builder (~> 3.0.0)
|
29
|
+
i18n (~> 0.6)
|
30
|
+
activerecord (3.1.1)
|
31
|
+
activemodel (= 3.1.1)
|
32
|
+
activesupport (= 3.1.1)
|
33
|
+
arel (~> 2.2.1)
|
34
|
+
tzinfo (~> 0.3.29)
|
35
|
+
activeresource (3.1.1)
|
36
|
+
activemodel (= 3.1.1)
|
37
|
+
activesupport (= 3.1.1)
|
38
|
+
activesupport (3.1.1)
|
39
|
+
multi_json (~> 1.0)
|
40
|
+
addressable (2.2.6)
|
41
|
+
arel (2.2.1)
|
42
|
+
bcrypt-ruby (3.0.1)
|
43
|
+
bson (1.4.1)
|
44
|
+
bson_ext (1.4.1)
|
45
|
+
builder (3.0.0)
|
46
|
+
capybara (1.1.1)
|
47
|
+
mime-types (>= 1.16)
|
48
|
+
nokogiri (>= 1.3.3)
|
49
|
+
rack (>= 1.0.0)
|
50
|
+
rack-test (>= 0.5.4)
|
51
|
+
selenium-webdriver (~> 2.0)
|
52
|
+
xpath (~> 0.1.4)
|
53
|
+
childprocess (0.2.2)
|
54
|
+
ffi (~> 1.0.6)
|
55
|
+
devise (1.4.8)
|
56
|
+
bcrypt-ruby (~> 3.0)
|
57
|
+
orm_adapter (~> 0.0.3)
|
58
|
+
warden (~> 1.0.3)
|
59
|
+
diff-lcs (1.1.3)
|
60
|
+
erubis (2.7.0)
|
61
|
+
ffi (1.0.9)
|
62
|
+
geoip (1.1.1)
|
63
|
+
git (1.2.5)
|
64
|
+
hike (1.2.1)
|
65
|
+
i18n (0.6.0)
|
66
|
+
jeweler (1.6.4)
|
67
|
+
bundler (~> 1.0)
|
68
|
+
git (>= 1.2.5)
|
69
|
+
rake
|
70
|
+
json (1.6.1)
|
71
|
+
json_pure (1.6.1)
|
72
|
+
launchy (2.0.5)
|
73
|
+
addressable (~> 2.2.6)
|
74
|
+
mail (2.3.0)
|
75
|
+
i18n (>= 0.4.0)
|
76
|
+
mime-types (~> 1.16)
|
77
|
+
treetop (~> 1.4.8)
|
78
|
+
mime-types (1.16)
|
79
|
+
mongo (1.4.1)
|
80
|
+
bson (= 1.4.1)
|
81
|
+
mongoid (2.3.2)
|
82
|
+
activemodel (~> 3.1)
|
83
|
+
mongo (~> 1.4)
|
84
|
+
tzinfo (~> 0.3.22)
|
85
|
+
multi_json (1.0.3)
|
86
|
+
nokogiri (1.5.0)
|
87
|
+
orm_adapter (0.0.5)
|
88
|
+
polyglot (0.3.2)
|
89
|
+
rack (1.3.5)
|
90
|
+
rack-cache (1.1)
|
91
|
+
rack (>= 0.4)
|
92
|
+
rack-mount (0.8.3)
|
93
|
+
rack (>= 1.0.0)
|
94
|
+
rack-ssl (1.3.2)
|
95
|
+
rack
|
96
|
+
rack-test (0.6.1)
|
97
|
+
rack (>= 1.0)
|
98
|
+
rails (3.1.1)
|
99
|
+
actionmailer (= 3.1.1)
|
100
|
+
actionpack (= 3.1.1)
|
101
|
+
activerecord (= 3.1.1)
|
102
|
+
activeresource (= 3.1.1)
|
103
|
+
activesupport (= 3.1.1)
|
104
|
+
bundler (~> 1.0)
|
105
|
+
railties (= 3.1.1)
|
106
|
+
railties (3.1.1)
|
107
|
+
actionpack (= 3.1.1)
|
108
|
+
activesupport (= 3.1.1)
|
109
|
+
rack-ssl (~> 1.3.2)
|
110
|
+
rake (>= 0.8.7)
|
111
|
+
rdoc (~> 3.4)
|
112
|
+
thor (~> 0.14.6)
|
113
|
+
rake (0.8.7)
|
114
|
+
rcov (0.9.11)
|
115
|
+
rdoc (3.11)
|
116
|
+
json (~> 1.4)
|
117
|
+
rspec (2.3.0)
|
118
|
+
rspec-core (~> 2.3.0)
|
119
|
+
rspec-expectations (~> 2.3.0)
|
120
|
+
rspec-mocks (~> 2.3.0)
|
121
|
+
rspec-core (2.3.1)
|
122
|
+
rspec-expectations (2.3.0)
|
123
|
+
diff-lcs (~> 1.1.2)
|
124
|
+
rspec-mocks (2.3.0)
|
125
|
+
rubyzip (0.9.4)
|
126
|
+
selenium-webdriver (2.8.0)
|
127
|
+
childprocess (>= 0.2.1)
|
128
|
+
ffi (>= 1.0.7)
|
129
|
+
json_pure
|
130
|
+
rubyzip
|
131
|
+
shoulda (2.11.3)
|
132
|
+
sprockets (2.0.3)
|
133
|
+
hike (~> 1.2)
|
134
|
+
rack (~> 1.0)
|
135
|
+
tilt (~> 1.1, != 1.3.0)
|
136
|
+
sqlite3 (1.3.4)
|
137
|
+
thor (0.14.6)
|
138
|
+
tilt (1.3.3)
|
139
|
+
treetop (1.4.10)
|
140
|
+
polyglot
|
141
|
+
polyglot (>= 0.3.1)
|
142
|
+
tzinfo (0.3.30)
|
143
|
+
warden (1.0.6)
|
144
|
+
rack (>= 1.0)
|
145
|
+
xpath (0.1.4)
|
146
|
+
nokogiri (~> 1.3)
|
147
|
+
|
148
|
+
PLATFORMS
|
149
|
+
ruby
|
150
|
+
|
151
|
+
DEPENDENCIES
|
152
|
+
bson_ext (~> 1.3)
|
153
|
+
bundler (~> 1.0.0)
|
154
|
+
capybara (~> 1.1.1)
|
155
|
+
devise_password_sharing_extension!
|
156
|
+
jeweler (~> 1.6.4)
|
157
|
+
launchy
|
158
|
+
mongoid (~> 2.0)
|
159
|
+
rake (= 0.8.7)
|
160
|
+
rcov
|
161
|
+
rspec (~> 2.3.0)
|
162
|
+
shoulda (~> 2.11.3)
|
163
|
+
sqlite3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Russ Smith
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
= devise_password_sharing_extension
|
2
|
+
|
3
|
+
script/rails g devise_password_sharing_extension:install
|
4
|
+
script/rails g devise_password_sharing_extension User
|
5
|
+
|
6
|
+
White listed ip addresses are listed in:
|
7
|
+
|
8
|
+
config/white_listed_ips.yml
|
9
|
+
|
10
|
+
Config is in the devise initializer:
|
11
|
+
|
12
|
+
enable_banning # Log login events but do not ban users.
|
13
|
+
geoip_database # GeoIP databse. Still looking for a sample database.
|
14
|
+
time_frame # The amount of time a password is allowed to be shared.
|
15
|
+
number_of_cities # Number of cities a password is allowed to be used in.
|
16
|
+
|
17
|
+
General logic is that when a user logs in over X number of cities in Y number of hours, the user gets a ban.
|
18
|
+
|
19
|
+
== Contributing to devise_password_sharing_extension
|
20
|
+
|
21
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
22
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
23
|
+
* Fork the project
|
24
|
+
* Start a feature/bugfix branch
|
25
|
+
* Commit and push until you are happy with your contribution
|
26
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
27
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
28
|
+
|
29
|
+
== Copyright
|
30
|
+
|
31
|
+
Copyright (c) 2011 Russ Smith. See LICENSE.txt for
|
32
|
+
further details.
|
33
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rake'
|
4
|
+
require 'bundler'
|
5
|
+
Bundler::GemHelper.install_tasks
|
6
|
+
|
7
|
+
require 'jeweler'
|
8
|
+
Jeweler::Tasks.new do |gem|
|
9
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
10
|
+
gem.name = "devise_password_sharing_extension"
|
11
|
+
gem.homepage = "http://github.com/russ/devise_password_sharing_extension"
|
12
|
+
gem.license = "MIT"
|
13
|
+
gem.summary = %Q{Devise extension to curb password sharing.}
|
14
|
+
gem.description = %Q{Devise extension to curb password sharing.}
|
15
|
+
gem.email = "russ@bashme.org"
|
16
|
+
gem.authors = ["Russ Smith"]
|
17
|
+
# dependencies defined in Gemfile
|
18
|
+
end
|
19
|
+
Jeweler::RubygemsDotOrgTasks.new
|
20
|
+
|
21
|
+
require 'rspec/core'
|
22
|
+
require 'rspec/core/rake_task'
|
23
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
24
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
25
|
+
end
|
26
|
+
|
27
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
28
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
29
|
+
spec.rcov = true
|
30
|
+
end
|
31
|
+
|
32
|
+
task :default => :spec
|
33
|
+
|
34
|
+
require 'rdoc/task'
|
35
|
+
Rake::RDocTask.new do |rdoc|
|
36
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
37
|
+
|
38
|
+
rdoc.rdoc_dir = 'rdoc'
|
39
|
+
rdoc.title = "devise_password_sharing_extension #{version}"
|
40
|
+
rdoc.rdoc_files.include('README*')
|
41
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
42
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class LoginEvent < ActiveRecord::Base
|
2
|
+
set_table_name 'login_events'
|
3
|
+
|
4
|
+
validates_presence_of :ip_address, :latitude, :longitude
|
5
|
+
validates_presence_of :city, :country_code, :region_name
|
6
|
+
|
7
|
+
attr_accessible :ip_address, :latitude, :longitude
|
8
|
+
attr_accessible :city, :country_code, :region_name
|
9
|
+
|
10
|
+
def self.grouped_by_city(time_frame = 1.hour)
|
11
|
+
select('COUNT(*) AS count, login_events.city').
|
12
|
+
where('login_events.created_at >= ?', Time.now - time_frame).
|
13
|
+
group('login_events.city')
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,166 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "devise_password_sharing_extension"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Russ Smith"]
|
12
|
+
s.date = "2011-10-25"
|
13
|
+
s.description = "Devise extension to curb password sharing."
|
14
|
+
s.email = "russ@bashme.org"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"app/models/login_event.rb",
|
29
|
+
"devise_password_sharing_extension.gemspec",
|
30
|
+
"lib/devise_password_sharing_extension.rb",
|
31
|
+
"lib/devise_password_sharing_extension/hooks/password_sharing.rb",
|
32
|
+
"lib/devise_password_sharing_extension/models/password_sharing.rb",
|
33
|
+
"lib/devise_password_sharing_extension/rails.rb",
|
34
|
+
"lib/devise_password_sharing_extension/schema.rb",
|
35
|
+
"lib/devise_password_sharing_extension/version.rb",
|
36
|
+
"lib/generators/active_record/devise_password_sharing_extension_generator.rb",
|
37
|
+
"lib/generators/active_record/templates/migration.rb",
|
38
|
+
"lib/generators/devise_password_sharing_extension/devise_password_sharing_extension_generator.rb",
|
39
|
+
"lib/generators/devise_password_sharing_extension/install_generator.rb",
|
40
|
+
"lib/generators/devise_password_sharing_extension/templates/white_listed_ips.yml",
|
41
|
+
"spec/models/login_event_spec.rb",
|
42
|
+
"spec/models/password_sharing_spec.rb",
|
43
|
+
"spec/orm/active_record.rb",
|
44
|
+
"spec/rails_app/.gitignore",
|
45
|
+
"spec/rails_app/app/assets/images/rails.png",
|
46
|
+
"spec/rails_app/app/assets/javascripts/application.js",
|
47
|
+
"spec/rails_app/app/assets/stylesheets/application.css",
|
48
|
+
"spec/rails_app/app/controllers/application_controller.rb",
|
49
|
+
"spec/rails_app/app/controllers/home_controller.rb",
|
50
|
+
"spec/rails_app/app/helpers/application_helper.rb",
|
51
|
+
"spec/rails_app/app/mailers/.gitkeep",
|
52
|
+
"spec/rails_app/app/models/user.rb",
|
53
|
+
"spec/rails_app/app/views/home/index.html.erb",
|
54
|
+
"spec/rails_app/app/views/home/secure.html.erb",
|
55
|
+
"spec/rails_app/app/views/layouts/application.html.erb",
|
56
|
+
"spec/rails_app/config.ru",
|
57
|
+
"spec/rails_app/config/application.rb",
|
58
|
+
"spec/rails_app/config/boot.rb",
|
59
|
+
"spec/rails_app/config/database.yml",
|
60
|
+
"spec/rails_app/config/environment.rb",
|
61
|
+
"spec/rails_app/config/environments/development.rb",
|
62
|
+
"spec/rails_app/config/environments/production.rb",
|
63
|
+
"spec/rails_app/config/environments/test.rb",
|
64
|
+
"spec/rails_app/config/initializers/backtrace_silencers.rb",
|
65
|
+
"spec/rails_app/config/initializers/devise.rb",
|
66
|
+
"spec/rails_app/config/initializers/inflections.rb",
|
67
|
+
"spec/rails_app/config/initializers/mime_types.rb",
|
68
|
+
"spec/rails_app/config/initializers/secret_token.rb",
|
69
|
+
"spec/rails_app/config/initializers/session_store.rb",
|
70
|
+
"spec/rails_app/config/initializers/wrap_parameters.rb",
|
71
|
+
"spec/rails_app/config/locales/en.yml",
|
72
|
+
"spec/rails_app/config/mongoid.yml",
|
73
|
+
"spec/rails_app/config/routes.rb",
|
74
|
+
"spec/rails_app/config/white_listed_ips.yml",
|
75
|
+
"spec/rails_app/db/migrate/20111019173200_create_tables.rb",
|
76
|
+
"spec/rails_app/db/seeds.rb",
|
77
|
+
"spec/rails_app/script/rails",
|
78
|
+
"spec/request_spec.rb",
|
79
|
+
"spec/spec_helper.rb",
|
80
|
+
"spec/support/fixtures.rb"
|
81
|
+
]
|
82
|
+
s.homepage = "http://github.com/russ/devise_password_sharing_extension"
|
83
|
+
s.licenses = ["MIT"]
|
84
|
+
s.require_paths = ["lib"]
|
85
|
+
s.rubygems_version = "1.8.10"
|
86
|
+
s.summary = "Devise extension to curb password sharing."
|
87
|
+
|
88
|
+
if s.respond_to? :specification_version then
|
89
|
+
s.specification_version = 3
|
90
|
+
|
91
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
92
|
+
s.add_runtime_dependency(%q<devise_password_sharing_extension>, [">= 0"])
|
93
|
+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
94
|
+
s.add_development_dependency(%q<mongoid>, ["~> 2.0"])
|
95
|
+
s.add_development_dependency(%q<bson_ext>, ["~> 1.3"])
|
96
|
+
s.add_development_dependency(%q<rake>, ["= 0.8.7"])
|
97
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
98
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
99
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
100
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
101
|
+
s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
|
102
|
+
s.add_development_dependency(%q<capybara>, ["~> 1.1.1"])
|
103
|
+
s.add_development_dependency(%q<launchy>, [">= 0"])
|
104
|
+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
105
|
+
s.add_development_dependency(%q<mongoid>, ["~> 2.0"])
|
106
|
+
s.add_development_dependency(%q<bson_ext>, ["~> 1.3"])
|
107
|
+
s.add_development_dependency(%q<rake>, ["= 0.8.7"])
|
108
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
109
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
110
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
111
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
112
|
+
s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
|
113
|
+
s.add_development_dependency(%q<capybara>, ["~> 1.1.1"])
|
114
|
+
s.add_development_dependency(%q<launchy>, [">= 0"])
|
115
|
+
else
|
116
|
+
s.add_dependency(%q<devise_password_sharing_extension>, [">= 0"])
|
117
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
118
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0"])
|
119
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3"])
|
120
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
121
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
122
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
123
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
124
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
125
|
+
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
126
|
+
s.add_dependency(%q<capybara>, ["~> 1.1.1"])
|
127
|
+
s.add_dependency(%q<launchy>, [">= 0"])
|
128
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
129
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0"])
|
130
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3"])
|
131
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
132
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
133
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
134
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
135
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
136
|
+
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
137
|
+
s.add_dependency(%q<capybara>, ["~> 1.1.1"])
|
138
|
+
s.add_dependency(%q<launchy>, [">= 0"])
|
139
|
+
end
|
140
|
+
else
|
141
|
+
s.add_dependency(%q<devise_password_sharing_extension>, [">= 0"])
|
142
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
143
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0"])
|
144
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3"])
|
145
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
146
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
147
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
148
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
149
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
150
|
+
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
151
|
+
s.add_dependency(%q<capybara>, ["~> 1.1.1"])
|
152
|
+
s.add_dependency(%q<launchy>, [">= 0"])
|
153
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
154
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0"])
|
155
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3"])
|
156
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
157
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
158
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
159
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
160
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
161
|
+
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
162
|
+
s.add_dependency(%q<capybara>, ["~> 1.1.1"])
|
163
|
+
s.add_dependency(%q<launchy>, [">= 0"])
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|