vagrant-ovirt4 1.2.0 → 2.1.0

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.
Files changed (40) hide show
  1. checksums.yaml +5 -5
  2. data/.github/FUNDING.yml +3 -0
  3. data/.github/workflows/release.yml +20 -0
  4. data/.gitignore +1 -1
  5. data/CHANGELOG +31 -0
  6. data/Dockerfile +11 -0
  7. data/Gemfile +6 -7
  8. data/Gemfile.lock +98 -87
  9. data/README.md +27 -3
  10. data/Rakefile +1 -7
  11. data/SECURITY.md +23 -0
  12. data/lib/vagrant-ovirt4.rb +4 -0
  13. data/lib/vagrant-ovirt4/action.rb +29 -9
  14. data/lib/vagrant-ovirt4/action/connect_ovirt.rb +19 -6
  15. data/lib/vagrant-ovirt4/action/create_network_interfaces.rb +57 -43
  16. data/lib/vagrant-ovirt4/action/create_vm.rb +87 -7
  17. data/lib/vagrant-ovirt4/action/destroy_vm.rb +14 -1
  18. data/lib/vagrant-ovirt4/action/disconnect_ovirt.rb +25 -0
  19. data/lib/vagrant-ovirt4/action/halt_vm.rb +11 -0
  20. data/lib/vagrant-ovirt4/action/read_ssh_info.rb +6 -1
  21. data/lib/vagrant-ovirt4/action/read_state.rb +7 -1
  22. data/lib/vagrant-ovirt4/action/resize_disk.rb +18 -17
  23. data/lib/vagrant-ovirt4/action/snapshot_list.rb +15 -19
  24. data/lib/vagrant-ovirt4/action/start_vm.rb +37 -23
  25. data/lib/vagrant-ovirt4/action/wait_til_suspended.rb +1 -1
  26. data/lib/vagrant-ovirt4/action/wait_till_down.rb +13 -2
  27. data/lib/vagrant-ovirt4/action/wait_till_up.rb +35 -6
  28. data/lib/vagrant-ovirt4/config.rb +60 -2
  29. data/lib/vagrant-ovirt4/errors.rb +20 -0
  30. data/lib/vagrant-ovirt4/plugin.rb +3 -3
  31. data/lib/vagrant-ovirt4/version.rb +1 -1
  32. data/locales/en.yml +17 -1
  33. data/spec/vagrant-ovirt4/config_spec.rb +33 -8
  34. data/templates/Vagrantfile.erb +199 -0
  35. data/tools/prepare_redhat_for_box.sh +6 -1
  36. data/vagrant-ovirt4.gemspec +2 -1
  37. metadata +26 -15
  38. data/lib/vagrant-ovirt4/action/sync_folders.rb +0 -69
  39. data/lib/vagrant-ovirt4/cap/nic_mac_addresses.rb +0 -15
  40. data/test.rb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a27827fdc957c72739e7370205f87421bdc11bb2
4
- data.tar.gz: 696f0b8fa78127ca5ff3822b3f5ed1308118c9d8
2
+ SHA256:
3
+ metadata.gz: 032a8a924b7d7f1870fc319f4d4ed13f33910d0bb6bccde70fce977f25c8cafd
4
+ data.tar.gz: d3495cebef0d0daf9c5d2d9bbd09a3c271844844c4a334258049dc55a0f31062
5
5
  SHA512:
6
- metadata.gz: cec6cf0493c478586ae46a5d4206908763e5ad1689b511afce420216f25e5eaf712f2d94b471bd7bdc5c35806f77da6a296fe4ae4ea9ac71675bd99241c07bb4
7
- data.tar.gz: 7a03e6879022c4f263c46e42ae2accc102726830d7b5349159e7f30d32ada547c03188ea06757c347efac169cd144f7242f7aabb0b6d66a177fc7a32f416ac86
6
+ metadata.gz: 9b04cf43df3269c745ffb0bb7d503f9f192da7e3b7939d2b2428e3597684e4ed6dbebca051c16ff20529415f4a85ea506070658d84089e47bf9fbf9e16ae8c28
7
+ data.tar.gz: e6f60e4dbb661bcfa8cc39f8cd0fcb4633949490abf8910a5fc8f792c9ef45451aff4d6aed449e4e52e7d1cb020f6327a1dcf2d4743a1a342463263cf114782c
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: myoung34
@@ -0,0 +1,20 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ paths:
6
+ - lib/vagrant-ovirt4/version.rb
7
+ branches:
8
+ - master
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: fregante/setup-git-user@v1
15
+ - name: Release Gem
16
+ uses: cadwallion/publish-rubygems-action@master
17
+ env:
18
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
20
+ RELEASE_COMMAND: rake release
data/.gitignore CHANGED
@@ -6,4 +6,4 @@
6
6
  /.idea
