origen 0.34.1 → 0.34.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: c2c5ab746eab9de6a504359d2e3ec84205015d38
4
- data.tar.gz: 2bd24969e2425d01978f11573d46fc35609133b4
3
+ metadata.gz: 96abf91083c2df0da8cb9cac42f82757fff7cf48
4
+ data.tar.gz: 78965ad2de07cb8524f32a423567542b586ee35a
5
5
  SHA512:
6
- metadata.gz: 9e108f4fa70c0b10ba462e5ad8752a87b8a920858036f332c70d2fdcf2907d559479ff56ca1e1c7b1a11168a748e4f3611672a3b5408ddaab8e0edfe9cbf1edb
7
- data.tar.gz: b59f33dce9c4e1dfcab71ab68a54ccd403b3aedeefd9b257cf0936637683f73834b1231aefc3027b944acba9f3bce95051ce18ef9984555f287abfd7d31c6fb1
6
+ metadata.gz: f725a9a8db4c9f368d583591957d8b248eb7489d5ecfae663860ddb3713591ee4018817835e81f3f3704ddc7f8d297b19c803a8106d51d1e526abeade461967b
7
+ data.tar.gz: 174dc22d5cdcc20d1fc219813fa5476e48f5b804343d31e7272ce43573fa3138da07d54d47240cf250818e25176f1034aad9b25474cacc7116f1b95963f85728
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 34
4
- BUGFIX = 1
4
+ BUGFIX = 2
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -166,7 +166,12 @@ The following options are available:
166
166
  listener.before_web_compile(options)
167
167
  end
168
168
  ARGV.each do |file|
169
- output = Origen.file_handler.sub_dir_of(Origen.file_handler.clean_path_to(file), "#{Origen.root}/templates/web")
169
+ path = Origen.file_handler.clean_path_to(file)
170
+ if path.to_s =~ /origen_guides/
171
+ output = Origen.file_handler.sub_dir_of(path, "#{Origen.root}/templates/origen_guides")
172
+ else
173
+ output = Origen.file_handler.sub_dir_of(path, "#{Origen.root}/templates/web")
174
+ end
170
175
  Origen.app.runner.launch action: :compile,
171
176
  files: file,
172
177
  output: "#{Origen.root}/web/content/#{output}"
@@ -29,7 +29,7 @@ module Origen
29
29
  def close(id, options = {})
30
30
  fail "An org_file with this ID has not been opened id: #{id}" unless open_files[id]
31
31
  open_files[id].close unless options[:_internal_org_file_call_]
32
- open_files[id] = nil
32
+ open_files.delete(id)
33
33
  end
34
34
 
35
35
  def org_file(id = nil)
@@ -109,15 +109,15 @@ module Origen
109
109
  def cycle(number)
110
110
  if @buffer
111
111
  if @line == @buffer
112
- @buffer_cycles += 1
112
+ @buffer_cycles += number
113
113
  else
114
114
  file.puts "#{@buffer}#{@buffer_cycles}"
115
115
  @buffer = @line
116
- @buffer_cycles = 1
116
+ @buffer_cycles = number
117
117
  end
118
118
  else
119
119
  @buffer = @line
120
- @buffer_cycles = 1
120
+ @buffer_cycles = number
121
121
  end
122
122
  @line = nil
123
123
  end
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.34.1
4
+ version: 0.34.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: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2018-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport