universal-track-manager 0.0.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.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 816f5f355475f7a6206ef6b494cb232714cb8ffaeda3ad330d7faf3c270248d5
|
4
|
+
data.tar.gz: ec167e194b446d2f5c16d04849c4964f5fce111eb4627d90b44d49d4d8aab05a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8ab6ceeb13bdbfd427110b1071fe5707df1b40712ed24d1e32d18b55686d88188a74272a67a58c514e7794557bda0cb0f96be31dc555206e0982763d4d1f5d33
|
7
|
+
data.tar.gz: d217d224f937de94bd83cfc40a3cac0a0ad797e7e1733eb3eaadfbd9ca7028b4d61288b63be179f92d03d4e8551076b17e55778ef61c1d6b5a02ae00b9b63c8c
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/migration'
|
3
|
+
require 'rails/generators/active_record'
|
4
|
+
|
5
|
+
|
6
|
+
module UniversalTrackManager
|
7
|
+
class InstallGenerator < Rails::Generators::Base
|
8
|
+
include Rails::Generators::Migration
|
9
|
+
source_root File.expand_path("../templates", __FILE__)
|
10
|
+
|
11
|
+
desc "Creates an initializer for Universal Track Manager and copy files to your application."
|
12
|
+
class_option :orm, type: 'boolean'
|
13
|
+
|
14
|
+
def self.next_migration_number(path)
|
15
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
16
|
+
end
|
17
|
+
|
18
|
+
def copy_initializer
|
19
|
+
migration_template "create_track_table.rb",
|
20
|
+
"db/migrate/create_track_table.rb"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
["generators/universal_track_manager_install_generator.rb", "universal_track_manager/**/*.rb"].each do |x|
|
4
|
+
Dir.glob(File.join(File.dirname(__FILE__), x)) do |c|
|
5
|
+
require(c)
|
6
|
+
end
|
7
|
+
|
8
|
+
end
|
9
|
+
|
10
|
+
module UniversalTrackManager
|
11
|
+
require "railtie.rb" if defined?(Rails)
|
12
|
+
end
|
13
|
+
|
14
|
+
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: universal-track-manager
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jason Fleetwood-Boldt
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-11-14 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: ''
|
14
|
+
email: jason.fb@datatravels.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/generators/universal_track_manager_install_generator.rb
|
20
|
+
- lib/universal_track_manager.rb
|
21
|
+
homepage: http://rubygems.org/gems/unverisal_track_manager
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata:
|
25
|
+
source_code_uri: https://github.com/jasonfb/unverisal_track_manager
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubygems_version: 3.0.3
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: ''
|
45
|
+
test_files: []
|