7
7
  *.gem
8
8
  /manifests
9
- hiera.yaml
9
+ vendor
data/CHANGELOG ADDED
@@ -0,0 +1,31 @@
1
+ v2.1.0
2
+ 41b8c63 Move where rspec-mocks is included.
3
+ 0015c45 Update engine binding.
4
+ b2a0015 Not actually using the vagrant-spec thing.
5
+ a598043 Address the change in parsing.
6
+ 0ad3b72 Get the tests runnable.
7
+ a8f1d5f Test the connection before passing it on for use.
8
+ 8adf277 list only snapshots for vm's defined in the environment
9
+ a2ee89b Add security.md
10
+ 3399aab Add CHANGELOG
11
+
12
+ v2.0.0
13
+
14
+ 1810832 Attempt to fix gem push
15
+ 9d1ef6b handle fallback with rescue
16
+ 6cc0f90 fix for backwards compatibility with ovirt 4.3
17
+ 2298314 Make no assumptions on biosdevname/systemd device naming
18
+ 1d870df Support for network interfaces named by biosdevname
19
+ 5c8035a add missing translation
20
+ f9b6e28 fixed double disconnect due to action_up used in combination wth with_ovirt
21
+ 96f17c0 fixed doule disconnect on reload due to use of with_ovirt
22
+ 697e3d4 fixed inconsistent usages of memory units (MB/MiB and GB/GiB)
23
+ 5a68e8b vagrant destroy only calls halt if vm is up
24
+ 8772ee9 fix for erroneous rsync and state error due to missing ip address
25
+ 5b49114 Bump nokogiri from 1.10.9 to 1.11.0
26
+ b8314fb fix for waiting indefinitely for an ip when deploying on ovirt 4.4
27
+ 722f2e0 Default to rsync instead of NFS like before
28
+ 2582f53 Use vagrant builtin rsync folder sync
29
+ 84c6c53 In case graceful shutdown failed, fallback to stopping VM immediately
30
+ 640d640 Fix up dependencies
31
+ 029b53b give guests a chance to shutdown gracefully before pulling the plug with a poweroff
data/Dockerfile ADDED
@@ -0,0 +1,11 @@
1
+ FROM ruby:2.2.6
2
+ ARG jenkins_uid=997
3
+ ARG jenkins_gid=994
4
+ ENV JENKINS_UID=$jenkins_uid
5
+ ENV JENKINS_GID=$jenkins_gid
6
+ RUN apt-get update && apt-get install -y sudo
7
+ RUN groupadd -g $JENKINS_GID jenkins
8
+ RUN useradd jenkins -u $JENKINS_UID -g $JENKINS_GID --shell /bin/bash --create-home
9
+ RUN echo '%jenkins ALL=NOPASSWD: ALL' >> /etc/sudoers
10
+ RUN chown -R :jenkins /usr/local/bundle /usr/local/bin
11
+ USER jenkins
data/Gemfile CHANGED
@@ -1,16 +1,15 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  group :development do
4
- gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git'
4
+ gem 'rake'
5
+ gem 'rspec-core'
6
+ gem 'rspec-its'
7
+ gem "rspec-mocks", "~> 3.5"
5
8
  gem 'pry'
6
9
  gem 'byebug'
7
10
  gem 'pry-byebug'
8
- end
9
-
10
- group :testing do
11
- gem 'rspec-its'
12
- gem 'rspec'
13
- gem 'rake'
11
+ gem 'rake-release'
12
+ gem "vagrant", git: "https://github.com/hashicorp/vagrant.git"
14
13
  end
15
14
 
16
15
  group :plugins do
data/Gemfile.lock CHANGED
@@ -1,140 +1,149 @@
1
1
  GIT
