copy 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ Copy::Server.config do
16
16
  # to use or set them as environment variables.
17
17
  # Heroku friendly: http://devcenter.heroku.com/articles/config-vars
18
18
  #
19
- # set :admin_user, ENV['COPY_USER']
19
+ # set :admin_username, ENV['COPY_USERNAME']
20
20
  # set :admin_password, ENV['COPY_PASSWORD']
21
21
 
22
22
  # Enter the URL to your data store.
data/lib/copy/server.rb CHANGED
@@ -17,9 +17,9 @@ module Copy
17
17
  end
18
18
 
19
19
  def authorized?
20
- return false unless settings.respond_to?(:admin_user) && settings.respond_to?(:admin_password)
20
+ return false unless settings.respond_to?(:admin_username) && settings.respond_to?(:admin_password)
21
21
  @auth ||= Rack::Auth::Basic::Request.new(request.env)
22
- @auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [settings.admin_user, settings.admin_password]
22
+ @auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [settings.admin_username, settings.admin_password]
23
23
  end
24
24
 
25
25
  def set_cache_control_header
data/lib/copy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Copy
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/test/test_helper.rb CHANGED
@@ -37,7 +37,7 @@ module CopyAppSetup
37
37
 
38
38
  def setup_auth(user, pass)
39
39
  app.config do
40
- set :admin_user, user
40
+ set :admin_username, user
41
41
  set :admin_password, pass
42
42
  end
43
43
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Javan Makhmali