entrance 0.2.2 → 0.2.3

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.
data/entrance.gemspec CHANGED
@@ -15,7 +15,6 @@ Gem::Specification.new do |s|
15
15
  s.rubyforge_project = "entrance"
16
16
 
17
17
  s.add_runtime_dependency "bcrypt", "~> 3.0"
18
- s.add_runtime_dependency "activesupport", ">= 3.0"
19
18
 
20
19
  s.files = `git ls-files`.split("\n")
21
20
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
@@ -1,11 +1,10 @@
1
- require 'digest/sha1'
2
- require 'bcrypt'
3
1
 
4
2
  module Entrance
5
3
 
6
4
  module Ciphers
7
5
 
8
6
  module SHA1
7
+ require 'digest/sha1'
9
8
 
10
9
  JOIN_STRING = '--'
11
10
 
@@ -29,6 +28,7 @@ module Entrance
29
28
  end
30
29
 
31
30
  module BCrypt
31
+ require 'bcrypt'
32
32
 
33
33
  # https://github.com/codahale/bcrypt-ruby
34
34
  def self.match?(stored, given, salt = nil)
@@ -1,7 +1,7 @@
1
1
  module Entrance
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- PATCH = 2
4
+ PATCH = 3
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
data/lib/entrance.rb CHANGED
@@ -2,6 +2,7 @@ require 'entrance/controller'
2
2
  require 'entrance/model'
3
3
  require 'entrance/ciphers'
4
4
  require 'entrance/config'
5
+ require 'digest/sha1'
5
6
 
6
7
  module Entrance
7
8
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Tom\xC3\xA1s Pollak"
@@ -30,19 +30,6 @@ dependencies:
30
30
  version: "3.0"
31
31
  type: :runtime
32
32
  version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: activesupport
35
- prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 3
42
- - 0
43
- version: "3.0"
44
- type: :runtime
45
- version_requirements: *id002
46
33
  description: Doesn't fiddle with your controllers and routes.
47
34
  email:
48
35
  - tomas@forkhq.com