raydash 0.3.0 → 0.4.0
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/Readme +5 -1
- data/lib/generators/raydash/install_generator.rb +2 -2
- data/lib/raydash/version.rb +1 -1
- data/lib/raydash.rb +2 -1
- metadata +4 -4
data/Readme
CHANGED
@@ -11,7 +11,11 @@ Rails applications. You will need a userid and secret to access Raydash's server
|
|
11
11
|
|
12
12
|
2) Configure your project your userid and secret with the following command:
|
13
13
|
|
14
|
-
rails g raydash:install [
|
14
|
+
rails g raydash:install [userid] [secret]
|
15
|
+
|
16
|
+
If you set the environment variables RAYDASH_USERID and RAYDASH_SECRET or use the Heroku plugin you can just call:
|
17
|
+
|
18
|
+
rails g raydash:install
|
15
19
|
|
16
20
|
This will generate the required configuration files to use Raydash
|
17
21
|
|
@@ -3,8 +3,8 @@ module Raydash
|
|
3
3
|
class InstallGenerator < Rails::Generators::Base
|
4
4
|
desc "This generator install necessary files and configures your application for Raydash. Syntax: 'rails g raydash:install [userid] [secret]'. The userid and secret can be obtained from http://www.raydash.com."
|
5
5
|
source_root File.expand_path("../../templates", __FILE__)
|
6
|
-
argument :userid, :desc => "Userid from http://www.raydash.com", :required =>
|
7
|
-
argument :secret, :desc => "Secret from http://www.raydash.com", :required =>
|
6
|
+
argument :userid, :desc => "Userid from http://www.raydash.com", :required => (ENV['RAYDASH_USERID']==nil), :default => ENV['RAYDASH_USERID']
|
7
|
+
argument :secret, :desc => "Secret from http://www.raydash.com", :required => (ENV['RAYDASH_SECRET']==nil), :default => ENV['RAYDASH_SECRET']
|
8
8
|
def copy_initializer
|
9
9
|
template "raydash.rb", "config/initializers/raydash.rb"
|
10
10
|
end
|
data/lib/raydash/version.rb
CHANGED
data/lib/raydash.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raydash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gershon Bialer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-15 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|