copy 0.0.4 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ source 'http://rubygems.org'
2
+
1
3
  gem 'copy'
2
4
 
3
5
  # Using mongodb for storage? Uncomment these:
@@ -16,8 +16,8 @@ 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_username, ENV['COPY_USERNAME']
20
- # set :admin_password, ENV['COPY_PASSWORD']
19
+ # set :copy_username, ENV['COPY_USERNAME']
20
+ # set :copy_password, ENV['COPY_PASSWORD']
21
21
 
22
22
  # Enter the URL to your data store.
23
23
  # "redis://", "mongodb://", "mysql://", "postgres://", and "sqlite://" are supported.
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_username) && settings.respond_to?(:admin_password)
20
+ return false unless settings.respond_to?(:copy_username) && settings.respond_to?(:copy_password)
21
21
  @auth ||= Rack::Auth::Basic::Request.new(request.env)
22
- @auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [settings.admin_username, settings.admin_password]
22
+ @auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [settings.copy_username, settings.copy_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.4'
2
+ VERSION = '0.0.41'
3
3
  end
data/test/test_helper.rb CHANGED
@@ -37,8 +37,8 @@ module CopyAppSetup
37
37
 
38
38
  def setup_auth(user, pass)
39
39
  app.config do
40
- set :admin_username, user
41
- set :admin_password, pass
40
+ set :copy_username, user
41
+ set :copy_password, pass
42
42
  end
43
43
  end
44
44
 
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: 23
4
+ hash: 77
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 41
10
+ version: 0.0.41
11
11
  platform: ruby
12
12
  authors:
13
13
  - Javan Makhmali