json_csv 0.0.4
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 +7 -0
- data/README.md +25 -0
- data/lib/json_csv/version.rb +9 -0
- data/lib/json_csv.rb +5 -0
- data/lib/tasks/json_csv/ci.rake +26 -0
- data/lib/tasks/json_csv.rake +8 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: '083c453d42f086f73ff27fe17b02502ec0ab0265'
|
4
|
+
data.tar.gz: 7261db772a8643e85dcc5f0f9eba9cf4c40c2631
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c5d184e9c10afdb02cdcf7f376a3b47c5f228b6de1c0e38ba4ab784614e188dcd4b2b0a18bf43a7eaeb2e4ecbeea02cc7a20a7db48af99ec32c90092ba560804
|
7
|
+
data.tar.gz: c1c3fc8c7a8e4f9b5abf1c88f67500b4f14ce7a32efbbd1e4a3140e88eacdf08ed303e197bd7b78eb429286a8d84fe17c23499a7ab666e737710a5416b753940
|
data/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# json_csv
|
2
|
+
|
3
|
+
A pure-ruby library for converting deeply nested JSON structures to CSV...and back!
|
4
|
+
|
5
|
+
### Installation
|
6
|
+
|
7
|
+
```bash
|
8
|
+
gem install json_csv
|
9
|
+
```
|
10
|
+
|
11
|
+
### Usage
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'json_csv'
|
15
|
+
|
16
|
+
TODO: Provide usage examples
|
17
|
+
```
|
18
|
+
|
19
|
+
### Running Tests (for developers):
|
20
|
+
|
21
|
+
Tests are great and we should run them. Here's how:
|
22
|
+
|
23
|
+
```sh
|
24
|
+
bundle exec rake json_csv:ci
|
25
|
+
```
|
data/lib/json_csv.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'json_csv'
|
2
|
+
|
3
|
+
namespace :json_csv do
|
4
|
+
|
5
|
+
begin
|
6
|
+
# This code is in a begin/rescue block so that the Rakefile is usable
|
7
|
+
# in an environment where RSpec is unavailable (i.e. production).
|
8
|
+
require 'rspec/core/rake_task'
|
9
|
+
|
10
|
+
RSpec::Core::RakeTask.new(:rspec) do |spec|
|
11
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
12
|
+
spec.pattern += FileList['spec/*_spec.rb']
|
13
|
+
spec.rspec_opts = ['--backtrace'] if ENV['CI']
|
14
|
+
end
|
15
|
+
|
16
|
+
rescue LoadError => e
|
17
|
+
puts "[Warning] Exception creating rspec rake tasks. This message can be ignored in environments that intentionally do not pull in the RSpec gem (i.e. production)."
|
18
|
+
puts e
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "CI build"
|
22
|
+
task :ci do
|
23
|
+
Rake::Task["json_csv:rspec"].invoke
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: json_csv
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eric O'Hanlon
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-02-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.1'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.7'
|
41
|
+
description: A library for converting json to csv...and back!
|
42
|
+
email: elo2112@columbia.edu
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- README.md
|
48
|
+
- lib/json_csv.rb
|
49
|
+
- lib/json_csv/version.rb
|
50
|
+
- lib/tasks/json_csv.rake
|
51
|
+
- lib/tasks/json_csv/ci.rake
|
52
|
+
homepage: https://github.com/cul/json_csv
|
53
|
+
licenses:
|
54
|
+
- MIT
|
55
|
+
metadata: {}
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options: []
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
requirements: []
|
71
|
+
rubyforge_project:
|
72
|
+
rubygems_version: 2.6.14
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: A library for converting json to csv...and back!
|
76
|
+
test_files: []
|