puppet-blacksmith 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzQxNDUxMzM4OGFmNmUyZTg5YjIzNjA1MDM5ZmJkZTYyYTgzNjIwMA==
4
+ MGI4M2FiZTBmMzY4ODVmZWY1YWUwZDkwODY5M2Q3M2YwZDFjYTliZA==
5
5
  data.tar.gz: !binary |-
6
- OWNjODg5OGY5MTI1YTI1YjY1NzRjNDZiZDJkNjZiNGI2Y2Q5NTNjMA==
6
+ OTgyOTQ3ZGYxMGMxYmQ1Zjc4M2Y4ZjI3OTc0MjFiZjE2NzljNmI2MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjBlMjZkYmVkYjdhZGVkYTFmNzIwODY2OTdmZmQwZTc1NzIyY2M1NWMyMjE1
10
- ZjFiMTU2N2E5NmQyM2M1ZDFmNjdkM2Y1YTY5MDM4YjMxNzE2YmI2NzE3M2Zi
11
- NWEwN2YyYjJiYjc4MDE1NWUwOGNiY2ZjZDdiYTY4ZjNhMjQ3MTM=
9
+ ZGEyYjk5ZWNmNzNhNTIxMzQ2NTk1YzY4MGNhNjYyZTYwYTI4NjQ5OWI0NGRj
10
+ YmQ2ODRjMjMyY2UxNGRhMjI1OGNlYzQxZjRiMjk5ZjM3ODhhZmE2MzI4NjUx
11
+ Njc1OWZkY2U1MDMxNTY2OTk5MmE0ZjNkNjliMmYyNTA5MmVjODg=
12
12
  data.tar.gz: !binary |-
13
- MDVjZDU2NTIyODM0MjMwZDFmNzI5ODg4ZWYxNGQ2YTgzMjU0ZTc1MDlmYTg0
14
- MDRlY2E4ZTUzZjEyZjMwZGU2MTk3Y2UwYTJiYzI5NTE4Nzc0Mzg2Yzc4Y2Y3
15
- NTNlMDlhOGI5NjFiNzJjMWFiYTU3Zjg2NzY3ZTYwYmRlOTNmMDA=
13
+ MjU3MDMwZGYwZDAzZWY5NzE1MTcwODEwMjhjYTAyYzNiZjNlZmJkMjY2MDhh
14
+ YTNhNTA3MmZlNDM2MDgyNTk1NDNmYjVjNzlkN2RhZDUzN2Q5MjdjZGQ0YTlk
15
+ YTgwOTU2YzhhNTA0ZWZmYTFjYmU2YTIyMDI5MmI0NWZiYmViZGI=
@@ -1,4 +1,6 @@
1
1
  require 'rest-client'
2
+ require 'json'
3
+ require 'yaml'
2
4
 
3
5
  module Blacksmith
4
6
  class Forge
@@ -13,10 +13,10 @@ module Blacksmith
13
13
  exec_git "tag v#{version}"
14
14
  end
15
15
 
16
- def commit_modulefile!
16
+ def commit_modulefile!(version)
17
17
  files = Blacksmith::Modulefile::FILES.select {|f| File.exists?(File.join(@path,f))}
18
18
  s = exec_git "add #{files.join(" ")}"
19
- s += exec_git "commit -m '[blacksmith] Bump version'"
19
+ s += exec_git "commit -m '[blacksmith] Bump version to #{version}'"
20
20
  s
21
21
  end
22
22
 
@@ -17,7 +17,8 @@ namespace :module do
17
17
 
18
18
  desc "Bump version and git commit"
19
19
  task :bump_commit => :bump do
20
- Blacksmith::Git.new.commit_modulefile!
20
+ m = Blacksmith::Modulefile.new
21
+ Blacksmith::Git.new.commit_modulefile!(m.version)
21
22
  end
22
23
 
23
24
  desc "Push module to the Puppet Forge"
@@ -1,3 +1,3 @@
1
1
  module Blacksmith
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
@@ -32,7 +32,7 @@ describe 'Blacksmith::Git' do
32
32
  end
33
33
 
34
34
  it "should commit the metadata file" do
35
- expect(subject.commit_modulefile!).to match(/\[blacksmith\] Bump version/)
35
+ expect(subject.commit_modulefile!(version)).to match(/\[blacksmith\] Bump version to #{version}/)
36
36
  end
37
37
  end
38
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-blacksmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MaestroDev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-20 00:00:00.000000000 Z
11
+ date: 2014-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client