origen_app_generators 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3cda530159092b62b2ae0249bbc4906a742497e
4
- data.tar.gz: c881d58d855edcc46b55eb3e731b8ebaf74e0709
3
+ metadata.gz: ffe140c30fd3e0681683b14c9538a3257e9e63cb
4
+ data.tar.gz: 34407d38fd34ed12b7364c01789110300c9afeb8
5
5
  SHA512:
6
- metadata.gz: 1ba2c581f3de522406dc430fd3a9df96f959c5c5c461d186eecbd3fa1b92a0026ac8c732905b101ba354338e91a8d37f42a7e64dfedeba40a1e21ad479fb1717
7
- data.tar.gz: f9715b9ecc9e562772fcf8fa6119bf8fe8fe08c876c29c3642bd50490aa0c8f0796a9021a478fd543b74a04580a19c526117fb104f17178f73cf6f347443a794
6
+ metadata.gz: 249f48cc396ec431516e43fc4bafe4ef5b2dd4268de362be96cd8fa77862fa71be0707103cfe5a28165c875ce12ca4dae2ef200bc8c698e24a25a2a02d2109fa
7
+ data.tar.gz: 01e1472149a9356f5bb4bad4a4f7df0745a1858331045e3edbd7983c5f9c60608f1bc7cca38efdb9fba8d8f0994f7fe3bc903ede22641a2839c9d36c39efad38
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenAppGenerators
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- BUGFIX = 1
4
+ BUGFIX = 2
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -37,28 +37,19 @@ module OrigenAppGenerators
37
37
  environment_dir: { dest: 'environment', type: :directory },
38
38
  lib_module: { source: 'lib/module.rb',
39
39
  dest: "lib/#{@name}.rb" },
40
- # lib_top_level: { source: 'lib/top_level.rb',
41
- # dest: "lib/#{@name}/top_level.rb" },
42
40
  lib_tasks: { source: 'lib/app.rake',
43
41
  dest: "lib/tasks/#{@name}.rake" },
44
42
  spec_helper: { source: 'spec/spec_helper.rb' },
45
- # web_index: { source: 'templates/web/index.md.erb' },
46
- # web_basic_layout: { source: 'templates/web/layouts/_basic.html.erb' },
47
- # web_doc_layout: { source: 'templates/web/layouts/_doc.html.erb' },
48
- # web_navbar: { source: 'templates/web/partials/_navbar.html.erb' },
49
- # web_references: { source: 'templates/web/references.md.erb' },
50
- # web_archive: { source: 'templates/web/archive.md.erb' },
51
- # web_contact: { source: 'templates/web/contact.md.erb' },
52
- # web_release_notes: { source: 'templates/web/release_notes.md.erb' },
53
- # web_defintions: { source: 'templates/web/docs/environment/definitions.md.erb' },
54
- # web_installation: { source: 'templates/web/docs/environment/installation.md.erb' },
55
- # web_introduction: { source: 'templates/web/docs/environment/introduction.md.erb' },
43
+ web_index: { source: 'templates/web/index.md.erb' },
44
+ web_basic_layout: { source: 'templates/web/layouts/_basic.html.erb' },
45
+ web_navbar: { source: 'templates/web/partials/_navbar.html.erb' },
46
+ web_release_notes: { source: 'templates/web/release_notes.md.erb' },
56
47
  rakefile: { source: 'Rakefile' },
57
48
  gemfile: { source: 'Gemfile' },
58
49
  gitignore: { source: '.gitignore' },
59
50
  irbrc: { source: '.irbrc' },
60
51
  rspec: { source: '.rspec' },
