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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d92677e0cb9341ccd62bd0364fceb8aee7d72e6
4
- data.tar.gz: 4ac321f640753087bd368ef8c5e11c3917982644
3
+ metadata.gz: f02d25f38bddb84adcadc813fcb9514ae27d4437
4
+ data.tar.gz: 989c684e643e740430e6e14cb0af8ef99d0c27a9
5
5
  SHA512:
6
- metadata.gz: 54b657aa7e9b29209d45a71f8b126b566b89a449047699aed463d62ac5909513892a0d9e5f0ac88334b73a1041a6c0629b7e7297b9118ba8788b33064db98fbe
7
- data.tar.gz: cf0cd0a2272c4b5466207053d42907ea3e1c644416873fed971e4ae7b8e2bd2cd2b076d42ca4fdc4f10026ee111d2b8455772c181e1940ded298df9ee0d2bed5
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}")
@@ -1,3 +1,3 @@
1
1
  module AnsibleSpec
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
data/lib/src/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
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.14
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-25 00:00:00.000000000 Z
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