chartio-rails 0.0.2 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8bf60737d204e349cc5001ba0e255ec27d7b993
4
- data.tar.gz: 603632bf726ca70cf92f8106e45e1811f338c6ac
3
+ metadata.gz: 48da2136d2bffc1ac9a4c3c93e60eee447ffe09c
4
+ data.tar.gz: edb9e7947815f4405801cb9198b2e38366c8d212
5
5
  SHA512:
6
- metadata.gz: 458f5d6c73f479580d425bbf9e26f33cd736961883ea5224c6f62b67c6ae8c3727a47c4db9448d1ebdbf3c31ca4e37a274cd68642bde2f04b7f5ff0db9176baa
7
- data.tar.gz: c057596eecb21ec98787578b8621ec0bed3f6dd3536bb9479e55130a4978c74ccb7731df3ddc570b840b02675196df8ea5e875bcdf43fe73c6b67f73e837879e
6
+ metadata.gz: 88a95e590ddff7bd0d81a9f7965bda0c87e7d176044fe928154565a1b9a0d079b952d03d2d5cb26a020f149815cb0626bda9d9d44d91dd252f427156e77b6609
7
+ data.tar.gz: 519212327f8ff2e77197fdbfe46a0a72c4e2d63f11568962248e6a34834036d012bc93fda3bac412bf6d83b244e6f160f7a4f568c7158ca14eaf9ce420a59fc9
data/.gitignore CHANGED
@@ -16,3 +16,5 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  gemfiles/*.lock
19
+ .ruby-version
20
+ .ruby-gemset
@@ -3,7 +3,7 @@ module Chartio
3
3
  railtie_name :chartio
4
4
 
5
5
  rake_tasks do
6
- load "tasks/chartio.rake"
6
+ load "chartio/tasks/chartio.rake"
7
7
  end
8
8
 
9
9
  config.to_prepare do
@@ -0,0 +1,11 @@
1
+ namespace :chartio do
2
+ desc "Generate a chartio schema"
3
+ task :schema => :environment do
4
+ runner = Chartio::Schema.new(Chartio::CSVFormatter.new)
5
+ timestamp = Time.now.strftime("%Y%m%d%H%M")
6
+ csv_data = runner.output_report
7
+ file = File.open("chartio_schema_#{timestamp}.csv", "wb")
8
+ file.write(csv_data)
9
+ puts "All done!"
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Chartio
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartio-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rimas Silkaitis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -133,6 +133,7 @@ files:
133
133
  - lib/chartio/formatter.rb
134
134
  - lib/chartio/railtie.rb
135
135
  - lib/chartio/schema.rb
136
+ - lib/chartio/tasks/chartio.rake
136
137
  - lib/chartio/test_formatter.rb
137
138
  - lib/chartio/version.rb
138
139
  - spec/chartio_rails_spec.rb
@@ -140,7 +141,6 @@ files:
140
141
  - spec/example_app.rb
141
142
  - spec/schema.rb
142
143
  - spec/spec_helper.rb
143
- - tasks/chartio.rake
144
144
  homepage: https://chartio.com/
145
145
  licenses:
146
146
  - MIT
data/tasks/chartio.rake DELETED
@@ -1,12 +0,0 @@
1
- namespace :chartio do
2
- desc "Generate a chartio schema"
3
- task :schema => :environment do
4
- runner = Chartio::Schema.new
5
- timestamp = Time.now.strftime("%Y%m%d%H%M")
6
- runner.crawl(
7
- "chartio_schema_#{timestamp}.csv",
8
- "chartio_schema_#{timestamp}.log"
9
- )
10
- puts "All done!"
11
- end
12
- end