2
- remote: git://github.com/mitchellh/vagrant.git
3
- revision: b223380c86680a0a22caa7c288055411faa4a072
2
+ remote: https://github.com/hashicorp/vagrant.git
3
+ revision: 22795b161bf67a4c0ebbe32c9ce8777cb888c4a7
4
4
  specs:
5
- vagrant (1.9.2.dev)
6
- childprocess (~> 0.5.0)
7
- erubis (~> 2.7.0)
8
- hashicorp-checkpoint (~> 0.1.1)
9
- i18n (>= 0.6.0, <= 0.8.0)
10
- listen (~> 3.1.5)
5
+ vagrant (2.2.11.dev)
6
+ bcrypt_pbkdf (~> 1.0.0)
7
+ childprocess (~> 4.0.0)
8
+ ed25519 (~> 1.2.4)
9
+ erubi
10
+ hashicorp-checkpoint (~> 0.1.5)
11
+ i18n (~> 1.8)
12
+ listen (~> 3.1)
11
13
  log4r (~> 1.1.9, < 1.1.11)
12
- net-scp (~> 1.1.0)
13
- net-sftp (~> 2.1)
14
- net-ssh (~> 3.0.1)
15
- nokogiri (= 1.6.7.1)
14
+ mime (~> 0.4.4)
15
+ net-scp (~> 1.2.0)
16
+ net-sftp (~> 3.0)
17
+ net-ssh (~> 6.0)
16
18
  rb-kqueue (~> 0.2.0)
17
19
  rest-client (>= 1.6.0, < 3.0)
18
20
  ruby_dep (<= 1.3.1)
21
+ rubyzip (~> 2.0)
22
+ vagrant_cloud (~> 2.0.3)
19
23
  wdm (~> 0.1.0)
20
- winrm (~> 2.1)
21
- winrm-elevated (~> 1.1)
22
- winrm-fs (~> 1.0)
24
+ winrm (>= 2.3.4, < 3.0)
25
+ winrm-elevated (>= 1.2.1, < 2.0)
26
+ winrm-fs (>= 1.3.4, < 2.0)
23
27
 
24
28
  PATH
25
29
  remote: .
26
30
  specs:
27
- vagrant-ovirt4 (1.1.0)
31
+ vagrant-ovirt4 (2.1.0)
28
32
  filesize (~> 0)
29
- ovirt-engine-sdk (~> 4.0, >= 4.0.6)
33
+ nokogiri (~> 1)
34
+ ovirt-engine-sdk (~> 4)
30
35
 
31
36
  GEM
32
37
  remote: http://rubygems.org/
33
38
  specs:
34
- builder (3.2.3)
35
- byebug (9.0.6)
36
- childprocess (0.5.9)
37
- ffi (~> 1.0, >= 1.0.11)
38
- coderay (1.1.1)
39
- diff-lcs (1.3)
40
- domain_name (0.5.20161129)
39
+ bcrypt_pbkdf (1.0.1)
40
+ builder (3.2.4)
41
+ byebug (11.1.3)
42
+ childprocess (4.0.0)
43
+ coderay (1.1.3)
44
+ concurrent-ruby (1.1.8)
45
+ diff-lcs (1.4.4)
46
+ domain_name (0.5.20190701)
41
47
  unf (>= 0.0.5, < 1.0.0)
42
- erubis (2.7.0)
43
- ffi (1.9.17)
44
- filesize (0.1.1)
45
- gssapi (1.2.0)
48
+ ed25519 (1.2.4)
49
+ erubi (1.10.0)
50
+ ffi (1.15.0)
51
+ filesize (0.2.0)
52
+ gssapi (1.3.1)
46
53
  ffi (>= 1.0.1)
47
54
  gyoku (1.3.1)
48
55
  builder (>= 2.1.2)
49
- hashicorp-checkpoint (0.1.4)
56
+ hashicorp-checkpoint (0.1.5)
50
57
  http-cookie (1.0.3)
51
58
  domain_name (~> 0.5)
52
59
  httpclient (2.8.3)
53
- i18n (0.8.0)
54
- json (2.0.3)
55
- listen (3.1.5)
56
- rb-fsevent (~> 0.9, >= 0.9.4)
57
- rb-inotify (~> 0.9, >= 0.9.7)
58
- ruby_dep (~> 1.2)
60
+ i18n (1.8.10)
61
+ concurrent-ruby (~> 1.0)
62
+ json (2.5.1)
63
+ listen (3.5.1)
64
+ rb-fsevent (~> 0.10, >= 0.10.3)
65
+ rb-inotify (~> 0.9, >= 0.9.10)
59
66
  little-plugger (1.1.4)
60
67
  log4r (1.1.10)
61
- logging (2.1.0)
68
+ logging (2.3.0)
62
69
  little-plugger (~> 1.1)
63
- multi_json (~> 1.10)
64
- method_source (0.8.2)
65
- mime-types (3.1)
70
+ multi_json (~> 1.14)
71
+ method_source (1.0.0)
72
+ mime (0.4.4)
73
+ mime-types (3.3.1)
66
74
  mime-types-data (~> 3.2015)
67
- mime-types-data (3.2016.0521)
68
- mini_portile2 (2.0.0)
69
- multi_json (1.12.1)
70
- net-scp (1.1.2)
71
- net-ssh (>= 2.6.5)
72
- net-sftp (2.1.2)
75
+ mime-types-data (3.2021.0225)
76
+ mini_portile2 (2.5.0)
77
+ multi_json (1.15.0)
78
+ net-scp (1.2.1)
73
79
  net-ssh (>= 2.6.5)
74
- net-ssh (3.0.2)
80
+ net-sftp (3.0.0)
81
+ net-ssh (>= 5.0.0, < 7.0.0)
82
+ net-ssh (6.1.0)
75
83
  netrc (0.11.0)
76
- nokogiri (1.6.7.1)
77
- mini_portile2 (~> 2.0.0.rc2)
84
+ nokogiri (1.11.3)
85
+ mini_portile2 (~> 2.5.0)
86
+ racc (~> 1.4)
78
87
  nori (2.6.0)
79
- ovirt-engine-sdk (4.1.2)
80
- json
81
- pry (0.10.4)
82
- coderay (~> 1.1.0)
83
- method_source (~> 0.8.1)
84
- slop (~> 3.4)
85
- pry-byebug (3.4.0)
86
- byebug (~> 9.0)
88
+ ovirt-engine-sdk (4.4.1)
89
+ json (>= 1, < 3)
90
+ pry (0.14.1)
91
+ coderay (~> 1.1)
92
+ method_source (~> 1.0)
93
+ pry-byebug (3.8.0)
94
+ byebug (~> 11.0)
87
95
  pry (~> 0.10)
88
- rake (0.9.6)
89
- rb-fsevent (0.9.8)
90
- rb-inotify (0.9.8)
91
- ffi (>= 0.5.0)
92
- rb-kqueue (0.2.4)
96
+ racc (1.5.2)
97
+ rake (13.0.3)
98
+ rake-release (1.3.0)
99
+ bundler (>= 1.11, < 3)
100
+ rb-fsevent (0.10.4)
101
+ rb-inotify (0.10.1)
102
+ ffi (~> 1.0)
103
+ rb-kqueue (0.2.6)
93
104
  ffi (>= 0.5.0)
94
- rest-client (2.0.0)
105
+ rest-client (2.0.2)
95
106
  http-cookie (>= 1.0.2, < 2.0)
96
107
  mime-types (>= 1.16, < 4.0)
97
108
  netrc (~> 0.8)
98
- rspec (3.5.0)
99
- rspec-core (~> 3.5.0)
100
- rspec-expectations (~> 3.5.0)
101
- rspec-mocks (~> 3.5.0)
102
- rspec-core (3.5.4)
103
- rspec-support (~> 3.5.0)
104
- rspec-expectations (3.5.0)
109
+ rspec-core (3.10.1)
110
+ rspec-support (~> 3.10.0)
111
+ rspec-expectations (3.10.1)
105
112
  diff-lcs (>= 1.2.0, < 2.0)
106
- rspec-support (~> 3.5.0)
107
- rspec-its (1.2.0)
113
+ rspec-support (~> 3.10.0)
114
+ rspec-its (1.3.0)
108
115
  rspec-core (>= 3.0.0)
109
116
  rspec-expectations (>= 3.0.0)
110
- rspec-mocks (3.5.0)
117
+ rspec-mocks (3.10.2)
111
118
  diff-lcs (>= 1.2.0, < 2.0)
112
- rspec-support (~> 3.5.0)
113
- rspec-support (3.5.0)
119
+ rspec-support (~> 3.10.0)
120
+ rspec-support (3.10.2)
114
121
  ruby_dep (1.3.1)
115
- rubyntlm (0.6.1)
116
- rubyzip (1.2.1)
117
- slop (3.6.0)
122
+ rubyntlm (0.6.3)
123
+ rubyzip (2.3.0)
118
124
  unf (0.1.4)
119
125
  unf_ext
120
- unf_ext (0.0.7.2)
126
+ unf_ext (0.0.7.7)
127
+ vagrant_cloud (2.0.3)
128
+ rest-client (~> 2.0.2)
121
129
  wdm (0.1.1)
122
- winrm (2.1.2)
130
+ winrm (2.3.6)
123
131
  builder (>= 2.1.2)
124
- erubis (~> 2.7)
132
+ erubi (~> 1.8)
125
133
  gssapi (~> 1.2)
126
134
  gyoku (~> 1.0)
127
135
  httpclient (~> 2.2, >= 2.2.0.2)
128
136
  logging (>= 1.6.1, < 3.0)
129
137
  nori (~> 2.0)
130
- rubyntlm (~> 0.6.0, >= 0.6.1)
131
- winrm-elevated (1.1.0)
138
+ rubyntlm (~> 0.6.0, >= 0.6.3)
139
+ winrm-elevated (1.2.3)
140
+ erubi (~> 1.8)
132
141
  winrm (~> 2.0)
133
142
  winrm-fs (~> 1.0)
134
- winrm-fs (1.0.1)
135
- erubis (~> 2.7)
143
+ winrm-fs (1.3.5)
144
+ erubi (~> 1.8)
136
145
  logging (>= 1.6.1, < 3.0)
137
- rubyzip (~> 1.1)
146
+ rubyzip (~> 2.0)
138
147
  winrm (~> 2.0)
139
148
 
140
149
  PLATFORMS
@@ -145,10 +154,12 @@ DEPENDENCIES
145
154
  pry
146
155
  pry-byebug
147
156
  rake
148
- rspec
157
+ rake-release
158
+ rspec-core
149
159
  rspec-its
160
+ rspec-mocks (~> 3.5)
150
161
  vagrant!
151
162
  vagrant-ovirt4!
152
163
 
153
164
  BUNDLED WITH
154
- 1.14.4
165
+ 1.17.2
data/README.md CHANGED
@@ -56,13 +56,19 @@ $ vagrant up --provider=ovirt4
56
56
  ```
57
57
  Vagrant.configure("2") do |config|
58
58
  config.vm.box = 'ovirt4'
59
- config.vm.hostname = "foo"
59
+ config.vm.hostname = "foo"
60
60
  config.vm.box_url = 'https://github.com/myoung34/vagrant-ovirt4/blob/master/example_box/dummy.box?raw=true'
61
61
 
62
62
  config.vm.network :private_network,
63
63
  :ovirt__network_name => 'ovirtmgmt' #DHCP
64
64
  # Static configuration
65
65
  #:ovirt__ip => '192.168.2.198', :ovirt__network_name => 'ovirtmgmt', :ovirt__gateway => '192.168.2.125', :ovirt__netmask => '255.255.0.0', :ovirt__dns_servers => '192.168.2.1', :ovirt__dns_search => 'test.local'
66
+ # Static configuration with biosdevname. Guest OS assigns interface names (ens3, em1 or something else). ovirt__interface_name has to match that name.
67
+ #:ovirt__ip => '192.168.2.198', :ovirt__network_name => 'ovirtmgmt', :ovirt__gateway => '192.168.2.125', :ovirt__netmask => '255.255.0.0', :ovirt__dns_servers => '192.168.2.1', :ovirt__dns_search => 'test.local', :ovirt__interface_name => 'ens3'
68
+
69
+ # configure additional interface
70
+ # config.vm.network :private_network,
71
+ # :ovirt__ip => '192.168.2.199', :ovirt__network_name => 'ovirtmgmt', :ovirt__netmask => '255.255.0.0', :ovirt__interface_name => 'ens4'
66
72
 
67
73
  config.vm.provider :ovirt4 do |ovirt|
68
74
  ovirt.url = 'https://server/ovirt-engine/api'
@@ -70,14 +76,18 @@ Vagrant.configure("2") do |config|
70
76
  ovirt.password = "password"
71
77
  ovirt.insecure = true
72
78
  ovirt.debug = true
79
+ ovirt.filtered_api = true #see http://www.ovirt.org/develop/release-management/features/infra/user-portal-permissions/
73
80
  ovirt.cluster = 'Default'
74
81
  ovirt.template = 'Vagrant-Centos7-test'
75
82
  ovirt.console = 'vnc'
83
+ ovirt.disk_size = '15 GiB' # only growing is supported. works the same way as below memory settings
76
84
  ovirt.memory_size = '1 GiB' #see https://github.com/dominikh/filesize for usage
77
- ovirt.memory_guaranteed = '256 MB' #see https://github.com/dominikh/filesize for usage
85
+ ovirt.memory_guaranteed = '256 MiB' #see https://github.com/dominikh/filesize for usage
78
86
  ovirt.cpu_cores = 2
79
87
  ovirt.cpu_sockets = 2
80
88
  ovirt.cpu_threads = 2
89
+ ovirt.bios_serial = aaabbbb-ccc-dddd
90
+ ovirt.optimized_for = 'server'
81
91
  ovirt.cloud_init =<<EOF
82
92
  write_files:
83
93
  - content: |
@@ -86,6 +96,8 @@ write_files:
86
96
  permissions: '0644'
87
97
  EOF
88
98
 
99
+ # additional disks
100
+ ovirt.storage :file, size: "8 GiB", type: 'qcow2', storage_domain: "mystoragedomain"
89
101
  end
90
102
  end
91
103
  ```
@@ -107,7 +119,6 @@ end
107
119
  1. `password` => The password for the API. Required. String. No default value.
108
120
  1. `insecure` => Allow connecting to SSL sites without certificates. Optional. Bool. Default is `false`
109
121
  1. `debug` => Turn on additional log statements. Optional. Bool. Default is `false`.
110
- 1. `datacenter` => The name of the ovirt datacenter to create within. Required. String. No Default value.
111
122
  1. `template` => The name of the template to use for creation. Required. String. No Default value.
112
123
  1. `cluster` => The name of the ovirt cluster to create within. Required. String. No Default value.
113
124
  1. `console` => The type of remote viewing protocol to use. Required. String. No Default value.
@@ -119,6 +130,12 @@ end
119
130
  1. `cloud_init` => The cloud-init data to pass. Must be properly formatted as yaml. [Docs here](http://cloudinit.readthedocs.io/en/latest/topics/examples.html)
120
131
  1. `affinity` => The affinity to use. [See this for possible uses](http://www.rubydoc.info/gems/ovirt-engine-sdk/OvirtSDK4/VmAffinity). Optional. Invalid will cause a `RuntimeError`
121
132
  1. `placement_host` => The host to start the VM on. Optional.
133
+ 1. `bios_serial` => The BIOS serial number to assign. Optional.
134
+ 1. `optimized_for` => The "optimized for" setting. Can be one of 'Desktop' or 'Server' (case insensitive). Optional.
135
+ 1. `storage` => adds a new storage disk to the VM
136
+ a. `size`: the size of the disk
137
+ a. `type`: the type of disk. It can be either `qcow2` or `raw`
138
+ a. `storage_domain`: the storage domain where the disk should be created
122
139
 
123
140
 
124
141
  ## Contributing
@@ -128,3 +145,10 @@ end
128
145
  3. Commit your changes (`git commit -am 'Add some feature'`)
129
146
  4. Push to the branch (`git push origin my-new-feature`)
130
147
  5. Create new Pull Request
148
+
149
+ Some pointers:
150
+
151
+ * To install the requirements when developing:
152
+ * `bundle install`
153
+ * To run the test suite:
154
+ * `bundle exec rspec spec/`
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
+ require 'rake/release'
3
4
  require 'rspec/core/rake_task'
4
5
 
5
6
  # Immediately sync all stdout so that tools like buildbot can
@@ -13,10 +14,3 @@ Dir.chdir(File.expand_path("../", __FILE__))
13
14
  # This installs the tasks that help with gem creation and
14
15
  # publishing.
15
16
  Bundler::GemHelper.install_tasks
16
-
17
- # Install the `spec` task so that we can run tests.
18
- RSpec::Core::RakeTask.new(:spec) do |t|
19
- t.rspec_opts = "--order defined"
20
- end
21
- # Default task is to run the unit tests
22
- task :default => :spec