origen_app_generators 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/origen_app_generators/base.rb +2 -3
- data/templates/app_generators/application/Gemfile +2 -3
- data/templates/app_generators/application/config/application.rb +5 -8
- data/templates/app_generators/application/config/users.rb +1 -1
- data/templates/app_generators/plugin/Gemfile +0 -1
- data/templates/app_generators/plugin/gemspec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33cb984e45e37d72975819a593e86344319d9740
|
4
|
+
data.tar.gz: 395d5c5f0168dc3440593a50205015977910755b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baed87490e8e0137b4d9af0234dd4bc2b73f70432866e76a40edc920c757416faaf301425110c1a09fe378d127ed2d35608cb93526c1fd05bfc45b63bad36c52
|
7
|
+
data.tar.gz: 9647e1fa305fa8c0c117f19364f5b5c981ffe2ba4b1c1b1f069b218865d517235ada00de734359c5e16edf968aa28f5cc50d6614f18f3cb2560ae9ece772fb3f
|
data/config/version.rb
CHANGED
@@ -27,11 +27,11 @@ module OrigenAppGenerators
|
|
27
27
|
|
28
28
|
def get_common_user_input
|
29
29
|
get_name_and_namespace
|
30
|
-
get_revision_control
|
30
|
+
# get_revision_control
|
31
31
|
end
|
32
32
|
|
33
33
|
def get_lastest_origen_version
|
34
|
-
(Gems.info 'origen')['version']
|
34
|
+
@latest_origen_version = (Gems.info 'origen')['version']
|
35
35
|
end
|
36
36
|
|
37
37
|
protected
|
@@ -125,7 +125,6 @@ module OrigenAppGenerators
|
|
125
125
|
proposal = @name.to_s.camelize
|
126
126
|
end
|
127
127
|
proposal = nil if proposal.length < 3
|
128
|
-
proposal.gsub(/Rgen/i, 'Origen') if proposal
|
129
128
|
|
130
129
|
valid = false
|
131
130
|
until valid
|
@@ -1,9 +1,8 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
source 'http://origen-hub.am.freescale.net:9292'
|
3
2
|
|
4
|
-
gem "
|
3
|
+
gem "origen", ">= <%= @latest_origen_version %>"
|
5
4
|
|
6
|
-
gem "doc_helpers"
|
5
|
+
#gem "doc_helpers"
|
7
6
|
|
8
7
|
if RUBY_VERSION >= '2.0.0'
|
9
8
|
gem 'byebug', '~>3.5'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'origen'
|
2
2
|
class <%= @namespace %>Application < Origen::Application
|
3
3
|
|
4
|
-
# See http://origen.
|
4
|
+
# See http://origen-sdk.org/origen/latest/api/Origen/Application/Configuration.html
|
5
5
|
# for a full list of the configuration options available
|
6
6
|
|
7
7
|
# These attributes should never be changed, the duplication here will be resolved in future
|
@@ -10,22 +10,19 @@ class <%= @namespace %>Application < Origen::Application
|
|
10
10
|
self.namespace = "<%= @namespace %>"
|
11
11
|
config.name = "<%= @name %>"
|
12
12
|
config.initials = "<%= @namespace %>"
|
13
|
-
config.
|
13
|
+
config.rc_url = ""
|
14
14
|
|
15
15
|
# To enable deployment of your documentation to a web server (via the 'origen web'
|
16
|
-
# command) fill in these attributes.
|
17
|
-
# the origen.freescale.net domain, which is an easy option if you don't have another
|
18
|
-
# server already in mind. To do this you will need an account on CDE and to be a member
|
19
|
-
# of the 'origen' group.
|
16
|
+
# command) fill in these attributes.
|
20
17
|
config.web_directory = "/proj/.web_origen/html/<%= @name %>"
|
21
|
-
config.web_domain = "http://origen.
|
18
|
+
config.web_domain = "http://origen-sdk.org/<%= @name %>"
|
22
19
|
|
23
20
|
# When false Origen will be less strict about checking for some common coding errors,
|
24
21
|
# it is recommended that you leave this to true for better feedback and easier debug.
|
25
22
|
# This will be the default setting in Origen v3.
|
26
23
|
config.strict_errors = true
|
27
24
|
|
28
|
-
# See: http://origen.
|
25
|
+
# See: http://origen-sdk.org/origen/latest/guides/utilities/lint/
|
29
26
|
config.lint_test = {
|
30
27
|
# Require the lint tests to pass before allowing a release to proceed
|
31
28
|
run_on_tag: true,
|
@@ -14,7 +14,7 @@ module Origen
|
|
14
14
|
@users ||= [
|
15
15
|
|
16
16
|
# Admins - Notified on every tag
|
17
|
-
User.new("<%= User.current.name %>", "<%= User.current.
|
17
|
+
User.new("<%= User.current.name %>", "<%= User.current.id %>", :admin),
|
18
18
|
|
19
19
|
# Users - Notified on official release tags only
|
20
20
|
#User.new("Stephen McGinty", "r49409"),
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
26
|
# Add any gems that your plugin needs to run within a host application
|
27
|
-
spec.add_runtime_dependency "
|
27
|
+
spec.add_runtime_dependency "origen", ">= <%= @latest_origen_version %>"
|
28
28
|
<% if @runtime_dependencies -%>
|
29
29
|
<% @runtime_dependencies.each do |dep| -%>
|
30
30
|
spec.add_runtime_dependency <%= dep.map{ |d| "\"#{d}\"" }.join(', ') %>
|