diff --git a/CHANGELOG.md b/CHANGELOG.md index 27649cb..2ef1591 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.1.1 (04/04/2016) +- Fixed bug regarding improper parsing of local_file with names like test.0.0.4.qcow2 +- Now guarding against empty strings for coordinates + ## 0.1.0 (03/23/2016) - Implemented actions :upload, :download, :delete, :delete_url - Created rspec tests \ No newline at end of file diff --git a/README.md b/README.md index 5e3e167..16f5bff 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Chef::Nexus -chef-nexus is a Chef resource for managing artifacts on Nexus by Sonatype. +chef-nexus is a Ruby gem that provides the `nexus` Chef resource for managing artifacts on Nexus by Sonatype. ## Usage @@ -11,7 +11,7 @@ There is an optional Nexus config file that you can create and it will be read i 2. `File.read("#{ENV['HOME']}/.nexus/config")` 3. `File.read('/etc/.nexus/config')` -**Note:** only the first one found will be loaded +**NOTE:** only the first one found will be loaded Example config file: ```json @@ -77,7 +77,7 @@ Order of precedence: :classifier => String name of the files classifier :version => [String, Fixnum, Float] of the version ``` -**NOTES**: +**NOTE:** * `:remote_url` will be parsed for pom information if it is syntactically correct according to Maven & Nexus standards, as in: `/repositories/////--.` @@ -173,6 +173,7 @@ nexus 'some description' do end ``` **NOTE:** This action does not accept attribute `:remote_url` as it is dangerous to do so. **Ex.** you might delete *ALL* artifacts by accident + **WARNING:** This action will delete the version folder (folder that holds the file), so everything inside it will be deleted as well #### 7. Delete a file or folder from Nexus (delete folder 1.2.0 in this case) @@ -199,6 +200,11 @@ Pull requests are very welcome! Make sure your patches are well tested. Ideally 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request +To build and install the gem, go to your `chef-nexus` folder and then run: + +1. `rake build` +2. `gem install pkg/chef-nexus-x.y.z.gem`, where `x.y.z` is the version you just built + ### Testing Please test your changes! Here's how: diff --git a/chef-nexus.gemspec b/chef-nexus.gemspec index d726a26..1c93ac7 100644 --- a/chef-nexus.gemspec +++ b/chef-nexus.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |spec| spec.authors = ['Dongyu \'Gary\' Zheng'] spec.email = ['garydzheng@gmail.com'] - spec.summary = 'Chef resource for managing artifacts on Nexus by Sonatype' + spec.summary = 'chef-nexus is a Ruby gem that provides the `nexus` Chef resource for managing artifacts on Nexus by Sonatype.' spec.description = spec.summary spec.homepage = 'https://github.com/blackberry/chef-nexus' @@ -37,7 +37,8 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_dependency 'chef' - spec.add_dependency 'compat_resource' + spec.add_dependency 'compat_resource', '~> 12.8.0' + spec.add_dependency 'activesupport' spec.add_development_dependency 'bundler', '~> 1.11' spec.add_development_dependency 'rake', '~> 10.0' diff --git a/lib/chef/nexus.rb b/lib/chef/nexus.rb index e7e7493..30422ee 100644 --- a/lib/chef/nexus.rb +++ b/lib/chef/nexus.rb @@ -13,6 +13,7 @@ # limitations under the License. require 'chef_compat/resource' +require 'active_support/all' require 'json' require 'erb' require 'digest' @@ -218,11 +219,18 @@ def cords p = eval(x) hsh[x.to_sym] = p if p end - fail 'Your must specify :coordinates OR at least all of [:groupId, :artifactId, :version]' if hsh.size < 3 && !remote_url - if local_file && !hsh[:packaging] - extn = ::File.basename(local_file).split('.', 2)[1] - fail 'Files require an extension, or specify it with :packaging' if extn.nil? && !remote_url - hsh[:packaging] = extn + + [:groupId, :artifactId, :version].each do |x| + fail 'Your must specify :coordinates OR at least all of [:groupId, :artifactId, :version]' unless hsh[x].present? + end unless remote_url + + if local_file && !hsh[:packaging].present? + extn = ::File.extname(local_file) + if !remote_url && extn.empty? + fail 'Files require an extension, or specify it with :packaging' + else + hsh[:packaging] = extn[1..-1] + end end hsh end diff --git a/lib/chef/nexus/version.rb b/lib/chef/nexus/version.rb index a05aab9..60b9918 100644 --- a/lib/chef/nexus/version.rb +++ b/lib/chef/nexus/version.rb @@ -18,6 +18,6 @@ module Chef # See: http://semver.org/spec/v2.0.0.html # module Nexus - VERSION = '0.1.0' + VERSION = '0.1.1' end end diff --git a/spec/chef/recipes/delete/coordinates.rb b/spec/chef/recipes/delete/coordinates.rb index efe5937..e946f8f 100644 --- a/spec/chef/recipes/delete/coordinates.rb +++ b/spec/chef/recipes/delete/coordinates.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/delete/remote_url.rb b/spec/chef/recipes/delete/remote_url.rb index 337273f..e47a305 100644 --- a/spec/chef/recipes/delete/remote_url.rb +++ b/spec/chef/recipes/delete/remote_url.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/download/coordinates.rb b/spec/chef/recipes/download/coordinates.rb index 2f45c07..d357429 100644 --- a/spec/chef/recipes/download/coordinates.rb +++ b/spec/chef/recipes/download/coordinates.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/download/coordinates_doesnt_exist.rb b/spec/chef/recipes/download/coordinates_doesnt_exist.rb index fab7ee4..eb2c85c 100644 --- a/spec/chef/recipes/download/coordinates_doesnt_exist.rb +++ b/spec/chef/recipes/download/coordinates_doesnt_exist.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/download/coordinates_no_packaging.rb b/spec/chef/recipes/download/coordinates_no_packaging.rb index ec64a48..d80e320 100644 --- a/spec/chef/recipes/download/coordinates_no_packaging.rb +++ b/spec/chef/recipes/download/coordinates_no_packaging.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/download/remote_url.rb b/spec/chef/recipes/download/remote_url.rb index 4c9db7f..1d2169b 100644 --- a/spec/chef/recipes/download/remote_url.rb +++ b/spec/chef/recipes/download/remote_url.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/download/remote_url_update.rb b/spec/chef/recipes/download/remote_url_update.rb index c07ed22..18defcb 100644 --- a/spec/chef/recipes/download/remote_url_update.rb +++ b/spec/chef/recipes/download/remote_url_update.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/different_file.rb b/spec/chef/recipes/upload/different_file.rb index 5f46f6b..932d304 100644 --- a/spec/chef/recipes/upload/different_file.rb +++ b/spec/chef/recipes/upload/different_file.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/different_file_update.rb b/spec/chef/recipes/upload/different_file_update.rb index bfe6314..4a004b5 100644 --- a/spec/chef/recipes/upload/different_file_update.rb +++ b/spec/chef/recipes/upload/different_file_update.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:classifier:version.rb b/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:classifier:version.rb index 1099d58..05f9831 100644 --- a/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:classifier:version.rb +++ b/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:classifier:version.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:version.rb b/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:version.rb index 41fbfcd..080a7b3 100644 --- a/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:version.rb +++ b/spec/chef/recipes/upload/extn_groupId:artifactId:packaging:version.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/extn_groupId:artifactId:version.rb b/spec/chef/recipes/upload/extn_groupId:artifactId:version.rb index 95e31e8..126045f 100644 --- a/spec/chef/recipes/upload/extn_groupId:artifactId:version.rb +++ b/spec/chef/recipes/upload/extn_groupId:artifactId:version.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/no_extn_coordinate_attributes.rb b/spec/chef/recipes/upload/no_extn_coordinate_attributes.rb index 238051e..422b6f5 100644 --- a/spec/chef/recipes/upload/no_extn_coordinate_attributes.rb +++ b/spec/chef/recipes/upload/no_extn_coordinate_attributes.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/no_extn_groupId:artifactId:version.rb b/spec/chef/recipes/upload/no_extn_groupId:artifactId:version.rb index 0cffe74..c3f2c2d 100644 --- a/spec/chef/recipes/upload/no_extn_groupId:artifactId:version.rb +++ b/spec/chef/recipes/upload/no_extn_groupId:artifactId:version.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/no_extn_package_groupId:artifactId:version.rb b/spec/chef/recipes/upload/no_extn_package_groupId:artifactId:version.rb index 0af0b83..10d3f10 100644 --- a/spec/chef/recipes/upload/no_extn_package_groupId:artifactId:version.rb +++ b/spec/chef/recipes/upload/no_extn_package_groupId:artifactId:version.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/remote_url_different_file.rb b/spec/chef/recipes/upload/remote_url_different_file.rb index c6c3566..107eacd 100644 --- a/spec/chef/recipes/upload/remote_url_different_file.rb +++ b/spec/chef/recipes/upload/remote_url_different_file.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/remote_url_different_file_update.rb b/spec/chef/recipes/upload/remote_url_different_file_update.rb index 57b8d1e..e5c86e3 100644 --- a/spec/chef/recipes/upload/remote_url_different_file_update.rb +++ b/spec/chef/recipes/upload/remote_url_different_file_update.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/remote_url_no_parse.rb b/spec/chef/recipes/upload/remote_url_no_parse.rb index bcae9e8..ae5073a 100644 --- a/spec/chef/recipes/upload/remote_url_no_parse.rb +++ b/spec/chef/recipes/upload/remote_url_no_parse.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/remote_url_no_parse_no_pom.rb b/spec/chef/recipes/upload/remote_url_no_parse_no_pom.rb index 00d4730..93cb8ac 100644 --- a/spec/chef/recipes/upload/remote_url_no_parse_no_pom.rb +++ b/spec/chef/recipes/upload/remote_url_no_parse_no_pom.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/chef/recipes/upload/remote_url_parse.rb b/spec/chef/recipes/upload/remote_url_parse.rb index 0ca574c..0c81587 100644 --- a/spec/chef/recipes/upload/remote_url_parse.rb +++ b/spec/chef/recipes/upload/remote_url_parse.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + require 'chef/nexus' require "#{File.dirname(__FILE__)}/../../../config.rb" diff --git a/spec/config_sample.rb b/spec/config_sample.rb index 2aa41cd..6c6e605 100644 --- a/spec/config_sample.rb +++ b/spec/config_sample.rb @@ -1,3 +1,17 @@ +# Copyright 2016, BlackBerry, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ####################################################### ## This is the config file used for the RSpec tests. ## ## Feel free to modify any variables to your needs. ##