kalibro_entities 0.0.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +21 -0
- data/AUTHORS +4 -0
- data/COPYING +674 -0
- data/COPYING.LESSER +165 -0
- data/Gemfile +4 -0
- data/README.md +77 -0
- data/Rakefile +6 -0
- data/cucumber.yml +1 -0
- data/features/base_tool/all_names.feature +8 -0
- data/features/base_tool/find_by_name.feature +12 -0
- data/features/configuration/all.feature +10 -0
- data/features/metric_configuration/find.feature +18 -0
- data/features/metric_configuration/metric_configurations_of.feature +18 -0
- data/features/metric_result/descendant_results.feature +19 -0
- data/features/metric_result/history_of.feature +20 -0
- data/features/metric_result/metric_results_of.feature +19 -0
- data/features/module_result/children.feature +18 -0
- data/features/module_result/find.feature +15 -0
- data/features/module_result/history_of.feature +11 -0
- data/features/processing/first_processing_after.feature +18 -0
- data/features/processing/first_processing_of.feature +18 -0
- data/features/processing/has_processing.feature +18 -0
- data/features/processing/has_processing_after.feature +18 -0
- data/features/processing/has_processing_before.feature +18 -0
- data/features/processing/has_ready_processing.feature +18 -0
- data/features/processing/last_processing_before.feature +18 -0
- data/features/processing/last_processing_of.feature +18 -0
- data/features/processing/last_processing_state_of.feature +18 -0
- data/features/processing/last_ready_processing_of.feature +18 -0
- data/features/processing/processing_of.feature +32 -0
- data/features/processing/processing_with_date_of.feature +32 -0
- data/features/project/all.feature +10 -0
- data/features/project/creation.feature +9 -0
- data/features/project/destroy.feature +10 -0
- data/features/project/exists.feature +9 -0
- data/features/project/find.feature +10 -0
- data/features/range/ranges_of.feature +22 -0
- data/features/range/save.feature +32 -0
- data/features/reading/find.feature +11 -0
- data/features/reading/readings_of.feature +11 -0
- data/features/reading_group/all.feature +10 -0
- data/features/repository/all.feature +14 -0
- data/features/repository/cancel_processing.feature +14 -0
- data/features/repository/find.feature +14 -0
- data/features/repository/of.feature +15 -0
- data/features/repository/process.feature +16 -0
- data/features/repository/types.feature +9 -0
- data/features/step_definitions/base_tool_steps.rb +28 -0
- data/features/step_definitions/configuration_steps.rb +11 -0
- data/features/step_definitions/metric_configuration_steps.rb +52 -0
- data/features/step_definitions/metric_result_steps.rb +29 -0
- data/features/step_definitions/metric_steps.rb +3 -0
- data/features/step_definitions/module_result_steps.rb +30 -0
- data/features/step_definitions/processing_steps.rb +91 -0
- data/features/step_definitions/project_steps.rb +48 -0
- data/features/step_definitions/range_steps.rb +41 -0
- data/features/step_definitions/reading_group_steps.rb +19 -0
- data/features/step_definitions/reading_steps.rb +20 -0
- data/features/step_definitions/repository_steps.rb +57 -0
- data/features/support/env.rb +25 -0
- data/features/support/kalibro_cucumber_helpers.yml.sample +10 -0
- data/kalibro_entities.gemspec +48 -0
- data/lib/kalibro_entities.rb +61 -0
- data/lib/kalibro_entities/entities.rb +37 -0
- data/lib/kalibro_entities/entities/base_tool.rb +54 -0
- data/lib/kalibro_entities/entities/configuration.rb +33 -0
- data/lib/kalibro_entities/entities/date_metric_result.rb +39 -0
- data/lib/kalibro_entities/entities/date_module_result.rb +39 -0
- data/lib/kalibro_entities/entities/metric.rb +21 -0
- data/lib/kalibro_entities/entities/metric_configuration.rb +70 -0
- data/lib/kalibro_entities/entities/metric_configuration_snapshot.rb +57 -0
- data/lib/kalibro_entities/entities/metric_result.rb +63 -0
- data/lib/kalibro_entities/entities/model.rb +162 -0
- data/lib/kalibro_entities/entities/module.rb +27 -0
- data/lib/kalibro_entities/entities/module_result.rb +69 -0
- data/lib/kalibro_entities/entities/process_time.rb +31 -0
- data/lib/kalibro_entities/entities/processing.rb +113 -0
- data/lib/kalibro_entities/entities/project.rb +34 -0
- data/lib/kalibro_entities/entities/range.rb +75 -0
- data/lib/kalibro_entities/entities/range_snapshot.rb +37 -0
- data/lib/kalibro_entities/entities/reading.rb +51 -0
- data/lib/kalibro_entities/entities/reading_group.rb +43 -0
- data/lib/kalibro_entities/entities/repository.rb +78 -0
- data/lib/kalibro_entities/entities/repository_observer.rb +50 -0
- data/lib/kalibro_entities/entities/stack_trace_element.rb +31 -0
- data/lib/kalibro_entities/entities/throwable.rb +42 -0
- data/lib/kalibro_entities/errors.rb +18 -0
- data/lib/kalibro_entities/errors/record_not_found.rb +22 -0
- data/lib/kalibro_entities/errors/standard.rb +24 -0
- data/lib/kalibro_entities/helpers/aggregation_options.rb +25 -0
- data/lib/kalibro_entities/helpers/hash_converters.rb +48 -0
- data/lib/kalibro_entities/helpers/request_methods.rb +47 -0
- data/lib/kalibro_entities/helpers/xml_converters.rb +20 -0
- data/lib/kalibro_entities/kalibro_cucumber_helpers.rb +40 -0
- data/lib/kalibro_entities/kalibro_cucumber_helpers/configuration.rb +39 -0
- data/lib/kalibro_entities/kalibro_cucumber_helpers/hooks.rb +50 -0
- data/lib/kalibro_entities/kalibro_cucumber_helpers/scripts/delete_all_kalibro_entries.sh +23 -0
- data/lib/kalibro_entities/kalibro_cucumber_helpers/scripts/prepare_kalibro_query_file.sh +38 -0
- data/lib/kalibro_entities/kalibro_cucumber_helpers/scripts/put_kalibro_on_test_mode.sh +35 -0
- data/lib/kalibro_entities/kalibro_cucumber_helpers/scripts/return_kalibro_from_test_mode.sh +26 -0
- data/lib/kalibro_entities/version.rb +19 -0
- data/lib/rake/test_task.rb +57 -0
- data/spec/entities/base_tool_spec.rb +168 -0
- data/spec/entities/configuration_spec.rb +61 -0
- data/spec/entities/date_metric_result_spec.rb +62 -0
- data/spec/entities/date_module_result_spec.rb +61 -0
- data/spec/entities/metric_configuration_snapshot_spec.rb +107 -0
- data/spec/entities/metric_configuration_spec.rb +149 -0
- data/spec/entities/metric_result_spec.rb +193 -0
- data/spec/entities/metric_spec.rb +47 -0
- data/spec/entities/model_spec.rb +275 -0
- data/spec/entities/module_result_spec.rb +135 -0
- data/spec/entities/process_time_spec.rb +33 -0
- data/spec/entities/processing_spec.rb +334 -0
- data/spec/entities/project_spec.rb +68 -0
- data/spec/entities/range_snapshot_spec.rb +50 -0
- data/spec/entities/range_spec.rb +181 -0
- data/spec/entities/reading_group_spec.rb +90 -0
- data/spec/entities/reading_spec.rb +106 -0
- data/spec/entities/repository_observer_spec.rb +123 -0
- data/spec/entities/repository_spec.rb +167 -0
- data/spec/entities/stack_trace_element_spec.rb +26 -0
- data/spec/entities/throwable_spec.rb +51 -0
- data/spec/factories/base_tools.rb +31 -0
- data/spec/factories/configurations.rb +29 -0
- data/spec/factories/date_metric_results.rb +28 -0
- data/spec/factories/date_module_results.rb +22 -0
- data/spec/factories/metric_configurations.rb +28 -0
- data/spec/factories/metric_configurations_snapshot.rb +26 -0
- data/spec/factories/metric_results.rb +24 -0
- data/spec/factories/metrics.rb +35 -0
- data/spec/factories/models.rb +20 -0
- data/spec/factories/module_results.rb +33 -0
- data/spec/factories/modules.rb +22 -0
- data/spec/factories/process_times.rb +27 -0
- data/spec/factories/processings.rb +25 -0
- data/spec/factories/projects.rb +29 -0
- data/spec/factories/ranges.rb +30 -0
- data/spec/factories/ranges_snapshot.rb +26 -0
- data/spec/factories/reading_groups.rb +23 -0
- data/spec/factories/readings.rb +25 -0
- data/spec/factories/repositories.rb +34 -0
- data/spec/factories/repository_observers.rb +24 -0
- data/spec/factories/stack_trace_elements.rb +24 -0
- data/spec/factories/throwables.rb +23 -0
- data/spec/helpers/aggregation_options_spec.rb +31 -0
- data/spec/helpers/hash_converters_spec.rb +111 -0
- data/spec/helpers/xml_converters_spec.rb +64 -0
- data/spec/kalibro_entities_spec.rb +108 -0
- data/spec/savon/fixtures/config.yml +1 -0
- data/spec/savon/fixtures/invalid_config.yml +2 -0
- data/spec/savon/fixtures/project/does_not_exists.xml +1 -0
- data/spec/savon/savon_test_helper.rb +14 -0
- data/spec/spec_helper.rb +60 -0
- metadata +461 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
# This file is part of KalibroEntities
|
2
|
+
# Copyright (C) 2013 it's respectives authors (please see the AUTHORS file)
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
|
17
|
+
require 'spec_helper'
|
18
|
+
require 'kalibro_entities/helpers/xml_converters'
|
19
|
+
|
20
|
+
include XMLConverters
|
21
|
+
|
22
|
+
describe XMLConverters do
|
23
|
+
describe 'xml_instance_class_name' do
|
24
|
+
before { @model = KalibroEntities::Entities::Model.new }
|
25
|
+
|
26
|
+
it 'should return modelXml' do
|
27
|
+
xml_instance_class_name(@model).should eq('modelXml')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'get_xml' do
|
32
|
+
context 'with an object that is not an instance of Model' do
|
33
|
+
before { @object = "kalibro" }
|
34
|
+
|
35
|
+
it 'should return a Hash' do
|
36
|
+
get_xml("field", @object).should be_a(Hash)
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'should return an empty Hash' do
|
40
|
+
get_xml("field", @object).should eq({})
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
context 'with an instance of Model' do
|
45
|
+
before { @object = KalibroEntities::Entities::Model.new }
|
46
|
+
|
47
|
+
it 'should return a Hash' do
|
48
|
+
get_xml("field", @object).should be_a(Hash)
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'should return the XML Hash' do
|
52
|
+
field_xml_hash = {:attributes! =>
|
53
|
+
{:field =>
|
54
|
+
{"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
|
55
|
+
"xsi:type"=>"kalibro:modelXml"
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
get_xml("field", @object).should eq(field_xml_hash)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# This file is part of KalibroEntities
|
2
|
+
# Copyright (C) 2013 it's respectives authors (please see the AUTHORS file)
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
|
17
|
+
require 'spec_helper'
|
18
|
+
|
19
|
+
describe KalibroEntities do
|
20
|
+
|
21
|
+
context 'configuration' do
|
22
|
+
#FIXME: there should be a better way to keep the default values
|
23
|
+
let(:config) {{address: "http://localhost:8080/KalibroService/"}}
|
24
|
+
|
25
|
+
describe 'config' do
|
26
|
+
it 'should return the default configuration' do
|
27
|
+
KalibroEntities.config.should eq({
|
28
|
+
address: "http://localhost:8080/KalibroService/"
|
29
|
+
})
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'configure' do
|
34
|
+
after(:all) {KalibroEntities.configure(config)}
|
35
|
+
|
36
|
+
it 'should set the address' do
|
37
|
+
KalibroEntities.configure({address: 'http://test.test'})
|
38
|
+
KalibroEntities.config.should eq({address: 'http://test.test'})
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'configure_with' do
|
43
|
+
context 'with an existent YAML' do
|
44
|
+
after(:all) {KalibroEntities.configure(config)}
|
45
|
+
|
46
|
+
it 'should set the config' do
|
47
|
+
KalibroEntities.configure_with('spec/savon/fixtures/config.yml')
|
48
|
+
|
49
|
+
KalibroEntities.config.should eq({address: 'http://test1.test1'})
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context 'with an inexistent YAML' do
|
54
|
+
before :each do
|
55
|
+
@logger = Logger.new(File::NULL)
|
56
|
+
KalibroEntities.expects(:logger).returns(@logger)
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'should keep the defaults' do
|
60
|
+
KalibroEntities.configure_with('spec/savon/fixtures/inexistent_file.yml')
|
61
|
+
KalibroEntities.config.should eq({address: "http://localhost:8080/KalibroService/"})
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'should log an warning' do
|
65
|
+
@logger.expects(:warn).with("YAML configuration file couldn't be found. Using defaults.")
|
66
|
+
|
67
|
+
KalibroEntities.configure_with('spec/savon/fixtures/inexistent_file.yml')
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
context 'with an invalid YAML' do
|
72
|
+
before :each do
|
73
|
+
@logger = Logger.new(File::NULL)
|
74
|
+
KalibroEntities.expects(:logger).returns(@logger)
|
75
|
+
end
|
76
|
+
|
77
|
+
it 'should keep the defaults' do
|
78
|
+
KalibroEntities.configure_with('spec/savon/fixtures/invalid_config.yml')
|
79
|
+
KalibroEntities.config.should eq({address: "http://localhost:8080/KalibroService/"})
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'should log an warning' do
|
83
|
+
@logger.expects(:warn).with("YAML configuration file contains invalid syntax. Using defaults.")
|
84
|
+
|
85
|
+
KalibroEntities.configure_with('spec/savon/fixtures/invalid_config.yml')
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
context 'Logger' do
|
92
|
+
describe 'logger' do
|
93
|
+
it 'should return the default logger' do
|
94
|
+
KalibroEntities.logger.should be_a(Logger)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
describe 'logger=' do
|
99
|
+
it 'should set the logger' do
|
100
|
+
logger = Logger.new(STDOUT)
|
101
|
+
|
102
|
+
KalibroEntities.logger = logger
|
103
|
+
|
104
|
+
KalibroEntities.logger.should eq(logger)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
address: http://test1.test1
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:projectExistsResponse xmlns:ns2="http://service.kalibro.org/"><exists>false</exists></ns2:projectExistsResponse></S:Body></S:Envelope>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module SavonTestHelper
|
2
|
+
HttpMock = Struct.new(:code, :headers, :body) do
|
3
|
+
def error?
|
4
|
+
false
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
def mock_savon_response(xml_response, code = 200, headers = {})
|
9
|
+
http = HttpMock.new(code, headers, xml_response)
|
10
|
+
savon_local_options = Savon::LocalOptions.new
|
11
|
+
savon_global_options = Savon::GlobalOptions.new
|
12
|
+
savon_response = Savon::Response.new(http, savon_global_options, savon_local_options)
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# This file is part of KalibroEntities
|
2
|
+
# Copyright (C) 2013 it's respectives authors (please see the AUTHORS file)
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
|
17
|
+
require 'mocha/api'
|
18
|
+
|
19
|
+
# Test coverage report
|
20
|
+
require 'simplecov'
|
21
|
+
require 'coveralls'
|
22
|
+
|
23
|
+
SimpleCov.start do
|
24
|
+
formatter SimpleCov::Formatter::MultiFormatter[
|
25
|
+
Coveralls::SimpleCov::Formatter,
|
26
|
+
SimpleCov::Formatter::HTMLFormatter
|
27
|
+
]
|
28
|
+
add_group "Entities", "lib/kalibro_entities/entities"
|
29
|
+
add_group "Errors", "lib/kalibro_entities/errors"
|
30
|
+
add_group "Helpers", "lib/kalibro_entities/helpers"
|
31
|
+
add_group "Cucumber Helpers", "lib/kalibro_entities/kalibro_cucumber_helpers"
|
32
|
+
|
33
|
+
add_filter "/spec/"
|
34
|
+
add_filter "/features/"
|
35
|
+
|
36
|
+
coverage_dir 'coverage/rspec'
|
37
|
+
end
|
38
|
+
|
39
|
+
require 'savon/savon_test_helper'
|
40
|
+
|
41
|
+
require 'kalibro_entities'
|
42
|
+
|
43
|
+
require 'factory_girl'
|
44
|
+
FactoryGirl.find_definitions
|
45
|
+
|
46
|
+
RSpec.configure do |config|
|
47
|
+
config.include SavonTestHelper
|
48
|
+
|
49
|
+
# ## Mock Framework
|
50
|
+
config.mock_with :mocha
|
51
|
+
|
52
|
+
# Run specs in random order to surface order dependencies. If you find an
|
53
|
+
# order dependency and want to debug it, you can fix the order by providing
|
54
|
+
# the seed, which is printed after each run.
|
55
|
+
# --seed 1234
|
56
|
+
config.order = "random"
|
57
|
+
|
58
|
+
# Colors
|
59
|
+
config.color_enabled = true
|
60
|
+
end
|
metadata
ADDED
@@ -0,0 +1,461 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kalibro_entities
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Carlos Morais
|
8
|
+
- Daniel Paulino Alves
|
9
|
+
- Diego Araújo Martinez
|
10
|
+
- Fellipe Souto
|
11
|
+
- Guilherme Rojas V. de Lima
|
12
|
+
- João M. M. da Silva
|
13
|
+
- Rafael Reggiani Manzo
|
14
|
+
- Renan Fichberg
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: bundler
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
type: :development
|
28
|
+
prerelease: false
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rake
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
type: :development
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rspec
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.14'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.14'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: cucumber
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.3.5
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.5
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: mocha
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.14.0
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.14.0
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: simplecov
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: factory_girl
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.2.0
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.2.0
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: coveralls
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
type: :development
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: savon
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 2.3.0
|
139
|
+
type: :runtime
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.3.0
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: activesupport
|
148
|
+
requirement: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 4.0.0
|
153
|
+
type: :runtime
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 4.0.0
|
160
|
+
description: KalibroEntities is a Ruby gem intended to be an interface for Ruby applications
|
161
|
+
who want to use the open source code analysis webservice Kalibro (http://gitorious.org/kalibro/kalibro).
|
162
|
+
email:
|
163
|
+
- carlos88morais@gmail.com
|
164
|
+
- danpaulalves@gmail.com
|
165
|
+
- diegamc90@gmail.com
|
166
|
+
- fllsouto@gmail.com
|
167
|
+
- guilhermehrojas@gmail.com
|
168
|
+
- jaodsilv@linux.ime.usp.br
|
169
|
+
- rr.manzo@gmail.com
|
170
|
+
- rfichberg@gmail.com
|
171
|
+
executables: []
|
172
|
+
extensions: []
|
173
|
+
extra_rdoc_files: []
|
174
|
+
files:
|
175
|
+
- .gitignore
|
176
|
+
- .ruby-gemset
|
177
|
+
- .ruby-version
|
178
|
+
- .travis.yml
|
179
|
+
- AUTHORS
|
180
|
+
- COPYING
|
181
|
+
- COPYING.LESSER
|
182
|
+
- Gemfile
|
183
|
+
- README.md
|
184
|
+
- Rakefile
|
185
|
+
- cucumber.yml
|
186
|
+
- features/base_tool/all_names.feature
|
187
|
+
- features/base_tool/find_by_name.feature
|
188
|
+
- features/configuration/all.feature
|
189
|
+
- features/metric_configuration/find.feature
|
190
|
+
- features/metric_configuration/metric_configurations_of.feature
|
191
|
+
- features/metric_result/descendant_results.feature
|
192
|
+
- features/metric_result/history_of.feature
|
193
|
+
- features/metric_result/metric_results_of.feature
|
194
|
+
- features/module_result/children.feature
|
195
|
+
- features/module_result/find.feature
|
196
|
+
- features/module_result/history_of.feature
|
197
|
+
- features/processing/first_processing_after.feature
|
198
|
+
- features/processing/first_processing_of.feature
|
199
|
+
- features/processing/has_processing.feature
|
200
|
+
- features/processing/has_processing_after.feature
|
201
|
+
- features/processing/has_processing_before.feature
|
202
|
+
- features/processing/has_ready_processing.feature
|
203
|
+
- features/processing/last_processing_before.feature
|
204
|
+
- features/processing/last_processing_of.feature
|
205
|
+
- features/processing/last_processing_state_of.feature
|
206
|
+
- features/processing/last_ready_processing_of.feature
|
207
|
+
- features/processing/processing_of.feature
|
208
|
+
- features/processing/processing_with_date_of.feature
|
209
|
+
- features/project/all.feature
|
210
|
+
- features/project/creation.feature
|
211
|
+
- features/project/destroy.feature
|
212
|
+
- features/project/exists.feature
|
213
|
+
- features/project/find.feature
|
214
|
+
- features/range/ranges_of.feature
|
215
|
+
- features/range/save.feature
|
216
|
+
- features/reading/find.feature
|
217
|
+
- features/reading/readings_of.feature
|
218
|
+
- features/reading_group/all.feature
|
219
|
+
- features/repository/all.feature
|
220
|
+
- features/repository/cancel_processing.feature
|
221
|
+
- features/repository/find.feature
|
222
|
+
- features/repository/of.feature
|
223
|
+
- features/repository/process.feature
|
224
|
+
- features/repository/types.feature
|
225
|
+
- features/step_definitions/base_tool_steps.rb
|
226
|
+
- features/step_definitions/configuration_steps.rb
|
227
|
+
- features/step_definitions/metric_configuration_steps.rb
|
228
|
+
- features/step_definitions/metric_result_steps.rb
|
229
|
+
- features/step_definitions/metric_steps.rb
|
230
|
+
- features/step_definitions/module_result_steps.rb
|
231
|
+
- features/step_definitions/processing_steps.rb
|
232
|
+
- features/step_definitions/project_steps.rb
|
233
|
+
- features/step_definitions/range_steps.rb
|
234
|
+
- features/step_definitions/reading_group_steps.rb
|
235
|
+
- features/step_definitions/reading_steps.rb
|
236
|
+
- features/step_definitions/repository_steps.rb
|
237
|
+
- features/support/env.rb
|
238
|
+
- features/support/kalibro_cucumber_helpers.yml.sample
|
239
|
+
- kalibro_entities.gemspec
|
240
|
+
- lib/kalibro_entities.rb
|
241
|
+
- lib/kalibro_entities/entities.rb
|
242
|
+
- lib/kalibro_entities/entities/base_tool.rb
|
243
|
+
- lib/kalibro_entities/entities/configuration.rb
|
244
|
+
- lib/kalibro_entities/entities/date_metric_result.rb
|
245
|
+
- lib/kalibro_entities/entities/date_module_result.rb
|
246
|
+
- lib/kalibro_entities/entities/metric.rb
|
247
|
+
- lib/kalibro_entities/entities/metric_configuration.rb
|
248
|
+
- lib/kalibro_entities/entities/metric_configuration_snapshot.rb
|
249
|
+
- lib/kalibro_entities/entities/metric_result.rb
|
250
|
+
- lib/kalibro_entities/entities/model.rb
|
251
|
+
- lib/kalibro_entities/entities/module.rb
|
252
|
+
- lib/kalibro_entities/entities/module_result.rb
|
253
|
+
- lib/kalibro_entities/entities/process_time.rb
|
254
|
+
- lib/kalibro_entities/entities/processing.rb
|
255
|
+
- lib/kalibro_entities/entities/project.rb
|
256
|
+
- lib/kalibro_entities/entities/range.rb
|
257
|
+
- lib/kalibro_entities/entities/range_snapshot.rb
|
258
|
+
- lib/kalibro_entities/entities/reading.rb
|
259
|
+
- lib/kalibro_entities/entities/reading_group.rb
|
260
|
+
- lib/kalibro_entities/entities/repository.rb
|
261
|
+
- lib/kalibro_entities/entities/repository_observer.rb
|
262
|
+
- lib/kalibro_entities/entities/stack_trace_element.rb
|
263
|
+
- lib/kalibro_entities/entities/throwable.rb
|
264
|
+
- lib/kalibro_entities/errors.rb
|
265
|
+
- lib/kalibro_entities/errors/record_not_found.rb
|
266
|
+
- lib/kalibro_entities/errors/standard.rb
|
267
|
+
- lib/kalibro_entities/helpers/aggregation_options.rb
|
268
|
+
- lib/kalibro_entities/helpers/hash_converters.rb
|
269
|
+
- lib/kalibro_entities/helpers/request_methods.rb
|
270
|
+
- lib/kalibro_entities/helpers/xml_converters.rb
|
271
|
+
- lib/kalibro_entities/kalibro_cucumber_helpers.rb
|
272
|
+
- lib/kalibro_entities/kalibro_cucumber_helpers/configuration.rb
|
273
|
+
- lib/kalibro_entities/kalibro_cucumber_helpers/hooks.rb
|
274
|
+
- lib/kalibro_entities/kalibro_cucumber_helpers/scripts/delete_all_kalibro_entries.sh
|
275
|
+
- lib/kalibro_entities/kalibro_cucumber_helpers/scripts/prepare_kalibro_query_file.sh
|
276
|
+
- lib/kalibro_entities/kalibro_cucumber_helpers/scripts/put_kalibro_on_test_mode.sh
|
277
|
+
- lib/kalibro_entities/kalibro_cucumber_helpers/scripts/return_kalibro_from_test_mode.sh
|
278
|
+
- lib/kalibro_entities/version.rb
|
279
|
+
- lib/rake/test_task.rb
|
280
|
+
- spec/entities/base_tool_spec.rb
|
281
|
+
- spec/entities/configuration_spec.rb
|
282
|
+
- spec/entities/date_metric_result_spec.rb
|
283
|
+
- spec/entities/date_module_result_spec.rb
|
284
|
+
- spec/entities/metric_configuration_snapshot_spec.rb
|
285
|
+
- spec/entities/metric_configuration_spec.rb
|
286
|
+
- spec/entities/metric_result_spec.rb
|
287
|
+
- spec/entities/metric_spec.rb
|
288
|
+
- spec/entities/model_spec.rb
|
289
|
+
- spec/entities/module_result_spec.rb
|
290
|
+
- spec/entities/process_time_spec.rb
|
291
|
+
- spec/entities/processing_spec.rb
|
292
|
+
- spec/entities/project_spec.rb
|
293
|
+
- spec/entities/range_snapshot_spec.rb
|
294
|
+
- spec/entities/range_spec.rb
|
295
|
+
- spec/entities/reading_group_spec.rb
|
296
|
+
- spec/entities/reading_spec.rb
|
297
|
+
- spec/entities/repository_observer_spec.rb
|
298
|
+
- spec/entities/repository_spec.rb
|
299
|
+
- spec/entities/stack_trace_element_spec.rb
|
300
|
+
- spec/entities/throwable_spec.rb
|
301
|
+
- spec/factories/base_tools.rb
|
302
|
+
- spec/factories/configurations.rb
|
303
|
+
- spec/factories/date_metric_results.rb
|
304
|
+
- spec/factories/date_module_results.rb
|
305
|
+
- spec/factories/metric_configurations.rb
|
306
|
+
- spec/factories/metric_configurations_snapshot.rb
|
307
|
+
- spec/factories/metric_results.rb
|
308
|
+
- spec/factories/metrics.rb
|
309
|
+
- spec/factories/models.rb
|
310
|
+
- spec/factories/module_results.rb
|
311
|
+
- spec/factories/modules.rb
|
312
|
+
- spec/factories/process_times.rb
|
313
|
+
- spec/factories/processings.rb
|
314
|
+
- spec/factories/projects.rb
|
315
|
+
- spec/factories/ranges.rb
|
316
|
+
- spec/factories/ranges_snapshot.rb
|
317
|
+
- spec/factories/reading_groups.rb
|
318
|
+
- spec/factories/readings.rb
|
319
|
+
- spec/factories/repositories.rb
|
320
|
+
- spec/factories/repository_observers.rb
|
321
|
+
- spec/factories/stack_trace_elements.rb
|
322
|
+
- spec/factories/throwables.rb
|
323
|
+
- spec/helpers/aggregation_options_spec.rb
|
324
|
+
- spec/helpers/hash_converters_spec.rb
|
325
|
+
- spec/helpers/xml_converters_spec.rb
|
326
|
+
- spec/kalibro_entities_spec.rb
|
327
|
+
- spec/savon/fixtures/config.yml
|
328
|
+
- spec/savon/fixtures/invalid_config.yml
|
329
|
+
- spec/savon/fixtures/project/does_not_exists.xml
|
330
|
+
- spec/savon/savon_test_helper.rb
|
331
|
+
- spec/spec_helper.rb
|
332
|
+
homepage: https://github.com/mezuro/kalibro_entities
|
333
|
+
licenses:
|
334
|
+
- LGPLv3
|
335
|
+
metadata: {}
|
336
|
+
post_install_message:
|
337
|
+
rdoc_options: []
|
338
|
+
require_paths:
|
339
|
+
- lib
|
340
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
341
|
+
requirements:
|
342
|
+
- - '>='
|
343
|
+
- !ruby/object:Gem::Version
|
344
|
+
version: '0'
|
345
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
346
|
+
requirements:
|
347
|
+
- - '>'
|
348
|
+
- !ruby/object:Gem::Version
|
349
|
+
version: 1.3.1
|
350
|
+
requirements: []
|
351
|
+
rubyforge_project:
|
352
|
+
rubygems_version: 2.0.3
|
353
|
+
signing_key:
|
354
|
+
specification_version: 4
|
355
|
+
summary: KalibroEntites is a communication interface with the Kalibro service.
|
356
|
+
test_files:
|
357
|
+
- features/base_tool/all_names.feature
|
358
|
+
- features/base_tool/find_by_name.feature
|
359
|
+
- features/configuration/all.feature
|
360
|
+
- features/metric_configuration/find.feature
|
361
|
+
- features/metric_configuration/metric_configurations_of.feature
|
362
|
+
- features/metric_result/descendant_results.feature
|
363
|
+
- features/metric_result/history_of.feature
|
364
|
+
- features/metric_result/metric_results_of.feature
|
365
|
+
- features/module_result/children.feature
|
366
|
+
- features/module_result/find.feature
|
367
|
+
- features/module_result/history_of.feature
|
368
|
+
- features/processing/first_processing_after.feature
|
369
|
+
- features/processing/first_processing_of.feature
|
370
|
+
- features/processing/has_processing.feature
|
371
|
+
- features/processing/has_processing_after.feature
|
372
|
+
- features/processing/has_processing_before.feature
|
373
|
+
- features/processing/has_ready_processing.feature
|
374
|
+
- features/processing/last_processing_before.feature
|
375
|
+
- features/processing/last_processing_of.feature
|
376
|
+
- features/processing/last_processing_state_of.feature
|
377
|
+
- features/processing/last_ready_processing_of.feature
|
378
|
+
- features/processing/processing_of.feature
|
379
|
+
- features/processing/processing_with_date_of.feature
|
380
|
+
- features/project/all.feature
|
381
|
+
- features/project/creation.feature
|
382
|
+
- features/project/destroy.feature
|
383
|
+
- features/project/exists.feature
|
384
|
+
- features/project/find.feature
|
385
|
+
- features/range/ranges_of.feature
|
386
|
+
- features/range/save.feature
|
387
|
+
- features/reading/find.feature
|
388
|
+
- features/reading/readings_of.feature
|
389
|
+
- features/reading_group/all.feature
|
390
|
+
- features/repository/all.feature
|
391
|
+
- features/repository/cancel_processing.feature
|
392
|
+
- features/repository/find.feature
|
393
|
+
- features/repository/of.feature
|
394
|
+
- features/repository/process.feature
|
395
|
+
- features/repository/types.feature
|
396
|
+
- features/step_definitions/base_tool_steps.rb
|
397
|
+
- features/step_definitions/configuration_steps.rb
|
398
|
+
- features/step_definitions/metric_configuration_steps.rb
|
399
|
+
- features/step_definitions/metric_result_steps.rb
|
400
|
+
- features/step_definitions/metric_steps.rb
|
401
|
+
- features/step_definitions/module_result_steps.rb
|
402
|
+
- features/step_definitions/processing_steps.rb
|
403
|
+
- features/step_definitions/project_steps.rb
|
404
|
+
- features/step_definitions/range_steps.rb
|
405
|
+
- features/step_definitions/reading_group_steps.rb
|
406
|
+
- features/step_definitions/reading_steps.rb
|
407
|
+
- features/step_definitions/repository_steps.rb
|
408
|
+
- features/support/env.rb
|
409
|
+
- features/support/kalibro_cucumber_helpers.yml.sample
|
410
|
+
- spec/entities/base_tool_spec.rb
|
411
|
+
- spec/entities/configuration_spec.rb
|
412
|
+
- spec/entities/date_metric_result_spec.rb
|
413
|
+
- spec/entities/date_module_result_spec.rb
|
414
|
+
- spec/entities/metric_configuration_snapshot_spec.rb
|
415
|
+
- spec/entities/metric_configuration_spec.rb
|
416
|
+
- spec/entities/metric_result_spec.rb
|
417
|
+
- spec/entities/metric_spec.rb
|
418
|
+
- spec/entities/model_spec.rb
|
419
|
+
- spec/entities/module_result_spec.rb
|
420
|
+
- spec/entities/process_time_spec.rb
|
421
|
+
- spec/entities/processing_spec.rb
|
422
|
+
- spec/entities/project_spec.rb
|
423
|
+
- spec/entities/range_snapshot_spec.rb
|
424
|
+
- spec/entities/range_spec.rb
|
425
|
+
- spec/entities/reading_group_spec.rb
|
426
|
+
- spec/entities/reading_spec.rb
|
427
|
+
- spec/entities/repository_observer_spec.rb
|
428
|
+
- spec/entities/repository_spec.rb
|
429
|
+
- spec/entities/stack_trace_element_spec.rb
|
430
|
+
- spec/entities/throwable_spec.rb
|
431
|
+
- spec/factories/base_tools.rb
|
432
|
+
- spec/factories/configurations.rb
|
433
|
+
- spec/factories/date_metric_results.rb
|
434
|
+
- spec/factories/date_module_results.rb
|
435
|
+
- spec/factories/metric_configurations.rb
|
436
|
+
- spec/factories/metric_configurations_snapshot.rb
|
437
|
+
- spec/factories/metric_results.rb
|
438
|
+
- spec/factories/metrics.rb
|
439
|
+
- spec/factories/models.rb
|
440
|
+
- spec/factories/module_results.rb
|
441
|
+
- spec/factories/modules.rb
|
442
|
+
- spec/factories/process_times.rb
|
443
|
+
- spec/factories/processings.rb
|
444
|
+
- spec/factories/projects.rb
|
445
|
+
- spec/factories/ranges.rb
|
446
|
+
- spec/factories/ranges_snapshot.rb
|
447
|
+
- spec/factories/reading_groups.rb
|
448
|
+
- spec/factories/readings.rb
|
449
|
+
- spec/factories/repositories.rb
|
450
|
+
- spec/factories/repository_observers.rb
|
451
|
+
- spec/factories/stack_trace_elements.rb
|
452
|
+
- spec/factories/throwables.rb
|
453
|
+
- spec/helpers/aggregation_options_spec.rb
|
454
|
+
- spec/helpers/hash_converters_spec.rb
|
455
|
+
- spec/helpers/xml_converters_spec.rb
|
456
|
+
- spec/kalibro_entities_spec.rb
|
457
|
+
- spec/savon/fixtures/config.yml
|
458
|
+
- spec/savon/fixtures/invalid_config.yml
|
459
|
+
- spec/savon/fixtures/project/does_not_exists.xml
|
460
|
+
- spec/savon/savon_test_helper.rb
|
461
|
+
- spec/spec_helper.rb
|