cany 0.5.3 → 0.5.4

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: 637980638157417d259b5f2d8d8e2a3e94e41ad4
4
- data.tar.gz: d9eaf743f92f5171f0571c87aebf5a66798762a8
3
+ metadata.gz: 6cfebbb66d784001d4e8069a7924eca37e2f5901
4
+ data.tar.gz: 56a472517791b63dc4074bd3c4af193e432a8bce
5
5
  SHA512:
6
- metadata.gz: ccaee5f2e0418f398d5cce70aef65163f878883fb6bb729af4c600296ed68b6dbfeead1c9d132227af6c178a2316f293311cdf94c491cfe6e1244ca1a92bf040
7
- data.tar.gz: 244216fd5b069138a9868055698678e540422ea7da9250dd924818aaa203c7a88e041355e28c22af3e032edcd4d30047cb8c31a391ac89d5d2af15cfcc8a7f90
6
+ metadata.gz: 589175904939889f0653e5fab5a588a96015b965258cc536f009350b00ac054841c052fcbfd371b78c063a7070f76c2b003201309b640d1161503e4876d9b8ad
7
+ data.tar.gz: 8145aa3bfe2bd9ba6f20391638978b8c1aea1635f895985892fb76e6b40a587c008fb7b82283749771fc935d7214eb9121bc17105efbcbac0037348be196d107
data/.gitignore CHANGED
@@ -5,7 +5,6 @@
5
5
  .bundle
6
6
  .config
7
7
  .yardoc
8
- Gemfile.lock
9
8
  InstalledFiles
10
9
  _yardoc
11
10
  coverage
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.2
3
4
  - 2.0.0
4
5
  - 1.9.3
6
+ sudo: false
@@ -1,3 +1,14 @@
1
+ 0.5.4 / 2015-02-16
2
+ ==================
3
+
4
+ Bug Fixes:
5
+
6
+ * bundler: call bundler install with --retry 3
7
+ * rails: install bin directory (needed for rails console)
8
+ * bundler: libv8 needs python2.7
9
+ * bundler: rugged needs cmake and pkg-config to build
10
+
11
+
1
12
  0.5.3 / 2014-08-14
2
13
  ==================
3
14
 
@@ -0,0 +1,118 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cany (0.5.4)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ celluloid (0.16.0)
10
+ timers (~> 4.0.0)
11
+ coderay (1.1.0)
12
+ coveralls (0.7.9)
13
+ multi_json (~> 1.10)
14
+ rest-client (~> 1.7)
15
+ simplecov (~> 0.9.1)
16
+ term-ansicolor (~> 1.3)
17
+ thor (~> 0.19.1)
18
+ deb_control (0.0.1)
19
+ diff-lcs (1.2.5)
20
+ docile (1.1.5)
21
+ ffi (1.9.6)
22
+ formatador (0.2.5)
23
+ guard (2.12.1)
24
+ formatador (>= 0.2.4)
25
+ listen (~> 2.7)
26
+ lumberjack (~> 1.0)
27
+ nenv (~> 0.1)
28
+ notiffany (~> 0.0)
29
+ pry (>= 0.9.12)
30
+ shellany (~> 0.0)
31
+ thor (>= 0.18.1)
32
+ guard-compat (1.2.1)
33
+ guard-rspec (4.5.0)
34
+ guard (~> 2.1)
35
+ guard-compat (~> 1.1)
36
+ rspec (>= 2.99.0, < 4.0)
37
+ guard-yard (2.1.4)
38
+ guard (>= 1.1.0)
39
+ yard (>= 0.7.0)
40
+ hitimes (1.2.2)
41
+ libnotify (0.9.1)
42
+ ffi (>= 1.0.11)
43
+ listen (2.8.5)
44
+ celluloid (>= 0.15.2)
45
+ rb-fsevent (>= 0.9.3)
46
+ rb-inotify (>= 0.9)
47
+ lumberjack (1.0.9)
48
+ method_source (0.8.2)
49
+ mime-types (2.4.3)
50
+ multi_json (1.10.1)
51
+ nenv (0.2.0)
52
+ netrc (0.10.2)
53
+ notiffany (0.0.5)
54
+ nenv (~> 0.1)
55
+ shellany (~> 0.0)
56
+ pry (0.10.1)
57
+ coderay (~> 1.1.0)
58
+ method_source (~> 0.8.1)
59
+ slop (~> 3.4)
60
+ rake (10.4.2)
61
+ rb-fchange (0.0.6)
62
+ ffi
63
+ rb-fsevent (0.9.4)
64
+ rb-inotify (0.9.5)
65
+ ffi (>= 0.5.0)
66
+ redcarpet (3.2.2)
67
+ rest-client (1.7.2)
68
+ mime-types (>= 1.16, < 3.0)
69
+ netrc (~> 0.7)
70
+ rspec (3.2.0)
71
+ rspec-core (~> 3.2.0)
72
+ rspec-expectations (~> 3.2.0)
73
+ rspec-mocks (~> 3.2.0)
74
+ rspec-core (3.2.0)
75
+ rspec-support (~> 3.2.0)
76
+ rspec-expectations (3.2.0)
77
+ diff-lcs (>= 1.2.0, < 2.0)
78
+ rspec-support (~> 3.2.0)
79
+ rspec-mocks (3.2.0)
80
+ diff-lcs (>= 1.2.0, < 2.0)
81
+ rspec-support (~> 3.2.0)
82
+ rspec-support (3.2.1)
83
+ shellany (0.0.1)
84
+ simplecov (0.9.1)
85
+ docile (~> 1.1.0)
86
+ multi_json (~> 1.0)
87
+ simplecov-html (~> 0.8.0)
88
+ simplecov-html (0.8.0)
89
+ slop (3.6.0)
90
+ term-ansicolor (1.3.0)
91
+ tins (~> 1.0)
92
+ thor (0.19.1)
93
+ timecop (0.7.1)
94
+ timers (4.0.1)
95
+ hitimes
96
+ tins (1.3.4)
97
+ yard (0.8.7.6)
98
+
99
+ PLATFORMS
100
+ ruby
101
+
102
+ DEPENDENCIES
103
+ bundler (~> 1.3)
104
+ cany!
105
+ coveralls
106
+ deb_control (~> 0.0.1)
107
+ guard
108
+ guard-rspec
109
+ guard-yard
110
+ libnotify
111
+ rake
112
+ rb-fchange
113
+ rb-fsevent
114
+ rb-inotify
115
+ redcarpet
116
+ rspec
117
+ timecop
118
+ yard (~> 0.8.6)
@@ -37,7 +37,7 @@ module Cany
37
37
  ENV['HOME'] = File.absolute_path('debian')
38
38
  ruby_bin 'gem', %w(install bundler --version ~>1.6.5 --no-ri --no-rdoc --install-dir bundler --bindir bundler/bin)
39
39
  ENV['HOME'] = old_home
40
- ruby_bin 'bundle', %w(install --deployment --without), skipped_groups
40
+ ruby_bin 'bundle', %w(install --deployment --retry 3 --without), skipped_groups
41
41
  inner.build
42
42
  end
43
43
 
@@ -29,4 +29,13 @@ class Cany::Recipes::Bundler
29
29
  depend 'libmagickcore-dev', situation: :build
30
30
  depend 'libmagickwand-dev', situation: :build
31
31
  end
32
+
33
+ Gem.specify :libv8 do
34
+ depend 'python2.7', situation: :build
35
+ end
36
+
37
+ Gem.specify :rugged do
38
+ depend 'cmake', situation: :build
39
+ depend 'pkg-config', situation: :build
40
+ end
32
41
  end
@@ -37,7 +37,7 @@ module Cany
37
37
 
38
38
  def binary
39
39
  run_hook :env, :after
40
- %w(app config.ru db Gemfile Gemfile.lock lib public Rakefile vendor).each do |item|
40
+ %w(app bin config.ru db Gemfile Gemfile.lock lib public Rakefile vendor).each do |item|
41
41
  install item, "/usr/share/#{spec.name}" if File.exists? item
42
42
  end
43
43
 
@@ -2,7 +2,7 @@ module Cany
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 3
5
+ PATCH = 4
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
8
8
  def self.to_s; STRING end
