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 +4 -4
- data/.gitignore +2 -0
- data/lib/chartio/railtie.rb +1 -1
- data/lib/chartio/tasks/chartio.rake +11 -0
- data/lib/chartio/version.rb +1 -1
- metadata +3 -3
- data/tasks/chartio.rake +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48da2136d2bffc1ac9a4c3c93e60eee447ffe09c
|
|
4
|
+
data.tar.gz: edb9e7947815f4405801cb9198b2e38366c8d212
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88a95e590ddff7bd0d81a9f7965bda0c87e7d176044fe928154565a1b9a0d079b952d03d2d5cb26a020f149815cb0626bda9d9d44d91dd252f427156e77b6609
|
|
7
|
+
data.tar.gz: 519212327f8ff2e77197fdbfe46a0a72c4e2d63f11568962248e6a34834036d012bc93fda3bac412bf6d83b244e6f160f7a4f568c7158ca14eaf9ce420a59fc9
|
data/.gitignore
CHANGED
data/lib/chartio/railtie.rb
CHANGED
|
@@ -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
|
data/lib/chartio/version.rb
CHANGED
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
|
|
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-
|
|
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
|