ansible_spec 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -0
- data/lib/ansible_spec.rb +9 -0
- data/lib/ansible_spec/version.rb +1 -1
- data/lib/src/.rspec +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f02d25f38bddb84adcadc813fcb9514ae27d4437
|
4
|
+
data.tar.gz: 989c684e643e740430e6e14cb0af8ef99d0c27a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ae7e44a33c88d4a851aa9350dec1f209ea48454c19a0549464958cb6f3bb8808afd1cd0681643d1e8d4f07272c5c57c569ce230833485842bd773d17b85b51a
|
7
|
+
data.tar.gz: 383afd4c8708a09c756c90eb0d8acd1737bd5138e41f49dd0f022f140cec0b5b0776e6ba1f39bec38996e2405c783c1768bb5f1beef23aa85f9f761eea6236b0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# v0.2.15
|
2
|
+
- Merge [Add .rspec when run `ansiblespec-init`](https://github.com/volanja/ansible_spec/pull/76) by volanja
|
3
|
+
|
1
4
|
# v0.2.14
|
2
5
|
- Merge [Fix NoMethodError at get_variables](https://github.com/volanja/ansible_spec/pull/75) by [hico-horiuchi](https://github.com/hico-horiuchi)
|
3
6
|
|
data/README.md
CHANGED
@@ -34,6 +34,7 @@ $ ansiblespec-init
|
|
34
34
|
create spec/spec_helper.rb
|
35
35
|
create Rakefile
|
36
36
|
create .ansiblespec
|
37
|
+
create .rspec
|
37
38
|
```
|
38
39
|
|
39
40
|
## [Optional] `.ansiblespec`
|
@@ -194,6 +195,7 @@ sample is [here](https://github.com/volanja/ansible-sample-tdd)
|
|
194
195
|
```
|
195
196
|
.
|
196
197
|
├── .ansiblespec # Create file (use Serverspec). read above section.
|
198
|
+
├── .rspec # Create file (use Serverspec). read RSpec Doc.
|
197
199
|
├── README.md
|
198
200
|
├── hosts # use Ansible and Serverspec if .ansiblespec is not exist.
|
199
201
|
├── site.yml # use Ansible and Serverspec if .ansiblespec is not exist.
|
data/lib/ansible_spec.rb
CHANGED
@@ -13,6 +13,7 @@ module AnsibleSpec
|
|
13
13
|
safe_create_spec_helper
|
14
14
|
safe_create_rakefile
|
15
15
|
safe_create_ansiblespec
|
16
|
+
safe_create_rspec
|
16
17
|
end
|
17
18
|
|
18
19
|
|
@@ -42,6 +43,14 @@ module AnsibleSpec
|
|
42
43
|
end
|
43
44
|
end
|
44
45
|
|
46
|
+
def self.safe_create_rspec
|
47
|
+
content = File.open(File.dirname(__FILE__) + "/../lib/src/.rspec").read
|
48
|
+
safe_touch(".rspec")
|
49
|
+
File.open(".rspec", 'w') do |f|
|
50
|
+
f.puts content
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
45
54
|
def self.safe_mkdir(dir)
|
46
55
|
unless FileTest.exist?("#{dir}")
|
47
56
|
FileUtils.mkdir_p("#{dir}")
|
data/lib/ansible_spec/version.rb
CHANGED
data/lib/src/.rspec
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ansible_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- volanja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- lib/ansible_spec/vendor/hash.rb
|
148
148
|
- lib/ansible_spec/version.rb
|
149
149
|
- lib/src/.ansiblespec
|
150
|
+
- lib/src/.rspec
|
150
151
|
- lib/src/Rakefile
|
151
152
|
- lib/src/spec/spec_helper.rb
|
152
153
|
- spec/case/get_hash_behaviour/basic/.ansiblespec
|