@@ -40,7 +40,7 @@ describe Cany::Recipes::Bundler do
40
40
  recipe.inner = double('recipe')
41
41
  expect(recipe.inner).to receive(:build)
42
42
  end
43
- let(:bundler_args) { %(bundle install --deployment --without development test) }
43
+ let(:bundler_args) { %(bundle install --deployment --retry 3 --without development test) }
44
44
  it 'should ignore development and test' do
45
45
  @second = false
46
46
  expect(recipe).to receive(:ruby_bin) do |*args|
@@ -64,7 +64,7 @@ describe Cany::Recipes::Bundler do
64
64
  recipe.inner = double('recipe')
65
65
  expect(recipe.inner).to receive(:build)
66
66
  end
67
- let(:bundler_args) { %w(bundle install --deployment --without development test integration) }
67
+ let(:bundler_args) { %w(bundle install --deployment --retry 3 --without development test integration) }
68
68
  it 'should ignore development, test and integration' do
69
69
  @second = false
70
70
  expect(recipe).to receive(:ruby_bin).twice do |*args|
@@ -89,7 +89,7 @@ describe Cany::Recipes::Bundler do
89
89
  recipe.inner = double('recipe')
90
90
  expect(recipe.inner).to receive(:build)
91
91
  end
92
- let(:bundler_args) { %w(bundle install --deployment --without test) }
92
+ let(:bundler_args) { %w(bundle install --deployment --retry 3 --without test) }
93
93
  it 'should ignore only left over one' do
94
94
  @second = false
95
95
  expect(recipe).to receive(:ruby_bin).twice do |*args|
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'yaml'
2
3
 
3
4
  describe Cany::Recipes::Thin do
4
5
  let(:setup) { proc { use :thin } }
@@ -27,12 +28,12 @@ describe Cany::Recipes::Thin do
27
28
  %w(/usr/bin/test thin start --config /etc/test/thin.yml),
28
29
  user: 'www-data', group: 'www-data'
29
30
  )
30
- expect(recipe).to receive(:install_content).with '/etc/test/thin.yml', <<CONFIG
31
- ---
32
- environment: production
33
- socket: /var/run/test/sock
34
- pid: /var/run/test/thin.pid
35
- CONFIG
31
+ data = {
32
+ 'environment' => 'production',
33
+ 'socket' => "/var/run/test/sock",
34
+ 'pid' => '/var/run/test/thin.pid'
35
+ }
36
+ expect(recipe).to receive(:install_content).with '/etc/test/thin.yml', YAML.dump(data)
36
37
  subject
37
38
  expect(pre_scripts).to eq({
38
39
  mkdir_run: 'mkdir -p /var/run/test',
@@ -55,7 +55,7 @@ RSpec.configure do |config|
55
55
 
56
56
  config.before(:each) do
57
57
  @executed_programs = []
58
- allow_any_instance_of(Cany::Recipe).to receive(:exec) { |*args| @executed_programs << args.flatten }
58
+ allow_any_instance_of(Cany::Recipe).to receive(:exec) { |instance, *args| @executed_programs << args.flatten }
59
59
  end
60
60
 
61
61
  config.after(:each) do
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Malte Swart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Canning your ruby applications
@@ -60,10 +60,11 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
64
- - .travis.yml
63
+ - ".gitignore"
64
+ - ".travis.yml"
65
65
  - CHANGELOG.md
66
66
  - Gemfile
67
+ - Gemfile.lock
67
68
  - Guardfile
68
69
  - LICENSE.txt
69
70
  - README.md
@@ -119,17 +120,17 @@ require_paths:
119
120
  - lib
120
121
  required_ruby_version: !ruby/object:Gem::Requirement
121
122
  requirements:
122
- - - '>='
123
+ - - ">="
123
124
  - !ruby/object:Gem::Version
124
125
  version: '0'
125
126
  required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  requirements:
127
- - - '>='
128
+ - - ">="
128
129
  - !ruby/object:Gem::Version
129
130
  version: '0'
130
131
  requirements: []
131
132
  rubyforge_project:
132
- rubygems_version: 2.0.14
133
+ rubygems_version: 2.4.5
133
134
  signing_key:
134
135
  specification_version: 4
135
136
  summary: Canning your ruby applications