daddy 0.5.5 → 0.5.6

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: e6f58cf18c9ab41a3d9d6947db201cec35bb3392
4
- data.tar.gz: 30d2f7881b79cefa4ad50979c3d55e7d3c532e87
3
+ metadata.gz: 0eadb2a4c7c0979839b8071a127c7b4b3105469e
4
+ data.tar.gz: d4b5a43b23fbd764e30c09b52a991eb3d1a0513d
5
5
  SHA512:
6
- metadata.gz: 772fc2400b6b1035d3b9cff9dfe2df9764e648d65a95d35d1939c7d0ec062bb87aa541930ccbb2daf159ea5e49ba84458b67d215619304d1027fa23af3b12139
7
- data.tar.gz: 2f5890121d5e9152b7ca62c6a41da3cd51c7d7b9a9b1cb8314ecace85be01e9bbce48d2a44529660684f9816e2d5626aba7910243a40cae7b1da4f61f6537ee9
6
+ metadata.gz: 92b51005d14db37725b7f4b8e88dac35a4570576030bbe7edf89bdf57f382faadf4f1f7f4427ab25d5957cda668e62d7af6ad5d3bd94dad70f1be83025dd5596
7
+ data.tar.gz: 60c76f810f20cf21c5c300e08910b6f235c4f7e35f38c1455bcc89e1a0f982394ee4c637440940556e3f5c550097ac9fa0571934db85ce52aaa427798c757bf6
data/bin/dad CHANGED
@@ -6,7 +6,7 @@ DADDY_HOME = File.dirname(File.dirname(__FILE__))
6
6
 
7
7
  case action = ARGV[0]
8
8
  when 'new'
9
- RAILS_VERSION = '4.2.5.1'
9
+ RAILS_VERSION = '4.2.6'
10
10
  puts "using rails #{RAILS_VERSION}"
11
11
 
12
12
  APP_NAME = ARGV[1]
@@ -16,6 +16,11 @@ else
16
16
  raise "サポートしていないOSバージョンです。#{@os_version}"
17
17
  end
18
18
 
19
+ execute 'rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key' do
20
+ user 'root'
21
+ not_if 'test -e /etc/yum.repos.d/jenkins.repo'
22
+ end
23
+
19
24
  http_request '/etc/yum.repos.d/jenkins.repo' do
20
25
  user 'root'
21
26
  owner 'root'
@@ -24,10 +29,6 @@ http_request '/etc/yum.repos.d/jenkins.repo' do
24
29
  url 'http://pkg.jenkins-ci.org/redhat/jenkins.repo'
25
30
  end
26
31
 
27
- execute 'rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key' do
28
- user 'root'
29
- end
30
-
31
32
  package 'jenkins' do
32
33
  user 'root'
33
34
  end
@@ -68,6 +69,7 @@ directory '/var/lib/jenkins/plugins' do
68
69
  end
69
70
 
70
71
  @plugins = [
72
+ {:name => 'ansicolor', :version => nil},
71
73
  {:name => 'build-pipeline-plugin', :version => nil},
72
74
  {:name => 'git', :version => nil},
73
75
  {:name => 'git-client', :version => nil},
@@ -38,7 +38,7 @@ when /rhel-7\.(.*?)/
38
38
  end
39
39
 
40
40
  else
41
- raise "サポートしていないOSバージョンです。#{os_version}"
41
+ raise I18n.t('itamae.errors.unsupported_os_version', :os_version => os_version)
42
42
  end
43
43
 
44
44
  execute 'mysql_secure_installation' do
@@ -0,0 +1,4 @@
1
+ en:
2
+ itamae:
3
+ errors:
4
+ unsupported_os_version: unsupported os version. %{os_version}
@@ -0,0 +1,4 @@
1
+ ja:
2
+ itamae:
3
+ errors:
4
+ unsupported_os_version: サポートしていないOSバージョンです。%{os_version}
@@ -0,0 +1 @@
1
+ CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:]\.\-\+]/
data/lib/daddy/itamae.rb CHANGED
@@ -34,6 +34,11 @@ module Itamae
34
34
  end
35
35
  end
36
36
 
37
+ require 'i18n'
38
+ I18n.available_locales = [:en, :ja]
39
+ I18n.default_locale = ENV['LANG'].start_with?('ja_') ? :ja : en
40
+ I18n.load_path += Dir.glob(File.expand_path('../../../itamae/locale/*.yml', __FILE__))
41
+
37
42
  Dir[File.join(File.dirname(__FILE__), 'itamae', '*.rb')].each do |f|
38
43
  require f
39
44
  end
data/lib/daddy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Daddy
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
3
3
  end
@@ -4,7 +4,7 @@ require 'yaml'
4
4
  require File.expand_path('../../daddy/version', __FILE__)
5
5
 
6
6
  require 'i18n'
7
- I18n.load_path += Dir.glob(File.expand_path('../locale/*.yml', __FILE__))
7
+ I18n.load_path += Dir.glob(File.expand_path('../../tasks/locale/*.yml', __FILE__))
8
8
 
9
9
  def self.daddy_version
10
10
  Daddy::VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-27 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -254,6 +254,8 @@ files:
254
254
  - itamae/cookbooks/mysql/install.rb
255
255
  - itamae/cookbooks/mysql/mysql_secure_installation.sh
256
256
  - itamae/cookbooks/phantomjs/install.rb
257
+ - itamae/locale/en.yml
258
+ - itamae/locale/ja.yml
257
259
  - itamae/templates/etc/god/master.conf.erb
258
260
  - itamae/templates/etc/init.d/god.erb
259
261
  - itamae/templates/etc/logrotate.d/god.erb
@@ -265,6 +267,7 @@ files:
265
267
  - lib/capistrano/daddy.rb
266
268
  - lib/capistrano/tasks/update_linked_files.rake
267
269
  - lib/daddy.rb
270
+ - lib/daddy/carrierwave.rb
268
271
  - lib/daddy/cucumber.rb
269
272
  - lib/daddy/cucumber/helpers.rb
270
273
  - lib/daddy/cucumber/helpers/assert.rb