json2xls 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4321d8c9bea4b50ee9411f49412b326f3b05c439
4
+ data.tar.gz: bce858197c50f1c8c8412dc5009684298748dc23
5
+ SHA512:
6
+ metadata.gz: 5904e24e185952a9514680023a54172df8387f71094aca0602beab6c0f7984115ccf925833cc14bb0816ee21b8dfc0ac4a18b450da266563bf007257c4b03b5b
7
+ data.tar.gz: 64c2af2cfc82181d92d3ce0a264482f6956f603a876f9e1f34c25bd8b2c3f75c1c5a470d574e5e8cf0f2097dcf1768e48ad44c5b264ebd5214d1a09d0112ce15
@@ -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 json2xls.gemspec
6
+ gemspec
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ json2xls (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
+ json2xls!
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.
@@ -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.
@@ -0,0 +1,133 @@
1
+ # Json2xls
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/json2xls`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ This gem will expect an file containing JSON in it and convert it into the respective .Xls file as an exporter.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'json2xls'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install json2xls
21
+
22
+ ## Usage
23
+
24
+ ```
25
+ Json2xls::Generator.new(["../spec/sample.json""])
26
+ ```
27
+
28
+ Json2xls can take single file containing the JSON formatted data and export it to respect .xls.
29
+ A folder of Json2xls 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
+ Json2xls::Generator.new(["../spec/sample.json","../spec/sample1.json"], {name: "Test", path: "#{ENV['HOME']}/Json2xls/"})
33
+ ```
34
+
35
+ Json2xls can take more than a single file containing the JSON formatted data and export it to respect .xls.
36
+ When more than single files are provided to the Json2xls in order to export the .xls a single workbook with multiple sheet tabs are created.
37
+ A folder of Json2xls 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/Json2xls/time_stamp/cretead_file.xls
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/json2xls. 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 Json2xls project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/NehaChopra/json2xls).
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/
@@ -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
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "json2xls"
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__)
@@ -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
@@ -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 "json2xls/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "json2xls"
8
+ spec.version = Json2xls::VERSION
9
+ spec.authors = ["neha"]
10
+ spec.email = ["nchopra456@gmail.com"]
11
+
12
+ spec.summary = "Convert JSON formatted file to .Xlx file"
13
+ spec.description = "File containing the JSON data is converted to .Xls file"
14
+ spec.homepage = "https://github.com/NehaChopra/json2xls"
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,6 @@
1
+ require "json2xls/version"
2
+ require "json2xls/generator"
3
+
4
+ module Json2xls
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,191 @@
1
+ ##
2
+ #
3
+ # author: neha chopra,
4
+ # Reads the files containing the JSON and convert them to .XLS file
5
+ #
6
+ #
7
+
8
+ require 'pp'
9
+ require 'fileutils'
10
+ require 'date'
11
+ require 'multi_json'
12
+ require 'spreadsheet'
13
+
14
+ module Json2xls
15
+ class Generator
16
+ def initialize(paths, options={})
17
+
18
+ @name = options[:name] || 'Worksheet'
19
+ @path = options[:path] || ((Dir.exists?("#{ENV['HOME']}/Json2xls/#{Time.now.to_s}")) ? "#{ENV['HOME']}/Json2xls/" : FileUtils::mkdir_p("#{ENV['HOME']}/Json2xls/#{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 .XLS 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 ..XLS file is build
87
+ #
88
+ #
89
+ def process_json json_objects
90
+ sheet = build_sheet
91
+ json_objects.keys.each do |key|
92
+ build_xls json_objects[key], key, sheet
93
+ end
94
+ end
95
+
96
+ ##
97
+ #
98
+ # Building the ..XLS files
99
+ # build_headers method build the headers for .XLS file
100
+ # build_values method ensures the values get generated for .XLS file
101
+ #
102
+ def build_xls 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 .XLS 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 .XLS 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 Json2xls
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
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: json2xls
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-28 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 .Xls file
84
+ email:
85
+ - nchopra456@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - CODE_OF_CONDUCT.md
91
+ - Gemfile
92
+ - Gemfile.lock
93
+ - LICENSE
94
+ - LICENSE.txt
95
+ - README.md
96
+ - Rakefile
97
+ - bin/console
98
+ - bin/setup
99
+ - json2xls.gemspec
100
+ - lib/json2xls.rb
101
+ - lib/json2xls/generator.rb
102
+ - lib/json2xls/version.rb
103
+ homepage: https://github.com/NehaChopra/json2xls
104
+ licenses:
105
+ - MIT
106
+ metadata:
107
+ allowed_push_host: https://rubygems.org
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.6.12
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Convert JSON formatted file to .Xlx file
128
+ test_files: []