61
- # This sets the default mode of the new workspace to 'debug'
52
+ # This sets the initial mode of the new workspace to 'debug'
62
53
  session: { source: 'origen_core_session',
63
54
  dest: '.session/origen_core',
64
55
  copy: true
@@ -27,7 +27,6 @@ module OrigenAppGenerators
27
27
 
28
28
  def get_common_user_input
29
29
  get_name_and_namespace
30
- # get_revision_control
31
30
  end
32
31
 
33
32
  def get_lastest_origen_version
@@ -53,41 +52,6 @@ module OrigenAppGenerators
53
52
  desc.sub(/^An? /, '').titleize
54
53
  end
55
54
 
56
- def get_revision_control
57
- puts ''
58
- puts 'IS THIS FOR TRAINING?'
59
- puts ''
60
- training = get_text(confirm: :return_boolean, default: 'no')
61
- if type == :plugin && !training
62
- puts ''
63
- puts 'WHAT CATEGORY BEST DESCRIBES YOUR PLUGIN??'
64
- puts ''
65
- cats = {
66
- dut: 'Top-level SoC/DUT models',
67
- helper: 'Helper methods and code snippets',
68
- physical: 'Physical interface drivers (e.g. JTAG)',
69
- protocol: 'Protocol driver providing read/write register APIs (e.g. JTAG2IPS)',
70
- module: 'A module to support testing a specific silicon block',
71
- tester: 'Any Origen tester model, could be an ATE or a debugger or testbench stimulus generator ',
72
- misc: 'Anything else'
73
- }
74
- cats.each do |key, val|
75
- puts "#{key} - #{val}"
76
- end
77
- puts ''
78
- category = get_text(single: true, accept: cats.keys).downcase.to_sym
79
- end
80
- @vault = 'sync://sync-15088:15088/Projects/common_tester_blocks/'
81
- if training
82
- @vault += 'origen_training/'
83
- elsif type == :plugin
84
- @vault += "origen_blocks/#{category}/"
85
- else
86
- @vault += 'blocks/'
87
- end
88
- @vault += "#{@name}/tool_data/origen"
89
- end
90
-
91
55
  # Calling this will compile all files in filelist against the current instance
92
56
  # variable values
93
57
  def build_filelist
@@ -5,7 +5,6 @@ module OrigenAppGenerators
5
5
  get_name_and_namespace
6
6
  get_summary
7
7
  get_audience
8
- # get_revision_control
9
8
  end
10
9
 
11
10
  protected
@@ -23,6 +22,9 @@ module OrigenAppGenerators
23
22
  list[:templates_shared] = { dest: 'templates/shared', type: :directory }
24
23
  if @audience == :external
25
24
  list[:travis] = { source: '.travis.yml' }
25
+ list[:web_navbar] = { source: 'templates/web/partials/_navbar_external.html.erb', dest: 'templates/web/partials/_navbar.html.erb' }
26
+ else
27
+ list[:web_navbar] = { source: 'templates/web/partials/_navbar_internal.html.erb', dest: 'templates/web/partials/_navbar.html.erb' }
26
28
  end
27
29
  list
28
30
  end
@@ -222,6 +222,10 @@ module OrigenAppGenerators
222
222
  list[:environment_default] = { source: 'j750.rb', # Relative to the file being linked to
223
223
  dest: 'environment/default.rb', # Relative to destination_root
224
224
  type: :symlink }
225
+ # Test engineering source directories
226
+ list[:program_dir] = { dest: 'program', type: :directory }
227
+ list[:pattern_dir] = { dest: 'pattern', type: :directory }
228
+ # Example source files
225
229
  list[:pattern_example] = { source: 'pattern/example.rb' }
226
230
  # Remember to return the final list
227
231
  list
@@ -31,8 +31,12 @@ end
31
31
  desc 'Test that all generators build'
32
32
  task :regression do
33
33
  OrigenAppGenerators::TEST_INPUTS.each do |inputs|
34
- # Test that origen and the console can boot in the new app
35
- commands = ['origen -v', 'origen lint', 'rake new_app_tests:load_target'] + inputs.pop
34
+ # Default test that are run for all app builds
35
+ commands = ['origen -v',
36
+ 'origen lint',
37
+ 'rake new_app_tests:load_target',
38
+ 'origen web compile --no-serve'
39
+ ] + inputs.pop
36
40
  if ENV['TRAVIS'] && ENV['CONTINUOUS_INTEGRATION']
37
41
  prefix = 'bundle && bundle exec '
38
42
  end
@@ -29,6 +29,7 @@
29
29
  /.collection
30
30
  /.bin
31
31
  /.session
32
+ /tmp
32
33
 
33
34
  # Cruft from other revision control systems
34
35
  .SYNC
@@ -0,0 +1,19 @@
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 application...
10
+
11
+ ### How To Use
12
+
13
+ Add quickstart documentation here...
14
+
15
+ ### How To Setup the Application Environment
16
+
17
+ Describe how a user would setup a new workspace for this application...
18
+
19
+ % 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>
@@ -0,0 +1,5 @@
1
+ % render "layouts/basic.html", tab: :release do
2
+
3
+ <%= render "#{Origen.root}/doc/history" %>
4
+
5
+ % end
@@ -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,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>
@@ -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 CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_app_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -68,12 +68,19 @@ files:
68
68
  - templates/app_generators/application/target/debug.rb
69
69
  - templates/app_generators/application/target/default.rb
70
70
  - templates/app_generators/application/target/production.rb
71
+ - templates/app_generators/application/templates/web/index.md.erb
72
+ - templates/app_generators/application/templates/web/layouts/_basic.html.erb
73
+ - templates/app_generators/application/templates/web/partials/_navbar.html.erb
74
+ - templates/app_generators/application/templates/web/release_notes.md.erb
71
75
  - templates/app_generators/new/generator.rb
72
76
  - templates/app_generators/new/info.md.erb
73
77
  - templates/app_generators/plugin/Gemfile
74
78
  - templates/app_generators/plugin/Rakefile
75
79
  - templates/app_generators/plugin/config/boot.rb
76
80
  - templates/app_generators/plugin/gemspec.rb
81
+ - templates/app_generators/plugin/templates/web/index.md.erb
82
+ - templates/app_generators/plugin/templates/web/partials/_navbar_external.html.erb
83
+ - templates/app_generators/plugin/templates/web/partials/_navbar_internal.html.erb
77
84
  - templates/app_generators/test_engineering/stand_alone_application/Gemfile
78
85
  - templates/app_generators/test_engineering/stand_alone_application/environment/j750.rb
79
86
  - templates/app_generators/test_engineering/stand_alone_application/environment/jlink.rb
@@ -90,7 +97,6 @@ files:
90
97
  - templates/app_generators/test_engineering/test_block/target/j750.rb
91
98
  - templates/app_generators/test_engineering/test_block/target/ultraflex.rb
92
99
  - templates/app_generators/test_engineering/test_block/target/v93k.rb
93
- - templates/web/origen_app_generators/test_engineering/generic_stand_alone_application.md.erb
94
100
  homepage: http://origen-sdk.org/origen_app_generators
95
101
  licenses:
96
102
  - LGPL-3
@@ -111,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
117
  version: 1.8.11
112
118
  requirements: []
113
119
  rubyforge_project:
114
- rubygems_version: 2.2.2
120
+ rubygems_version: 2.4.5
115
121
  signing_key:
116
122
  specification_version: 4
117
123
  summary: Origen application generators
@@ -1,9 +0,0 @@
1
- % render "templates/web/layouts/basic.html" do
2
-
3
- ### OrigenAppGenerators
4
-
5
- ## Stand Alone Test Engineering Application
6
-
7
- This generates a customized version of the [Generic Application](<%= path 'origen_app_generators/application' %>).
8
-
9
- % end