bovespa_ingestion 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTA2Y2Q3OThkMzBiNzJhZGYyYTQ3YmMwZGQxOWYxOWZhZmJhMTMwMQ==
5
+ data.tar.gz: !binary |-
6
+ OTg4MWZhZDc1YzQxOGQyNTQ5ODQ4ODhkN2Y2Mzk4NmQ5NTIyNWM3Zg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MTJiMTU0NTE3OTFjNmEyNTVjYzliNTY3MWU1MjZjOTIxZGEwYzk5YzRjOTBm
10
+ YzEwODNhMWIzYzM5YTM4ODEzYjE2YjI2NjgyOWU5MDc5ZDhlZTI3OGJiMGRk
11
+ YTIxZjNlMjAzNDExYTcyZjdiZGIxNmZjMDgyNWVhMDg4Mjk0Zjk=
12
+ data.tar.gz: !binary |-
13
+ NzZkYzFhZTljOGFlODhlZDhkMmE4ODY0NTIxOGE4Nzc1NzQ4MTRhNDgzMGMx
14
+ OWYwODMwYzkxZjcwZmQwMjIzMTkyZGQ0YjdjNDVlMGU5YmIwZWU1MmMzOTdj
15
+ YmZjMGJiM2ZmYzhjZDJjNDU3MzA3OTkzMTdiZWY4MzE2MDllMTg=
@@ -0,0 +1,6 @@
1
+ db:
2
+ seeds: db/seeds.rb
3
+ migrate: db/migrate
4
+ schema: db/schema.rb
5
+ config:
6
+ database: config/database.yml
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ env:
5
+ - APP_ENV=test
6
+ before_script:
7
+ - rake db:migrate
data/Gemfile CHANGED
@@ -1,11 +1,16 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
- gem 'rake'
4
3
  gem 'activerecord', ">=3"
5
4
  gem 'standalone_migrations'
6
5
 
7
- group :dev do
6
+ group :development do
7
+ gem 'pg'
8
+ gem 'jeweler', "~> 1.6.4"
9
+ end
10
+
11
+ group :test do
12
+ gem 'rake'
8
13
  gem 'rspec', "~>2"
9
14
  gem 'sqlite3'
10
- gem 'jeweler', "~> 1.6.4"
11
15
  end
16
+
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Felipe Seixas and contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  Bovespa Ingestion
2
2
  =============
3
+ [![Build Status](https://travis-ci.org/seixasfelipe/bovespa-ingestion.png?branch=master)](https://travis-ci.org/seixasfelipe/bovespa-ingestion)
3
4
 
4
5
  An importer/parser of BM&F Bovespa historical stock quotations files.
5
6
 
@@ -11,41 +12,78 @@ Installing
11
12
 
12
13
  Install bundler:
13
14
 
14
- $ gem install bundler
15
+ `$ gem install bundler`
15
16
 
16
17
  Enter the cloned dir and fetch dependencies:
17
18
 
18
- $ bundler install
19
-
20
- Contributing
21
- ------------
22
-
23
- 1) Fork this git repository
24
-
25
- 2) Push your changes to your own repository
26
-
27
- 3) Send a pull request
19
+ `$ bundler install`
28
20
 
29
21
  Running
30
22
  -------
31
23
 
32
- Run the test application:
24
+ Run application with real BM&F Bovespa historical file, just pass it as argument (for instance):
33
25
 
34
- $ bin/carregar_historico
26
+ `$ ./bin/carregar_historico sample/DemoCotacoesHistoricas12022003.txt`
35
27
 
36
28
  Testing
37
29
  -------
38
30
 
39
- We use rspec, so:
31
+ Simply do:
32
+ `$ rake`
33
+
34
+ Getting real historical data files
35
+ ----------------------------------
36
+
37
+ To get daily historical stock quotation data files, just go BM&F Bovespa website and download it (or follow this shortcut URI: [BM&F Bovespa Historical Files](http://www.bmfbovespa.com.br/shared/iframe.aspx?idioma=pt-br&url=http://www.bmfbovespa.com.br/pt-br/cotacoes-historicas/FormSeriesHistoricas.asp) ). A login is necessary and fill in a captcha field.
38
+
39
+ Contributing
40
+ ------------
40
41
 
41
- $ rspec spec
42
+ ## Submitting a Pull Request
42
43
 
43
- or simply:
44
+ 1. [Fork the repository.][fork]
45
+ 2. [Create a topic branch.][branch]
46
+ 3. Write a failing test to capture existing bug or lack of feature.
47
+ 4. Run tests with `rake` to verify that test fails.
48
+ 5. Implement your feature or bug fix.
49
+ 6. Ensure tests pass.
50
+ 7. If it's a new feature or a bug fix, please add an entry to the changelog file.
51
+ 8. Add, commit, and push your changes.
52
+ 9. [Submit a pull request.][pr]
44
53
 
45
- $ rake
54
+ [fork]: https://help.github.com/articles/fork-a-repo
55
+ [branch]: http://learn.github.com/p/branching.html
56
+ [pr]: https://help.github.com/articles/using-pull-requests
46
57
 
47
58
  Prerequisites
48
59
  -------------
49
60
 
50
- Tested with Ruby 1.9.2
61
+ Tested with Ruby 1.9.3.
62
+
63
+ It uses Postgres as development database instead of Sqlite3 because it is faster to import several stock quotations (1000+).
64
+
65
+
66
+ Boring legal stuff
67
+ ------------------
68
+
69
+ (the MIT license)
70
+
71
+ Copyright (c) 2013 Felipe Seixas and contributors
72
+
73
+ Permission is hereby granted, free of charge, to any person obtaining a copy
74
+ of this software and associated documentation files (the "Software"), to deal
75
+ in the Software without restriction, including without limitation the rights
76
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
77
+ copies of the Software, and to permit persons to whom the Software is
78
+ furnished to do so, subject to the following conditions:
79
+
80
+ The above copyright notice and this permission notice shall be included in
81
+ all copies or substantial portions of the Software.
51
82
 
83
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
84
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
86
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
87
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
88
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
89
+ THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,5 +1,12 @@
1
1
  require 'rake'
2
- require 'rspec/core/rake_task'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development, :test)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
3
10
 
4
11
  begin
5
12
  require 'tasks/standalone_migrations'
@@ -7,31 +14,35 @@ rescue LoadError => e
7
14
  puts "gem install standalone_migrations to get db:migrate:* tasks! (Error: #{e})"
8
15
  end
9
16
 
10
- RSpec::Core::RakeTask.new 'rspec' do |t|
17
+ require 'jeweler'
18
+ Jeweler::Tasks.new do |gem|
19
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
20
+ gem.name = "bovespa_ingestion"
21
+ gem.homepage = "http://github.com/seixasfelipe/bovespa_ingestion"
22
+ gem.license = "MIT"
23
+ gem.summary = "An importer of historical stock quotations from BM&F Bovespa"
24
+ gem.description = "An importer of historical stock quotations from BM&F Bovespa. It reads historical files of daily stock quotations, parses each line and inserts into database for future use."
25
+ gem.email = "seixasfelipe@gmail.com"
26
+ gem.authors = ["Felipe Seixas", "Rodrigo Fraga"]
27
+ gem.executables = ['carregar_historico']
28
+ # dependencies defined in Gemfile
29
+ end
30
+ Jeweler::RubygemsDotOrgTasks.new
31
+
32
+ require 'rspec/core/rake_task'
33
+ RSpec::Core::RakeTask.new :rspec do |t|
11
34
  t.pattern = 'spec/historico_ativos/*_spec.rb'
12
35
  t.rspec_opts = ['--tty', '--color', '--format documentation']
13
36
  end
14
37
 
15
- task :default => [:rspec]
38
+ task default: :rspec
16
39
 
17
- # rake install -> install gem locally (for tests)
18
- # rake release -> push to github and release to gemcutter
19
- # rake version:bump:patch -> increase version and add a git-tag
20
- begin
21
- require 'jeweler'
22
- rescue LoadError => e
23
- $stderr.puts "Jeweler, or one of its dependencies, is not available:"
24
- $stderr.puts "#{e.class}: #{e.message}"
25
- $stderr.puts "Install it with: sudo gem install jeweler"
26
- else
27
- Jeweler::Tasks.new do |gem|
28
- gem.name = 'bovespa_ingestion'
29
- gem.summary = "An importer of historical quotations from BM&F Bovespa"
30
- gem.email = "seixasfelipe@gmail.com"
31
- gem.homepage = "http://github.com/seixasfelipe/bovespa-ingestion"
32
- gem.authors = ["Felipe Seixas", "Rodrigo Fraga"]
33
- end
40
+ require 'rake/task'
41
+ Rake::RDocTask.new do |rdoc|
42
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
34
43
 
35
- Jeweler::GemcutterTasks.new
44
+ rdoc.rdoc_dir = 'rdoc'
45
+ rdoc.title = "bovespa_ingestion #{version}"
46
+ rdoc.rdoc_files.include('README*')
47
+ rdoc.rdoc_files.include('lib/**/*.rb')
36
48
  end
37
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -4,19 +4,27 @@ require 'historico_ativos'
4
4
 
5
5
  module HistoricoAtivos
6
6
 
7
- sample_file = 'sample/sample_cota_hist_2003.txt'
8
- sample_file = ARGV[0] if ARGV.size > 0
7
+ if ARGV.size <= 0
8
+ puts "Uso: carregar_historico [nome do arquivo]"
9
+ puts " exemplo: carregar_historico sample/sample_cota_hist_2003.txt"
10
+ else
11
+ sample_file = ARGV[0]
9
12
 
10
- puts "Carregando historico do arquivo: #{sample_file}"
13
+ puts "Carregando historico do arquivo: #{sample_file}"
11
14
 
12
- start_time = Time.now
13
-
14
- loader = CarregaHistorico.new ParserHeader.new, ParserTrailer.new, ParserAtivo.new
15
- historico = loader.load sample_file
16
- loader.persist historico
15
+ start_time = Time.now
16
+
17
+ loader = CarregaHistorico.new ParserHeader.new, ParserTrailer.new, ParserAtivo.new
18
+ historico = loader.load sample_file
17
19
 
18
- end_time = Time.now
19
- elapsed_time = (end_time - start_time) * 1000.0
20
+ puts "Total de ativos carregados: #{historico.ativos.length}"
21
+
22
+ loader.persist historico
23
+
24
+ end_time = Time.now
25
+ elapsed_time = (end_time - start_time) * 1000.0
26
+
27
+ puts "Historico carregado em #{elapsed_time} ms!"
28
+ end
20
29
 
21
- puts "Historico carregado em #{elapsed_time} ms!"
22
30
  end
@@ -4,29 +4,32 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{bovespa_ingestion}
8
- s.version = "0.1.0"
7
+ s.name = "bovespa_ingestion"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Felipe Seixas", "Rodrigo Fraga"]
12
- s.date = %q{2011-12-26}
13
- s.default_executable = %q{carregar_historico}
14
- s.email = %q{seixasfelipe@gmail.com}
12
+ s.date = "2013-05-27"
13
+ s.description = "An importer of historical stock quotations from BM&F Bovespa. It reads historical files of daily stock quotations, parses each line and inserts into database for future use."
14
+ s.email = "seixasfelipe@gmail.com"
15
15
  s.executables = ["carregar_historico"]
16
16
  s.extra_rdoc_files = [
17
+ "LICENSE",
17
18
  "README.md"
18
19
  ]
19
20
  s.files = [
21
+ ".standalone_migrations",
22
+ ".travis.yml",
20
23
  "Gemfile",
21
- "Gemfile.lock",
24
+ "LICENSE",
22
25
  "README.md",
23
26
  "Rakefile",
24
27
  "VERSION",
25
28
  "archives/SeriesHistoricas_Layout.pdf",
26
29
  "bin/carregar_historico",
27
30
  "bovespa_ingestion.gemspec",
31
+ "config/database.yml",
28
32
  "config/environment.rb",
29
- "db/config.yml",
30
33
  "db/migrate/20111221001450_create_historico.rb",
31
34
  "db/migrate/20111222192119_create_ativos.rb",
32
35
  "db/migrate/20111223004105_change_ativos.rb",
@@ -54,27 +57,31 @@ Gem::Specification.new do |s|
54
57
  "spec/historico_ativos/parser_trailer_spec.rb",
55
58
  "spec/spec_helper.rb"
56
59
  ]
57
- s.homepage = %q{http://github.com/seixasfelipe/bovespa-ingestion}
60
+ s.homepage = "http://github.com/seixasfelipe/bovespa_ingestion"
61
+ s.licenses = ["MIT"]
58
62
  s.require_paths = ["lib"]
59
- s.rubygems_version = %q{1.6.2}
60
- s.summary = %q{An importer of historical quotations from BM&F Bovespa}
63
+ s.rubygems_version = "2.0.3"
64
+ s.summary = "An importer of historical stock quotations from BM&F Bovespa"
61
65
 
62
66
  if s.respond_to? :specification_version then
63
- s.specification_version = 3
67
+ s.specification_version = 4
64
68
 
65
69
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
66
- s.add_runtime_dependency(%q<rake>, [">= 0"])
67
70
  s.add_runtime_dependency(%q<activerecord>, [">= 3"])
68
71
  s.add_runtime_dependency(%q<standalone_migrations>, [">= 0"])
72
+ s.add_development_dependency(%q<pg>, [">= 0"])
73
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
69
74
  else
70
- s.add_dependency(%q<rake>, [">= 0"])
71
75
  s.add_dependency(%q<activerecord>, [">= 3"])
72
76
  s.add_dependency(%q<standalone_migrations>, [">= 0"])
77
+ s.add_dependency(%q<pg>, [">= 0"])
78
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
73
79
  end
74
80
  else
75
- s.add_dependency(%q<rake>, [">= 0"])
76
81
  s.add_dependency(%q<activerecord>, [">= 3"])
77
82
  s.add_dependency(%q<standalone_migrations>, [">= 0"])
83
+ s.add_dependency(%q<pg>, [">= 0"])
84
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
78
85
  end
79
86
  end
80
87
 
@@ -1,8 +1,11 @@
1
1
  development:
2
- adapter: sqlite3
3
- database: db/development.sqlite3
2
+ adapter: postgresql
3
+ database: bovespa_ingestion
4
+ host: localhost
5
+ username: root
6
+   password:
7
+ encoding: unicode
4
8
  pool: 5
5
- timeout: 5000
6
9
 
7
10
  production:
8
11
  adapter: mysql
@@ -1,10 +1,13 @@
1
1
  require 'active_record'
2
2
  require 'yaml'
3
3
 
4
- config_path = ::File.expand_path('../../db/config.yml', __FILE__)
4
+ # by default, app environment is development
5
+ ENV['APP_ENV'] ||= 'development'
6
+
7
+ config_path = ::File.expand_path('../../config/database.yml', __FILE__)
5
8
  db_config = YAML.load_file(config_path)
6
9
 
7
10
  ActiveRecord::Base.establish_connection(
8
- db_config['development']
11
+ db_config[ENV['APP_ENV']]
9
12
  )
10
13
 
data/db/schema.rb CHANGED
@@ -31,8 +31,8 @@ ActiveRecord::Schema.define(:version => 20111223214919) do
31
31
  t.decimal "total_negocios"
32
32
  t.decimal "quantidade_titulos_negociados"
33
33
  t.decimal "volume_negocios"
34
- t.datetime "created_at"
35
- t.datetime "updated_at"
34
+ t.datetime "created_at", :null => false
35
+ t.datetime "updated_at", :null => false
36
36
  t.integer "historico_id"
37
37
  t.integer "prazo_termo"
38
38
  end
@@ -43,8 +43,8 @@ ActiveRecord::Schema.define(:version => 20111223214919) do
43
43
  t.string "nome_arquivo"
44
44
  t.string "codigo_origem"
45
45
  t.date "data_geracao"
46
- t.datetime "created_at"
47
- t.datetime "updated_at"
46
+ t.datetime "created_at", :null => false
47
+ t.datetime "updated_at", :null => false
48
48
  t.integer "quantidade_ativos"
49
49
  end
50
50
 
@@ -17,9 +17,9 @@ module HistoricoAtivos
17
17
  historico = Historico.new
18
18
 
19
19
  file.each { |line|
20
- historico.import_header @parser_header.parse(line) if line.start_with?("00")
21
- historico.ativos << @parser_ativo.parse(line) if line.start_with?("01")
22
- historico.import_trailer @parser_trailer.parse(line) if line.start_with?("99")
20
+ historico.import_header @parser_header.parse(line) if line.start_with?("00")
21
+ historico.ativos << @parser_ativo.parse(line) if line.start_with?("01")
22
+ historico.import_trailer @parser_trailer.parse(line) if line.start_with?("99")
23
23
  }
24
24
 
25
25
  historico
@@ -1,6 +1,6 @@
1
1
  module HistoricoAtivos
2
2
  class Historico < ActiveRecord::Base
3
- set_table_name "historico_ativos"
3
+ self.table_name = "historico_ativos"
4
4
 
5
5
  has_many :ativos
6
6
 
data/spec/spec_helper.rb CHANGED
@@ -1 +1 @@
1
- require 'historico_ativos'
1
+ require 'historico_ativos'
metadata CHANGED
@@ -1,71 +1,95 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bovespa_ingestion
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Felipe Seixas
9
8
  - Rodrigo Fraga
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
-
14
- date: 2011-12-26 00:00:00 -02:00
15
- default_executable: carregar_historico
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
18
- name: rake
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
25
- type: :runtime
26
- prerelease: false
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
12
+ date: 2013-05-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
29
15
  name: activerecord
30
- requirement: &id002 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "3"
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '3'
36
21
  type: :runtime
37
22
  prerelease: false
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ! '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '3'
28
+ - !ruby/object:Gem::Dependency
40
29
  name: standalone_migrations
41
- requirement: &id003 !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
47
35
  type: :runtime
48
36
  prerelease: false
49
- version_requirements: *id003
50
- description:
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: pg
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: jeweler
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 1.6.4
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.6.4
70
+ description: An importer of historical stock quotations from BM&F Bovespa. It reads
71
+ historical files of daily stock quotations, parses each line and inserts into database
72
+ for future use.
51
73
  email: seixasfelipe@gmail.com
52
- executables:
74
+ executables:
53
75
  - carregar_historico
54
76
  extensions: []
55
-
56
- extra_rdoc_files:
77
+ extra_rdoc_files:
78
+ - LICENSE
57
79
  - README.md
58
- files:
80
+ files:
81
+ - .standalone_migrations
82
+ - .travis.yml
59
83
  - Gemfile
60
- - Gemfile.lock
84
+ - LICENSE
61
85
  - README.md
62
86
  - Rakefile
63
87
  - VERSION
64
88
  - archives/SeriesHistoricas_Layout.pdf
65
89
  - bin/carregar_historico
66
90
  - bovespa_ingestion.gemspec
91
+ - config/database.yml
67
92
  - config/environment.rb
68
- - db/config.yml
69
93
  - db/migrate/20111221001450_create_historico.rb
70
94
  - db/migrate/20111222192119_create_ativos.rb
71
95
  - db/migrate/20111223004105_change_ativos.rb
@@ -92,33 +116,28 @@ files:
92
116
  - spec/historico_ativos/parser_header_spec.rb
93
117
  - spec/historico_ativos/parser_trailer_spec.rb
94
118
  - spec/spec_helper.rb
95
- has_rdoc: true
96
- homepage: http://github.com/seixasfelipe/bovespa-ingestion
97
- licenses: []
98
-
119
+ homepage: http://github.com/seixasfelipe/bovespa_ingestion
120
+ licenses:
121
+ - MIT
122
+ metadata: {}
99
123
  post_install_message:
100
124
  rdoc_options: []
101
-
102
- require_paths:
125
+ require_paths:
103
126
  - lib
104
- required_ruby_version: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: "0"
110
- required_rubygems_version: !ruby/object:Gem::Requirement
111
- none: false
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- version: "0"
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ! '>='
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
116
137
  requirements: []
117
-
118
138
  rubyforge_project:
119
- rubygems_version: 1.6.2
139
+ rubygems_version: 2.0.3
120
140
  signing_key:
121
- specification_version: 3
122
- summary: An importer of historical quotations from BM&F Bovespa
141
+ specification_version: 4
142
+ summary: An importer of historical stock quotations from BM&F Bovespa
123
143
  test_files: []
124
-
data/Gemfile.lock DELETED
@@ -1,49 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.1.3)
5
- activesupport (= 3.1.3)
6
- builder (~> 3.0.0)
7
- i18n (~> 0.6)
8
- activerecord (3.1.3)
9
- activemodel (= 3.1.3)
10
- activesupport (= 3.1.3)
11
- arel (~> 2.2.1)
12
- tzinfo (~> 0.3.29)
13
- activesupport (3.1.3)
14
- multi_json (~> 1.0)
15
- arel (2.2.1)
16
- builder (3.0.0)
17
- diff-lcs (1.1.3)
18
- git (1.2.5)
19
- i18n (0.6.0)
20
- jeweler (1.6.4)
21
- bundler (~> 1.0)
22
- git (>= 1.2.5)
23
- rake
24
- multi_json (1.0.4)
25
- rake (0.9.2.2)
26
- rspec (2.7.0)
27
- rspec-core (~> 2.7.0)
28
- rspec-expectations (~> 2.7.0)
29
- rspec-mocks (~> 2.7.0)
30
- rspec-core (2.7.1)
31
- rspec-expectations (2.7.0)
32
- diff-lcs (~> 1.1.2)
33
- rspec-mocks (2.7.0)
34
- sqlite3 (1.3.5)
35
- standalone_migrations (1.0.5)
36
- activerecord (>= 3)
37
- rake
38
- tzinfo (0.3.31)
39
-
40
- PLATFORMS
41
- ruby
42
-
43
- DEPENDENCIES
44
- activerecord (>= 3)
45
- jeweler (~> 1.6.4)
46
- rake
47
- rspec (~> 2)
48
- sqlite3
49
- standalone_migrations