redsnow 0.1.5 → 0.1.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: 813bf0b33e071a2e28d722cdda30c3e38ba9ff64
4
- data.tar.gz: a8db68894fdcac94a2e1d18eaa7d4f6d4a612287
3
+ metadata.gz: 471d343f32c079a7420b9cc9df8377700bd15628
4
+ data.tar.gz: a61fbc9b75a3a19ffae82cbb93e7f1573c23ba3b
5
5
  SHA512:
6
- metadata.gz: 4d6d46dbb8704bf206ee1e27c404bed7a270eee2844cd2755d9c93c4447cf957b88c593f22b181c16bab96009896baa99949725a3966668ef220dc93e891729f
7
- data.tar.gz: 38ed17f995f93b77c509660adc81262d47405806edb6cd64a8a28c69380e20e7ead8d5c6affbf66b6109126ea43ed6b44c70b72f810a272141cd5b1470bb0fc6
6
+ metadata.gz: add98cc11868851a984d68c173c0659d0f800ffecfc546c1ef2e9179998c90845a32f5efae4b829381e50daa784e8bc69087b00b29f737b69f5b0590a87b33b6
7
+ data.tar.gz: 7fc7d2a681eef08c8655cd9bf489e77ca1b0fbaea4d5449287fd6d5acfa257fd9b29d99963cb8182f926e14675ded8f6b000c9526bc33537d038d266ddd48e3f
data/.travis.yml CHANGED
@@ -9,6 +9,7 @@ before_install:
9
9
  - git submodule update --init --recursive
10
10
  - gem update bundler
11
11
  - bundle
12
+ env: RECOMPILE=true
12
13
  notifications:
13
14
  email:
14
15
  recipients:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Changelog
2
-
2
+ - 0.1.6
3
+ - Fixing problem with submodules in Gem install [IS#25](https://github.com/apiaryio/redsnow/issues/25)
3
4
  - 0.1.5
4
5
  - Ensure submodules are initialised before building [PR#22](https://github.\
5
6
  - com/apiaryio/redsnow/pull/22)
data/Rakefile CHANGED
@@ -4,8 +4,23 @@ rescue LoadError
4
4
  puts "Cannot load bundler/gem_tasks"
5
5
  end
6
6
 
7
- require 'rake/testtask'
8
- require 'ffi'
7
+ begin
8
+ require 'rake/testtask'
9
+ rescue LoadError
10
+ puts "Cannot load rake/testtask"
11
+ end
12
+
13
+ begin
14
+ require 'ffi'
15
+ rescue LoadError
16
+ puts "Cannot load ffi"
17
+ end
18
+
19
+ begin
20
+ require 'yard'
21
+ rescue LoadError
22
+ puts "Cannot load yard"
23
+ end
9
24
 
10
25
  task :default => :compile
11
26
 
@@ -15,19 +30,29 @@ task :compile do
15
30
  if FFI::Platform.mac?
16
31
  prefix = ""
17
32
  end
33
+ # Path to compiled snowcrash library
18
34
  path = File.expand_path("ext/snowcrash/build/out/Release/#{prefix}libsnowcrash.#{FFI::Platform::LIBSUFFIX}", File.dirname(__FILE__))
19
- puts path
35
+ puts "Path to library #{path}"
20
36
  if !File.exists?(path) || ENV['RECOMPILE']
21
- puts "Initializing submodules (if required)..."
22
- `git submodule update --init --recursive 2>/dev/null`
37
+ unless File.directory?(File.expand_path("ext/snowcrash/src"))
38
+ puts "Initializing submodules (if required)..."
39
+ `git submodule update --init --recursive 2>/dev/null`
40
+ end
23
41
  puts "Compiling extension..."
24
42
  `cd #{File.expand_path("ext/snowcrash/")} && ./configure --shared && make`
25
- exit $?.exitstatus
43
+ status = $?.exitstatus
44
+ if status == 0
45
+ puts "Compiling done."
46
+ else
47
+ puts "Compiling error, exiting."
48
+ next # If i'm using exit, abort I have some errors in rake install but gem can be installed
49
+ end
26
50
  else
27
51
  puts "Extension already compiled. To recompile set env variable RECOMPILE=true."
28
52
  end
29
53
  end
30
54
 
55
+ desc "Run tests"
31
56
  Rake::TestTask.new(:test) do |test|
32
57
  Rake::Task["compile"].invoke
33
58
 
@@ -38,7 +63,6 @@ end
38
63
 
39
64
  # ----- Documentation tasks ---------------------------------------------------
40
65
 
41
- require 'yard'
42
66
  YARD::Rake::YardocTask.new(:doc) do |t|
43
67
  t.options = %w| --embed-mixins --markup=markdown |
44
68
  end
data/Vagrantfile CHANGED
@@ -1,17 +1,16 @@
1
1
  Vagrant.configure("2") do |config|
2
- config.vm.box = "precise64"
3
- config.vm.box_url = "http://files.vagrantup.com/precise64.box"
2
+ config.vm.box = "ffuenf/ubuntu-14.04-server-amd64"
4
3
 
5
4
  # VirtualBox
6
5
  config.vm.provider :virtualbox do |vb|
7
6
  vb.customize ["modifyvm", :id, "--memory", "2048"]
8
- vb.customize ["modifyvm", :id, "--cpus", "1"]
7
+ vb.customize ["modifyvm", :id, "--cpus", "1"]
9
8
  end
10
9
 
11
10
  # VMWare Fusion
12
11
  config.vm.provider :vmware_fusion do |vb|
13
12
  vb.vmx["memsize"] = "4096"
14
- vb.vmx["numvcpus"] = "1"
13
+ vb.vmx["numvcpus"] = "1"
15
14
  end
16
15
 
17
16
  config.vm.network :private_network, ip: "10.3.3.3"
@@ -1,4 +1,4 @@
1
1
  module RedSnow
2
2
  # Gem version
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
data/provisioning.sh CHANGED
@@ -3,13 +3,8 @@
3
3
  # GCC 4.7
4
4
  sudo apt-get update -y
5
5
  sudo apt-get install -y python-software-properties
6
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
7
6
  sudo apt-get update -y
8
- sudo apt-get install -y gcc-4.7 g++-4.7 gdb build-essential git-core curl mc vim
9
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
10
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
11
-
12
- #sudo update-alternatives --config gcc
7
+ sudo apt-get install -y build-essential git-core curl mc vim
13
8
 
14
9
  # Ruby
15
10
  gem install bundler
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redsnow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ladislav Prskavec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi