origen 0.51.0 → 0.51.1

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
  SHA256:
3
- metadata.gz: 68ce67708b4ea92eb53e62aa5abab38078182d41b3972f8f6169d91a13f2749f
4
- data.tar.gz: a4ecbd00d6659f23ae13b2590bc668fd2422bb55cfd09b3a79cfc04b45af5cad
3
+ metadata.gz: 04054ba3497f3d1f4423748468f8039445971cc1f2415b38b62d24992653e575
4
+ data.tar.gz: 60c7ab624890e6452d5e5b867f53c11211c7f967599f330eedbcfa896ae8f8d7
5
5
  SHA512:
6
- metadata.gz: 84b2171b11b9a8ebd4a6b138ceef9401232cd69a4ef0fdde5b59e53ef14be8241fb35f1c240acb0f32fc556503f9e99de288c7cade81f3203d1244b1078782e6
7
- data.tar.gz: e6450240ffff7740125f9e0b57eb49dbe07d783625e40d3eb8f80b144cb0ffb899a5fd65ff7a152729b52904c302ce5d234a0d6e9c30a6d5262e9c726d178de0
6
+ metadata.gz: ecc819defb6a25fd795fc8c886466c22116bf858ea6e67cb8d13b63fde1bb5a97ddc1bf113bf025f4d3b6dfde90fa1c608c93ecf517f18a0f752667117adc265
7
+ data.tar.gz: da18b23a23999c13fc4fba58ce002e5ea2681a5b392771dea269db4050ab36c6c657de9119b55a2ccdd4a3d5bf9c6393ed22d474c4157b2a312a66f87f2b1e99
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 51
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -65,12 +65,12 @@ end
65
65
  generators = [['https://rubygems.org', 'origen_app_generators']] + Array(Origen.site_config.app_generators)
66
66
 
67
67
  def use_packaged_generators
68
+ puts "Using origen_app_generators that was packaged with Origen #{Origen.version}"
68
69
  FileUtils.cp_r Origen.top.join('origen_app_generators').to_s, '.'
69
70
  FileUtils.mv 'origen_app_generators', '0'
70
71
  end
71
72
 
72
73
  if update_required
73
- puts 'Fetching the latest app generators...'
74
74
  FileUtils.rm_rf(generators_dir) if File.exist?(generators_dir)
75
75
  FileUtils.mkdir_p(generators_dir)
76
76
 
@@ -79,13 +79,18 @@ if update_required
79
79
  # If a reference to a gem from a gem server
80
80
  if gen.is_a?(Array)
81
81
  begin
82
+ print "Determining the latest version of #{gen[1]}..."
82
83
  response = HTTParty.get("#{gen[0]}/api/v1/dependencies.json?gems=#{gen[1]}", timeout: 2)
83
84
 
84
85
  if response.success?
85
86
  latest_version = JSON.parse(response.body).map { |v| v['number'] }.max
87
+ puts latest_version.to_s
86
88
 
87
- response = HTTParty.get("#{gen[0]}/gems/#{gen[1]}-#{latest_version}.gem", timeout: 5)
89
+ url = "#{gen[0]}/gems/#{gen[1]}-#{latest_version}.gem"
90
+ print "Fetching #{url}..."
91
+ response = HTTParty.get(url, timeout: 5)
88
92
  if response.success?
93
+ puts 'SUCCESS'
89
94
  File.open("#{gen[1]}-#{latest_version}.gem", 'wb') do |f|
90
95
  f.write response.parsed_response
91
96
  end
@@ -94,36 +99,45 @@ if update_required
94
99
  FileUtils.rm_rf("#{gen[1]}-#{latest_version}.gem")
95
100
  FileUtils.mv("#{gen[1]}-#{latest_version}", i.to_s)
96
101
  else
102
+ puts 'FAILED'
97
103
  use_packaged_generators if i == 0
98
104
  end
99
105
  else
106
+ puts 'FAILED'
100
107
  use_packaged_generators if i == 0
101
108
  end
102
109
  rescue
110
+ puts 'FAILED'
103
111
  use_packaged_generators if i == 0
104
112
  end
105
113
 
106
114
  # If a reference to a git repo
107
115
  elsif gen.to_s =~ /\.git$/
