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 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 [user] [token]
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 => true
7
- argument :secret, :desc => "Secret from http://www.raydash.com", :required => true
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
@@ -1,3 +1,3 @@
1
1
  module Raydash
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/raydash.rb CHANGED
@@ -4,7 +4,8 @@ require 'json'
4
4
  module Raydash
5
5
  RAYDASH_HTTP_SERVER = "api.raydash.com"
6
6
  RAYDASH_HTTP_PORT = 8080
7
-
7
+ @@userid = ENV['RAYDASH_USERID']
8
+ @@secret = ENV['RAYDASH_SECRET']
8
9
  mattr_accessor :userid
9
10
  mattr_accessor :secret
10
11
 
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: 19
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
8
+ - 4
9
9
  - 0
10
- version: 0.3.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-12 23:00:00 -06:00
18
+ date: 2011-03-15 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency