daddy 0.12.0 → 0.12.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd77f32d1f89b47fc19d5c35efb4711c1e72fcce4e2dfa2984332278f86f6636
4
- data.tar.gz: cecd83ad21bb9f8847b6e98f0aca8ffb6f333bad65d60ad9dbc1b13da174a991
3
+ metadata.gz: 5546040134b767b9acea4ec78f71ece754c5fd2616c2dad158394af4ba9a85d3
4
+ data.tar.gz: eed047c392ed56ee97d48f0b02c454531f635ee6a2d35e8cd3d2f0566f14b17c
5
5
  SHA512:
6
- metadata.gz: c14ae8d1ad86dc4a2c3bbaec528bd81b5d18183db95a155cf67dc699b5a7f1b64d12f00b963d659eab24085db7743a3a8bc3bbdcdb313b0860871b03dc9c82ce
7
- data.tar.gz: 34c1733777d3560ae565002a31afa4af551b0ab733b183372e09bfc1171f16e33efddb9f2d7b28e1b99f75808c45de7e87d2adf91162137c141310985fcdb07d
6
+ metadata.gz: 8cc9bfeaf3842a481c93e8d68ad6117b93c9764964e302c541094e7eb0cdb6aa72b78bcc87993c3598ed283f8d1479f53dd23284216c5eee4cbcef6ff1573218
7
+ data.tar.gz: 6e6a104964911ee1941f02481a86072ccc1c83e380a1ec6d56e8bf9864609bbcd7298b465fc8186628b006b2149ca794a2db5a64885a9dfe4c22a2f968b77c0d
@@ -1,7 +1,6 @@
1
1
  %w{
2
2
  autoconf
3
3
  automake
4
- curl
5
4
  gcc
6
5
  gcc-c++
7
6
  git
@@ -35,9 +34,16 @@ end
35
34
  package name do
36
35
  user 'root'
37
36
  options '--enablerepo=powertools'
37
+ only_if "grep -qE '^AlmaLinux release 8\.[0-9]+' /etc/almalinux-release"
38
38
  end
39
39
  end
40
40
 
41
- execute 'dnf clean all --enablerepo=powertools' do
42
- user 'root'
41
+ %w{
42
+ libyaml-devel
43
+ }.each do |name|
44
+ package name do
45
+ user 'root'
46
+ options '--enablerepo=crb'
47
+ only_if "grep -qE '^AlmaLinux release 9\.[0-9]+' /etc/almalinux-release"
48
+ end
43
49
  end
@@ -1,49 +1,2 @@
1
- file '/etc/yum.repos.d/nodesource-nodejs.repo' do
2
- user 'root'
3
- owner 'root'
4
- group 'root'
5
- mode '644'
6
- end
7
-
8
- execute 'place /etc/yum.repos.d/nodesource-nodejs.repo' do
9
- user 'root'
10
- command <<-EOF
11
- set -eu
12
- sudo cp -f #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/nodesource-nodejs.repo')} /etc/yum.repos.d/nodesource-nodejs.repo
13
- sudo chmod 644 /etc/yum.repos.d/nodesource-nodejs.repo
14
- EOF
15
- not_if "diff #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/nodesource-nodejs.repo')} /etc/yum.repos.d/nodesource-nodejs.repo"
16
- end
17
-
18
- package 'nodejs' do
19
- user 'root'
20
- version '22.21.1-1nodesource'
21
- options '--enablerepo=nodesource-nodejs'
22
- end
23
-
24
- execute 'dnf clean all --enablerepo=nodesource-nodejs' do
25
- user 'root'
26
- action :nothing
27
- subscribes :run, "package[nodejs]", :immediately
28
- end
29
-
30
- execute 'place /etc/yum.repos.d/yarn.repo' do
31
- user 'root'
32
- command <<-EOF
33
- set -eu
34
- sudo cp -f #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/yarn.repo')} /etc/yum.repos.d/yarn.repo
35
- sudo chmod 644 /etc/yum.repos.d/yarn.repo
36
- EOF
37
- not_if "diff #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/yarn.repo')} /etc/yum.repos.d/yarn.repo"
38
- end
39
-
40
- package 'yarn' do
41
- user 'root'
42
- options '--enablerepo=yarn'
43
- end
44
-
45
- execute 'dnf clean all --enablerepo=yarn' do
46
- user 'root'
47
- action :nothing
48
- subscribes :run, "package[yarn]", :immediately
49
- end
1
+ include_recipe 'nodejs'
2
+ include_recipe 'yarn'
@@ -0,0 +1,8 @@
1
+ [nodesource-nodejs]
2
+ name=Node.js Packages for Linux RPM based distros - x86_64
3
+ baseurl=https://rpm.nodesource.com/pub_18.x/nodistro/nodejs/x86_64
4
+ priority=9
5
+ enabled=0
6
+ gpgcheck=1
7
+ gpgkey=https://rpm.nodesource.com/gpgkey/ns-operations-public.key
8
+ module_hotfixes=1
@@ -0,0 +1,8 @@
1
+ [nodesource-nodejs]
2
+ name=Node.js Packages for Linux RPM based distros - x86_64
3
+ baseurl=https://rpm.nodesource.com/pub_20.x/nodistro/nodejs/x86_64
4
+ priority=9
5
+ enabled=0
6
+ gpgcheck=1
7
+ gpgkey=https://rpm.nodesource.com/gpgkey/ns-operations-public.key
8
+ module_hotfixes=1
@@ -0,0 +1,21 @@
1
+ execute 'place /etc/yum.repos.d/nodesource-nodejs.repo' do
2
+ user 'root'
3
+ command <<-EOF
4
+ set -eu
5
+ sudo cp -f #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/nodesource-nodejs-v22.repo')} /etc/yum.repos.d/nodesource-nodejs.repo
6
+ sudo chmod 644 /etc/yum.repos.d/nodesource-nodejs.repo
7
+ EOF
8
+ not_if "diff #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/nodesource-nodejs-v22.repo')} /etc/yum.repos.d/nodesource-nodejs.repo"
9
+ end
10
+
11
+ package 'nodejs' do
12
+ user 'root'
13
+ version '22.22.2-1nodesource'
14
+ options '--enablerepo=nodesource-nodejs'
15
+ end
16
+
17
+ execute 'dnf clean all --enablerepo=nodesource-nodejs' do
18
+ user 'root'
19
+ action :nothing
20
+ subscribes :run, "package[nodejs]", :immediately
21
+ end
@@ -0,0 +1,20 @@
1
+ execute 'place /etc/yum.repos.d/yarn.repo' do
2
+ user 'root'
3
+ command <<-EOF
4
+ set -eu
5
+ sudo cp -f #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/yarn.repo')} /etc/yum.repos.d/yarn.repo
6
+ sudo chmod 644 /etc/yum.repos.d/yarn.repo
7
+ EOF
8
+ not_if "diff #{::File.join(::File.dirname(__FILE__), 'files/etc/yum.repos.d/yarn.repo')} /etc/yum.repos.d/yarn.repo"
9
+ end
10
+
11
+ package 'yarn' do
12
+ user 'root'
13
+ options '--enablerepo=yarn'
14
+ end
15
+
16
+ execute 'dnf clean all --enablerepo=yarn' do
17
+ user 'root'
18
+ action :nothing
19
+ subscribes :run, "package[yarn]", :immediately
20
+ end
@@ -1,4 +1,4 @@
1
- version = ENV['RUBY_VERSION'] || '3.4.8'
1
+ version = ENV['RUBY_VERSION'] || '3.4.9'
2
2
  short_version = version.split('.')[0..1].join('.')
3
3
 
4
4
  execute "download ruby-#{version}" do
@@ -43,7 +43,7 @@ ohai_version = case short_version
43
43
  when '2.7'
44
44
  '19.0.3'
45
45
  else
46
- '19.1.16'
46
+ '19.1.24'
47
47
  end
48
48
 
49
49
  {
@@ -0,0 +1 @@
1
+ 7bb4d4f5e807cc27251d14d9d6086d182c5b25875191e44ab15b709cd7a7dd9c ruby-3.4.9.tar.gz
data/lib/daddy/version.rb CHANGED
@@ -2,6 +2,6 @@ module Daddy
2
2
  VERSION = [
3
3
  VERSION_MAJOR = '0',
4
4
  VERSION_MINOR = '12',
5
- VERSION_REVISION = '0'
5
+ VERSION_REVISION = '1'
6
6
  ].join('.')
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
@@ -288,12 +288,17 @@ files:
288
288
  - itamae/environments/docker/default.rb
289
289
  - itamae/environments/local.rb
290
290
  - itamae/environments/nodejs/default.rb
291
- - itamae/environments/nodejs/files/etc/yum.repos.d/nodesource-nodejs.repo
291
+ - itamae/environments/nodejs/files/etc/yum.repos.d/nodesource-nodejs-v18.repo
292
+ - itamae/environments/nodejs/files/etc/yum.repos.d/nodesource-nodejs-v20.repo
293
+ - itamae/environments/nodejs/files/etc/yum.repos.d/nodesource-nodejs-v22.repo
292
294
  - itamae/environments/nodejs/files/etc/yum.repos.d/yarn.repo
295
+ - itamae/environments/nodejs/nodejs.rb
296
+ - itamae/environments/nodejs/yarn.rb
293
297
  - itamae/environments/ruby/default.rb
294
298
  - itamae/environments/ruby/ruby-2.7.8.tar.gz_sha256sum.txt
295
299
  - itamae/environments/ruby/ruby-3.2.9.tar.gz_sha256sum.txt
296
300
  - itamae/environments/ruby/ruby-3.4.8.tar.gz_sha256sum.txt
301
+ - itamae/environments/ruby/ruby-3.4.9.tar.gz_sha256sum.txt
297
302
  - itamae/locale/en.yml
298
303
  - itamae/locale/ja.yml
299
304
  - itamae/templates/etc/god/master.conf.erb
@@ -380,7 +385,6 @@ files:
380
385
  - lib/tasks/nginx.rake
381
386
  - lib/tasks/obs_studio.rake
382
387
  - lib/tasks/phantomjs.rake
383
- - lib/tasks/publish.rake
384
388
  - lib/tasks/rails_erd.rake
385
389
  - lib/tasks/resque.rake
386
390
  - lib/tasks/resque/app.god.erb
@@ -1,104 +0,0 @@
1
- require 'daddy/git'
2
- require 'nokogiri'
3
-
4
- namespace :dad do
5
- task :publish do
6
- fail('設定「cucumber.title」がありません。') unless Daddy.config.cucumber.title?
7
-
8
- if File.exist?("db/schema.rb")
9
- fail unless system('rake db:schema:load RAILS_ENV=test')
10
- end
11
-
12
- system("mkdir -p features/reports")
13
- system("rm -Rf features/reports/*")
14
-
15
- fail unless system("bundle exec rake dad:cucumber PUBLISH=true EXPAND=false COVERAGE=false features/開発日記")
16
- system("mkdir -p features/reports/diary")
17
- system("mv features/reports/index.html features/reports/diary")
18
- system("mv features/reports/images features/reports/diary")
19
-
20
- unless ENV['SKIP_SPEC']
21
- fail unless system("bundle exec rake dad:cucumber PUBLISH=true EXPAND=false features/仕様書")
22
- system("mkdir -p features/reports/spec")
23
- system("mv features/reports/index.html features/reports/spec")
24
- system("mv features/reports/images features/reports/spec")
25
- end
26
-
27
- git = Daddy::Git.new
28
- branch = git.current_branch
29
-
30
- # 公開
31
- base_dir = dad_publish_base_dir
32
- system("sudo mkdir -p #{base_dir}")
33
- system("sudo chown -R #{ENV['USER']}:#{ENV['USER']} #{base_dir}")
34
- system("mkdir -p #{base_dir}/#{branch}")
35
- system("rm -Rf #{base_dir}/#{branch}/*")
36
- system("cp -Rf features/reports/* #{base_dir}/#{branch}/")
37
- if File.exist? 'coverage'
38
- system("cp -Rf coverage #{base_dir}/#{branch}/")
39
- end
40
-
41
- # 開発日記を統合
42
- if branch == 'master'
43
- features = {}
44
- dad_publish_sprint_dirs(base_dir).each do |dir|
45
- dad_publish_extract_features(dir).each do |div|
46
- feature = features[div['id']]
47
- if feature
48
- div.css('div.narrative').each do |narrative|
49
- feature.add_child(narrative)
50
- end
51
- div.css('div.scenario').each do |scenario|
52
- feature.add_child(scenario)
53
- end
54
- else
55
- features[div['id']] = div
56
- end
57
- end
58
- end
59
-
60
- # 空HTMLを生成
61
- system("bundle exec rake dad:cucumber PUBLISH=true EXPAND=false COVERAGE=false features/support")
62
-
63
- doc = Nokogiri::HTML(File.read('features/reports/index.html'))
64
- contents_div = doc.css('div.contents').first
65
- features.keys.sort.each do |key|
66
- contents_div.add_child(features[key])
67
- end
68
- File.write("#{base_dir}/index.html", doc)
69
- end
70
- end
71
-
72
- end
73
-
74
- def self.dad_publish_sprint_dirs(base_dir)
75
- ret = Dir[base_dir + '/p*'].sort{|a, b| File.basename(a)[1..-1].to_f <=> File.basename(b)[1..-1].to_f}
76
- ret << base_dir + '/master'
77
- ret
78
- end
79
-
80
- def self.dad_publish_extract_features(dir)
81
- ret = []
82
- return [] unless File.exist?(dir) and File.directory?(dir)
83
-
84
- html = dir + '/diary/index.html'
85
- return [] unless File.exist?(html)
86
-
87
- doc = Nokogiri::HTML(File.read(html))
88
- doc.css('div.feature').each do |div|
89
- div.css('img.screenshot').each do |img|
90
- img['src'] = File.basename(dir) + '/diary/' + img['src']
91
- end
92
- ret << div
93
- end
94
-
95
- ret
96
- end
97
-
98
- def self.dad_publish_base_dir
99
- '/var/lib/daddy/' + dad_publish_title_to_dirname
100
- end
101
-
102
- def self.dad_publish_title_to_dirname
103
- Daddy.config.cucumber.title.sub(' ', '_').downcase
104
- end