bebox 0.1.1 → 0.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bebox/project.rb +2 -1
- data/lib/bebox/version.rb +1 -1
- data/spec/project_spec.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2bf2079871e2d268facdd94a40c0ae571dd129d5
|
|
4
|
+
data.tar.gz: b8789db03687f28d69697ca903642654ace54fb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5948b5da9d6640c00a1e98c396e21cb4d9a68c05cbcb95938e6775f3ce237573507193cebcfb842ec41c6cb5a9e336cfa6a7f415b375574eafe94d7b342c1f03
|
|
7
|
+
data.tar.gz: 193ba3d6264811cae1cbc8a4be3c030f33e7563e4b9ed129bbd152776560c1e70f472c78793dd877f9d1bc8673684ee551fcf014c38b689c73d32497cf2ab1d0
|
data/Gemfile.lock
CHANGED
data/lib/bebox/project.rb
CHANGED
|
@@ -83,8 +83,9 @@ module Bebox
|
|
|
83
83
|
|
|
84
84
|
# Create rbenv local
|
|
85
85
|
def generate_ruby_version
|
|
86
|
+
ruby_version = (RUBY_PATCHLEVEL == 0) ? RUBY_VERSION : "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
|
86
87
|
File.open("#{self.path}/.ruby-version", 'w') do |f|
|
|
87
|
-
f.write
|
|
88
|
+
f.write ruby_version
|
|
88
89
|
end
|
|
89
90
|
end
|
|
90
91
|
|
data/lib/bebox/version.rb
CHANGED
data/spec/project_spec.rb
CHANGED
|
@@ -55,8 +55,9 @@ describe 'Test 06: Bebox::Project' do
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
it 'generates a .ruby-version file' do
|
|
58
|
+
ruby_version = (RUBY_PATCHLEVEL == 0) ? RUBY_VERSION : "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
|
58
59
|
version = File.read("#{subject.path}/.ruby-version").strip
|
|
59
|
-
expect(version).to eq(
|
|
60
|
+
expect(version).to eq(ruby_version)
|
|
60
61
|
end
|
|
61
62
|
|
|
62
63
|
it 'creates a Capfile' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bebox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Codescrum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-09-
|
|
11
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|