origen_perforce 0.2.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 +7 -0
- data/bin/fix_my_workspace +100 -0
- data/config/application.rb +103 -0
- data/config/boot.rb +24 -0
- data/config/commands.rb +79 -0
- data/config/version.rb +8 -0
- data/lib/origen_perforce.rb +5 -0
- data/lib/origen_perforce/origen_ext/revision_control/perforce.rb +109 -0
- data/lib/tasks/origen_perforce.rake +6 -0
- data/templates/web/index.md.erb +37 -0
- data/templates/web/layouts/_basic.html.erb +13 -0
- data/templates/web/partials/_navbar.html.erb +20 -0
- data/templates/web/release_notes.md.erb +5 -0
- metadata +89 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 88e1419efbe4cacd0a3f57664b89ea5b6f6bfaad
|
4
|
+
data.tar.gz: 13ac925f81a90a357bda9d853375b0854fdc3e79
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1b170cb7e3e7bc4592c5274785cba3529d2444b45273c770d3d057f552747d632253aad3eab2aaa75f850992eb4bc5ee54bfc4632c11ff990fe07b9b72d020e9
|
7
|
+
data.tar.gz: 193c27fb083d148178149385d87b0d643476880b9803f5c0ebdbb0bd7f4081f1e96f44f015e92b62f9965d9c913705d836a1813c19f7bcdd38330555657a7b31
|
@@ -0,0 +1,100 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$VERBOSE = nil # Don't care about world writable dir warnings and the like
|
3
|
+
|
4
|
+
if $_fix_my_workspace_version_check
|
5
|
+
$_fix_my_workspace_version = '0.7.0'
|
6
|
+
else
|
7
|
+
if File.exist?(File.expand_path('../../lib/origen.rb', __FILE__))
|
8
|
+
# If this script is being run from within an origen-core workspace, use that Origen-core,
|
9
|
+
# not the system-installed origen-core version.
|
10
|
+
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
|
11
|
+
require 'origen'
|
12
|
+
else
|
13
|
+
# Use system-installed Origen (the gem in system Ruby)
|
14
|
+
require 'origen'
|
15
|
+
end
|
16
|
+
|
17
|
+
if !Origen.site_config.gem_manage_bundler
|
18
|
+
puts 'Sorry but you have opted to manage Bundler yourself via your Origen site config, and this means'
|
19
|
+
puts 'that I cannot make certain assumptions about how your workspace is configured.'
|
20
|
+
puts 'You will need to either resolve this problem yourself, or else change the value of'
|
21
|
+
puts 'gem_mange_bundler to true.'
|
22
|
+
puts 'See here for more details on how to do that: http://origen-sdk.org/origen/guides/starting/company/'
|
23
|
+
|
24
|
+
else
|
25
|
+
ENV['BUNDLE_GEMFILE'] = File.join(Origen.root, 'Gemfile')
|
26
|
+
ENV['BUNDLE_PATH'] = File.expand_path(Origen.site_config.gem_install_dir)
|
27
|
+
ENV['BUNDLE_BIN'] = File.join(Origen.root, 'lbin')
|
28
|
+
|
29
|
+
# Force copy system gems to local gems
|
30
|
+
if Origen.site_config.gem_use_from_system
|
31
|
+
local_gem_dir = "#{ENV['BUNDLE_PATH']}/ruby/#{Pathname.new(Gem.dir).basename}"
|
32
|
+
gem_dir = Pathname.new(Gem.dir)
|
33
|
+
|
34
|
+
Origen.site_config.gem_use_from_system.each do |gem, version|
|
35
|
+
begin
|
36
|
+
# This will raise an error if the system doesn't have this gem installed, that
|
37
|
+
# will be rescued below
|
38
|
+
spec = Gem::Specification.find_by_name(gem, version)
|
39
|
+
|
40
|
+
local_dir = File.join(local_gem_dir, Pathname.new(spec.gem_dir).relative_path_from(gem_dir))
|
41
|
+
FileUtils.mkdir_p local_dir
|
42
|
+
FileUtils.cp_r("#{spec.gem_dir}/.", local_dir)
|
43
|
+
|
44
|
+
local_file = Pathname.new(File.join(local_gem_dir, Pathname.new(spec.cache_file).relative_path_from(gem_dir)))
|
45
|
+
FileUtils.mkdir_p local_file.dirname
|
46
|
+
FileUtils.cp(spec.cache_file, local_file)
|
47
|
+
|
48
|
+
if spec.extension_dir && File.exist?(spec.extension_dir)
|
49
|
+
local_dir = File.join(local_gem_dir, Pathname.new(spec.extension_dir).relative_path_from(gem_dir))
|
50
|
+
FileUtils.mkdir_p local_dir
|
51
|
+
FileUtils.cp_r("#{spec.extension_dir}/.", local_dir)
|
52
|
+
end
|
53
|
+
|
54
|
+
local_file = Pathname.new(File.join(local_gem_dir, Pathname.new(spec.spec_file).relative_path_from(gem_dir)))
|
55
|
+
FileUtils.mkdir_p local_file.dirname
|
56
|
+
FileUtils.cp(spec.spec_file, local_file)
|
57
|
+
|
58
|
+
rescue Gem::LoadError
|
59
|
+
# This just means that one of the gems that should be copied from the system
|
60
|
+
# was not actually installed in the system, so nothing we can do about that here
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Delete lbin
|
66
|
+
FileUtils.rm_rf(ENV['BUNDLE_BIN']) if File.exist?(ENV['BUNDLE_BIN'])
|
67
|
+
|
68
|
+
# Run bundler with correct switches
|
69
|
+
cmd = "bundle install --gemfile #{ENV['BUNDLE_GEMFILE']} --binstubs #{ENV['BUNDLE_BIN']} --path #{ENV['BUNDLE_PATH']}"
|
70
|
+
`chmod o-w #{Origen.root}` # Stops some annoying world writable warnings during install
|
71
|
+
`chmod o-w #{Origen.root}/bin` if File.exist?("#{Origen.root}/bin")
|
72
|
+
`chmod o-w #{Origen.root}/.bin` if File.exist?("#{Origen.root}/.bin")
|
73
|
+
|
74
|
+
# Try again, this time updating the bundle
|
75
|
+
if system(cmd)
|
76
|
+
fixed = true
|
77
|
+
elsif system 'bundle update'
|
78
|
+
fixed = true
|
79
|
+
end
|
80
|
+
|
81
|
+
if File.exist?(ENV['BUNDLE_BIN'])
|
82
|
+
`chmod o-w #{ENV['BUNDLE_BIN']}`
|
83
|
+
|
84
|
+
# Make .bat versions of all executables, Bundler should really be doing this when running
|
85
|
+
# on windows
|
86
|
+
if Origen.os.windows?
|
87
|
+
Dir.glob("#{ENV['BUNDLE_BIN']}/*").each do |bin|
|
88
|
+
unless bin =~ /.bat$/
|
89
|
+
bat = "#{bin}.bat"
|
90
|
+
unless File.exist?(bat)
|
91
|
+
File.open(bat, 'w') { |f| f.write('@"ruby.exe" "%~dpn0" %*') }
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
system 'origen -v' if fixed
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
require 'origen'
|
2
|
+
class OrigenPerforceApplication < Origen::Application
|
3
|
+
|
4
|
+
# See http://origen-sdk.org/origen/api/Origen/Application/Configuration.html
|
5
|
+
# for a full list of the configuration options available
|
6
|
+
|
7
|
+
# These attributes should never be changed, the duplication here will be resolved in future
|
8
|
+
# by condensing these attributes that do similar things
|
9
|
+
self.name = "origen_perforce"
|
10
|
+
self.namespace = "OrigenPerforce"
|
11
|
+
config.name = "origen_perforce"
|
12
|
+
config.initials = "OrigenPerforce"
|
13
|
+
# Change this to point to the revision control repository for this plugin
|
14
|
+
config.rc_url = "git@github.com:Origen-SDK/origen_perforce.git"
|
15
|
+
config.release_externally = true
|
16
|
+
|
17
|
+
# To enable deployment of your documentation to a web server (via the 'origen web'
|
18
|
+
# command) fill in these attributes.
|
19
|
+
#config.web_directory = "git@github.com:Origen-SDK/Origen-SDK.github.io.git/origen_perforce"
|
20
|
+
#config.web_domain = "http://origen-sdk.org/origen_perforce"
|
21
|
+
|
22
|
+
# When false Origen will be less strict about checking for some common coding errors,
|
23
|
+
# it is recommended that you leave this to true for better feedback and easier debug.
|
24
|
+
# This will be the default setting in Origen v3.
|
25
|
+
config.strict_errors = true
|
26
|
+
|
27
|
+
# See: http://origen-sdk.org/origen/latest/guides/utilities/lint/
|
28
|
+
config.lint_test = {
|
29
|
+
# Require the lint tests to pass before allowing a release to proceed
|
30
|
+
run_on_tag: true,
|
31
|
+
# Auto correct violations where possible whenever 'origen lint' is run
|
32
|
+
auto_correct: true,
|
33
|
+
# Limit the testing for large legacy applications
|
34
|
+
#level: :easy,
|
35
|
+
# Run on these directories/files by default
|
36
|
+
#files: ["lib", "config/application.rb"],
|
37
|
+
}
|
38
|
+
|
39
|
+
config.semantically_version = true
|
40
|
+
|
41
|
+
# An example of how to set application specific LSF parameters
|
42
|
+
#config.lsf.project = "msg.te"
|
43
|
+
|
44
|
+
# An example of how to specify a prefix to add to all generated patterns
|
45
|
+
#config.pattern_prefix = "nvm"
|
46
|
+
|
47
|
+
# An example of how to add header comments to all generated patterns
|
48
|
+
#config.pattern_header do
|
49
|
+
# cc "This is a pattern created by the example origen application"
|
50
|
+
#end
|
51
|
+
|
52
|
+
# By default all generated output will end up in ./output.
|
53
|
+
# Here you can specify an alternative directory entirely, or make it dynamic such that
|
54
|
+
# the output ends up in a setup specific directory.
|
55
|
+
#config.output_directory do
|
56
|
+
# "#{Origen.root}/output/#{$dut.class}"
|
57
|
+
#end
|
58
|
+
|
59
|
+
# Similarly for the reference files, generally you want to setup the reference directory
|
60
|
+
# structure to mirror that of your output directory structure.
|
61
|
+
#config.reference_directory do
|
62
|
+
# "#{Origen.root}/.ref/#{$dut.class}"
|
63
|
+
#end
|
64
|
+
|
65
|
+
# This will automatically deploy your documentation after every tag
|
66
|
+
#def after_release_email(tag, note, type, selector, options)
|
67
|
+
# command = "origen web compile --remote --api"
|
68
|
+
# Dir.chdir Origen.root do
|
69
|
+
# system command
|
70
|
+
# end
|
71
|
+
#end
|
72
|
+
|
73
|
+
# Ensure that all tests pass before allowing a release to continue
|
74
|
+
#def validate_release
|
75
|
+
# if !system("origen specs") || !system("origen examples")
|
76
|
+
# puts "Sorry but you can't release with failing tests, please fix them and try again."
|
77
|
+
# exit 1
|
78
|
+
# else
|
79
|
+
# puts "All tests passing, proceeding with release process!"
|
80
|
+
# end
|
81
|
+
#end
|
82
|
+
|
83
|
+
# To enabled source-less pattern generation create a class (for example PatternDispatcher)
|
84
|
+
# to generate the pattern. This should return false if the requested pattern has been
|
85
|
+
# dispatched, otherwise Origen will proceed with looking up a pattern source as normal.
|
86
|
+
#def before_pattern_lookup(requested_pattern)
|
87
|
+
# PatternDispatcher.new.dispatch_or_return(requested_pattern)
|
88
|
+
#end
|
89
|
+
|
90
|
+
# If you use pattern iterators you may come across the case where you request a pattern
|
91
|
+
# like this:
|
92
|
+
# origen g example_pat_b0.atp
|
93
|
+
#
|
94
|
+
# However it cannot be found by Origen since the pattern name is actually example_pat_bx.atp
|
95
|
+
# In the case where the pattern cannot be found Origen will pass the name to this translator
|
96
|
+
# if it exists, and here you can make any substitutions to help Origen find the file you
|
97
|
+
# want. In this example any instances of _b\d, where \d means a number, are replaced by
|
98
|
+
# _bx.
|
99
|
+
#config.pattern_name_translator do |name|
|
100
|
+
# name.gsub(/_b\d/, "_bx")
|
101
|
+
#end
|
102
|
+
|
103
|
+
end
|
data/config/boot.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# This file is used to boot your plugin when it is running in standalone mode
|
2
|
+
# from its own workspace - i.e. when the plugin is being developed.
|
3
|
+
#
|
4
|
+
# It will not be loaded when the plugin is imported by a 3rd party app - in that
|
5
|
+
# case only lib/origen_perforce.rb is loaded.
|
6
|
+
#
|
7
|
+
# Therefore this file can be used to load anything extra that you need to boot
|
8
|
+
# the development environment for this app. For example, this is typically used
|
9
|
+
# to load some additional test classes to use your plugin APIs so that they can
|
10
|
+
# be tested and/or interacted with in the console.
|
11
|
+
require "origen_perforce"
|
12
|
+
|
13
|
+
module OrigenPerforceDev
|
14
|
+
# Example of how to explicitly require a file
|
15
|
+
# require "origen_perforce_dev/my_file"
|
16
|
+
|
17
|
+
# Load all files in the lib/origen_perforce_dev directory.
|
18
|
+
# Note that there is no problem from requiring a file twice (Ruby will ignore
|
19
|
+
# the second require), so if you have a file that must be required first, then
|
20
|
+
# explicitly require it up above and then let this take care of the rest.
|
21
|
+
Dir.glob("#{File.dirname(__FILE__)}/../lib/origen_perforce_dev/**/*.rb").sort.each do |file|
|
22
|
+
require file
|
23
|
+
end
|
24
|
+
end
|
data/config/commands.rb
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
# This file should be used to extend the origen with application specific commands
|
2
|
+
|
3
|
+
# Map any command aliases here, for example to allow 'origen ex' to refer to a
|
4
|
+
# command called execute you would add a reference as shown below:
|
5
|
+
aliases ={
|
6
|
+
# "ex" => "execute",
|
7
|
+
}
|
8
|
+
|
9
|
+
# The requested command is passed in here as @command, this checks it against
|
10
|
+
# the above alias table and should not be removed.
|
11
|
+
@command = aliases[@command] || @command
|
12
|
+
|
13
|
+
# Now branch to the specific task code
|
14
|
+
case @command
|
15
|
+
|
16
|
+
# (Working) example of how to create an application specific comment, here to generate
|
17
|
+
# a tags file for you application to enable method definition lookup and similar within
|
18
|
+
# editors/IDEs
|
19
|
+
when "tags"
|
20
|
+
# Here the logic is just written in-line, alternatively it could be written in a
|
21
|
+
# dedicated file and required here, e.g.
|
22
|
+
#require "origen_perforce/commands/my_command" # Would load file lib/origen_perforce/commands/my_command.rb
|
23
|
+
Dir.chdir Origen.root do
|
24
|
+
system("ripper-tags -R")
|
25
|
+
end
|
26
|
+
# You must always exit upon successfully capturing and executing a command to prevent
|
27
|
+
# control flowing back to Origen
|
28
|
+
exit 0
|
29
|
+
|
30
|
+
## Example of how to make a command to run unit tests, this simply invokes RSpec on
|
31
|
+
## the spec directory
|
32
|
+
#when "specs"
|
33
|
+
# require "rspec"
|
34
|
+
# exit RSpec::Core::Runner.run(['spec'])
|
35
|
+
|
36
|
+
## Example of how to make a command to run diff-based tests
|
37
|
+
#when "examples", "test"
|
38
|
+
# Origen.load_application
|
39
|
+
# status = 0
|
40
|
+
#
|
41
|
+
# # Compiler tests
|
42
|
+
# ARGV = %w(templates/example.txt.erb -t debug -r approved)
|
43
|
+
# load "origen/commands/compile.rb"
|
44
|
+
# # Pattern generator tests
|
45
|
+
# #ARGV = %w(some_pattern -t debug -r approved)
|
46
|
+
# #load "#{Origen.top}/lib/origen/commands/generate.rb"
|
47
|
+
#
|
48
|
+
# if Origen.app.stats.changed_files == 0 &&
|
49
|
+
# Origen.app.stats.new_files == 0 &&
|
50
|
+
# Origen.app.stats.changed_patterns == 0 &&
|
51
|
+
# Origen.app.stats.new_patterns == 0
|
52
|
+
#
|
53
|
+
# Origen.app.stats.report_pass
|
54
|
+
# else
|
55
|
+
# Origen.app.stats.report_fail
|
56
|
+
# status = 1
|
57
|
+
# end
|
58
|
+
# puts
|
59
|
+
# if @command == "test"
|
60
|
+
# Origen.app.unload_target!
|
61
|
+
# require "rspec"
|
62
|
+
# result = RSpec::Core::Runner.run(['spec'])
|
63
|
+
# status = status == 1 ? 1 : result
|
64
|
+
# end
|
65
|
+
# exit status # Exit with a 1 on the event of a failure per std unix result codes
|
66
|
+
|
67
|
+
# Always leave an else clause to allow control to fall back through to the
|
68
|
+
# Origen command handler.
|
69
|
+
else
|
70
|
+
# You probably want to also add the your commands to the help shown via
|
71
|
+
# origen -h, you can do this by assigning the required text to @application_commands
|
72
|
+
# before handing control back to Origen.
|
73
|
+
@application_commands = <<-EOT
|
74
|
+
tags Build a tags file for this app
|
75
|
+
EOT
|
76
|
+
# specs Run the specs (tests), -c will enable coverage
|
77
|
+
# examples Run the examples (tests), -c will enable coverage
|
78
|
+
# test Run both specs and examples, -c will enable coverage
|
79
|
+
end
|
data/config/version.rb
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
require 'P4'
|
2
|
+
module Origen
|
3
|
+
module RevisionControl
|
4
|
+
class Perforce < Base
|
5
|
+
# P4 session
|
6
|
+
attr_reader :p4
|
7
|
+
|
8
|
+
# e.g. myfile.txt
|
9
|
+
attr_accessor :remote_file
|
10
|
+
|
11
|
+
def _initialize_(options)
|
12
|
+
@remotes_method = :print
|
13
|
+
@p4 = P4.new
|
14
|
+
@p4.maxresults = 1
|
15
|
+
parse_remote
|
16
|
+
@p4.connect
|
17
|
+
unless @p4.connected?
|
18
|
+
Origen.log.error("Could not connect to port #{@p4.port} on client #{@p4.client}!")
|
19
|
+
fail
|
20
|
+
end
|
21
|
+
@p4.run_login
|
22
|
+
end
|
23
|
+
|
24
|
+
# Downloads a file to a local directory, no workspace/client is created. Perfect
|
25
|
+
# for read-only access like an application remote
|
26
|
+
def print(options = {})
|
27
|
+
options = {
|
28
|
+
verbose: true,
|
29
|
+
version: 'Latest'
|
30
|
+
}.merge(options)
|
31
|
+
cmd = [__method__.to_s, '-o', "#{@local}/#{@remote_file.to_s.split('/')[-1]}", @remote_file.to_s]
|
32
|
+
run cmd
|
33
|
+
end
|
34
|
+
|
35
|
+
def checkout(path = nil, options = {})
|
36
|
+
not_yet_supported(__method__)
|
37
|
+
end
|
38
|
+
|
39
|
+
def root
|
40
|
+
not_yet_supported(__method__)
|
41
|
+
end
|
42
|
+
|
43
|
+
def current_branch
|
44
|
+
not_yet_supported(__method__)
|
45
|
+
end
|
46
|
+
|
47
|
+
def diff_cmd
|
48
|
+
not_yet_supported(__method__)
|
49
|
+
end
|
50
|
+
|
51
|
+
def unmanaged
|
52
|
+
not_yet_supported(__method__)
|
53
|
+
end
|
54
|
+
|
55
|
+
def local_modifications
|
56
|
+
not_yet_supported(__method__)
|
57
|
+
end
|
58
|
+
|
59
|
+
def changes
|
60
|
+
not_yet_supported(__method__)
|
61
|
+
end
|
62
|
+
|
63
|
+
def checkin
|
64
|
+
not_yet_supported(__method__)
|
65
|
+
end
|
66
|
+
|
67
|
+
def build
|
68
|
+
not_yet_supported(__method__)
|
69
|
+
end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
# Needs to be in the form of an Array with command, as a Sting, as the first argument
|
74
|
+
# e.g. ["print", "-o", "pins/myfile.txt", "//depot/myprod/main/doc/pinout/myfile.txt"]
|
75
|
+
def run(cmd)
|
76
|
+
p4.run cmd
|
77
|
+
end
|
78
|
+
|
79
|
+
def not_yet_supported(m)
|
80
|
+
Origen.log.warn("The method #{m} is not currently supported by the Perforce API")
|
81
|
+
nil
|
82
|
+
end
|
83
|
+
|
84
|
+
def parse_remote
|
85
|
+
(@p4.port, @remote_file) = @remote.to_s.match(/^p4\:\/\/(\S+\:\d+)(.*)/).captures unless @remote.nil?
|
86
|
+
end
|
87
|
+
|
88
|
+
def configure_client(options)
|
89
|
+
unless options.include? :local
|
90
|
+
Origen.log.error('Need options[:local] to know how to configure the Perforce client!')
|
91
|
+
fail
|
92
|
+
end
|
93
|
+
client_name = "#{Origen.app.name}_#{User.current.id}_#{Time.now.to_i}"
|
94
|
+
begin
|
95
|
+
client_spec = @p4.fetch_client
|
96
|
+
client_spec['Root'] = options[:local].to_s
|
97
|
+
client_spec['Client'] = client_name
|
98
|
+
client_spec['View'] = ["#{@remote_file} //#{client_name}/#{@remote_file.split('/')[-1]}"]
|
99
|
+
client_spec['Host'] = nil
|
100
|
+
@p4.save_client(client_spec)
|
101
|
+
@p4.client = client_name
|
102
|
+
rescue P4Exception
|
103
|
+
@p4.errors.each { |e| Origen.log.error e }
|
104
|
+
raise
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# You can define any Rake tasks to support your application here (or in any file
|
2
|
+
# ending in .rake in this directory).
|
3
|
+
#
|
4
|
+
# Rake (Ruby Make) is very useful for creating build scripts, see this short video
|
5
|
+
# for a quick introduction:
|
6
|
+
# http://railscasts.com/episodes/66-custom-rake-tasks
|
@@ -0,0 +1,37 @@
|
|
1
|
+
% render "layouts/basic.html" do
|
2
|
+
|
3
|
+
%# HTML tags can be embedded in mark down files if you want to do specific custom
|
4
|
+
%# formatting like this, but in most cases that is not required.
|
5
|
+
<h1><%= Origen.app.namespace %> <span style="font-size: 14px">(<%= Origen.app.version %>)</span></h1>
|
6
|
+
|
7
|
+
### Purpose
|
8
|
+
|
9
|
+
This plugin...
|
10
|
+
|
11
|
+
### How To Install
|
12
|
+
|
13
|
+
In your Gemfile add:
|
14
|
+
|
15
|
+
~~~ruby
|
16
|
+
gem "<%= Origen.app.name %>"
|
17
|
+
~~~
|
18
|
+
|
19
|
+
or if your application is a plugin, then add this to your <code>.gemspec</code>
|
20
|
+
|
21
|
+
~~~ruby
|
22
|
+
spec.add_runtime_dependency "<%= Origen.app.name %>", ">= <%= Origen.app.version %>"
|
23
|
+
~~~
|
24
|
+
|
25
|
+
__NOTE:__ In the case of a plugin, you will also need to <code>require '<%= Origen.app.name %>'</code> somewhere in your environment.
|
26
|
+
|
27
|
+
|
28
|
+
### How To Use
|
29
|
+
|
30
|
+
Add quickstart documentation here...
|
31
|
+
|
32
|
+
|
33
|
+
### How To Setup a Development Environment
|
34
|
+
|
35
|
+
Describe how a developer would setup a new workspace for this plugin...
|
36
|
+
|
37
|
+
% end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
title: <%= options[:title] || Origen.config.name %>
|
3
|
+
---
|
4
|
+
<%= render "partials/navbar.html", tab: options[:tab] %>
|
5
|
+
|
6
|
+
<div class="row">
|
7
|
+
%# The markdown attribute is important if you are going to include content written
|
8
|
+
%# in markdown, without this is will be included verbatim
|
9
|
+
<div class="span12" markdown="1">
|
10
|
+
<%= yield %>
|
11
|
+
|
12
|
+
</div>
|
13
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<nav class="navbar navbar-inverse navbar-fixed-top">
|
2
|
+
<div class="container">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<a class="navbar-brand" href="<%= path "/" %>">Home</a>
|
11
|
+
</div>
|
12
|
+
<div id="navbar" class="collapse navbar-collapse">
|
13
|
+
<ul class="nav navbar-nav">
|
14
|
+
<li class="<%= options[:tab] == :api ? 'active' : '' %>"><a href="<%= path "/api/" %>">API</a></li>
|
15
|
+
<li class="<%= options[:tab] == :release ? 'active' : '' %>"><a href="<%= path "/release_notes" %>">Release Notes</a></li>
|
16
|
+
</ul>
|
17
|
+
<%= import "origen/web/logo.html" %>
|
18
|
+
</div><!--/.nav-collapse -->
|
19
|
+
</div>
|
20
|
+
</nav>
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: origen_perforce
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brian Caquelin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: origen
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.32.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.32.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: p4ruby
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2015.2'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2015.2.1313860
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2015.2'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2015.2.1313860
|
47
|
+
description:
|
48
|
+
email:
|
49
|
+
- brian.caquelin@amd.com
|
50
|
+
executables: []
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- bin/fix_my_workspace
|
55
|
+
- config/application.rb
|
56
|
+
- config/boot.rb
|
57
|
+
- config/commands.rb
|
58
|
+
- config/version.rb
|
59
|
+
- lib/origen_perforce.rb
|
60
|
+
- lib/origen_perforce/origen_ext/revision_control/perforce.rb
|
61
|
+
- lib/tasks/origen_perforce.rake
|
62
|
+
- templates/web/index.md.erb
|
63
|
+
- templates/web/layouts/_basic.html.erb
|
64
|
+
- templates/web/partials/_navbar.html.erb
|
65
|
+
- templates/web/release_notes.md.erb
|
66
|
+
homepage:
|
67
|
+
licenses: []
|
68
|
+
metadata: {}
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.8.11
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 2.6.8
|
86
|
+
signing_key:
|
87
|
+
specification_version: 4
|
88
|
+
summary: Origen revision control driver for Perforce
|
89
|
+
test_files: []
|