cany 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 575282993ba4ffbbf4a1f932a57658c6d570965e
4
- data.tar.gz: 8bcf88c7b8cf69da3108189061c06229f15b739e
3
+ metadata.gz: 259ed776e530912657f05fd1f8ec41ef3de1d667
4
+ data.tar.gz: 6c9441bcd31cec929af0d129206495cb54ab5f34
5
5
  SHA512:
6
- metadata.gz: 10d981813625901b4618e2d15679c0b898f064964f2780c8bbc6f2e2c1cadc9cbabdccfd5c138dd6d5c90183a5bfc8cca2d265465fc22c45c5f08a7c86aeffa9
7
- data.tar.gz: da1ad37fd1fff55b7d7f0f9fa51840038bd44c5c0f4a57f0fb34bc0fc6b897b5a1414010857e0eddf01ac7d12230e88308a04dadea4e94764d25944e993cb309
6
+ metadata.gz: 28292d32841cc8e2842207dfb71d9d0b90cf8367ab42f1fb8d6adc85dd398527a9b2d8bf5183b367d48c906d6e9d24eb6e497ceaa56d9d3e37e9aeaf405bac7b
7
+ data.tar.gz: 68462bee6203f87debebae7d4e9dbbcef6f6aa858da5904ed51502852ff596b7d5cb15d927cfb8b1f36be61bfbf907e7c696068722e30f60f530ba04733965c3
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
data/Gemfile CHANGED
@@ -5,5 +5,6 @@ gemspec
5
5
 
6
6
  group :test do
7
7
  gem 'deb_control', '~> 0.0.1'
8
+ gem 'coveralls', require: false
8
9
  gem 'timecop'
9
10
  end
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Cany
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/cany.png)](http://badge.fury.io/rb/cany)
4
+ [![Build Status](https://travis-ci.org/mswart/cany.png?branch=master)](https://travis-ci.org/mswart/cany)
5
+ [![Coverage Status](https://coveralls.io/repos/mswart/cany/badge.png?branch=master)](https://coveralls.io/r/mswart/cany)
6
+ [![Code Climate](https://codeclimate.com/github/mswart/cany.png)](https://codeclimate.com/github/mswart/cany)
7
+
3
8
  Cany is a toolkit to create easily distribution packages from your (ruby) application. The goal is to reduce the packaging work to managing the application meta data (specification).
4
9
 
5
10
  The goal is to support all (common) package manager - all from the some specification, although at the moment is only dpkg implemented.
@@ -72,7 +72,8 @@ module Cany
72
72
  require 'bundler'
73
73
  lock_path = File.join(spec.base_dir, 'Gemfile.lock')
74
74
  extra_libs = {
75
- pg: ['libpq-dev', 'libpq5']
75
+ pg: ['libpq-dev', 'libpq5'],
76
+ ethon: ['libcurl3 | libcurl3-gnutls | libcurl3-nss', 'libcurl3 | libcurl3-gnutls | libcurl3-nss']
76
77
  }
77
78
  src_deps = ['debhelper (>= 7.0.50~)', ruby_deb, ruby_deb + '-dev']
78
79
  bin_deps = ['${shlibs:Depends}', '${misc:Depends}', ruby_deb]
@@ -20,7 +20,7 @@ module Cany
20
20
 
21
21
  def binary
22
22
  instance_eval &spec.binary if spec.binary
23
- File.write('debian/xikolo-account.debhelper.log', @log)
23
+ File.write("debian/#{spec.name}.debhelper.log", @log)
24
24
  exec %w(dh binary)
25
25
  end
26
26
  end
@@ -57,7 +57,7 @@ module Cany
57
57
  # The method expects as arguments the program name and additional parameters for the program.
58
58
  # See exec for more examples
59
59
  def ruby_bin(*args)
60
- exec 'ruby', '-S', *args
60
+ exec RbConfig.ruby, '-S', *args
61
61
  end
62
62
 
63
63
  # @api public
@@ -9,7 +9,9 @@ module Cany
9
9
  end
10
10
 
11
11
  def build
12
- ruby_bin 'rake', 'assets:precompile'
12
+ ENV['RAILS_ENV'] = 'assets'
13
+ ruby_bin 'bundle', 'exec', 'rake', 'assets:precompile'
14
+ ENV['RAILS_ENV'] = 'production'
13
15
  inner.build
14
16
  end
15
17
 
@@ -2,7 +2,7 @@ module Cany
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
8
8
  def self.to_s; STRING end
@@ -1,4 +1,7 @@
1
- require 'bundler/setup'
1
+ require 'coveralls'
2
+ Coveralls.wear! do
3
+ add_filter 'spec'
4
+ end
2
5
 
3
6
  require 'cany'
4
7
  require 'deb_control'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Malte Swart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-12 00:00:00.000000000 Z
11
+ date: 2013-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - .gitignore
64
+ - .travis.yml
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md