json2xslx 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 155a4c3adcbfd805a851aef6404a0df5b7d8cc84
4
+ data.tar.gz: 40924d30523404e4018dd5d42fcd34f8dca3f5d3
5
+ SHA512:
6
+ metadata.gz: 5daeb70ecc047b5f159da84281da2efe3deb3b7ad376c04b4e687dac2bd62d106679cdede5d378d99a0916d7c189bf989de29be6e4e1fdc38015655c761681d1
7
+ data.tar.gz: aa9e236960f2d1b075ac05d098d5057b52fd45d926db396d288c8c44c4eb0ee314fd6572e3abbe759ad6e694c84a246790d5c3a1c2ea7922446669d72041fa76
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ # Created by .ignore support plugin (hsz.mobi)
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at nchopra456@gmail.com . All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in json2xslx.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ json2xslx (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.3)
10
+ multi_json (1.8.2)
11
+ rake (10.5.0)
12
+ rspec (3.6.0)
13
+ rspec-core (~> 3.6.0)
14
+ rspec-expectations (~> 3.6.0)
15
+ rspec-mocks (~> 3.6.0)
16
+ rspec-core (3.6.0)
17
+ rspec-support (~> 3.6.0)
18
+ rspec-expectations (3.6.0)
19
+ diff-lcs (>= 1.2.0, < 2.0)
20
+ rspec-support (~> 3.6.0)
21
+ rspec-mocks (3.6.0)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.6.0)
24
+ rspec-support (3.6.0)
25
+ ruby-ole (1.2.12.1)
26
+ spreadsheet (1.1.4)
27
+ ruby-ole (>= 1.0)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ bundler (~> 1.15)
34
+ json2xslx!
35
+ multi_json (~> 1.8)
36
+ rake (~> 10.0)
37
+ rspec (~> 3.0)
38
+ spreadsheet (~> 1.1)
39
+
40
+ BUNDLED WITH
41
+ 1.15.4
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Neha Chopra
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 neha
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,133 @@
1
+ # Json2xslx
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/json2xslx`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ This gem will expect an file conatining JSON in it and convert it into the respective .XSLX file as an exporter.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'json2xslx'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install json2xslx
21
+
22
+ ## Usage
23
+
24
+ ```
25
+ Json2xslx::Generator.new(["../spec/sample.json""])
26
+ ```
27
+
28
+ Json2xslx can take single file containing the JSON formatted data and export it to respect .xslx.
29
+ A folder of Json2xslx will be created in your home directory where you can find your exported files in various time stamp taken on running this file.
30
+
31
+ ```
32
+ Json2xslx::Generator.new(["../spec/sample.json","../spec/sample1.json"], {name: "Test", path: "#{ENV['HOME']}/Json2xslx/"})
33
+ ```
34
+
35
+ Json2xslx can take more than a single file containing the JSON formatted data and export it to respect .xslx.
36
+ When more than single files are provided to the Json2xslx in order to export the .xslx a single workbook with multiple sheet tabs are created.
37
+ A folder of Json2xslx will be created in your home directory where you can find your exported files in various time stamp taken on running this file.
38
+
39
+ Where to find your generated excel export:
40
+ Folder structure: home_directory/Json2xslx/time_stamp/cretead_file.xslx
41
+
42
+
43
+ ## Development
44
+
45
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
46
+
47
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/NehaChopra/json2xslx. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [nchopra456@gmail.com](https://github.com/NehaChopra/) code of conduct.
52
+
53
+ ## License
54
+
55
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
56
+
57
+ ## Code of Conduct
58
+
59
+ Everyone interacting in the Json2xslx project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/NehaChopra/json2xslx).
60
+ # Contributor Covenant Code of Conduct
61
+
62
+ ## Our Pledge
63
+
64
+ In the interest of fostering an open and welcoming environment, we as
65
+ contributors and maintainers pledge to making participation in our project and
66
+ our community a harassment-free experience for everyone, regardless of age, body
67
+ size, disability, ethnicity, gender identity and expression, level of experience,
68
+ nationality, personal appearance, race, religion, or sexual identity and
69
+ orientation.
70
+
71
+ ## Our Standards
72
+
73
+ Examples of behavior that contributes to creating a positive environment
74
+ include:
75
+
76
+ * Using welcoming and inclusive language
77
+ * Being respectful of differing viewpoints and experiences
78
+ * Gracefully accepting constructive criticism
79
+ * Focusing on what is best for the community
80
+ * Showing empathy towards other community members
81
+
82
+ Examples of unacceptable behavior by participants include:
83
+
84
+ * The use of sexualized language or imagery and unwelcome sexual attention or
85
+ advances
86
+ * Trolling, insulting/derogatory comments, and personal or political attacks
87
+ * Public or private harassment
88
+ * Publishing others' private information, such as a physical or electronic
89
+ address, without explicit permission
90
+ * Other conduct which could reasonably be considered inappropriate in a
91
+ professional setting
92
+
93
+ ## Our Responsibilities
94
+
95
+ Project maintainers are responsible for clarifying the standards of acceptable
96
+ behavior and are expected to take appropriate and fair corrective action in
97
+ response to any instances of unacceptable behavior.
98
+
99
+ Project maintainers have the right and responsibility to remove, edit, or
100
+ reject comments, commits, code, wiki edits, issues, and other contributions
101
+ that are not aligned to this Code of Conduct, or to ban temporarily or
102
+ permanently any contributor for other behaviors that they deem inappropriate,
103
+ threatening, offensive, or harmful.
104
+
105
+ ## Scope
106
+
107
+ This Code of Conduct applies both within project spaces and in public spaces
108
+ when an individual is representing the project or its community. Examples of
109
+ representing a project or community include using an official project e-mail
110
+ address, posting via an official social media account, or acting as an appointed
111
+ representative at an online or offline event. Representation of a project may be
112
+ further defined and clarified by project maintainers.
113
+
114
+ ## Enforcement
115
+
116
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
117
+ reported by contacting the project team at nchopra456@gmail.com. All
118
+ complaints will be reviewed and investigated and will result in a response that
119
+ is deemed necessary and appropriate to the circumstances. The project team is
120
+ obligated to maintain confidentiality with regard to the reporter of an incident.
121
+ Further details of specific enforcement policies may be posted separately.
122
+
123
+ Project maintainers who do not follow or enforce the Code of Conduct in good
124
+ faith may face temporary or permanent repercussions as determined by other
125
+ members of the project's leadership.
126
+
127
+ ## Attribution
128
+
129
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
130
+ available at [http://contributor-covenant.org/version/1/4][version]
131
+
132
+ [homepage]: http://contributor-covenant.org
133
+ [version]: http://contributor-covenant.org/version/1/4/
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "json2xslx"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/json2xslx.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "json2xslx/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "json2xslx"
8
+ spec.version = Json2xslx::VERSION
9
+ spec.authors = ["neha"]
10
+ spec.email = ["nchopra456@gmail.com"]
11
+
12
+ spec.summary = "Convert JSON formatted file to .XSLX file"
13
+ spec.description = "File containing the JSON data is converted to .XSLX file"
14
+ spec.homepage = "https://github.com/NehaChopra/json2xslx"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.15"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_development_dependency "spreadsheet", "~> 1.1"
37
+ spec.add_development_dependency "multi_json", "~> 1.8"
38
+ end
@@ -0,0 +1,191 @@
1
+ ##
2
+ #
3
+ # author: neha chopra,
4
+ # Reads the files containing the JSON and convert them to .XSLX file
5
+ #
6
+ #
7
+
8
+ require 'pp'
9
+ require 'fileutils'
10
+ require 'date'
11
+ require 'multi_json'
12
+ require 'spreadsheet'
13
+
14
+ module Json2xslx
15
+ class Generator
16
+ def initialize(paths, options={})
17
+
18
+ @name = options[:name] || 'Worksheet'
19
+ @path = options[:path] || ((Dir.exists?("#{ENV['HOME']}/Json2xslx/#{Time.now.to_s}")) ? "#{ENV['HOME']}/Json2xslx/" : FileUtils::mkdir_p("#{ENV['HOME']}/Json2xslx/#{Time.now.to_s}").first)
20
+ @header_row = options[:header_row] || 0
21
+ @data_row = @header_row + 1
22
+ @current_data_row = @data_row
23
+ @header_format = options[:header_format] || (Spreadsheet::Format.new :color => :black, :weight => :bold, :pattern => 1, :pattern_fg_color => :orange, :bottom => :double, :top => :double)
24
+ @bold_format = Spreadsheet::Format.new :weight => :bold, :color => :black
25
+ @wrap_text_format = Spreadsheet::Format.new :text_wrap => true, :vertical_align => 'top'
26
+ @book = Spreadsheet::Workbook.new
27
+
28
+ json_loader(paths)
29
+
30
+ end
31
+
32
+ ##
33
+ #
34
+ # Builds the sheets for a Worksheet
35
+ #
36
+ #
37
+ def build_sheet
38
+ sheet = @book.create_worksheet :name => @name
39
+ sheet
40
+ end
41
+
42
+
43
+ ##
44
+ #
45
+ # writing to .XSLX file
46
+ #
47
+ #
48
+ def write file
49
+ @book.write file
50
+ end
51
+
52
+ ##
53
+ #
54
+ # Loads the file from given path
55
+ # and initiate the processing of the JSON object
56
+ #
57
+ #
58
+ def json_loader paths
59
+ paths = [paths] unless paths.is_a?(Array)
60
+
61
+ paths.map do |path|
62
+ @current_data_row = @data_row
63
+ json_objects = file_loader path
64
+
65
+ process_json json_objects
66
+ end
67
+ end
68
+
69
+ ##
70
+ #
71
+ # Reads the given file and convert the JSON
72
+ # provided into the sheet to Ruby object
73
+ #
74
+ #
75
+ def file_loader path
76
+ raw_data = IO.read path
77
+ begin
78
+ return MultiJson.load raw_data
79
+ rescue Exception => e
80
+
81
+ end
82
+ end
83
+
84
+ ##
85
+ #
86
+ # After processing of the objects .XSLX file is build
87
+ #
88
+ #
89
+ def process_json json_objects
90
+ sheet = build_sheet
91
+ json_objects.keys.each do |key|
92
+ build_xslx json_objects[key], key, sheet
93
+ end
94
+ end
95
+
96
+ ##
97
+ #
98
+ # Building the .XSLX files
99
+ # build_headers method build the headers for .XSLX file
100
+ # build_values method ensures the values get generated for .XSLX file
101
+ #
102
+ def build_xslx json_objects, key, sheet
103
+
104
+ excel_headers = build_headers json_objects, sheet
105
+
106
+ build_values json_objects, excel_headers, key, sheet
107
+
108
+ write "#{@path}/#{@name}.xls"
109
+ end
110
+
111
+ ##
112
+ #
113
+ # building headers for .XSLX file
114
+ #
115
+ #
116
+ def build_headers json_objects, sheet
117
+ excel_headers = generate_keys json_objects
118
+ excel_headers.unshift("Identifier")
119
+
120
+ (excel_headers).length.times do |index|
121
+ sheet[@header_row,index] = excel_headers[index].to_s
122
+ sheet.column(index).width = 30
123
+ sheet.row(@header_row).set_format(index, @header_format)
124
+ end
125
+
126
+ excel_headers
127
+ end
128
+
129
+ ##
130
+ #
131
+ # building result set row values for .XSLX file
132
+ #
133
+ #
134
+ def build_values json_objects, excel_headers, key, sheet
135
+ contained_values =
136
+ excel_headers.map do |head|
137
+ if(head.eql?'Identifier')
138
+ value = key.to_s
139
+ else
140
+ value = generate_value json_objects, head
141
+ end
142
+ value
143
+ end
144
+
145
+
146
+ (excel_headers).length.times do |index|
147
+ sheet[@current_data_row,index] = contained_values[index].to_s
148
+ sheet.column(index).width = 30
149
+ end
150
+ @current_data_row = @current_data_row +1
151
+ end
152
+
153
+ def generate_value json_objects, head
154
+ segmented_heads = head.split(' ')
155
+ segmented_heads.each do |obj|
156
+ return nil if obj.nil?
157
+ json_objects = json_objects[obj]
158
+ end
159
+ json_objects
160
+ end
161
+
162
+ def generate_keys(obj, prefixed_header=nil)
163
+ keys = obj.keys
164
+
165
+ result_set =
166
+ keys.map do |key|
167
+
168
+ untangled_key = untangled_key(key)
169
+ value = obj[key]
170
+ if value.is_a?Hash
171
+
172
+ generate_keys(obj[key], (prefixed_header ? "#{prefixed_header} #{untangled_key}" : untangled_key))
173
+ else
174
+ if !prefixed_header.nil?
175
+ "#{prefixed_header} #{untangled_key}"
176
+ else
177
+ untangled_key
178
+ end
179
+ end
180
+ end
181
+
182
+ result_set.compact.flatten.uniq
183
+ end
184
+
185
+ def untangled_key key
186
+ key
187
+ end
188
+
189
+ end
190
+ end
191
+
@@ -0,0 +1,9 @@
1
+ module Json2xslx
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 1
5
+ PATCH = 0
6
+ end
7
+
8
+ VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}"
9
+ end
data/lib/json2xslx.rb ADDED
@@ -0,0 +1,6 @@
1
+ require "json2xslx/version"
2
+ require "json2xslx/generator"
3
+
4
+ module Json2xslx
5
+ # Your code goes here...
6
+ end
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: json2xslx
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - neha
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-08-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: spreadsheet
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: multi_json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.8'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.8'
83
+ description: File containing the JSON data is converted to .XSLX file
84
+ email:
85
+ - nchopra456@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - CODE_OF_CONDUCT.md
92
+ - Gemfile
93
+ - Gemfile.lock
94
+ - LICENSE
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - json2xslx.gemspec
101
+ - lib/json2xslx.rb
102
+ - lib/json2xslx/generator.rb
103
+ - lib/json2xslx/version.rb
104
+ homepage: https://github.com/NehaChopra/json2xslx
105
+ licenses:
106
+ - MIT
107
+ metadata:
108
+ allowed_push_host: https://rubygems.org
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubyforge_project:
125
+ rubygems_version: 2.6.12
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: Convert JSON formatted file to .XSLX file
129
+ test_files: []