parliament-ruby 0.5.14 → 0.5.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe2d9f91ca4ff9e73d2f74bb4deefe0d11832343
4
- data.tar.gz: 8776809be74bd159e282c435cbbcd196b428e8e1
3
+ metadata.gz: 98c0150d991717ad13dcaadd22ecfd77eac636ac
4
+ data.tar.gz: 53aeccc160f0263dc4e61a9041597cb567365ebe
5
5
  SHA512:
6
- metadata.gz: be59f19cf11bfac846f7144dc93e6925438eb716e9981af3e757af30cd0375b2502a25276da2eb77837a1fbab19b4d9a76bc8a2bb1c6c09b593836fd838fe4dd
7
- data.tar.gz: 2749005da3338cdbf3accac8d1e9fc6d2cca5ca49015624b81576588d1fa16edf23fd0f5599a0862bbc6a1a8c02eb49c75467b7037308875f88994e47437a6dc
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
- `gem build parliament-ruby.gemspec`
12
- p 'build ended'
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
- %x(gem push parliament-ruby-"#{VERSION}" -k 8bde655e77394afb101db5df2fc08804m)
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
@@ -1,3 +1,3 @@
1
1
  module Parliament
2
- VERSION = '0.5.14'.freeze
2
+ VERSION = '0.5.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.14
4
+ version: 0.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner