kalibro_gem 0.0.1.rc7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +21 -0
  6. data/AUTHORS +4 -0
  7. data/COPYING +674 -0
  8. data/COPYING.LESSER +165 -0
  9. data/Gemfile +4 -0
  10. data/README.md +77 -0
  11. data/Rakefile +6 -0
  12. data/cucumber.yml +1 -0
  13. data/features/base_tool/all_names.feature +8 -0
  14. data/features/base_tool/find_by_name.feature +12 -0
  15. data/features/configuration/all.feature +10 -0
  16. data/features/metric_configuration/find.feature +18 -0
  17. data/features/metric_configuration/metric_configurations_of.feature +18 -0
  18. data/features/metric_result/descendant_results.feature +19 -0
  19. data/features/metric_result/history_of.feature +20 -0
  20. data/features/metric_result/metric_results_of.feature +19 -0
  21. data/features/module_result/children.feature +18 -0
  22. data/features/module_result/find.feature +15 -0
  23. data/features/module_result/history_of.feature +11 -0
  24. data/features/processing/first_processing_after.feature +18 -0
  25. data/features/processing/first_processing_of.feature +18 -0
  26. data/features/processing/has_processing.feature +18 -0
  27. data/features/processing/has_processing_after.feature +18 -0
  28. data/features/processing/has_processing_before.feature +18 -0
  29. data/features/processing/has_ready_processing.feature +18 -0
  30. data/features/processing/last_processing_before.feature +18 -0
  31. data/features/processing/last_processing_of.feature +18 -0
  32. data/features/processing/last_processing_state_of.feature +18 -0
  33. data/features/processing/last_ready_processing_of.feature +18 -0
  34. data/features/processing/processing_of.feature +32 -0
  35. data/features/processing/processing_with_date_of.feature +32 -0
  36. data/features/project/all.feature +10 -0
  37. data/features/project/creation.feature +9 -0
  38. data/features/project/destroy.feature +10 -0
  39. data/features/project/exists.feature +9 -0
  40. data/features/project/find.feature +10 -0
  41. data/features/range/ranges_of.feature +22 -0
  42. data/features/range/save.feature +32 -0
  43. data/features/reading/find.feature +11 -0
  44. data/features/reading/readings_of.feature +11 -0
  45. data/features/reading_group/all.feature +10 -0
  46. data/features/repository/all.feature +14 -0
  47. data/features/repository/cancel_processing.feature +14 -0
  48. data/features/repository/exists.feature +14 -0
  49. data/features/repository/find.feature +14 -0
  50. data/features/repository/of.feature +15 -0
  51. data/features/repository/process.feature +16 -0
  52. data/features/repository/types.feature +9 -0
  53. data/features/step_definitions/base_tool_steps.rb +28 -0
  54. data/features/step_definitions/configuration_steps.rb +11 -0
  55. data/features/step_definitions/metric_configuration_steps.rb +52 -0
  56. data/features/step_definitions/metric_result_steps.rb +29 -0
  57. data/features/step_definitions/metric_steps.rb +3 -0
  58. data/features/step_definitions/module_result_steps.rb +30 -0
  59. data/features/step_definitions/processing_steps.rb +91 -0
  60. data/features/step_definitions/project_steps.rb +48 -0
  61. data/features/step_definitions/range_steps.rb +41 -0
  62. data/features/step_definitions/reading_group_steps.rb +19 -0
  63. data/features/step_definitions/reading_steps.rb +20 -0
  64. data/features/step_definitions/repository_steps.rb +61 -0
  65. data/features/support/env.rb +25 -0
  66. data/features/support/kalibro_cucumber_helpers.yml.sample +10 -0
  67. data/kalibro_gem.gemspec +48 -0
  68. data/lib/kalibro_gem.rb +61 -0
  69. data/lib/kalibro_gem/entities.rb +37 -0
  70. data/lib/kalibro_gem/entities/base_tool.rb +54 -0
  71. data/lib/kalibro_gem/entities/configuration.rb +33 -0
  72. data/lib/kalibro_gem/entities/date_metric_result.rb +39 -0
  73. data/lib/kalibro_gem/entities/date_module_result.rb +39 -0
  74. data/lib/kalibro_gem/entities/metric.rb +21 -0
  75. data/lib/kalibro_gem/entities/metric_configuration.rb +70 -0
  76. data/lib/kalibro_gem/entities/metric_configuration_snapshot.rb +57 -0
  77. data/lib/kalibro_gem/entities/metric_result.rb +74 -0
  78. data/lib/kalibro_gem/entities/model.rb +162 -0
  79. data/lib/kalibro_gem/entities/module.rb +27 -0
  80. data/lib/kalibro_gem/entities/module_result.rb +77 -0
  81. data/lib/kalibro_gem/entities/process_time.rb +31 -0
  82. data/lib/kalibro_gem/entities/processing.rb +113 -0
  83. data/lib/kalibro_gem/entities/project.rb +34 -0
  84. data/lib/kalibro_gem/entities/range.rb +75 -0
  85. data/lib/kalibro_gem/entities/range_snapshot.rb +37 -0
  86. data/lib/kalibro_gem/entities/reading.rb +51 -0
  87. data/lib/kalibro_gem/entities/reading_group.rb +43 -0
  88. data/lib/kalibro_gem/entities/repository.rb +86 -0
  89. data/lib/kalibro_gem/entities/repository_observer.rb +50 -0
  90. data/lib/kalibro_gem/entities/stack_trace_element.rb +31 -0
  91. data/lib/kalibro_gem/entities/throwable.rb +42 -0
  92. data/lib/kalibro_gem/errors.rb +18 -0
  93. data/lib/kalibro_gem/errors/record_not_found.rb +22 -0
  94. data/lib/kalibro_gem/errors/standard.rb +24 -0
  95. data/lib/kalibro_gem/helpers/aggregation_options.rb +25 -0
  96. data/lib/kalibro_gem/helpers/hash_converters.rb +48 -0
  97. data/lib/kalibro_gem/helpers/request_methods.rb +47 -0
  98. data/lib/kalibro_gem/helpers/xml_converters.rb +20 -0
  99. data/lib/kalibro_gem/kalibro_cucumber_helpers.rb +40 -0
  100. data/lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb +39 -0
  101. data/lib/kalibro_gem/kalibro_cucumber_helpers/hooks.rb +50 -0
  102. data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/delete_all_kalibro_entries.sh +23 -0
  103. data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/prepare_kalibro_query_file.sh +38 -0
  104. data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/put_kalibro_on_test_mode.sh +35 -0
  105. data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/return_kalibro_from_test_mode.sh +26 -0
  106. data/lib/kalibro_gem/version.rb +19 -0
  107. data/lib/rake/test_task.rb +57 -0
  108. data/spec/entities/base_tool_spec.rb +168 -0
  109. data/spec/entities/configuration_spec.rb +61 -0
  110. data/spec/entities/date_metric_result_spec.rb +62 -0
  111. data/spec/entities/date_module_result_spec.rb +61 -0
  112. data/spec/entities/metric_configuration_snapshot_spec.rb +107 -0
  113. data/spec/entities/metric_configuration_spec.rb +149 -0
  114. data/spec/entities/metric_result_spec.rb +201 -0
  115. data/spec/entities/metric_spec.rb +47 -0
  116. data/spec/entities/model_spec.rb +275 -0
  117. data/spec/entities/module_result_spec.rb +163 -0
  118. data/spec/entities/process_time_spec.rb +33 -0
  119. data/spec/entities/processing_spec.rb +334 -0
  120. data/spec/entities/project_spec.rb +68 -0
  121. data/spec/entities/range_snapshot_spec.rb +50 -0
  122. data/spec/entities/range_spec.rb +181 -0
  123. data/spec/entities/reading_group_spec.rb +90 -0
  124. data/spec/entities/reading_spec.rb +106 -0
  125. data/spec/entities/repository_observer_spec.rb +123 -0
  126. data/spec/entities/repository_spec.rb +191 -0
  127. data/spec/entities/stack_trace_element_spec.rb +26 -0
  128. data/spec/entities/throwable_spec.rb +51 -0
  129. data/spec/factories/base_tools.rb +31 -0
  130. data/spec/factories/configurations.rb +29 -0
  131. data/spec/factories/date_metric_results.rb +28 -0
  132. data/spec/factories/date_module_results.rb +22 -0
  133. data/spec/factories/metric_configurations.rb +28 -0
  134. data/spec/factories/metric_configurations_snapshot.rb +26 -0
  135. data/spec/factories/metric_results.rb +24 -0
  136. data/spec/factories/metrics.rb +35 -0
  137. data/spec/factories/models.rb +20 -0
  138. data/spec/factories/module_results.rb +33 -0
  139. data/spec/factories/modules.rb +22 -0
  140. data/spec/factories/process_times.rb +27 -0
  141. data/spec/factories/processings.rb +25 -0
  142. data/spec/factories/projects.rb +29 -0
  143. data/spec/factories/ranges.rb +30 -0
  144. data/spec/factories/ranges_snapshot.rb +26 -0
  145. data/spec/factories/reading_groups.rb +23 -0
  146. data/spec/factories/readings.rb +25 -0
  147. data/spec/factories/repositories.rb +34 -0
  148. data/spec/factories/repository_observers.rb +24 -0
  149. data/spec/factories/stack_trace_elements.rb +24 -0
  150. data/spec/factories/throwables.rb +23 -0
  151. data/spec/helpers/aggregation_options_spec.rb +31 -0
  152. data/spec/helpers/hash_converters_spec.rb +111 -0
  153. data/spec/helpers/xml_converters_spec.rb +64 -0
  154. data/spec/kalibro_entities_spec.rb +108 -0
  155. data/spec/savon/fixtures/config.yml +1 -0
  156. data/spec/savon/fixtures/invalid_config.yml +2 -0
  157. data/spec/savon/fixtures/project/does_not_exists.xml +1 -0
  158. data/spec/savon/savon_test_helper.rb +14 -0
  159. data/spec/spec_helper.rb +60 -0
  160. metadata +463 -0
@@ -0,0 +1,111 @@
1
+ # This file is part of KalibroGem
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_gem/helpers/hash_converters'
19
+
20
+ include HashConverters
21
+
22
+ describe HashConverters do
23
+ describe 'date_with_miliseconds' do
24
+ context 'with 21/12/1995 (first Ruby publication)' do
25
+ it 'should return 1995-12-21T00:00:00.0/1+00:00' do
26
+ date_with_milliseconds(DateTime.parse("21/12/1995")).should eq("1995-12-21T00:00:00.0/1+00:00")
27
+ end
28
+ end
29
+ end
30
+
31
+ describe 'convert_to_hash' do
32
+ context 'with a nil value' do
33
+ it 'should return nil' do
34
+ convert_to_hash(nil).should be_nil
35
+ end
36
+ end
37
+
38
+ context 'with an Array' do
39
+ before :each do
40
+ @array = []
41
+ @element1 = :kalibro
42
+
43
+ @array << @element1
44
+ end
45
+
46
+ it 'should return the Array wth its elements converted' do
47
+ convert_to_hash(@array)[0].should eq(@element1.to_s)
48
+ end
49
+ end
50
+
51
+ context 'with a Model' do
52
+ before :each do
53
+ @model = KalibroGem::Entities::Model.new
54
+ end
55
+
56
+ it "should return the Model's Hash" do
57
+ convert_to_hash(@model).should eq(@model.to_hash)
58
+ end
59
+ end
60
+
61
+ context 'with a DateTime' do
62
+ before :each do
63
+ @date = DateTime.parse("21/12/1995")
64
+ end
65
+
66
+ it 'should return th date with miliseconds' do
67
+ convert_to_hash(@date).should eq(date_with_milliseconds(@date))
68
+ end
69
+ end
70
+
71
+ context 'with an + infinite Float' do
72
+ it 'should return INF' do
73
+ convert_to_hash(1.0/0.0).should eq('INF')
74
+ end
75
+ end
76
+
77
+ context 'with an - infinite Float' do
78
+ it 'should return -INF' do
79
+ convert_to_hash(-1.0/0.0).should eq('-INF')
80
+ end
81
+ end
82
+ end
83
+
84
+ describe 'field_to_hash' do
85
+ context 'with a nil field value' do
86
+ before do
87
+ @model = KalibroGem::Entities::Model.new
88
+ @model.expects(:send).with(:field_getter).returns(nil)
89
+ end
90
+
91
+ it 'should return an instance of Hash' do
92
+ @model.field_to_hash(:field_getter).should be_a(Hash)
93
+ end
94
+
95
+ it 'should return an empty Hash' do
96
+ @model.field_to_hash(:field_getter).should eq({})
97
+ end
98
+ end
99
+
100
+ context 'with a Float field value' do
101
+ before do
102
+ @model = KalibroGem::Entities::Model.new
103
+ @model.expects(:send).with(:field_getter).returns(1.0)
104
+ end
105
+
106
+ it 'should return an instance of Hash' do
107
+ @model.field_to_hash(:field_getter).should be_a(Hash)
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,64 @@
1
+ # This file is part of KalibroGem
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_gem/helpers/xml_converters'
19
+
20
+ include XMLConverters
21
+
22
+ describe XMLConverters do
23
+ describe 'xml_instance_class_name' do
24
+ before { @model = KalibroGem::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 = KalibroGem::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 KalibroGem
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 KalibroGem 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
+ KalibroGem.config.should eq({
28
+ address: "http://localhost:8080/KalibroService/"
29
+ })
30
+ end
31
+ end
32
+
33
+ describe 'configure' do
34
+ after(:all) {KalibroGem.configure(config)}
35
+
36
+ it 'should set the address' do
37
+ KalibroGem.configure({address: 'http://test.test'})
38
+ KalibroGem.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) {KalibroGem.configure(config)}
45
+
46
+ it 'should set the config' do
47
+ KalibroGem.configure_with('spec/savon/fixtures/config.yml')
48
+
49
+ KalibroGem.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
+ KalibroGem.expects(:logger).returns(@logger)
57
+ end
58
+
59
+ it 'should keep the defaults' do
60
+ KalibroGem.configure_with('spec/savon/fixtures/inexistent_file.yml')
61
+ KalibroGem.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
+ KalibroGem.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
+ KalibroGem.expects(:logger).returns(@logger)
75
+ end
76
+
77
+ it 'should keep the defaults' do
78
+ KalibroGem.configure_with('spec/savon/fixtures/invalid_config.yml')
79
+ KalibroGem.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
+ KalibroGem.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
+ KalibroGem.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
+ KalibroGem.logger = logger
103
+
104
+ KalibroGem.logger.should eq(logger)
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1 @@
1
+ address: http://test1.test1
@@ -0,0 +1,2 @@
1
+ ç
2
+ test:
@@ -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
@@ -0,0 +1,60 @@
1
+ # This file is part of KalibroGem
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_gem/entities"
29
+ add_group "Errors", "lib/kalibro_gem/errors"
30
+ add_group "Helpers", "lib/kalibro_gem/helpers"
31
+ add_group "Cucumber Helpers", "lib/kalibro_gem/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_gem'
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,463 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kalibro_gem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.rc7
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-11-25 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.3.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.3.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-ng-1.6
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: 2.4.1
139
+ type: :runtime
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: 2.4.1
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.1
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.1
160
+ description: KalibroGem 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/exists.feature
222
+ - features/repository/find.feature
223
+ - features/repository/of.feature
224
+ - features/repository/process.feature
225
+ - features/repository/types.feature
226
+ - features/step_definitions/base_tool_steps.rb
227
+ - features/step_definitions/configuration_steps.rb
228
+ - features/step_definitions/metric_configuration_steps.rb
229
+ - features/step_definitions/metric_result_steps.rb
230
+ - features/step_definitions/metric_steps.rb
231
+ - features/step_definitions/module_result_steps.rb
232
+ - features/step_definitions/processing_steps.rb
233
+ - features/step_definitions/project_steps.rb
234
+ - features/step_definitions/range_steps.rb
235
+ - features/step_definitions/reading_group_steps.rb
236
+ - features/step_definitions/reading_steps.rb
237
+ - features/step_definitions/repository_steps.rb
238
+ - features/support/env.rb
239
+ - features/support/kalibro_cucumber_helpers.yml.sample
240
+ - kalibro_gem.gemspec
241
+ - lib/kalibro_gem.rb
242
+ - lib/kalibro_gem/entities.rb
243
+ - lib/kalibro_gem/entities/base_tool.rb
244
+ - lib/kalibro_gem/entities/configuration.rb
245
+ - lib/kalibro_gem/entities/date_metric_result.rb
246
+ - lib/kalibro_gem/entities/date_module_result.rb
247
+ - lib/kalibro_gem/entities/metric.rb
248
+ - lib/kalibro_gem/entities/metric_configuration.rb
249
+ - lib/kalibro_gem/entities/metric_configuration_snapshot.rb
250
+ - lib/kalibro_gem/entities/metric_result.rb
251
+ - lib/kalibro_gem/entities/model.rb
252
+ - lib/kalibro_gem/entities/module.rb
253
+ - lib/kalibro_gem/entities/module_result.rb
254
+ - lib/kalibro_gem/entities/process_time.rb
255
+ - lib/kalibro_gem/entities/processing.rb
256
+ - lib/kalibro_gem/entities/project.rb
257
+ - lib/kalibro_gem/entities/range.rb
258
+ - lib/kalibro_gem/entities/range_snapshot.rb
259
+ - lib/kalibro_gem/entities/reading.rb
260
+ - lib/kalibro_gem/entities/reading_group.rb
261
+ - lib/kalibro_gem/entities/repository.rb
262
+ - lib/kalibro_gem/entities/repository_observer.rb
263
+ - lib/kalibro_gem/entities/stack_trace_element.rb
264
+ - lib/kalibro_gem/entities/throwable.rb
265
+ - lib/kalibro_gem/errors.rb
266
+ - lib/kalibro_gem/errors/record_not_found.rb
267
+ - lib/kalibro_gem/errors/standard.rb
268
+ - lib/kalibro_gem/helpers/aggregation_options.rb
269
+ - lib/kalibro_gem/helpers/hash_converters.rb
270
+ - lib/kalibro_gem/helpers/request_methods.rb
271
+ - lib/kalibro_gem/helpers/xml_converters.rb
272
+ - lib/kalibro_gem/kalibro_cucumber_helpers.rb
273
+ - lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb
274
+ - lib/kalibro_gem/kalibro_cucumber_helpers/hooks.rb
275
+ - lib/kalibro_gem/kalibro_cucumber_helpers/scripts/delete_all_kalibro_entries.sh
276
+ - lib/kalibro_gem/kalibro_cucumber_helpers/scripts/prepare_kalibro_query_file.sh
277
+ - lib/kalibro_gem/kalibro_cucumber_helpers/scripts/put_kalibro_on_test_mode.sh
278
+ - lib/kalibro_gem/kalibro_cucumber_helpers/scripts/return_kalibro_from_test_mode.sh
279
+ - lib/kalibro_gem/version.rb
280
+ - lib/rake/test_task.rb
281
+ - spec/entities/base_tool_spec.rb
282
+ - spec/entities/configuration_spec.rb
283
+ - spec/entities/date_metric_result_spec.rb
284
+ - spec/entities/date_module_result_spec.rb
285
+ - spec/entities/metric_configuration_snapshot_spec.rb
286
+ - spec/entities/metric_configuration_spec.rb
287
+ - spec/entities/metric_result_spec.rb
288
+ - spec/entities/metric_spec.rb
289
+ - spec/entities/model_spec.rb
290
+ - spec/entities/module_result_spec.rb
291
+ - spec/entities/process_time_spec.rb
292
+ - spec/entities/processing_spec.rb
293
+ - spec/entities/project_spec.rb
294
+ - spec/entities/range_snapshot_spec.rb
295
+ - spec/entities/range_spec.rb
296
+ - spec/entities/reading_group_spec.rb
297
+ - spec/entities/reading_spec.rb
298
+ - spec/entities/repository_observer_spec.rb
299
+ - spec/entities/repository_spec.rb
300
+ - spec/entities/stack_trace_element_spec.rb
301
+ - spec/entities/throwable_spec.rb
302
+ - spec/factories/base_tools.rb
303
+ - spec/factories/configurations.rb
304
+ - spec/factories/date_metric_results.rb
305
+ - spec/factories/date_module_results.rb
306
+ - spec/factories/metric_configurations.rb
307
+ - spec/factories/metric_configurations_snapshot.rb
308
+ - spec/factories/metric_results.rb
309
+ - spec/factories/metrics.rb
310
+ - spec/factories/models.rb
311
+ - spec/factories/module_results.rb
312
+ - spec/factories/modules.rb
313
+ - spec/factories/process_times.rb
314
+ - spec/factories/processings.rb
315
+ - spec/factories/projects.rb
316
+ - spec/factories/ranges.rb
317
+ - spec/factories/ranges_snapshot.rb
318
+ - spec/factories/reading_groups.rb
319
+ - spec/factories/readings.rb
320
+ - spec/factories/repositories.rb
321
+ - spec/factories/repository_observers.rb
322
+ - spec/factories/stack_trace_elements.rb
323
+ - spec/factories/throwables.rb
324
+ - spec/helpers/aggregation_options_spec.rb
325
+ - spec/helpers/hash_converters_spec.rb
326
+ - spec/helpers/xml_converters_spec.rb
327
+ - spec/kalibro_entities_spec.rb
328
+ - spec/savon/fixtures/config.yml
329
+ - spec/savon/fixtures/invalid_config.yml
330
+ - spec/savon/fixtures/project/does_not_exists.xml
331
+ - spec/savon/savon_test_helper.rb
332
+ - spec/spec_helper.rb
333
+ homepage: https://github.com/mezuro/kalibro_gem
334
+ licenses:
335
+ - LGPLv3
336
+ metadata: {}
337
+ post_install_message:
338
+ rdoc_options: []
339
+ require_paths:
340
+ - lib
341
+ required_ruby_version: !ruby/object:Gem::Requirement
342
+ requirements:
343
+ - - '>='
344
+ - !ruby/object:Gem::Version
345
+ version: '0'
346
+ required_rubygems_version: !ruby/object:Gem::Requirement
347
+ requirements:
348
+ - - '>'
349
+ - !ruby/object:Gem::Version
350
+ version: 1.3.1
351
+ requirements: []
352
+ rubyforge_project:
353
+ rubygems_version: 2.1.11
354
+ signing_key:
355
+ specification_version: 4
356
+ summary: KalibroEntites is a communication interface with the Kalibro service.
357
+ test_files:
358
+ - features/base_tool/all_names.feature
359
+ - features/base_tool/find_by_name.feature
360
+ - features/configuration/all.feature
361
+ - features/metric_configuration/find.feature
362
+ - features/metric_configuration/metric_configurations_of.feature
363
+ - features/metric_result/descendant_results.feature
364
+ - features/metric_result/history_of.feature
365
+ - features/metric_result/metric_results_of.feature
366
+ - features/module_result/children.feature
367
+ - features/module_result/find.feature
368
+ - features/module_result/history_of.feature
369
+ - features/processing/first_processing_after.feature
370
+ - features/processing/first_processing_of.feature
371
+ - features/processing/has_processing.feature
372
+ - features/processing/has_processing_after.feature
373
+ - features/processing/has_processing_before.feature
374
+ - features/processing/has_ready_processing.feature
375
+ - features/processing/last_processing_before.feature
376
+ - features/processing/last_processing_of.feature
377
+ - features/processing/last_processing_state_of.feature
378
+ - features/processing/last_ready_processing_of.feature
379
+ - features/processing/processing_of.feature
380
+ - features/processing/processing_with_date_of.feature
381
+ - features/project/all.feature
382
+ - features/project/creation.feature
383
+ - features/project/destroy.feature
384
+ - features/project/exists.feature
385
+ - features/project/find.feature
386
+ - features/range/ranges_of.feature
387
+ - features/range/save.feature
388
+ - features/reading/find.feature
389
+ - features/reading/readings_of.feature
390
+ - features/reading_group/all.feature
391
+ - features/repository/all.feature
392
+ - features/repository/cancel_processing.feature
393
+ - features/repository/exists.feature
394
+ - features/repository/find.feature
395
+ - features/repository/of.feature
396
+ - features/repository/process.feature
397
+ - features/repository/types.feature
398
+ - features/step_definitions/base_tool_steps.rb
399
+ - features/step_definitions/configuration_steps.rb
400
+ - features/step_definitions/metric_configuration_steps.rb
401
+ - features/step_definitions/metric_result_steps.rb
402
+ - features/step_definitions/metric_steps.rb
403
+ - features/step_definitions/module_result_steps.rb
404
+ - features/step_definitions/processing_steps.rb
405
+ - features/step_definitions/project_steps.rb
406
+ - features/step_definitions/range_steps.rb
407
+ - features/step_definitions/reading_group_steps.rb
408
+ - features/step_definitions/reading_steps.rb
409
+ - features/step_definitions/repository_steps.rb
410
+ - features/support/env.rb
411
+ - features/support/kalibro_cucumber_helpers.yml.sample
412
+ - spec/entities/base_tool_spec.rb
413
+ - spec/entities/configuration_spec.rb
414
+ - spec/entities/date_metric_result_spec.rb
415
+ - spec/entities/date_module_result_spec.rb
416
+ - spec/entities/metric_configuration_snapshot_spec.rb
417
+ - spec/entities/metric_configuration_spec.rb
418
+ - spec/entities/metric_result_spec.rb
419
+ - spec/entities/metric_spec.rb
420
+ - spec/entities/model_spec.rb
421
+ - spec/entities/module_result_spec.rb
422
+ - spec/entities/process_time_spec.rb
423
+ - spec/entities/processing_spec.rb
424
+ - spec/entities/project_spec.rb
425
+ - spec/entities/range_snapshot_spec.rb
426
+ - spec/entities/range_spec.rb
427
+ - spec/entities/reading_group_spec.rb
428
+ - spec/entities/reading_spec.rb
429
+ - spec/entities/repository_observer_spec.rb
430
+ - spec/entities/repository_spec.rb
431
+ - spec/entities/stack_trace_element_spec.rb
432
+ - spec/entities/throwable_spec.rb
433
+ - spec/factories/base_tools.rb
434
+ - spec/factories/configurations.rb
435
+ - spec/factories/date_metric_results.rb
436
+ - spec/factories/date_module_results.rb
437
+ - spec/factories/metric_configurations.rb
438
+ - spec/factories/metric_configurations_snapshot.rb
439
+ - spec/factories/metric_results.rb
440
+ - spec/factories/metrics.rb
441
+ - spec/factories/models.rb
442
+ - spec/factories/module_results.rb
443
+ - spec/factories/modules.rb
444
+ - spec/factories/process_times.rb
445
+ - spec/factories/processings.rb
446
+ - spec/factories/projects.rb
447
+ - spec/factories/ranges.rb
448
+ - spec/factories/ranges_snapshot.rb
449
+ - spec/factories/reading_groups.rb
450
+ - spec/factories/readings.rb
451
+ - spec/factories/repositories.rb
452
+ - spec/factories/repository_observers.rb
453
+ - spec/factories/stack_trace_elements.rb
454
+ - spec/factories/throwables.rb
455
+ - spec/helpers/aggregation_options_spec.rb
456
+ - spec/helpers/hash_converters_spec.rb
457
+ - spec/helpers/xml_converters_spec.rb
458
+ - spec/kalibro_entities_spec.rb
459
+ - spec/savon/fixtures/config.yml
460
+ - spec/savon/fixtures/invalid_config.yml
461
+ - spec/savon/fixtures/project/does_not_exists.xml
462
+ - spec/savon/savon_test_helper.rb
463
+ - spec/spec_helper.rb