barthes 0.0.15 → 0.0.16
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.
- data/Rakefile +16 -0
- data/lib/barthes/client/httparty.rb +3 -0
- data/lib/barthes/version.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -1,2 +1,18 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
|
3
|
+
desc 'vup'
|
4
|
+
task :vup do
|
5
|
+
version = ENV['VERSION']
|
6
|
+
File.open('lib/barthes/version.rb', 'w') do |f|
|
7
|
+
f.write <<-EOF
|
8
|
+
module Barthes
|
9
|
+
VERSION = "#{version}"
|
10
|
+
end
|
11
|
+
EOF
|
12
|
+
end
|
13
|
+
system "git add lib/barthes/version.rb"
|
14
|
+
system "git commit -m 'version up to #{version}'"
|
15
|
+
system "git push origin master"
|
16
|
+
system "rake build"
|
17
|
+
system "gem push pkg/barthes-#{version}.gem"
|
18
|
+
end
|
data/lib/barthes/version.rb
CHANGED