parliament-ruby 0.5.14 → 0.5.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/Rakefile +15 -4
- data/lib/parliament/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98c0150d991717ad13dcaadd22ecfd77eac636ac
|
4
|
+
data.tar.gz: 53aeccc160f0263dc4e61a9041597cb567365ebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb4b4a27510a7e77e4fce3b71d99cc19c866a170de4d42721c8382deb5b6d4ee2b823aed01a1c2d49f8c4ee632472a8b592d3c355da728a7794f897824f8f43e
|
7
|
+
data.tar.gz: 3e25fe25eb39d0b927a4389ca8a5b9f4c4a742b9188c91d9f68cfe6191166079bbf1df5c3c69cbd14cc2868b7074c7c42cd53dc4248f3bd7f26da841d9fa4b70
|
data/README.md
CHANGED
@@ -119,7 +119,7 @@ If you wish to submit a bug fix or feature, you can create a pull request and it
|
|
119
119
|
|
120
120
|
|
121
121
|
## License
|
122
|
-
[parliament-ruby][parliament-ruby] is licensed under the [Open Parliament Licence][info-license]
|
122
|
+
[parliament-ruby][parliament-ruby] is licensed under the [Open Parliament Licence][info-license].....
|
123
123
|
|
124
124
|
[ruby]: https://www.ruby-lang.org/en/
|
125
125
|
[bundler]: http://bundler.io
|
data/Rakefile
CHANGED
@@ -1,20 +1,31 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
require 'rspec/core/rake_task'
|
3
3
|
require_relative 'lib/parliament/version'
|
4
|
+
require 'open3'
|
4
5
|
|
5
6
|
RSpec::Core::RakeTask.new(:spec)
|
6
7
|
|
7
8
|
VERSION = Parliament::VERSION
|
8
9
|
|
10
|
+
def run_command(cmd)
|
11
|
+
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
|
12
|
+
exit_status = wait_thr.value
|
13
|
+
unless exit_status.success?
|
14
|
+
abort "FAILED !!! #{cmd}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
|
9
20
|
task :build do
|
10
21
|
p 'build started'
|
11
|
-
|
12
|
-
p
|
13
|
-
p "parliament-ruby gem built with version #{Parliament::VERSION}"
|
22
|
+
run_command("gem build parliament-ruby.gemspec")
|
23
|
+
#p "parliament-ruby gem successfully built with version #{VERSION}"
|
14
24
|
end
|
15
25
|
|
16
26
|
task :push do
|
17
|
-
|
27
|
+
run_command("gem push parliament-ruby-#{VERSION}.gem")
|
28
|
+
#system("gem push parliament-ruby-#{VERSION}")
|
18
29
|
end
|
19
30
|
|
20
31
|
#task default: :build
|
data/lib/parliament/version.rb
CHANGED