-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Copy Rails config to Ruby * Update gem links * Config for better documentation * Make specs pass with any ENV values * Update the Changelog
- Loading branch information
Showing
8 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--readme README.md | ||
--title 'Uploadcare Rails API Documentation' | ||
--charset utf-8 | ||
--markup markdown | ||
'lib/**/*.rb' - '*.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module Uploadcare | ||
module Rails | ||
VERSION = '3.3.1' | ||
VERSION = '3.3.2' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'uploadcare-rails' | ||
|
||
RSpec.describe Uploadcare::Rails do | ||
it 'has a version number' do | ||
expect(Uploadcare::Rails::VERSION).not_to be nil | ||
end | ||
|
||
it 'overwrites ruby config' do | ||
Uploadcare::Rails.configure do |config| | ||
config.public_key = 'rails_public_key' | ||
config.secret_key = 'rails_secret_key' | ||
end | ||
|
||
expect(Uploadcare.config.public_key).to eq 'rails_public_key' | ||
expect(Uploadcare.config.secret_key).to eq 'rails_secret_key' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters