kalibro_gatekeeper_client 0.0.1.rc1 → 0.0.1.rc2
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 +4 -4
- data/features/configuration/creation.feature +9 -0
- data/features/step_definitions/configuration_steps.rb +8 -0
- data/features/step_definitions/project_steps.rb +2 -2
- data/lib/kalibro_gatekeeper_client/entities/model.rb +2 -2
- data/lib/kalibro_gatekeeper_client/version.rb +1 -1
- metadata +4 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f9dc3c590ad139a3b7402633e67093ccb8294c5f
         | 
| 4 | 
            +
              data.tar.gz: 00ca689a681c74707858173959b5159348742876
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 76db05af4af838a520526fe0e5bbadd0dc7f690104431176a11166c35d635d2fef16056b013e08d506eee928aaa0f6647c0f6303c2cb23be9c0e2124921131b2
         | 
| 7 | 
            +
              data.tar.gz: e25a667910760d6c5cc52ba6d4a724396a8d52651d8ff086c148681951e241e9cde4e467178ec2294c54ddc80fdeb903437d3001ed74795f05f7071c2caf9a24
         | 
| @@ -0,0 +1,9 @@ | |
| 1 | 
            +
            Feature: Creation
         | 
| 2 | 
            +
              In order to be able to have configurations
         | 
| 3 | 
            +
              As an developer
         | 
| 4 | 
            +
              I want to create configurations
         | 
| 5 | 
            +
             | 
| 6 | 
            +
              @kalibro_restart
         | 
| 7 | 
            +
              Scenario: create a valid configuration
         | 
| 8 | 
            +
                When I create the configuration with name "Kalibro"
         | 
| 9 | 
            +
                Then the configuration should exist
         | 
| @@ -9,3 +9,11 @@ end | |
| 9 9 | 
             
            Then(/^I should get a list with the given configuration$/) do
         | 
| 10 10 | 
             
              @all_configurations.include?(@configuration).should be_true
         | 
| 11 11 | 
             
            end
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            When(/^I create the configuration with name "(.*?)"$/) do |name|
         | 
| 14 | 
            +
              @configuration = FactoryGirl.create(:configuration, {name: name, id: nil})
         | 
| 15 | 
            +
            end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            Then(/^the configuration should exist$/) do
         | 
| 18 | 
            +
              KalibroGatekeeperClient::Entities::Configuration.exists?(@configuration.id).should be_true
         | 
| 19 | 
            +
            end
         | 
| @@ -32,7 +32,7 @@ When(/^I ask for all the projects$/) do | |
| 32 32 | 
             
            end
         | 
| 33 33 |  | 
| 34 34 | 
             
            Then(/^the project should exist$/) do
         | 
| 35 | 
            -
              KalibroGatekeeperClient::Entities::Project.exists?(@project.id)
         | 
| 35 | 
            +
              KalibroGatekeeperClient::Entities::Project.exists?(@project.id).should be_true
         | 
| 36 36 | 
             
            end
         | 
| 37 37 |  | 
| 38 38 | 
             
            Then(/^it should return the same project as the given one$/) do
         | 
| @@ -40,7 +40,7 @@ Then(/^it should return the same project as the given one$/) do | |
| 40 40 | 
             
            end
         | 
| 41 41 |  | 
| 42 42 | 
             
            Then(/^the project should not exist$/) do
         | 
| 43 | 
            -
               | 
| 43 | 
            +
              KalibroGatekeeperClient::Entities::Project.exists?(@found_project.id).should be_false
         | 
| 44 44 | 
             
            end
         | 
| 45 45 |  | 
| 46 46 | 
             
            Then(/^I should get a list with the given project$/) do
         | 
| @@ -5,7 +5,7 @@ | |
| 5 5 | 
             
            # it under the terms of the GNU General Public License as published by
         | 
| 6 6 | 
             
            # the Free Software Foundation, either version 3 of the License, or
         | 
| 7 7 | 
             
            # (at your option) any later version.
         | 
| 8 | 
            -
            # | 
| 8 | 
            +
            #
         | 
| 9 9 | 
             
            # This program is distributed in the hope that it will be useful,
         | 
| 10 10 | 
             
            # but WITHOUT ANY WARRANTY; without even the implied warranty of
         | 
| 11 11 | 
             
            # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
         | 
| @@ -138,7 +138,7 @@ module KalibroGatekeeperClient | |
| 138 138 | 
             
                  end
         | 
| 139 139 |  | 
| 140 140 | 
             
                  def self.is_valid?(field)
         | 
| 141 | 
            -
                    field.to_s[0] != '@' and field != :attributes! and (field =~ /attributes!/).nil? and (field.to_s =~ /xsi/).nil?
         | 
| 141 | 
            +
                    field.to_s[0] != '@' and field != :attributes! and (field =~ /attributes!/).nil? and (field.to_s =~ /xsi/).nil?  and (field.to_s =~ /errors/).nil?
         | 
| 142 142 | 
             
                  end
         | 
| 143 143 |  | 
| 144 144 | 
             
                  # TODO: Rename to entitie_name
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: kalibro_gatekeeper_client
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0.1. | 
| 4 | 
            +
              version: 0.0.1.rc2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Diego Araújo Martinez
         | 
| @@ -11,7 +11,7 @@ authors: | |
| 11 11 | 
             
            autorequire: 
         | 
| 12 12 | 
             
            bindir: bin
         | 
| 13 13 | 
             
            cert_chain: []
         | 
| 14 | 
            -
            date: 2014-03- | 
| 14 | 
            +
            date: 2014-03-25 00:00:00.000000000 Z
         | 
| 15 15 | 
             
            dependencies:
         | 
| 16 16 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 17 17 | 
             
              name: bundler
         | 
| @@ -178,6 +178,7 @@ files: | |
| 178 178 | 
             
            - features/base_tool/all_names.feature
         | 
| 179 179 | 
             
            - features/base_tool/find_by_name.feature
         | 
| 180 180 | 
             
            - features/configuration/all.feature
         | 
| 181 | 
            +
            - features/configuration/creation.feature
         | 
| 181 182 | 
             
            - features/metric_configuration/find.feature
         | 
| 182 183 | 
             
            - features/metric_configuration/metric_configurations_of.feature
         | 
| 183 184 | 
             
            - features/metric_result/descendant_results.feature
         | 
| @@ -356,6 +357,7 @@ test_files: | |
| 356 357 | 
             
            - features/base_tool/all_names.feature
         | 
| 357 358 | 
             
            - features/base_tool/find_by_name.feature
         | 
| 358 359 | 
             
            - features/configuration/all.feature
         | 
| 360 | 
            +
            - features/configuration/creation.feature
         | 
| 359 361 | 
             
            - features/metric_configuration/find.feature
         | 
| 360 362 | 
             
            - features/metric_configuration/metric_configurations_of.feature
         | 
| 361 363 | 
             
            - features/metric_result/descendant_results.feature
         |