108
116
  begin
117
+ print "Fetching #{gen}..."
109
118
  Origen::RevisionControl.new(remote: gen, local: i.to_s).checkout(version: 'master', force: true)
119
+ puts 'SUCCESS'
110
120
  rescue
111
- # Better for the user not to crash here, not much we can do otherwise
121
+ puts 'FAILED'
112
122
  end
113
123
 
114
124
  # Assume a reference to a folder
115
125
  else
116
126
  begin
117
127
  FileUtils.cp_r(gen, i.to_s) if File.exist?(gen)
128
+ puts 'SUCCESS'
118
129
  rescue
119
- # Better for the user not to crash here, not much we can do otherwise
130
+ puts 'FAILED'
120
131
  end
121
132
  end
122
133
  end
123
134
 
124
135
  Origen.session.app_generators[generators_dir] = Time.now
125
136
  end
137
+ else
138
+ puts 'Using cached app generators, run again with -f if you want to force a refresh'
126
139
  end
140
+ puts
127
141
 
128
142
  generators.each_with_index do |gen, i|
129
143
  lib = "#{generators_dir}/#{i}/lib"
@@ -0,0 +1,37 @@
1
+ # Misc
2
+ .irb_history
3
+ .byebug_history
4
+
5
+ # Editor cruft
6
+ *.swp
7
+ *.swo
8
+ *~
9
+
10
+ # Origen local files
11
+ /.bundle
12
+ /target/.default
13
+ /environment/.default
14
+ /release_note.txt
15
+ /pkg
16
+ /lbin
17
+ /.bin
18
+ /list/referenced.list
19
+ /tags
20
+ /.ref
21
+ /.ws
22
+ /.lsf
23
+ /.db
24
+ /log
25
+ /output
26
+ /web
27
+ /coverage
28
+ /.ref
29
+ /.yardoc
30
+ /.collection
31
+ /.bin
32
+ /.session
33
+ /tmp
34
+
35
+ # Cruft from other revision control systems
36
+ .SYNC
37
+ .svn
@@ -0,0 +1,9 @@
1
+ $VERBOSE=nil
2
+ require 'pp'
3
+ require 'rubygems'
4
+ require 'irb/completion'
5
+ require 'irb/ext/save-history'
6
+
7
+ IRB.conf[:SAVE_HISTORY] = 100
8
+ IRB.conf[:AUTO_INDENT] = true
9
+ IRB.conf[:IRB_NAME] = "origen"
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
4
+ - 2.2.2
5
+ script:
6
+ - bundle exec origen -v
7
+ - bundle exec origen specs
8
+ - bundle exec origen examples
9
+ - bundle exec origen web compile --no-serve
10
+ env:
11
+ - ORIGEN_GEM_USE_FROM_SYSTEM=false ORIGEN_GEM_MANAGE_BUNDLER=false
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.51.0
4
+ version: 0.51.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-27 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -666,6 +666,10 @@ files:
666
666
  - origen_app_generators/target/debug.rb
667
667
  - origen_app_generators/target/default.rb
668
668
  - origen_app_generators/target/production.rb
669
+ - origen_app_generators/templates/app_generators/application/.gitignore
670
+ - origen_app_generators/templates/app_generators/application/.irbrc
671
+ - origen_app_generators/templates/app_generators/application/.rspec
672
+ - origen_app_generators/templates/app_generators/application/.travis.yml
669
673
  - origen_app_generators/templates/app_generators/application/Gemfile
670
674
  - origen_app_generators/templates/app_generators/application/Rakefile
671
675
  - origen_app_generators/templates/app_generators/application/app/blocks/top_level.rb
@@ -704,6 +708,8 @@ files:
704
708
  - origen_app_generators/templates/app_generators/test_engineering/environment/j750.rb
705
709
  - origen_app_generators/templates/app_generators/test_engineering/environment/uflex.rb
706
710
  - origen_app_generators/templates/app_generators/test_engineering/environment/v93k.rb
711
+ - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/.keep
712
+ - origen_app_generators/templates/app_generators/test_engineering/test_block/.keep
707
713
  - origen_site_config.yml
708
714
  - source_setup
709
715
  - spec/format/origen_formatter.rb