spreadsheet_model 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +38 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +101 -0
- data/LICENSE +21 -0
- data/README.md +72 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/spreadsheet_model.rb +104 -0
- data/lib/spreadsheet_model/version.rb +3 -0
- data/spreadsheet_model.gemspec +28 -0
- metadata +141 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 10ca8544a607a5f34299e84df3f5468ee6d0f714
|
4
|
+
data.tar.gz: d0d6ba02cc33e9067a88b8cc5dbc9ef2469dbfe7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fc36b3fdc2c616ee43c09ec88c07f6ff586e9a7129aacaf24e64c6ee5c0a8a70f9df5c6bcfe846101a499c84eef1bc8a22800c5ff730ebc62fd7a9789e76c66d
|
7
|
+
data.tar.gz: 4d549beaa0740591711690b173a84b3adc3a71bce8dfc5072e1fdbeac8334713dba20148df71c92c5e3d84a7e15a9d8415ef270e35f208507cc5c23a28e52a89
|
data/.gitignore
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
*.rbc
|
2
|
+
capybara-*.html
|
3
|
+
.rspec
|
4
|
+
/log
|
5
|
+
/tmp
|
6
|
+
/db/*.sqlite3
|
7
|
+
/db/*.sqlite3-journal
|
8
|
+
/public/system
|
9
|
+
/coverage/
|
10
|
+
/spec/tmp
|
11
|
+
**.orig
|
12
|
+
rerun.txt
|
13
|
+
pickle-email-*.html
|
14
|
+
|
15
|
+
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
|
16
|
+
config/initializers/secret_token.rb
|
17
|
+
config/secrets.yml
|
18
|
+
|
19
|
+
## Environment normalization:
|
20
|
+
/.bundle
|
21
|
+
/vendor/bundle
|
22
|
+
|
23
|
+
# these should all be checked in to normalize the environment:
|
24
|
+
# Gemfile.lock, .ruby-version, .ruby-gemset
|
25
|
+
|
26
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
27
|
+
.rvmrc
|
28
|
+
|
29
|
+
# if using bower-rails ignore default bower_components path bower.json files
|
30
|
+
/vendor/assets/bower_components
|
31
|
+
*.bowerrc
|
32
|
+
bower.json
|
33
|
+
|
34
|
+
# Ignore pow environment settings
|
35
|
+
.powenv
|
36
|
+
|
37
|
+
/pkg
|
38
|
+
/test/account.yml
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at yukihico@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
spreadsheet_model (0.2.2)
|
5
|
+
activemodel
|
6
|
+
activesupport
|
7
|
+
google_drive (~> 1.0)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
activemodel (4.2.5)
|
13
|
+
activesupport (= 4.2.5)
|
14
|
+
builder (~> 3.1)
|
15
|
+
activesupport (4.2.5)
|
16
|
+
i18n (~> 0.7)
|
17
|
+
json (~> 1.7, >= 1.7.7)
|
18
|
+
minitest (~> 5.1)
|
19
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
addressable (2.4.0)
|
22
|
+
autoparse (0.3.3)
|
23
|
+
addressable (>= 2.3.1)
|
24
|
+
extlib (>= 0.9.15)
|
25
|
+
multi_json (>= 1.0.0)
|
26
|
+
builder (3.2.2)
|
27
|
+
extlib (0.9.16)
|
28
|
+
faraday (0.9.2)
|
29
|
+
multipart-post (>= 1.2, < 3)
|
30
|
+
google-api-client (0.8.6)
|
31
|
+
activesupport (>= 3.2)
|
32
|
+
addressable (~> 2.3)
|
33
|
+
autoparse (~> 0.3)
|
34
|
+
extlib (~> 0.9)
|
35
|
+
faraday (~> 0.9)
|
36
|
+
googleauth (~> 0.3)
|
37
|
+
launchy (~> 2.4)
|
38
|
+
multi_json (~> 1.10)
|
39
|
+
retriable (~> 1.4)
|
40
|
+
signet (~> 0.6)
|
41
|
+
google_drive (1.0.5)
|
42
|
+
google-api-client (>= 0.7.0, < 0.9)
|
43
|
+
nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1)
|
44
|
+
oauth (>= 0.3.6)
|
45
|
+
oauth2 (>= 0.5.0)
|
46
|
+
googleauth (0.5.1)
|
47
|
+
faraday (~> 0.9)
|
48
|
+
jwt (~> 1.4)
|
49
|
+
logging (~> 2.0)
|
50
|
+
memoist (~> 0.12)
|
51
|
+
multi_json (~> 1.11)
|
52
|
+
os (~> 0.9)
|
53
|
+
signet (~> 0.7)
|
54
|
+
i18n (0.7.0)
|
55
|
+
json (1.8.3)
|
56
|
+
jwt (1.5.2)
|
57
|
+
launchy (2.4.3)
|
58
|
+
addressable (~> 2.3)
|
59
|
+
little-plugger (1.1.4)
|
60
|
+
logging (2.0.0)
|
61
|
+
little-plugger (~> 1.1)
|
62
|
+
multi_json (~> 1.10)
|
63
|
+
memoist (0.14.0)
|
64
|
+
mini_portile2 (2.0.0)
|
65
|
+
minitest (5.8.4)
|
66
|
+
multi_json (1.11.2)
|
67
|
+
multi_xml (0.5.5)
|
68
|
+
multipart-post (2.0.0)
|
69
|
+
nokogiri (1.6.7.2)
|
70
|
+
mini_portile2 (~> 2.0.0.rc2)
|
71
|
+
oauth (0.4.7)
|
72
|
+
oauth2 (1.0.0)
|
73
|
+
faraday (>= 0.8, < 0.10)
|
74
|
+
jwt (~> 1.0)
|
75
|
+
multi_json (~> 1.3)
|
76
|
+
multi_xml (~> 0.5)
|
77
|
+
rack (~> 1.2)
|
78
|
+
os (0.9.6)
|
79
|
+
rack (1.6.4)
|
80
|
+
rake (10.5.0)
|
81
|
+
retriable (1.4.1)
|
82
|
+
signet (0.7.2)
|
83
|
+
addressable (~> 2.3)
|
84
|
+
faraday (~> 0.9)
|
85
|
+
jwt (~> 1.5)
|
86
|
+
multi_json (~> 1.10)
|
87
|
+
thread_safe (0.3.5)
|
88
|
+
tzinfo (1.2.2)
|
89
|
+
thread_safe (~> 0.1)
|
90
|
+
|
91
|
+
PLATFORMS
|
92
|
+
ruby
|
93
|
+
|
94
|
+
DEPENDENCIES
|
95
|
+
bundler
|
96
|
+
minitest (~> 5.0)
|
97
|
+
rake (~> 10.0)
|
98
|
+
spreadsheet_model!
|
99
|
+
|
100
|
+
BUNDLED WITH
|
101
|
+
1.11.2
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 zucay
|
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/README.md
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# SpreadsheetModel
|
2
|
+
|
3
|
+
SpreadsheetModel is an OSM(Object-Spreadsheet-Mapper) framework for Goolge Spreadsheet in Ruby on Rails.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'spreadsheet_model'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install spreadsheet_model
|
21
|
+
|
22
|
+
## Configuration
|
23
|
+
|
24
|
+
SpreadsheetModel configuration can be done through environment variables.
|
25
|
+
This snippet is a simplest configuration.
|
26
|
+
To use with a Rails application, write it in 'config/initializers/spreadsheet_model.rb'
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
ENV['GOOGLE_DRIVE_CLIENT_ID'] ='your-client-id-of-goole-spreadsheet.apps.googleusercontent.com'
|
30
|
+
ENV['GOOGLE_DRIVE_CLIENT_SECRET'] = 'your-secret-of-google-spreadsheet'
|
31
|
+
ENV['GOOGLE_DRIVE_REFRESH_TOKEN'] = 'your-refresh-token-of-google-spreadsheet'
|
32
|
+
```
|
33
|
+
## Dataset of Google Spreadsheet
|
34
|
+
First line of spreadsheet is used as a attributes name.
|
35
|
+
Leftmost columns are used as a primary key.
|
36
|
+
|
37
|
+
## Class Definition
|
38
|
+
Include SpreadsheetModel with definitions of attr_accessor and SHEET_KEY,
|
39
|
+
so that access the sheet and column.
|
40
|
+
```ruby
|
41
|
+
class TestModel
|
42
|
+
include SpreadsheetModel
|
43
|
+
attr_accessor :id, :name, :long_name
|
44
|
+
|
45
|
+
# https://docs.google.com/spreadsheets/d/sheet-key
|
46
|
+
SHEET_KEY = 'spreadsheet-identifier-of-url'
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
## Usage
|
51
|
+
SpreadsheetModel provides a find('value_of_primary_key') method.
|
52
|
+
the return value acts as a ActiveModel.
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
row = TestModel.find(1) # returns row of id: 1
|
56
|
+
puts row.name # returns a value of the 'name' column
|
57
|
+
```
|
58
|
+
|
59
|
+
## Development
|
60
|
+
|
61
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
62
|
+
|
63
|
+
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).
|
64
|
+
|
65
|
+
## Contributing
|
66
|
+
|
67
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/spreadsheet_model. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
68
|
+
|
69
|
+
|
70
|
+
## License
|
71
|
+
|
72
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "spreadsheet_model"
|
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
|
data/bin/setup
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
require "spreadsheet_model/version"
|
2
|
+
require 'google/api_client'
|
3
|
+
require 'google_drive'
|
4
|
+
require 'active_support'
|
5
|
+
require 'active_support/core_ext'
|
6
|
+
require 'active_model'
|
7
|
+
|
8
|
+
module SpreadsheetModel
|
9
|
+
extend ActiveSupport::Concern
|
10
|
+
include ActiveModel::Model
|
11
|
+
|
12
|
+
included do
|
13
|
+
def self.on_import(&block)
|
14
|
+
@import_callback = block
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.attr_accessor(*args)
|
18
|
+
super
|
19
|
+
@@column_names = args
|
20
|
+
end
|
21
|
+
|
22
|
+
def [](name)
|
23
|
+
@__row[name]
|
24
|
+
end
|
25
|
+
|
26
|
+
def []=(name, value)
|
27
|
+
@__row[name] = value
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.import
|
31
|
+
sheet_key = ENV["GOOGLE_DRIVE_#{name.demodulize.underscore.upcase}_SHEET_KEY"]
|
32
|
+
sheet_key = self::SHEET_KEY if defined? self::SHEET_KEY
|
33
|
+
title_regexp = /.*/
|
34
|
+
title_regexp = self::SHEET_TITLE_REGEXP if defined? self::SHEET_TITLE_REGEXP
|
35
|
+
|
36
|
+
sheets = worksheets(sheet_key).select do |sheet|
|
37
|
+
sheet.title =~ title_regexp
|
38
|
+
end
|
39
|
+
|
40
|
+
sheets.each do |sheet|
|
41
|
+
rows = sheet.rows.dup
|
42
|
+
header = rows.shift
|
43
|
+
rows.each do |row|
|
44
|
+
row_hash = Hash[*header.zip(row).flatten]
|
45
|
+
row_hash = @import_callback.call(row_hash) if @import_callback
|
46
|
+
write_cache(row[0], row_hash) if row_hash.is_a? Hash
|
47
|
+
end
|
48
|
+
end
|
49
|
+
write_cache('__cached', true)
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.find(key)
|
53
|
+
import unless cached?
|
54
|
+
row = read_cache(key)
|
55
|
+
return nil unless row
|
56
|
+
attributes = row.select { |key, _| @@column_names.include?(key.to_sym) }
|
57
|
+
|
58
|
+
if attributes['type'].to_s.present?
|
59
|
+
instance = attributes['type'].constantize.new(attributes)
|
60
|
+
else
|
61
|
+
instance = self.new(attributes)
|
62
|
+
end
|
63
|
+
instance.instance_variable_set(:@__row, row)
|
64
|
+
instance
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.cached?
|
68
|
+
!!read_cache('__cached')
|
69
|
+
end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
def self.cache
|
74
|
+
@@cache = Rails.cache if defined? Rails
|
75
|
+
@@cache ||= ActiveSupport::Cache::MemoryStore.new
|
76
|
+
end
|
77
|
+
|
78
|
+
def self.read_cache(key)
|
79
|
+
cache.read "#{name}::#{key}"
|
80
|
+
end
|
81
|
+
|
82
|
+
def self.write_cache(key, value)
|
83
|
+
cache.write "#{name}::#{key}", value
|
84
|
+
end
|
85
|
+
|
86
|
+
def self.worksheets(sheet_key)
|
87
|
+
client = ::OAuth2::Client.new(
|
88
|
+
ENV['GOOGLE_DRIVE_CLIENT_ID'],
|
89
|
+
ENV['GOOGLE_DRIVE_CLIENT_SECRET'],
|
90
|
+
site: 'https://accounts.google.com',
|
91
|
+
token_url: '/o/oauth2/token',
|
92
|
+
authorize_url: '/o/oauth2/auth'
|
93
|
+
)
|
94
|
+
auth_options = {
|
95
|
+
refresh_token: ENV['GOOGLE_DRIVE_REFRESH_TOKEN'],
|
96
|
+
expires_at: 3600
|
97
|
+
}
|
98
|
+
auth_token = ::OAuth2::AccessToken.from_hash(client, auth_options)
|
99
|
+
auth_token = auth_token.refresh!
|
100
|
+
session = ::GoogleDrive.login_with_oauth(auth_token.token)
|
101
|
+
session.spreadsheet_by_key(sheet_key).worksheets
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'spreadsheet_model/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "spreadsheet_model"
|
8
|
+
spec.version = SpreadsheetModel::VERSION
|
9
|
+
spec.authors = ["zucay"]
|
10
|
+
spec.email = ["y.kawarazuka@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = 'model-like class without database using google spreadsheet'
|
13
|
+
spec.description = 'model-like class without database using google spreadsheet'
|
14
|
+
spec.homepage = 'https://github.com/zucay/spreadsheet_model'
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency 'google_drive', '~> 1.0'
|
23
|
+
spec.add_dependency 'activesupport'
|
24
|
+
spec.add_dependency 'activemodel'
|
25
|
+
spec.add_development_dependency "bundler"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spreadsheet_model
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- zucay
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google_drive
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activemodel
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.0'
|
97
|
+
description: model-like class without database using google spreadsheet
|
98
|
+
email:
|
99
|
+
- y.kawarazuka@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".travis.yml"
|
106
|
+
- CODE_OF_CONDUCT.md
|
107
|
+
- Gemfile
|
108
|
+
- Gemfile.lock
|
109
|
+
- LICENSE
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- bin/console
|
113
|
+
- bin/setup
|
114
|
+
- lib/spreadsheet_model.rb
|
115
|
+
- lib/spreadsheet_model/version.rb
|
116
|
+
- spreadsheet_model.gemspec
|
117
|
+
homepage: https://github.com/zucay/spreadsheet_model
|
118
|
+
licenses:
|
119
|
+
- MIT
|
120
|
+
metadata: {}
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options: []
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
requirements: []
|
136
|
+
rubyforge_project:
|
137
|
+
rubygems_version: 2.4.5.1
|
138
|
+
signing_key:
|
139
|
+
specification_version: 4
|
140
|
+
summary: model-like class without database using google spreadsheet
|
141
|
+
test_files: []
|