origen 0.5.5 → 0.5.6
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 +4 -4
- data/config/version.rb +1 -1
- data/lib/origen.rb +3 -2
- data/lib/origen/application.rb +23 -2
- data/origen_site_config.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdb741aab26127261ac1b0ab4f5ac223efb3a334
|
4
|
+
data.tar.gz: d48c4c6494a7c32732ce4305d36dc5bafbfbad02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66b4cd9a2872c4bd6e63f71dc48a2799dc843f0c5de477708fd502462fde0c7e4bba209233b8581425d853ff28814e9a70aad1d63c9c7c998b1af7335c9918c5
|
7
|
+
data.tar.gz: 0d342df42ce048de8392a03b37b0b2a14dbe4ec9eb7f4547914488cb46dee7c8ca8aa337ee8ffc17f92a954e15aa12292e5205a84e98fb82c620692b51931d44
|
data/config/version.rb
CHANGED
data/lib/origen.rb
CHANGED
@@ -231,8 +231,9 @@ unless defined? RGen::ORIGENTRANSITION
|
|
231
231
|
application.target
|
232
232
|
end
|
233
233
|
|
234
|
-
def load_target(t, options = {})
|
235
|
-
|
234
|
+
def load_target(t = nil, options = {})
|
235
|
+
t, options = nil, t if t.is_a?(Hash)
|
236
|
+
target.temporary = t if t
|
236
237
|
application.load_target!(options)
|
237
238
|
application.runner.prepare_and_validate_workspace
|
238
239
|
end
|
data/lib/origen/application.rb
CHANGED
@@ -157,6 +157,18 @@ module Origen
|
|
157
157
|
@root
|
158
158
|
end
|
159
159
|
|
160
|
+
# Returns a path to the imports directory (e.g. used by the remotes and similar features) for the
|
161
|
+
# application. e.g. if the app live at /home/thao/my_app, then the imports directory will typically
|
162
|
+
# be /home/thao/.my_app_imports_DO_NOT_HAND_MODIFY
|
163
|
+
#
|
164
|
+
# Origen will ensure that this directory is outside of the scope of the current application's revision
|
165
|
+
# control system. This prevents conflicts with the revision control system for the application and those
|
166
|
+
# used to import 3rd party dependencies
|
167
|
+
def imports_directory
|
168
|
+
workspace_manager.imports_directory
|
169
|
+
end
|
170
|
+
alias_method :imports_dir, :imports_directory
|
171
|
+
|
160
172
|
# Returns the namespace used by the application as a string
|
161
173
|
def namespace
|
162
174
|
@namespace ||= self.class.to_s.split('::').first.gsub('_', '').sub('Application', '')
|
@@ -468,8 +480,17 @@ module Origen
|
|
468
480
|
end
|
469
481
|
|
470
482
|
def session(reload = false)
|
471
|
-
|
472
|
-
|
483
|
+
if current?
|
484
|
+
@session = nil if reload
|
485
|
+
@session ||= Database::KeyValueStores.new(self, persist: false)
|
486
|
+
else
|
487
|
+
puts "All plugins should use the top-level application's session store, i.e. use:"
|
488
|
+
puts " Origen.app.session.#{name}"
|
489
|
+
puts 'instead of:'
|
490
|
+
puts ' Origen.app!.session'
|
491
|
+
puts
|
492
|
+
exit 1
|
493
|
+
end
|
473
494
|
end
|
474
495
|
|
475
496
|
def versions
|
data/origen_site_config.yml
CHANGED
@@ -31,7 +31,7 @@ gem_use_from_system:
|
|
31
31
|
# # Without email_domain specified
|
32
32
|
# User.new("ax1234@company.com").email # => "ax1234@company.com"
|
33
33
|
#email_domain: company.com
|
34
|
-
#email_server:
|
34
|
+
#email_server: smtp.company.net
|
35
35
|
#email_port: 25
|
36
36
|
|
37
37
|
# Required parameters to connect to your company's LDAP system
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
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-
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|