raydash 0.0.3 → 0.0.4

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.
@@ -9,7 +9,7 @@ module Raydash
9
9
  desc "Generate a model for working with video tokens"
10
10
  source_root File.expand_path("../../templates", __FILE__)
11
11
  def manifest
12
- @custom_name=custom_file_name
12
+ @custom_name= custom_name
13
13
  @class_name = class_name.capitalize
14
14
  migration_template 'migration.rb', "db/migrate/#{custom_file_name}", {:assigns => raydash_local_assigns(),
15
15
  :migration_file_name => 'create_raydash_table_#{custom_file_name}'
@@ -27,6 +27,7 @@ module Raydash
27
27
  def custom_name
28
28
  custom_name = class_name.underscore.downcase
29
29
  custom_name = custom_name.pluralize if ActiveRecord::Base.pluralize_table_names
30
+ return(custom_name)
30
31
  end
31
32
  def self.next_migration_number(dirname)
32
33
  if ActiveRecord::Base.timestamped_migrations
@@ -1 +1 @@
1
- Raydash has been installed into your application. If you run 'rails g raydash:model' and 'rails g raydash:controller [controllername]', you can create a sample configuration for using Raydash within your rails application.
1
+ Raydash has been installed into your application. If you run 'rails g raydash:model', you can create a model for tracking Raydash video streams in your application
@@ -1,11 +1,11 @@
1
1
  class <%= @class_name %> < ActiveRecord::Migration
2
2
  def self.up
3
- create_table :<%= @name %> do |t|
3
+ create_table :<%= @custom_name %> do |t|
4
4
  t.string :token
5
5
  t.string :connected_to
6
6
  end
7
7
  end
8
8
  def self.down
9
- drop_table :<%= @name %>
9
+ drop_table :<%= @custom_name %>
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Raydash
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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: 25
4
+ hash: 23
5
5
  prerelease: false
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
  - Gershon Bialer